From 622645ff783ae8737bf8ac690eda967fc224dd42 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 14 Jul 2022 20:56:17 -0400 Subject: [PATCH 001/124] Completion: Add in parameters when the suggestion is a function (#46) Closes https://github.com/grafana/jsonnet-language-server/issues/13 This works pretty well out of the box because the args given by the jsonnet docs are valid jsonnet Ex: Autocompleting `std.manifestYamlDoc` will give `std.manifestYamlDoc(value, indent_array_in_object=false, quote_keys=true)` --- pkg/server/completion.go | 1 + pkg/server/completion_test.go | 3 +++ pkg/stdlib/stdlib-content.jsonnet | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 103eae3..3a85e72 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -37,6 +37,7 @@ func (s *server) Completion(ctx context.Context, params *protocol.CompletionPara Label: f.Name, Kind: protocol.FunctionCompletion, Detail: f.Signature(), + InsertText: strings.ReplaceAll(f.Signature(), "std.", ""), Documentation: f.MarkdownDescription, } diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index decd690..d3f324c 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -35,18 +35,21 @@ var ( Label: "aaaotherMin", Kind: protocol.FunctionCompletion, Detail: "std.aaaotherMin(a)", + InsertText: "aaaotherMin(a)", Documentation: "blabla", } minItem = protocol.CompletionItem{ Label: "min", Kind: protocol.FunctionCompletion, Detail: "std.min(a, b)", + InsertText: "min(a, b)", Documentation: "min gets the min", } maxItem = protocol.CompletionItem{ Label: "max", Kind: protocol.FunctionCompletion, Detail: "std.max(a, b)", + InsertText: "max(a, b)", Documentation: "max gets the max", } ) diff --git a/pkg/stdlib/stdlib-content.jsonnet b/pkg/stdlib/stdlib-content.jsonnet index 575f652..369aaa4 100644 --- a/pkg/stdlib/stdlib-content.jsonnet +++ b/pkg/stdlib/stdlib-content.jsonnet @@ -587,7 +587,7 @@ local html = import 'html.libsonnet'; }, { name: 'parseYaml', - availableSince: 'x.y.z', + availableSince: '0.18.0', params: ['str'], description: ||| Parses a YAML string. This is provided as a "best-effort" mechanism and should not be relied on to provide From 3bbe4f0b9e988f9ca520fdb8e7beb9fc06ce2c49 Mon Sep 17 00:00:00 2001 From: Rohith Ravi Date: Thu, 14 Jul 2022 18:48:35 -0700 Subject: [PATCH 002/124] feat: support for std.extVar variables (#37) * config support inital pass * feat: support for extVars via lsp runtime configuration --- pkg/server/configuration.go | 56 +++++++++++++++ pkg/server/configuration_test.go | 119 +++++++++++++++++++++++++++++++ pkg/server/server.go | 14 ++-- pkg/server/unused.go | 4 -- 4 files changed, 184 insertions(+), 9 deletions(-) create mode 100644 pkg/server/configuration.go create mode 100644 pkg/server/configuration_test.go diff --git a/pkg/server/configuration.go b/pkg/server/configuration.go new file mode 100644 index 0000000..75925f3 --- /dev/null +++ b/pkg/server/configuration.go @@ -0,0 +1,56 @@ +package server + +import ( + "context" + "fmt" + + "github.com/google/go-jsonnet" + "github.com/jdbaldry/go-language-server-protocol/jsonrpc2" + "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" +) + +func (s *server) DidChangeConfiguration(ctx context.Context, params *protocol.DidChangeConfigurationParams) error { + settingsMap, ok := params.Settings.(map[string]interface{}) + if !ok { + return fmt.Errorf("%w: unsupported settings payload. expected json object, got: %T", jsonrpc2.ErrInvalidParams, params.Settings) + } + + for sk, sv := range settingsMap { + switch sk { + case "ext_vars": + newVars, err := s.parseExtVars(sv) + if err != nil { + return fmt.Errorf("%w: ext_vars parsing failed: %v", jsonrpc2.ErrInvalidParams, err) + } + s.extVars = newVars + + default: + return fmt.Errorf("%w: unsupported settings key: %q", jsonrpc2.ErrInvalidParams, sk) + } + } + return nil +} + +func (s *server) parseExtVars(unparsed interface{}) (map[string]string, error) { + newVars, ok := unparsed.(map[string]interface{}) + if !ok { + return nil, fmt.Errorf("unsupported settings value for ext_vars. expected json object. got: %T", unparsed) + } + + extVars := make(map[string]string, len(newVars)) + for varKey, varValue := range newVars { + vv, ok := varValue.(string) + if !ok { + return nil, fmt.Errorf("unsupported settings value for ext_vars.%s. expected string. got: %T", varKey, varValue) + } + extVars[varKey] = vv + } + return extVars, nil +} + +func resetExtVars(vm *jsonnet.VM, vars map[string]string) { + vm.ExtReset() + for vk, vv := range vars { + vm.ExtVar(vk, vv) + } +} diff --git a/pkg/server/configuration_test.go b/pkg/server/configuration_test.go new file mode 100644 index 0000000..f6b8fcc --- /dev/null +++ b/pkg/server/configuration_test.go @@ -0,0 +1,119 @@ +package server + +import ( + "context" + "errors" + "testing" + + "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" + "github.com/stretchr/testify/assert" +) + +func TestConfiguration(t *testing.T) { + type kase struct { + name string + settings interface{} + fileContent string + + expectedErr error + expectedFileOutput string + } + + testCases := []kase{ + { + name: "settings is not an object", + settings: []string{""}, + fileContent: `[]`, + expectedErr: errors.New("JSON RPC invalid params: unsupported settings payload. expected json object, got: []string"), + }, + { + name: "settings has unsupported key", + settings: map[string]interface{}{ + "foo_bar": map[string]interface{}{}, + }, + fileContent: `[]`, + expectedErr: errors.New("JSON RPC invalid params: unsupported settings key: \"foo_bar\""), + }, + { + name: "ext_var config is empty", + settings: map[string]interface{}{ + "ext_vars": map[string]interface{}{}, + }, + fileContent: `[]`, + expectedFileOutput: `[]`, + }, + { + name: "ext_var config is missing", + settings: map[string]interface{}{}, + fileContent: `[]`, + expectedFileOutput: `[]`, + }, + { + name: "ext_var config is not an object", + settings: map[string]interface{}{ + "ext_vars": []string{}, + }, + fileContent: `[]`, + expectedErr: errors.New("JSON RPC invalid params: ext_vars parsing failed: unsupported settings value for ext_vars. expected json object. got: []string"), + }, + { + name: "ext_var config value is not a string", + settings: map[string]interface{}{ + "ext_vars": map[string]interface{}{ + "foo": true, + }, + }, + fileContent: `[]`, + expectedErr: errors.New("JSON RPC invalid params: ext_vars parsing failed: unsupported settings value for ext_vars.foo. expected string. got: bool"), + }, + { + name: "ext_var config is valid", + settings: map[string]interface{}{ + "ext_vars": map[string]interface{}{ + "hello": "world", + }, + }, + fileContent: ` +{ + hello: std.extVar("hello"), +} + `, + expectedFileOutput: ` +{ + "hello": "world" +} + `, + }, + } + + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + s, fileURI := testServerWithFile(t, nil, tc.fileContent) + + err := s.DidChangeConfiguration( + context.TODO(), + &protocol.DidChangeConfigurationParams{ + Settings: tc.settings, + }, + ) + if tc.expectedErr == nil && err != nil { + t.Fatalf("DidChangeConfiguration produced unexpected error: %v", err) + } else if tc.expectedErr != nil && err == nil { + t.Fatalf("expected DidChangeConfiguration to produce error but it did not") + } else if tc.expectedErr != nil && err != nil { + assert.EqualError(t, err, tc.expectedErr.Error()) + return + } + + vm, err := s.getVM("any") + assert.NoError(t, err) + + doc, err := s.cache.get(fileURI) + assert.NoError(t, err) + + json, err := vm.Evaluate(doc.ast) + assert.NoError(t, err) + assert.JSONEq(t, tc.expectedFileOutput, json) + }) + } +} diff --git a/pkg/server/server.go b/pkg/server/server.go index 6e530ce..00158b1 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -49,10 +49,11 @@ func NewServer(name, version string, client protocol.ClientCloser) *server { type server struct { name, version string - stdlib []stdlib.Function - cache *cache - client protocol.ClientCloser - getVM func(path string) (*jsonnet.VM, error) + stdlib []stdlib.Function + cache *cache + client protocol.ClientCloser + getVM func(path string) (*jsonnet.VM, error) + extVars map[string]string // Feature flags EvalDiags bool @@ -64,6 +65,7 @@ func (s *server) WithStaticVM(jpaths []string) *server { s.getVM = func(path string) (*jsonnet.VM, error) { jpaths = append(jpaths, filepath.Dir(path)) vm := jsonnet.MakeVM() + resetExtVars(vm, s.extVars) importer := &jsonnet.FileImporter{JPaths: jpaths} vm.Importer(importer) return vm, nil @@ -82,7 +84,9 @@ func (s *server) WithTankaVM(fallbackJPath []string) *server { opts := tankaJsonnet.Opts{ ImportPaths: jpath, } - return tankaJsonnet.MakeVM(opts), nil + vm := tankaJsonnet.MakeVM(opts) + resetExtVars(vm, s.extVars) + return vm, nil } return s } diff --git a/pkg/server/unused.go b/pkg/server/unused.go index e8df0db..7b80991 100644 --- a/pkg/server/unused.go +++ b/pkg/server/unused.go @@ -216,10 +216,6 @@ func (s *server) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnos return nil, notImplemented("DiagnosticWorkspace") } -func (s *server) DidChangeConfiguration(context.Context, *protocol.DidChangeConfigurationParams) error { - return notImplemented("DidChangeConfiguration") -} - func (s *server) DidChangeWatchedFiles(context.Context, *protocol.DidChangeWatchedFilesParams) error { return notImplemented("DidChangeWatchedFiles") } From 4a6d3760de41d3a52022fc0603d2d53209bb9cef Mon Sep 17 00:00:00 2001 From: Rohith Ravi Date: Fri, 19 Aug 2022 06:17:40 -0700 Subject: [PATCH 003/124] feat: dynamic formatting configuration (#47) * added tests * minor style tweaks * adding https://github.com/mitchellh/mapstructure * switch from reflection -> mapstructure for decoding * neovim editor integration docs * wip * go mod tidy --- editor/vim/README.md | 26 +++++++++ go.mod | 1 + go.sum | 2 + pkg/server/configuration.go | 77 ++++++++++++++++++++++++++ pkg/server/configuration_test.go | 95 ++++++++++++++++++++++++++++++++ pkg/server/formatting.go | 3 +- pkg/server/formatting_test.go | 85 ++++++++++++++++++++++++++++ pkg/server/server.go | 3 + 8 files changed, 290 insertions(+), 2 deletions(-) diff --git a/editor/vim/README.md b/editor/vim/README.md index 8bbbdbc..d5501b8 100644 --- a/editor/vim/README.md +++ b/editor/vim/README.md @@ -8,6 +8,32 @@ The LSP integration will depend on the vim plugin you're using * `neoclide/coc.nvim`: * Inside vim, run: `:CocConfig` (to edit `~/.vim/coc-settings.json`) * Copy [coc-settings.json](coc-settings.json) content +* `neovim/nvim-lspconfig`: + * Install jsonnet-language-server, either manually via `go install github.com/grafana/jsonnet-language-server@latest` or via + [williamboman/mason.nvim](https://github.com/williamboman/mason.nvim) + * Configure settings via [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) +```lua +require'lspconfig'.jsonnet_ls.setup{ + ext_vars = { + foo = 'bar', + }, + formatting = { + -- default values + Indent = 2, + MaxBlankLines = 2, + StringStyle = 'single', + CommentStyle = 'slash', + PrettyFieldNames = true, + PadArrays = false, + PadObjects = true, + SortImports = true, + UseImplicitPlus = true, + StripEverything = false, + StripComments = false, + StripAllButComments = false, + }, +} +``` Some adjustments you may need to review for above example configs: * Both are preset to run `jsonnet-language-server -t`, i.e. with diff --git a/go.mod b/go.mod index 9ed8bac..5c1b3a4 100644 --- a/go.mod +++ b/go.mod @@ -8,6 +8,7 @@ require ( github.com/grafana/tanka v0.19.0 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 + github.com/mitchellh/mapstructure v1.5.0 github.com/sirupsen/logrus v1.8.1 github.com/stretchr/testify v1.7.0 ) diff --git a/go.sum b/go.sum index 4681483..6c2b509 100644 --- a/go.sum +++ b/go.sum @@ -47,6 +47,8 @@ github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9 github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/pkg/server/configuration.go b/pkg/server/configuration.go index 75925f3..8490224 100644 --- a/pkg/server/configuration.go +++ b/pkg/server/configuration.go @@ -3,10 +3,13 @@ package server import ( "context" "fmt" + "reflect" "github.com/google/go-jsonnet" + "github.com/google/go-jsonnet/formatter" "github.com/jdbaldry/go-language-server-protocol/jsonrpc2" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" + "github.com/mitchellh/mapstructure" ) func (s *server) DidChangeConfiguration(ctx context.Context, params *protocol.DidChangeConfigurationParams) error { @@ -24,6 +27,13 @@ func (s *server) DidChangeConfiguration(ctx context.Context, params *protocol.Di } s.extVars = newVars + case "formatting": + newFmtOpts, err := s.parseFormattingOpts(sv) + if err != nil { + return fmt.Errorf("%w: formatting options parsing failed: %v", jsonrpc2.ErrInvalidParams, err) + } + s.fmtOpts = newFmtOpts + default: return fmt.Errorf("%w: unsupported settings key: %q", jsonrpc2.ErrInvalidParams, sk) } @@ -48,9 +58,76 @@ func (s *server) parseExtVars(unparsed interface{}) (map[string]string, error) { return extVars, nil } +func (s *server) parseFormattingOpts(unparsed interface{}) (formatter.Options, error) { + newOpts, ok := unparsed.(map[string]interface{}) + if !ok { + return formatter.Options{}, fmt.Errorf("unsupported settings value for formatting. expected json object. got: %T", unparsed) + } + + opts := formatter.DefaultOptions() + config := mapstructure.DecoderConfig{ + Result: &opts, + DecodeHook: mapstructure.ComposeDecodeHookFunc( + stringStyleDecodeFunc, + commentStyleDecodeFunc, + ), + } + decoder, err := mapstructure.NewDecoder(&config) + if err != nil { + return formatter.Options{}, fmt.Errorf("decoder construction failed: %v", err) + } + + if err := decoder.Decode(newOpts); err != nil { + return formatter.Options{}, fmt.Errorf("map decode failed: %v", err) + } + return opts, nil +} + func resetExtVars(vm *jsonnet.VM, vars map[string]string) { vm.ExtReset() for vk, vv := range vars { vm.ExtVar(vk, vv) } } + +func stringStyleDecodeFunc(from, to reflect.Type, unparsed interface{}) (interface{}, error) { + if to != reflect.TypeOf(formatter.StringStyleDouble) { + return unparsed, nil + } + if from.Kind() != reflect.String { + return nil, fmt.Errorf("expected string, got: %v", from.Kind()) + } + + // will not panic because of the kind == string check above + switch str := unparsed.(string); str { + case "double": + return formatter.StringStyleDouble, nil + case "single": + return formatter.StringStyleSingle, nil + case "leave": + return formatter.StringStyleLeave, nil + default: + return nil, fmt.Errorf("expected one of 'double', 'single', 'leave', got: %q", str) + } +} + +func commentStyleDecodeFunc(from, to reflect.Type, unparsed interface{}) (interface{}, error) { + if to != reflect.TypeOf(formatter.CommentStyleHash) { + return unparsed, nil + } + if from.Kind() != reflect.String { + return nil, fmt.Errorf("expected string, got: %v", from.Kind()) + } + + // will not panic because of the kind == string check above + switch str := unparsed.(string); str { + case "hash": + return formatter.CommentStyleHash, nil + case "slash": + return formatter.CommentStyleSlash, nil + case "leave": + return formatter.CommentStyleLeave, nil + default: + return nil, fmt.Errorf("expected one of 'hash', 'slash', 'leave', got: %q", str) + } +} diff --git a/pkg/server/configuration_test.go b/pkg/server/configuration_test.go index f6b8fcc..331c17e 100644 --- a/pkg/server/configuration_test.go +++ b/pkg/server/configuration_test.go @@ -5,6 +5,7 @@ import ( "errors" "testing" + "github.com/google/go-jsonnet/formatter" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" "github.com/stretchr/testify/assert" ) @@ -117,3 +118,97 @@ func TestConfiguration(t *testing.T) { }) } } + +func TestConfiguration_Formatting(t *testing.T) { + type kase struct { + name string + settings interface{} + expectedOptions formatter.Options + expectedErr error + } + + testCases := []kase{ + { + name: "formatting opts", + settings: map[string]interface{}{ + "formatting": map[string]interface{}{ + "Indent": 4, + "MaxBlankLines": 10, + "StringStyle": "single", + "CommentStyle": "leave", + "PrettyFieldNames": true, + "PadArrays": false, + "PadObjects": true, + "SortImports": false, + "UseImplicitPlus": true, + "StripEverything": false, + "StripComments": false, + // not setting StripAllButComments + }, + }, + expectedOptions: func() formatter.Options { + opts := formatter.DefaultOptions() + opts.Indent = 4 + opts.MaxBlankLines = 10 + opts.StringStyle = formatter.StringStyleSingle + opts.CommentStyle = formatter.CommentStyleLeave + opts.PrettyFieldNames = true + opts.PadArrays = false + opts.PadObjects = true + opts.SortImports = false + opts.UseImplicitPlus = true + opts.StripEverything = false + opts.StripComments = false + return opts + }(), + }, + { + name: "invalid string style", + settings: map[string]interface{}{ + "formatting": map[string]interface{}{ + "StringStyle": "invalid", + }, + }, + expectedErr: errors.New("JSON RPC invalid params: formatting options parsing failed: map decode failed: 1 error(s) decoding:\n\n* error decoding 'StringStyle': expected one of 'double', 'single', 'leave', got: \"invalid\""), + }, + { + name: "invalid comment style", + settings: map[string]interface{}{ + "formatting": map[string]interface{}{ + "CommentStyle": "invalid", + }, + }, + expectedErr: errors.New("JSON RPC invalid params: formatting options parsing failed: map decode failed: 1 error(s) decoding:\n\n* error decoding 'CommentStyle': expected one of 'hash', 'slash', 'leave', got: \"invalid\""), + }, + { + name: "does not override default values", + settings: map[string]interface{}{ + "formatting": map[string]interface{}{}, + }, + expectedOptions: formatter.DefaultOptions(), + }, + } + + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + s, _ := testServerWithFile(t, nil, "") + + err := s.DidChangeConfiguration( + context.TODO(), + &protocol.DidChangeConfigurationParams{ + Settings: tc.settings, + }, + ) + if tc.expectedErr == nil && err != nil { + t.Fatalf("DidChangeConfiguration produced unexpected error: %v", err) + } else if tc.expectedErr != nil && err == nil { + t.Fatalf("expected DidChangeConfiguration to produce error but it did not") + } else if tc.expectedErr != nil && err != nil { + assert.EqualError(t, err, tc.expectedErr.Error()) + return + } + + assert.Equal(t, tc.expectedOptions, s.fmtOpts) + }) + } +} diff --git a/pkg/server/formatting.go b/pkg/server/formatting.go index 0861e44..64ef889 100644 --- a/pkg/server/formatting.go +++ b/pkg/server/formatting.go @@ -17,8 +17,7 @@ func (s *server) Formatting(ctx context.Context, params *protocol.DocumentFormat return nil, utils.LogErrorf("Formatting: %s: %w", errorRetrievingDocument, err) } - // TODO(#14): Formatting options should be user configurable. - formatted, err := formatter.Format(params.TextDocument.URI.SpanURI().Filename(), doc.item.Text, formatter.DefaultOptions()) + formatted, err := formatter.Format(params.TextDocument.URI.SpanURI().Filename(), doc.item.Text, s.fmtOpts) if err != nil { log.Errorf("error formatting document: %v", err) return nil, nil diff --git a/pkg/server/formatting_test.go b/pkg/server/formatting_test.go index 8a497f1..2dca6b9 100644 --- a/pkg/server/formatting_test.go +++ b/pkg/server/formatting_test.go @@ -1,10 +1,13 @@ package server import ( + "context" + "fmt" "testing" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestGetTextEdits(t *testing.T) { @@ -71,3 +74,85 @@ func TestGetTextEdits(t *testing.T) { }) } } + +func TestFormatting(t *testing.T) { + type kase struct { + name string + settings interface{} + fileContent string + + expected []protocol.TextEdit + } + testCases := []kase{ + { + name: "default settings", + settings: nil, + fileContent: "{foo: 'bar'}", + expected: []protocol.TextEdit{ + {Range: makeRange(t, "0:0-1:0"), NewText: ""}, + {Range: makeRange(t, "1:0-1:0"), NewText: "{ foo: 'bar' }\n"}, + }, + }, + { + name: "new lines with indentation", + settings: map[string]interface{}{ + "formatting": map[string]interface{}{"Indent": 4}, + }, + fileContent: ` +{ + foo: 'bar', +}`, + expected: []protocol.TextEdit{ + {Range: makeRange(t, "0:0-1:0"), NewText: ""}, + {Range: makeRange(t, "2:0-3:0"), NewText: ""}, + {Range: makeRange(t, "3:0-4:0"), NewText: ""}, + {Range: makeRange(t, "4:0-4:0"), NewText: " foo: 'bar',\n"}, + {Range: makeRange(t, "4:0-4:0"), NewText: "}\n"}, + }, + }, + } + + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + s, fileURI := testServerWithFile(t, nil, tc.fileContent) + + if tc.settings != nil { + err := s.DidChangeConfiguration( + context.TODO(), + &protocol.DidChangeConfigurationParams{ + Settings: tc.settings, + }, + ) + require.NoError(t, err, "expected settings to not return an error") + } + + edits, err := s.Formatting(context.TODO(), &protocol.DocumentFormattingParams{ + TextDocument: protocol.TextDocumentIdentifier{ + URI: fileURI, + }, + }) + require.NoError(t, err, "expected Formatting to not return an error") + assert.Equal(t, tc.expected, edits) + }) + } +} + +// makeRange parses rangeStr of the form +// :-: into a valid protocol.Range +func makeRange(t *testing.T, rangeStr string) protocol.Range { + ret := protocol.Range{ + Start: protocol.Position{Line: 0, Character: 0}, + End: protocol.Position{Line: 0, Character: 0}, + } + n, err := fmt.Sscanf( + rangeStr, + "%d:%d-%d:%d", + &ret.Start.Line, + &ret.Start.Character, + &ret.End.Line, + &ret.End.Character, + ) + require.NoError(t, err) + require.Equal(t, 4, n) + return ret +} diff --git a/pkg/server/server.go b/pkg/server/server.go index 00158b1..e8985a9 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -21,6 +21,7 @@ import ( "path/filepath" "github.com/google/go-jsonnet" + "github.com/google/go-jsonnet/formatter" "github.com/grafana/jsonnet-language-server/pkg/stdlib" "github.com/grafana/jsonnet-language-server/pkg/utils" tankaJsonnet "github.com/grafana/tanka/pkg/jsonnet" @@ -40,6 +41,7 @@ func NewServer(name, version string, client protocol.ClientCloser) *server { version: version, cache: newCache(), client: client, + fmtOpts: formatter.DefaultOptions(), } return server @@ -54,6 +56,7 @@ type server struct { client protocol.ClientCloser getVM func(path string) (*jsonnet.VM, error) extVars map[string]string + fmtOpts formatter.Options // Feature flags EvalDiags bool From fe63f3d87e8f31f3ed1ca1ee90c79adf4d79fa45 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 24 Aug 2022 07:18:33 -0400 Subject: [PATCH 004/124] Fix diagnostics line parsing (#50) Fixes https://github.com/grafana/jsonnet-language-server/issues/49 The parsing was all wrong in some cases and was quite unsafe. This should no longer panic and it fixes a few issues with parsing All tested now, too --- pkg/server/diagnostics.go | 109 +++++++++++++++++--------------- pkg/server/diagnostics_test.go | 110 +++++++++++++++++++++++++++++++++ 2 files changed, 168 insertions(+), 51 deletions(-) diff --git a/pkg/server/diagnostics.go b/pkg/server/diagnostics.go index 6d4a576..e599862 100644 --- a/pkg/server/diagnostics.go +++ b/pkg/server/diagnostics.go @@ -17,13 +17,62 @@ import ( var ( // errRegexp matches the various Jsonnet location formats in errors. - // file:line msg - // file:line:col-endCol msg - // file:(line:endLine)-(col:endCol) msg - // Has 10 matching groups. - errRegexp = regexp.MustCompile(`/.*:(?:(\d+)|(?:(\d+):(\d+)-(\d+))|(?:\((\d+):(\d+)\)-\((\d+):(\d+))\))\s(.*)`) + // 1. file:line msg + // 2. file:line:col msg + // 3. file:line:col-endCol msg + // 4. file:(line:col)-(endLine:endCol) msg + // https://regex101.com/r/tL5VWi/2 + errRegexp = regexp.MustCompile(`/[^:]*:` + + `(?:(?P\d+)` + + `|(?P\d+):(?P\d+)` + + `|(?:(?P\d+):(?P\d+)-(?P\d+))` + + `|(?:\((?P\d+):(?P\d+)\)-\((?P\d+):(?P\d+))\))` + + `\s(?P.*)`) ) +func parseErrRegexpMatch(match []string) (string, protocol.Range) { + get := func(name string) string { + idx := errRegexp.SubexpIndex(name) + if len(match) <= idx { + return "" + } + return match[idx] + } + + message, line, col, endLine, endCol := "", 1, 1, 1, 1 + if len(match) > 1 { + if lineStr := get("startLine1"); lineStr != "" { + line, _ = strconv.Atoi(lineStr) + endLine = line + } + + if lineStr := get("startLine2"); lineStr != "" { + line, _ = strconv.Atoi(lineStr) + endLine = line + col, _ = strconv.Atoi(get("startCol2")) + endCol = col + } + + if lineStr := get("startLine3"); lineStr != "" { + line, _ = strconv.Atoi(lineStr) + endLine = line + col, _ = strconv.Atoi(get("startCol3")) + endCol, _ = strconv.Atoi(get("endCol3")) + } + + if lineStr := get("startLine4"); lineStr != "" { + line, _ = strconv.Atoi(lineStr) + endLine, _ = strconv.Atoi(get("endLine4")) + col, _ = strconv.Atoi(get("startCol4")) + endCol, _ = strconv.Atoi(get("endCol4")) + } + + message = get("message") + } + + return message, position.NewProtocolRange(line-1, col-1, endLine-1, endCol-1) +} + func (s *server) queueDiagnostics(uri protocol.DocumentURI) { s.cache.diagMutex.Lock() defer s.cache.diagMutex.Unlock() @@ -109,9 +158,7 @@ func (s *server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { doc.val, doc.err = vm.EvaluateAnonymousSnippet(doc.item.URI.SpanURI().Filename(), doc.item.Text) } - // Initialize with 1 because we indiscriminately subtract one to map error ranges to LSP ranges. if doc.err != nil { - line, col, endLine, endCol := 1, 1, 1, 1 diag := protocol.Diagnostic{Source: "jsonnet evaluation"} lines := strings.Split(doc.err.Error(), "\n") if len(lines) == 0 { @@ -127,34 +174,17 @@ func (s *server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { } else { match = errRegexp.FindStringSubmatch(lines[0]) } - if len(match) == 10 { - if match[1] != "" { - line, _ = strconv.Atoi(match[1]) - endLine = line + 1 - } - if match[2] != "" { - line, _ = strconv.Atoi(match[2]) - col, _ = strconv.Atoi(match[3]) - endLine = line - endCol, _ = strconv.Atoi(match[4]) - } - if match[5] != "" { - line, _ = strconv.Atoi(match[5]) - col, _ = strconv.Atoi(match[6]) - endLine, _ = strconv.Atoi(match[7]) - endCol, _ = strconv.Atoi(match[8]) - } - } + message, rang := parseErrRegexpMatch(match) if runtimeErr { diag.Message = doc.err.Error() diag.Severity = protocol.SeverityWarning } else { - diag.Message = match[9] + diag.Message = message diag.Severity = protocol.SeverityError } - diag.Range = position.NewProtocolRange(line-1, col-1, endLine-1, endCol-1) + diag.Range = rang diags = append(diags, diag) } @@ -167,31 +197,8 @@ func (s *server) getLintDiags(doc *document) (diags []protocol.Diagnostic) { log.Errorf("getLintDiags: %s: %v\n", errorRetrievingDocument, err) } else { for _, match := range errRegexp.FindAllStringSubmatch(result, -1) { - line, col, endLine, endCol := 1, 1, 1, 1 diag := protocol.Diagnostic{Source: "lint", Severity: protocol.SeverityWarning} - - if len(match) == 10 { - if match[1] != "" { - line, _ = strconv.Atoi(match[1]) - endLine = line + 1 - } - if match[2] != "" { - line, _ = strconv.Atoi(match[2]) - col, _ = strconv.Atoi(match[3]) - endLine = line - endCol, _ = strconv.Atoi(match[4]) - } - if match[5] != "" { - line, _ = strconv.Atoi(match[5]) - col, _ = strconv.Atoi(match[6]) - endLine, _ = strconv.Atoi(match[7]) - endCol, _ = strconv.Atoi(match[8]) - } - } - - diag.Message = match[9] - - diag.Range = position.NewProtocolRange(line-1, col-1, endLine-1, endCol-1) + diag.Message, diag.Range = parseErrRegexpMatch(match) diags = append(diags, diag) } } diff --git a/pkg/server/diagnostics_test.go b/pkg/server/diagnostics_test.go index 290cbf5..6299018 100644 --- a/pkg/server/diagnostics_test.go +++ b/pkg/server/diagnostics_test.go @@ -13,6 +13,28 @@ func TestGetLintDiags(t *testing.T) { fileContent string expected []protocol.Diagnostic }{ + { + name: "no error", + fileContent: `{}`, + }, + { + name: "invalid function call", + fileContent: `function(notPassed) { + this: 'is wrong', +}() +`, + expected: []protocol.Diagnostic{ + { + Range: protocol.Range{ + Start: protocol.Position{Line: 0, Character: 20}, + End: protocol.Position{Line: 2, Character: 3}, + }, + Severity: protocol.SeverityWarning, + Source: "lint", + Message: "Called value must be a function, but it is assumed to be an object", + }, + }, + }, { name: "unused variable", fileContent: ` @@ -45,3 +67,91 @@ local unused = 'test'; }) } } + +func TestGetEvalDiags(t *testing.T) { + testCases := []struct { + name string + fileContent string + expected []protocol.Diagnostic + }{ + { + name: "no error", + fileContent: `{}`, + }, + { + name: "syntax error 1", + fileContent: `{ s }`, + expected: []protocol.Diagnostic{ + { + Range: protocol.Range{ + Start: protocol.Position{Line: 0, Character: 4}, + End: protocol.Position{Line: 0, Character: 5}, + }, + Severity: protocol.SeverityError, + Source: "jsonnet evaluation", + Message: `Expected token OPERATOR but got "}"`, + }, + }, + }, + { + name: "syntax error 2", + fileContent: `{ s: }`, + expected: []protocol.Diagnostic{ + { + Range: protocol.Range{ + Start: protocol.Position{Line: 0, Character: 5}, + End: protocol.Position{Line: 0, Character: 6}, + }, + Severity: protocol.SeverityError, + Source: "jsonnet evaluation", + Message: `Unexpected: "}" while parsing terminal`, + }, + }, + }, + { + name: "syntax error 3", + fileContent: `{`, + expected: []protocol.Diagnostic{ + { + Range: protocol.Range{ + Start: protocol.Position{Line: 0, Character: 1}, + End: protocol.Position{Line: 0, Character: 1}, + }, + Severity: protocol.SeverityError, + Source: "jsonnet evaluation", + Message: `Unexpected: end of file while parsing field definition`, + }, + }, + }, + { + name: "syntax error 4", + fileContent: `{ + s: ||| +||| +}`, + expected: []protocol.Diagnostic{ + { + Range: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 7}, + End: protocol.Position{Line: 1, Character: 7}, + }, + Severity: protocol.SeverityError, + Source: "jsonnet evaluation", + Message: `Text block's first line must start with whitespace`, + }, + }, + }, + } + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + s, fileURI := testServerWithFile(t, nil, tc.fileContent) + doc, err := s.cache.get(fileURI) + if err != nil { + t.Fatalf("%s: %v", errorRetrievingDocument, err) + } + + diags := s.getEvalDiags(doc) + assert.Equal(t, tc.expected, diags) + }) + } +} From 4e1a2ed751d15b81dda8e9a9ef021c03ccbdcf6b Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 24 Aug 2022 07:20:14 -0400 Subject: [PATCH 005/124] Create dependabot.yml --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..41f7310 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: 'gomod' + directory: '/' + schedule: + interval: 'weekly' + open-pull-requests-limit: 5 From f3d90d3bf490cd0b7d2d5af8d30d76700ce60d64 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 07:22:22 -0400 Subject: [PATCH 006/124] Bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0 (#51) Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.8.1 to 1.9.0. - [Release notes](https://github.com/sirupsen/logrus/releases) - [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md) - [Commits](https://github.com/sirupsen/logrus/compare/v1.8.1...v1.9.0) --- updated-dependencies: - dependency-name: github.com/sirupsen/logrus dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 4 ++-- go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 5c1b3a4..9b7e8a1 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 - github.com/sirupsen/logrus v1.8.1 + github.com/sirupsen/logrus v1.9.0 github.com/stretchr/testify v1.7.0 ) @@ -36,7 +36,7 @@ require ( github.com/stretchr/objx v0.3.0 // indirect golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect - golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect + golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect diff --git a/go.sum b/go.sum index 6c2b509..36ca589 100644 --- a/go.sum +++ b/go.sum @@ -63,8 +63,8 @@ github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -90,12 +90,12 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxW golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= From 2a8c7c556def5dcbb0a1ae681413f21c9843160f Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 24 Aug 2022 07:24:04 -0400 Subject: [PATCH 007/124] Create CODEOWNERS --- CODEOWNERS | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..0d6aed9 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,10 @@ +# https://help.github.com/articles/about-codeowners/ +# https://git-scm.com/docs/gitignore#_pattern_format + +# See the following docs for more details about order in CODEOWNERS +# https://github.community/t/order-of-owners-in-codeowners-file/143073 +# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax + +# These owners will be the default owners for everything in +# the repo. +* @julienduchesne @jdbaldry @zzehring From 9e5357aa94ecb6845bd6f8d3b6bb766806246dfd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 07:24:13 -0400 Subject: [PATCH 008/124] Bump github.com/stretchr/testify from 1.7.0 to 1.8.0 (#53) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.0 to 1.8.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.7.0...v1.8.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 6 +++--- go.sum | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 9b7e8a1..23b3b1f 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 github.com/sirupsen/logrus v1.9.0 - github.com/stretchr/testify v1.7.0 + github.com/stretchr/testify v1.8.0 ) require ( @@ -33,12 +33,12 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/shopspring/decimal v1.2.0 // indirect github.com/spf13/cast v1.3.1 // indirect - github.com/stretchr/objx v0.3.0 // indirect + github.com/stretchr/objx v0.4.0 // indirect golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect sigs.k8s.io/yaml v1.3.0 // indirect ) diff --git a/go.sum b/go.sum index 36ca589..55f1a97 100644 --- a/go.sum +++ b/go.sum @@ -68,14 +68,16 @@ github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.3.0 h1:NGXK3lHquSN08v5vWalVI/L8XU9hdzE/G6xsrze47As= -github.com/stretchr/objx v0.3.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.4.0 h1:M2gUjqZET1qApGOWNSnZ49BAIMX4F/1plDv3+l31EJ4= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/yuin/goldmark v1.2.0 h1:WOOcyaJPlzb8fZ8TloxFe8QZkhOOJx87leDa9MIT9dc= github.com/yuin/goldmark v1.2.0/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -113,8 +115,8 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= From 231640cae48af6ac6680f8761fb433d9aced94e4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 09:26:04 -0400 Subject: [PATCH 009/124] Bump github.com/grafana/tanka from 0.19.0 to 0.22.1 (#54) * Bump github.com/grafana/tanka from 0.19.0 to 0.22.1 Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.19.0 to 0.22.1. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.19.0...v0.22.1) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * allowMissingBase = false Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Duchesne --- go.mod | 24 ++++++++++++---------- go.sum | 48 ++++++++++++++++++++++++++------------------ pkg/server/server.go | 2 +- 3 files changed, 42 insertions(+), 32 deletions(-) diff --git a/go.mod b/go.mod index 23b3b1f..ba3802b 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/JohannesKaufmann/html-to-markdown v1.3.0 github.com/google/go-jsonnet v0.18.0 - github.com/grafana/tanka v0.19.0 + github.com/grafana/tanka v0.22.1 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -22,20 +22,22 @@ require ( github.com/andybalholm/cascadia v1.1.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fatih/color v1.13.0 // indirect - github.com/google/uuid v1.1.2 // indirect - github.com/huandu/xstrings v1.3.1 // indirect - github.com/imdario/mergo v0.3.11 // indirect - github.com/mattn/go-colorable v0.1.9 // indirect + github.com/gobwas/glob v0.2.3 // indirect + github.com/google/uuid v1.3.0 // indirect + github.com/huandu/xstrings v1.3.2 // indirect + github.com/imdario/mergo v0.3.12 // indirect + github.com/karrick/godirwalk v1.16.1 // indirect + github.com/mattn/go-colorable v0.1.12 // indirect github.com/mattn/go-isatty v0.0.14 // indirect - github.com/mitchellh/copystructure v1.0.0 // indirect - github.com/mitchellh/reflectwalk v1.0.0 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/shopspring/decimal v1.2.0 // indirect - github.com/spf13/cast v1.3.1 // indirect + github.com/shopspring/decimal v1.3.1 // indirect + github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.4.0 // indirect - golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect - golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect + golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect + golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index 55f1a97..53c44ed 100644 --- a/go.sum +++ b/go.sum @@ -18,39 +18,48 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= +github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= +github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= +github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-jsonnet v0.18.0 h1:/6pTy6g+Jh1a1I2UMoAODkqELFiVIdOxbNwv0DDzoOg= github.com/google/go-jsonnet v0.18.0/go.mod h1:C3fTzyVJDslXdiTqw/bTFk7vSGyCtH3MGRbDfvEwGd0= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.19.0 h1:Cct6hIpQ2PczIK90h0d3X1XbFmM0q+hI42PEU0ieMAk= -github.com/grafana/tanka v0.19.0/go.mod h1:t0ickZJGuccdEsuBsrV7eEFeAJBYrtfilwYQWkaQZdg= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/grafana/tanka v0.22.1 h1:OssU78lA1skUXac4+R1ur9wbfp8m0Shvmhn2gAyoiuk= +github.com/grafana/tanka v0.22.1/go.mod h1:B6Tgi1YHOfym1FOM1HOXKyOnCjtG/8imTav6vwj3C38= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -github.com/huandu/xstrings v1.3.1 h1:4jgBlKK6tLKFvO8u5pmYjG91cqytmDCDvGh7ECVFfFs= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/imdario/mergo v0.3.11 h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA= +github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= +github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= +github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= +github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 h1:t0A10MAY8Z3eeBIBzlzrPpdjsag6Biuxq8iMCHmdGU8= github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2/go.mod h1:Hp8QDOEcdn4aDZ+DFTda+smIB0b5MvII4Q0Jo0y2VkA= +github.com/karrick/godirwalk v1.16.1 h1:DynhcF+bztK8gooS0+NDJFrdNZjJ3gzVzC545UNA9iw= +github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.9 h1:sqDoxXbdeALODt0DAeJCVp38ps9ZogZEAXjus69YV3U= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= +github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= +github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= +github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -61,12 +70,14 @@ github.com/sebdah/goldie/v2 v2.5.1/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvK github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= +github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= +github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0 h1:M2gUjqZET1qApGOWNSnZ49BAIMX4F/1plDv3+l31EJ4= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= @@ -82,26 +93,23 @@ github.com/yuin/goldmark v1.2.0 h1:WOOcyaJPlzb8fZ8TloxFe8QZkhOOJx87leDa9MIT9dc= github.com/yuin/goldmark v1.2.0/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA= +golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxWRVUAQwMI9fVrssnTfw= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/pkg/server/server.go b/pkg/server/server.go index e8985a9..5e1af39 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -79,7 +79,7 @@ func (s *server) WithStaticVM(jpaths []string) *server { func (s *server) WithTankaVM(fallbackJPath []string) *server { log.Infof("Using tanka mode. Will fall back to the following jpaths: %v", fallbackJPath) s.getVM = func(path string) (*jsonnet.VM, error) { - jpath, _, _, err := jpath.Resolve(path) + jpath, _, _, err := jpath.Resolve(path, false) if err != nil { log.Debugf("Unable to resolve jpath for %s: %s", path, err) jpath = append(fallbackJPath, filepath.Dir(path)) From 8ce022e563c04d6aa177bc796ca929f1244197d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 09:26:36 -0400 Subject: [PATCH 010/124] Bump github.com/JohannesKaufmann/html-to-markdown from 1.3.0 to 1.3.5 (#52) * Bump github.com/JohannesKaufmann/html-to-markdown from 1.3.0 to 1.3.5 Bumps [github.com/JohannesKaufmann/html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown) from 1.3.0 to 1.3.5. - [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases) - [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v1.3.0...v1.3.5) --- updated-dependencies: - dependency-name: github.com/JohannesKaufmann/html-to-markdown dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Fix test Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Duchesne --- go.mod | 2 +- go.sum | 4 ++-- pkg/stdlib/stdlib_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index ba3802b..ccf3bb7 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/grafana/jsonnet-language-server go 1.18 require ( - github.com/JohannesKaufmann/html-to-markdown v1.3.0 + github.com/JohannesKaufmann/html-to-markdown v1.3.5 github.com/google/go-jsonnet v0.18.0 github.com/grafana/tanka v0.22.1 github.com/hexops/gotextdiff v1.0.3 diff --git a/go.sum b/go.sum index 53c44ed..5083893 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/JohannesKaufmann/html-to-markdown v1.3.0 h1:K/p4cq8Ib13hcSVcKQNfKCSWw93CYW5pAjY0fl85has= -github.com/JohannesKaufmann/html-to-markdown v1.3.0/go.mod h1:JNSClIRYICFDiFhw6RBhBeWGnMSSKVZ6sPQA+TK4tyM= +github.com/JohannesKaufmann/html-to-markdown v1.3.5 h1:FrP3D5IqpxkNOk97TvbFduSo0JQKs/ZpgjuxpmAEFRA= +github.com/JohannesKaufmann/html-to-markdown v1.3.5/go.mod h1:JNSClIRYICFDiFhw6RBhBeWGnMSSKVZ6sPQA+TK4tyM= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= diff --git a/pkg/stdlib/stdlib_test.go b/pkg/stdlib/stdlib_test.go index d45efa7..2af0459 100644 --- a/pkg/stdlib/stdlib_test.go +++ b/pkg/stdlib/stdlib_test.go @@ -37,7 +37,7 @@ func TestFunctions(t *testing.T) { Name: "clamp", AvailableSince: "0.15.0", Params: []string{"x", "minVal", "maxVal"}, - MarkdownDescription: "Clamp a value to fit within the range [ `minVal`, `maxVal`].\nEquivalent to `std.max(minVal, std.min(x, maxVal))`.", + MarkdownDescription: "Clamp a value to fit within the range \\[ `minVal`, `maxVal`\\].\nEquivalent to `std.max(minVal, std.min(x, maxVal))`.", } contains(t, functions, clampFunc) From ecc9e385eace397bd2d7a916add1e57f9a2b210a Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 24 Aug 2022 09:29:30 -0400 Subject: [PATCH 011/124] Go 1.19 (#55) --- .github/workflows/golangci-lint.yml | 3 +-- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- go.mod | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 6664a3f..7588e6b 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -16,5 +16,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: v1.45 \ No newline at end of file + version: latest \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9007674..c5cb5db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.18 + go-version: 1.19 - uses: goreleaser/goreleaser-action@v2 with: distribution: goreleaser diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a9e7dc..c2123e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,6 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: '1.18' + go-version: '1.19' - run: go test ./... \ No newline at end of file diff --git a/go.mod b/go.mod index ccf3bb7..bdefb38 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/grafana/jsonnet-language-server -go 1.18 +go 1.19 require ( github.com/JohannesKaufmann/html-to-markdown v1.3.5 From 66e1556d523390205811cef34faa1a03cfa4c994 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 31 Aug 2022 08:17:11 -0400 Subject: [PATCH 012/124] Add support for configuring everything with `DidChangeConfiguration` (#57) Continues @entombedvirus's work in #37 and #47 With this, we can now configure everything using the configuration endpoint This will allow IDE extensions to change configurations without restarting the server Command line configs are still supported, for retro-compatibility and for looser integrations (like vim and emacs use) --- main.go | 26 ++++----- pkg/server/configuration.go | 36 +++++++++++- pkg/server/configuration_test.go | 95 +++++++++++++++++++++++++------- pkg/server/definition_test.go | 15 +++-- pkg/server/diagnostics.go | 6 +- pkg/server/formatting.go | 2 +- pkg/server/formatting_test.go | 4 +- pkg/server/server.go | 59 ++++++++------------ pkg/server/utils_test.go | 12 ++-- 9 files changed, 158 insertions(+), 97 deletions(-) diff --git a/main.go b/main.go index 65ff296..2324c1c 100644 --- a/main.go +++ b/main.go @@ -23,6 +23,7 @@ import ( "os" "path/filepath" + "github.com/google/go-jsonnet/formatter" "github.com/grafana/jsonnet-language-server/pkg/server" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/jsonrpc2" @@ -69,10 +70,10 @@ Environment variables: } func main() { - jpaths := filepath.SplitList(os.Getenv("JSONNET_PATH")) - tankaMode := false - lint := false - evalDiags := false + config := server.Configuration{ + JPaths: filepath.SplitList(os.Getenv("JSONNET_PATH")), + FormattingOptions: formatter.DefaultOptions(), + } log.SetLevel(log.InfoLevel) for i, arg := range os.Args { @@ -83,9 +84,9 @@ func main() { printVersion(os.Stdout) os.Exit(0) } else if arg == "-J" || arg == "--jpath" { - jpaths = append([]string{getArgValue(i)}, jpaths...) + config.JPaths = append([]string{getArgValue(i)}, config.JPaths...) } else if arg == "-t" || arg == "--tanka" { - tankaMode = true + config.ResolvePathsWithTanka = true } else if arg == "-l" || arg == "--log-level" { logLevel, err := log.ParseLevel(getArgValue(i)) if err != nil { @@ -93,9 +94,9 @@ func main() { } log.SetLevel(logLevel) } else if arg == "--lint" { - lint = true + config.EnableLintDiagnostics = true } else if arg == "--eval-diags" { - evalDiags = true + config.EnableEvalDiagnostics = true } } @@ -107,14 +108,7 @@ func main() { conn := jsonrpc2.NewConn(stream) client := protocol.ClientDispatcher(conn) - s := server.NewServer(name, version, client) - if tankaMode { - s = s.WithTankaVM(jpaths) - } else { - s = s.WithStaticVM(jpaths) - } - s.LintDiags = lint - s.EvalDiags = evalDiags + s := server.NewServer(name, version, client, config) conn.Go(ctx, protocol.Handlers( protocol.ServerHandler(s, jsonrpc2.MethodNotFound))) diff --git a/pkg/server/configuration.go b/pkg/server/configuration.go index 8490224..6e30e08 100644 --- a/pkg/server/configuration.go +++ b/pkg/server/configuration.go @@ -10,8 +10,19 @@ import ( "github.com/jdbaldry/go-language-server-protocol/jsonrpc2" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" "github.com/mitchellh/mapstructure" + log "github.com/sirupsen/logrus" ) +type Configuration struct { + ResolvePathsWithTanka bool + JPaths []string + ExtVars map[string]string + FormattingOptions formatter.Options + + EnableEvalDiagnostics bool + EnableLintDiagnostics bool +} + func (s *server) DidChangeConfiguration(ctx context.Context, params *protocol.DidChangeConfigurationParams) error { settingsMap, ok := params.Settings.(map[string]interface{}) if !ok { @@ -20,24 +31,43 @@ func (s *server) DidChangeConfiguration(ctx context.Context, params *protocol.Di for sk, sv := range settingsMap { switch sk { + case "log_level": + level, err := log.ParseLevel(sv.(string)) + if err != nil { + return fmt.Errorf("%w: %v", jsonrpc2.ErrInvalidParams, err) + } + log.SetLevel(level) + case "resolve_paths_with_tanka": + s.configuration.ResolvePathsWithTanka = sv.(bool) + case "jpath": + svList := sv.([]interface{}) + s.configuration.JPaths = make([]string, len(svList)) + for i, v := range svList { + s.configuration.JPaths[i] = v.(string) + } + case "enable_eval_diagnostics": + s.configuration.EnableEvalDiagnostics = sv.(bool) + case "enable_lint_diagnostics": + s.configuration.EnableLintDiagnostics = sv.(bool) case "ext_vars": newVars, err := s.parseExtVars(sv) if err != nil { return fmt.Errorf("%w: ext_vars parsing failed: %v", jsonrpc2.ErrInvalidParams, err) } - s.extVars = newVars - + s.configuration.ExtVars = newVars case "formatting": newFmtOpts, err := s.parseFormattingOpts(sv) if err != nil { return fmt.Errorf("%w: formatting options parsing failed: %v", jsonrpc2.ErrInvalidParams, err) } - s.fmtOpts = newFmtOpts + s.configuration.FormattingOptions = newFmtOpts default: return fmt.Errorf("%w: unsupported settings key: %q", jsonrpc2.ErrInvalidParams, sk) } } + log.Infof("configuration updated: %+v", s.configuration) + return nil } diff --git a/pkg/server/configuration_test.go b/pkg/server/configuration_test.go index 331c17e..10a67ef 100644 --- a/pkg/server/configuration_test.go +++ b/pkg/server/configuration_test.go @@ -121,10 +121,10 @@ func TestConfiguration(t *testing.T) { func TestConfiguration_Formatting(t *testing.T) { type kase struct { - name string - settings interface{} - expectedOptions formatter.Options - expectedErr error + name string + settings interface{} + expectedConfiguration Configuration + expectedErr error } testCases := []kase{ @@ -146,21 +146,23 @@ func TestConfiguration_Formatting(t *testing.T) { // not setting StripAllButComments }, }, - expectedOptions: func() formatter.Options { - opts := formatter.DefaultOptions() - opts.Indent = 4 - opts.MaxBlankLines = 10 - opts.StringStyle = formatter.StringStyleSingle - opts.CommentStyle = formatter.CommentStyleLeave - opts.PrettyFieldNames = true - opts.PadArrays = false - opts.PadObjects = true - opts.SortImports = false - opts.UseImplicitPlus = true - opts.StripEverything = false - opts.StripComments = false - return opts - }(), + expectedConfiguration: Configuration{ + FormattingOptions: func() formatter.Options { + opts := formatter.DefaultOptions() + opts.Indent = 4 + opts.MaxBlankLines = 10 + opts.StringStyle = formatter.StringStyleSingle + opts.CommentStyle = formatter.CommentStyleLeave + opts.PrettyFieldNames = true + opts.PadArrays = false + opts.PadObjects = true + opts.SortImports = false + opts.UseImplicitPlus = true + opts.StripEverything = false + opts.StripComments = false + return opts + }(), + }, }, { name: "invalid string style", @@ -185,7 +187,58 @@ func TestConfiguration_Formatting(t *testing.T) { settings: map[string]interface{}{ "formatting": map[string]interface{}{}, }, - expectedOptions: formatter.DefaultOptions(), + expectedConfiguration: Configuration{FormattingOptions: formatter.DefaultOptions()}, + }, + { + name: "all settings", + settings: map[string]interface{}{ + "formatting": map[string]interface{}{ + "Indent": 4, + "MaxBlankLines": 10, + "StringStyle": "double", + "CommentStyle": "slash", + "PrettyFieldNames": false, + "PadArrays": true, + "PadObjects": false, + "SortImports": false, + "UseImplicitPlus": false, + "StripEverything": true, + "StripComments": true, + "StripAllButComments": true, + }, + "ext_vars": map[string]interface{}{ + "hello": "world", + }, + "resolve_paths_with_tanka": false, + "jpath": []interface{}{"blabla", "blabla2"}, + "enable_eval_diagnostics": false, + "enable_lint_diagnostics": true, + }, + expectedConfiguration: Configuration{ + FormattingOptions: func() formatter.Options { + opts := formatter.DefaultOptions() + opts.Indent = 4 + opts.MaxBlankLines = 10 + opts.StringStyle = formatter.StringStyleDouble + opts.CommentStyle = formatter.CommentStyleSlash + opts.PrettyFieldNames = false + opts.PadArrays = true + opts.PadObjects = false + opts.SortImports = false + opts.UseImplicitPlus = false + opts.StripEverything = true + opts.StripComments = true + opts.StripAllButComments = true + return opts + }(), + ExtVars: map[string]string{ + "hello": "world", + }, + ResolvePathsWithTanka: false, + JPaths: []string{"blabla", "blabla2"}, + EnableEvalDiagnostics: false, + EnableLintDiagnostics: true, + }, }, } @@ -208,7 +261,7 @@ func TestConfiguration_Formatting(t *testing.T) { return } - assert.Equal(t, tc.expectedOptions, s.fmtOpts) + assert.Equal(t, tc.expectedConfiguration, s.configuration) }) } } diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index bb17de2..14c97be 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -737,8 +737,9 @@ func TestDefinition(t *testing.T) { }, } - server := NewServer("any", "test version", nil) - server.getVM = testGetVM + server := NewServer("any", "test version", nil, Configuration{ + JPaths: []string{"testdata"}, + }) serverOpenTestFile(t, server, string(tc.filename)) response, err := server.definitionLink(context.Background(), params) require.NoError(t, err) @@ -775,8 +776,9 @@ func BenchmarkDefinition(b *testing.B) { Position: tc.position, }, } - server := NewServer("any", "test version", nil) - server.getVM = testGetVM + server := NewServer("any", "test version", nil, Configuration{ + JPaths: []string{"testdata"}, + }) serverOpenTestFile(b, server, string(tc.filename)) for i := 0; i < b.N; i++ { @@ -845,8 +847,9 @@ func TestDefinitionFail(t *testing.T) { }, } - server := NewServer("any", "test version", nil) - server.getVM = testGetVM + server := NewServer("any", "test version", nil, Configuration{ + JPaths: []string{"testdata"}, + }) serverOpenTestFile(t, server, tc.filename) got, err := server.definitionLink(context.Background(), params) diff --git a/pkg/server/diagnostics.go b/pkg/server/diagnostics.go index e599862..a081f90 100644 --- a/pkg/server/diagnostics.go +++ b/pkg/server/diagnostics.go @@ -105,7 +105,7 @@ func (s *server) diagnosticsLoop() { }() lintChannel := make(chan []protocol.Diagnostic, 1) - if s.LintDiags { + if s.configuration.EnableLintDiagnostics { go func() { lintChannel <- s.getLintDiags(doc) }() @@ -113,7 +113,7 @@ func (s *server) diagnosticsLoop() { diags = append(diags, <-evalChannel...) - if s.LintDiags { + if s.configuration.EnableLintDiagnostics { err = s.client.PublishDiagnostics(context.Background(), &protocol.PublishDiagnosticsParams{ URI: uri, Diagnostics: diags, @@ -149,7 +149,7 @@ func (s *server) diagnosticsLoop() { } func (s *server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { - if doc.err == nil && s.EvalDiags { + if doc.err == nil && s.configuration.EnableEvalDiagnostics { vm, err := s.getVM(doc.item.URI.SpanURI().Filename()) if err != nil { log.Errorf("getEvalDiags: %s: %v\n", errorRetrievingDocument, err) diff --git a/pkg/server/formatting.go b/pkg/server/formatting.go index 64ef889..9061941 100644 --- a/pkg/server/formatting.go +++ b/pkg/server/formatting.go @@ -17,7 +17,7 @@ func (s *server) Formatting(ctx context.Context, params *protocol.DocumentFormat return nil, utils.LogErrorf("Formatting: %s: %w", errorRetrievingDocument, err) } - formatted, err := formatter.Format(params.TextDocument.URI.SpanURI().Filename(), doc.item.Text, s.fmtOpts) + formatted, err := formatter.Format(params.TextDocument.URI.SpanURI().Filename(), doc.item.Text, s.configuration.FormattingOptions) if err != nil { log.Errorf("error formatting document: %v", err) return nil, nil diff --git a/pkg/server/formatting_test.go b/pkg/server/formatting_test.go index 2dca6b9..6dc3779 100644 --- a/pkg/server/formatting_test.go +++ b/pkg/server/formatting_test.go @@ -85,8 +85,8 @@ func TestFormatting(t *testing.T) { } testCases := []kase{ { - name: "default settings", - settings: nil, + name: "default settings", + settings: nil, fileContent: "{foo: 'bar'}", expected: []protocol.TextEdit{ {Range: makeRange(t, "0:0-1:0"), NewText: ""}, diff --git a/pkg/server/server.go b/pkg/server/server.go index 5e1af39..839a675 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -21,7 +21,6 @@ import ( "path/filepath" "github.com/google/go-jsonnet" - "github.com/google/go-jsonnet/formatter" "github.com/grafana/jsonnet-language-server/pkg/stdlib" "github.com/grafana/jsonnet-language-server/pkg/utils" tankaJsonnet "github.com/grafana/tanka/pkg/jsonnet" @@ -35,13 +34,13 @@ const ( ) // New returns a new language server. -func NewServer(name, version string, client protocol.ClientCloser) *server { +func NewServer(name, version string, client protocol.ClientCloser, configuration Configuration) *server { server := &server{ - name: name, - version: version, - cache: newCache(), - client: client, - fmtOpts: formatter.DefaultOptions(), + name: name, + version: version, + cache: newCache(), + client: client, + configuration: configuration, } return server @@ -51,47 +50,33 @@ func NewServer(name, version string, client protocol.ClientCloser) *server { type server struct { name, version string - stdlib []stdlib.Function - cache *cache - client protocol.ClientCloser - getVM func(path string) (*jsonnet.VM, error) - extVars map[string]string - fmtOpts formatter.Options + stdlib []stdlib.Function + cache *cache + client protocol.ClientCloser - // Feature flags - EvalDiags bool - LintDiags bool + configuration Configuration } -func (s *server) WithStaticVM(jpaths []string) *server { - log.Infof("Using the following jpaths: %v", jpaths) - s.getVM = func(path string) (*jsonnet.VM, error) { - jpaths = append(jpaths, filepath.Dir(path)) - vm := jsonnet.MakeVM() - resetExtVars(vm, s.extVars) - importer := &jsonnet.FileImporter{JPaths: jpaths} - vm.Importer(importer) - return vm, nil - } - return s -} - -func (s *server) WithTankaVM(fallbackJPath []string) *server { - log.Infof("Using tanka mode. Will fall back to the following jpaths: %v", fallbackJPath) - s.getVM = func(path string) (*jsonnet.VM, error) { +func (s *server) getVM(path string) (vm *jsonnet.VM, err error) { + if s.configuration.ResolvePathsWithTanka { jpath, _, _, err := jpath.Resolve(path, false) if err != nil { log.Debugf("Unable to resolve jpath for %s: %s", path, err) - jpath = append(fallbackJPath, filepath.Dir(path)) + jpath = append(s.configuration.JPaths, filepath.Dir(path)) } opts := tankaJsonnet.Opts{ ImportPaths: jpath, } - vm := tankaJsonnet.MakeVM(opts) - resetExtVars(vm, s.extVars) - return vm, nil + vm = tankaJsonnet.MakeVM(opts) + } else { + jpath := append(s.configuration.JPaths, filepath.Dir(path)) + vm = jsonnet.MakeVM() + importer := &jsonnet.FileImporter{JPaths: jpath} + vm.Importer(importer) } - return s + + resetExtVars(vm, s.configuration.ExtVars) + return vm, nil } func (s *server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams) error { diff --git a/pkg/server/utils_test.go b/pkg/server/utils_test.go index 9091149..fe884f6 100644 --- a/pkg/server/utils_test.go +++ b/pkg/server/utils_test.go @@ -7,7 +7,7 @@ import ( "path/filepath" "testing" - "github.com/google/go-jsonnet" + "github.com/google/go-jsonnet/formatter" "github.com/grafana/jsonnet-language-server/pkg/stdlib" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/jsonrpc2" @@ -42,7 +42,9 @@ func testServer(t *testing.T, stdlib []stdlib.Function) (server *server) { stream := jsonrpc2.NewHeaderStream(utils.NewStdio(nil, fakeWriterCloser{io.Discard})) conn := jsonrpc2.NewConn(stream) client := protocol.ClientDispatcher(conn) - server = NewServer("jsonnet-language-server", "dev", client).WithStaticVM([]string{}) + server = NewServer("jsonnet-language-server", "dev", client, Configuration{ + FormattingOptions: formatter.DefaultOptions(), + }) server.stdlib = stdlib _, err := server.Initialize(context.Background(), &protocol.ParamInitialize{}) require.NoError(t, err) @@ -81,9 +83,3 @@ func testServerWithFile(t *testing.T, stdlib []stdlib.Function, fileContent stri return server, serverOpenTestFile(t, server, tmpFile.Name()) } - -func testGetVM(path string) (*jsonnet.VM, error) { - vm := jsonnet.MakeVM() - vm.Importer(&jsonnet.FileImporter{JPaths: []string{"testdata"}}) - return vm, nil -} From cba72e73de133aa9425db0eecd816ce6090df479 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 31 Aug 2022 08:41:32 -0400 Subject: [PATCH 013/124] Update Nix --- RELEASES.md | 15 ++++++++++++--- nix/default.nix | 4 ++-- nix/flake.lock | 12 ++++++------ nix/shell.nix | 2 +- 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 261e3c0..68050a8 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -9,7 +9,16 @@ the checksum for the fixed output derivation for the vendored Go packages. > **Note:** The following steps require a 2.X release of the `nix` command. ```console -$ cd nix -$ nix develop -$ ./release .. +cd nix +nix develop +./release .. +``` + +You can also do it with Docker: + +```console +docker run -it -v /tmp:/tmp -v $(pwd):/workdir -w /workdir nixos/nix +cd nix +nix develop --extra-experimental-features nix-command --extra-experimental-features flakes +./release .. ``` diff --git a/nix/default.nix b/nix/default.nix index 32446f6..210d4ee 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -3,13 +3,13 @@ with pkgs; buildGoModule rec { pname = "jsonnet-language-server"; - version = "0.7.2"; + version = "0.8.0"; ldflags = '' -X main.version=${version} ''; src = lib.cleanSource ../.; - vendorSha256 = "sha256-UEQogVVlTVnSRSHH2koyYaR9l50Rn3075opieK5Fu7I="; + vendorSha256 = "sha256-tsVevkMHuCv70A9Ohg9L+ghH5+v52X4sToI4bMlDzzo="; meta = with lib; { description = "A Language Server Protocol server for Jsonnet"; diff --git a/nix/flake.lock b/nix/flake.lock index 389fe56..cf4e196 100644 --- a/nix/flake.lock +++ b/nix/flake.lock @@ -2,11 +2,11 @@ "nodes": { "flake-utils": { "locked": { - "lastModified": 1631561581, - "narHash": "sha256-3VQMV5zvxaVLvqqUrNz3iJelLw30mIVSfZmAaauM3dA=", + "lastModified": 1659877975, + "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", "owner": "numtide", "repo": "flake-utils", - "rev": "7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19", + "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", "type": "github" }, "original": { @@ -17,11 +17,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1633971123, - "narHash": "sha256-WmI4NbH1IPGFWVkuBkKoYgOnxgwSfWDgdZplJlQ93vA=", + "lastModified": 1661720780, + "narHash": "sha256-AJNGyaB2eKZAYaPNjBZOzap87yL+F9ZLaFzzMkvega0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "e4ef597edfd8a0ba5f12362932fc9b1dd01a0aef", + "rev": "a63021a330d8d33d862a8e29924b42d73037dd37", "type": "github" }, "original": { diff --git a/nix/shell.nix b/nix/shell.nix index 7d53f35..e806048 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -4,7 +4,7 @@ with pkgs; mkShell { buildInputs = [ gnused - go_1_16 + go_1_19 golangci-lint gopls nix-prefetch From 1081444852be2dfe500753e61d030e2a9e880f5d Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 1 Sep 2022 12:58:36 -0400 Subject: [PATCH 014/124] Rename packages to have a better hierarchy (#59) position -> position_conversion. Because that's what it does. AST <-> protocol processing -> ast_processing. Remove all mentions of non AST thing, and stop importing the position package --- .../find_bind.go | 0 .../find_field.go | 14 +++---- .../find_param.go | 0 .../find_position.go | 3 +- pkg/{processing => ast_processing}/object.go | 10 ++--- pkg/ast_processing/range.go | 37 +++++++++++++++++++ .../top_level_objects.go | 0 .../point.go | 0 .../range.go | 34 ----------------- pkg/server/definition.go | 4 +- pkg/server/diagnostics.go | 2 +- pkg/server/execute.go | 4 +- pkg/server/hover.go | 4 +- 13 files changed, 57 insertions(+), 55 deletions(-) rename pkg/{processing => ast_processing}/find_bind.go (100%) rename pkg/{processing => ast_processing}/find_field.go (96%) rename pkg/{processing => ast_processing}/find_param.go (100%) rename pkg/{processing => ast_processing}/find_position.go (95%) rename pkg/{processing => ast_processing}/object.go (65%) create mode 100644 pkg/ast_processing/range.go rename pkg/{processing => ast_processing}/top_level_objects.go (100%) rename pkg/{position => position_conversion}/point.go (100%) rename pkg/{position => position_conversion}/range.go (50%) diff --git a/pkg/processing/find_bind.go b/pkg/ast_processing/find_bind.go similarity index 100% rename from pkg/processing/find_bind.go rename to pkg/ast_processing/find_bind.go diff --git a/pkg/processing/find_field.go b/pkg/ast_processing/find_field.go similarity index 96% rename from pkg/processing/find_field.go rename to pkg/ast_processing/find_field.go index 2555a70..fa5be9f 100644 --- a/pkg/processing/find_field.go +++ b/pkg/ast_processing/find_field.go @@ -10,13 +10,13 @@ import ( log "github.com/sirupsen/logrus" ) -type objectRange struct { +type ObjectRange struct { Filename string SelectionRange ast.LocationRange FullRange ast.LocationRange } -func fieldToRange(field *ast.DesugaredObjectField) objectRange { +func FieldToRange(field *ast.DesugaredObjectField) ObjectRange { selectionRange := ast.LocationRange{ Begin: ast.Location{ Line: field.LocRange.Begin.Line, @@ -27,14 +27,14 @@ func fieldToRange(field *ast.DesugaredObjectField) objectRange { Column: field.LocRange.Begin.Column + len(field.Name.(*ast.LiteralString).Value), }, } - return objectRange{ + return ObjectRange{ Filename: field.LocRange.FileName, SelectionRange: selectionRange, FullRange: field.LocRange, } } -func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm *jsonnet.VM) ([]objectRange, error) { +func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm *jsonnet.VM) ([]ObjectRange, error) { var foundDesugaredObjects []*ast.DesugaredObject // First element will be super, self, or var name start, indexList := indexList[0], indexList[1:] @@ -69,7 +69,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm if bind == nil { param := FindParameterByIdViaStack(stack, ast.Identifier(start)) if param != nil { - return []objectRange{ + return []ObjectRange{ { Filename: param.LocRange.FileName, SelectionRange: param.LocRange, @@ -96,7 +96,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm return nil, fmt.Errorf("unexpected node type when finding bind for '%s'", start) } } - var ranges []objectRange + var ranges []ObjectRange for len(indexList) > 0 { index := indexList[0] indexList = indexList[1:] @@ -107,7 +107,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm } if len(indexList) == 0 { for _, found := range foundFields { - ranges = append(ranges, fieldToRange(found)) + ranges = append(ranges, FieldToRange(found)) // If the field is not PlusSuper (field+: value), we stop there. Other previous values are not relevant if !found.PlusSuper { diff --git a/pkg/processing/find_param.go b/pkg/ast_processing/find_param.go similarity index 100% rename from pkg/processing/find_param.go rename to pkg/ast_processing/find_param.go diff --git a/pkg/processing/find_position.go b/pkg/ast_processing/find_position.go similarity index 95% rename from pkg/processing/find_position.go rename to pkg/ast_processing/find_position.go index 32bf843..e827d8b 100644 --- a/pkg/processing/find_position.go +++ b/pkg/ast_processing/find_position.go @@ -5,7 +5,6 @@ import ( "github.com/google/go-jsonnet/ast" "github.com/grafana/jsonnet-language-server/pkg/nodestack" - "github.com/grafana/jsonnet-language-server/pkg/position" ) func FindNodeByPosition(node ast.Node, location ast.Location) (*nodestack.NodeStack, error) { @@ -25,7 +24,7 @@ func FindNodeByPosition(node ast.Node, location ast.Location) (*nodestack.NodeSt if curr, isType := curr.(*ast.SuperIndex); isType { curr.Loc().End.Column = curr.Loc().End.Column + len(curr.Index.(*ast.LiteralString).Value) + 1 } - inRange := position.InRange(location, *curr.Loc()) + inRange := InRange(location, *curr.Loc()) if inRange { searchStack.Push(curr) } else if curr.Loc().End.IsSet() { diff --git a/pkg/processing/object.go b/pkg/ast_processing/object.go similarity index 65% rename from pkg/processing/object.go rename to pkg/ast_processing/object.go index c59b2a8..ed24faf 100644 --- a/pkg/processing/object.go +++ b/pkg/ast_processing/object.go @@ -2,14 +2,14 @@ package processing import ( "github.com/google/go-jsonnet/ast" - "github.com/grafana/jsonnet-language-server/pkg/position" ) // filterSelfScope takes in an array of objects (blocks delimited by curly braces) and -// returns a new array of objects, where only objects in scope of the first one are kept +// returns a new array of objects, where only objects in scope of the first one are kept. + // This is done by comparing the location ranges. If the range of the first object is -// contained within the range of another object, the latter object is removed because -// it is a parent of the first object. +// contained within the range of another object, the latter object is removed because +// it is a parent of the first object. func filterSelfScope(objs []*ast.DesugaredObject) (result []*ast.DesugaredObject) { if len(objs) == 0 { return objs @@ -23,7 +23,7 @@ func filterSelfScope(objs []*ast.DesugaredObject) (result []*ast.DesugaredObject for i < len(result) { obj := result[i] // If the current object is contained within the top level object, remove it - if position.RangeGreaterOrEqual(obj.LocRange, topLevel.LocRange) { + if RangeGreaterOrEqual(obj.LocRange, topLevel.LocRange) { result = append(result[:i], result[i+1:]...) continue } diff --git a/pkg/ast_processing/range.go b/pkg/ast_processing/range.go new file mode 100644 index 0000000..45155f2 --- /dev/null +++ b/pkg/ast_processing/range.go @@ -0,0 +1,37 @@ +package processing + +import "github.com/google/go-jsonnet/ast" + +func InRange(point ast.Location, theRange ast.LocationRange) bool { + if point.Line == theRange.Begin.Line && point.Column < theRange.Begin.Column { + return false + } + + if point.Line == theRange.End.Line && point.Column >= theRange.End.Column { + return false + } + + if point.Line != theRange.Begin.Line || point.Line != theRange.End.Line { + return theRange.Begin.Line <= point.Line && point.Line <= theRange.End.Line + } + + return true +} + +// RangeGreaterOrEqual returns true if the first range is greater than the second. +func RangeGreaterOrEqual(a ast.LocationRange, b ast.LocationRange) bool { + if a.Begin.Line > b.Begin.Line { + return false + } + if a.End.Line < b.End.Line { + return false + } + if a.Begin.Line == b.Begin.Line && a.Begin.Column > b.Begin.Column { + return false + } + if a.End.Line == b.End.Line && a.End.Column < b.End.Column { + return false + } + + return true +} diff --git a/pkg/processing/top_level_objects.go b/pkg/ast_processing/top_level_objects.go similarity index 100% rename from pkg/processing/top_level_objects.go rename to pkg/ast_processing/top_level_objects.go diff --git a/pkg/position/point.go b/pkg/position_conversion/point.go similarity index 100% rename from pkg/position/point.go rename to pkg/position_conversion/point.go diff --git a/pkg/position/range.go b/pkg/position_conversion/range.go similarity index 50% rename from pkg/position/range.go rename to pkg/position_conversion/range.go index a77c301..64e67d5 100644 --- a/pkg/position/range.go +++ b/pkg/position_conversion/range.go @@ -32,37 +32,3 @@ func RangeASTToProtocol(lr ast.LocationRange) protocol.Range { }, } } - -func InRange(point ast.Location, theRange ast.LocationRange) bool { - if point.Line == theRange.Begin.Line && point.Column < theRange.Begin.Column { - return false - } - - if point.Line == theRange.End.Line && point.Column >= theRange.End.Column { - return false - } - - if point.Line != theRange.Begin.Line || point.Line != theRange.End.Line { - return theRange.Begin.Line <= point.Line && point.Line <= theRange.End.Line - } - - return true -} - -// RangeGreaterOrEqual returns true if the first range is greater than the second. -func RangeGreaterOrEqual(a ast.LocationRange, b ast.LocationRange) bool { - if a.Begin.Line > b.Begin.Line { - return false - } - if a.End.Line < b.End.Line { - return false - } - if a.Begin.Line == b.Begin.Line && a.Begin.Column > b.Begin.Column { - return false - } - if a.End.Line == b.End.Line && a.End.Column < b.End.Column { - return false - } - - return true -} diff --git a/pkg/server/definition.go b/pkg/server/definition.go index f77a023..e5cda4c 100644 --- a/pkg/server/definition.go +++ b/pkg/server/definition.go @@ -8,9 +8,9 @@ import ( "github.com/google/go-jsonnet" "github.com/google/go-jsonnet/ast" + processing "github.com/grafana/jsonnet-language-server/pkg/ast_processing" "github.com/grafana/jsonnet-language-server/pkg/nodestack" - "github.com/grafana/jsonnet-language-server/pkg/position" - "github.com/grafana/jsonnet-language-server/pkg/processing" + position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" log "github.com/sirupsen/logrus" diff --git a/pkg/server/diagnostics.go b/pkg/server/diagnostics.go index a081f90..c08dffd 100644 --- a/pkg/server/diagnostics.go +++ b/pkg/server/diagnostics.go @@ -10,7 +10,7 @@ import ( "time" "github.com/google/go-jsonnet/linter" - "github.com/grafana/jsonnet-language-server/pkg/position" + position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" log "github.com/sirupsen/logrus" ) diff --git a/pkg/server/execute.go b/pkg/server/execute.go index 1b33818..c709536 100644 --- a/pkg/server/execute.go +++ b/pkg/server/execute.go @@ -6,8 +6,8 @@ import ( "fmt" "reflect" - "github.com/grafana/jsonnet-language-server/pkg/position" - "github.com/grafana/jsonnet-language-server/pkg/processing" + processing "github.com/grafana/jsonnet-language-server/pkg/ast_processing" + position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" log "github.com/sirupsen/logrus" diff --git a/pkg/server/hover.go b/pkg/server/hover.go index 37056df..3da4d72 100644 --- a/pkg/server/hover.go +++ b/pkg/server/hover.go @@ -6,8 +6,8 @@ import ( "strings" "github.com/google/go-jsonnet/ast" - "github.com/grafana/jsonnet-language-server/pkg/position" - "github.com/grafana/jsonnet-language-server/pkg/processing" + processing "github.com/grafana/jsonnet-language-server/pkg/ast_processing" + position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" log "github.com/sirupsen/logrus" From c0fdef79531e7ba76e8ac3b51d3e6124de760129 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 1 Sep 2022 19:46:58 -0400 Subject: [PATCH 015/124] Symbols support (#60) * Symbols support Report symbols to clients of the language server This allows features like the VSCode outline * Common LocalBind range parsing * PR comments! --- pkg/ast_processing/find_bind.go | 2 +- pkg/ast_processing/find_field.go | 26 +-- pkg/ast_processing/find_param.go | 2 +- pkg/ast_processing/find_position.go | 2 +- pkg/ast_processing/object.go | 2 +- pkg/ast_processing/object_range.go | 51 ++++++ pkg/ast_processing/range.go | 2 +- pkg/ast_processing/top_level_objects.go | 2 +- pkg/server/definition.go | 32 ++-- pkg/server/server.go | 1 + pkg/server/symbols.go | 102 ++++++++++++ pkg/server/symbols_test.go | 205 ++++++++++++++++++++++++ pkg/server/unused.go | 4 - 13 files changed, 376 insertions(+), 57 deletions(-) create mode 100644 pkg/ast_processing/object_range.go create mode 100644 pkg/server/symbols.go create mode 100644 pkg/server/symbols_test.go diff --git a/pkg/ast_processing/find_bind.go b/pkg/ast_processing/find_bind.go index 83fee8f..10ec7fd 100644 --- a/pkg/ast_processing/find_bind.go +++ b/pkg/ast_processing/find_bind.go @@ -1,4 +1,4 @@ -package processing +package ast_processing import ( "github.com/google/go-jsonnet/ast" diff --git a/pkg/ast_processing/find_field.go b/pkg/ast_processing/find_field.go index fa5be9f..bc87ecd 100644 --- a/pkg/ast_processing/find_field.go +++ b/pkg/ast_processing/find_field.go @@ -1,4 +1,4 @@ -package processing +package ast_processing import ( "fmt" @@ -10,30 +10,6 @@ import ( log "github.com/sirupsen/logrus" ) -type ObjectRange struct { - Filename string - SelectionRange ast.LocationRange - FullRange ast.LocationRange -} - -func FieldToRange(field *ast.DesugaredObjectField) ObjectRange { - selectionRange := ast.LocationRange{ - Begin: ast.Location{ - Line: field.LocRange.Begin.Line, - Column: field.LocRange.Begin.Column, - }, - End: ast.Location{ - Line: field.LocRange.Begin.Line, - Column: field.LocRange.Begin.Column + len(field.Name.(*ast.LiteralString).Value), - }, - } - return ObjectRange{ - Filename: field.LocRange.FileName, - SelectionRange: selectionRange, - FullRange: field.LocRange, - } -} - func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm *jsonnet.VM) ([]ObjectRange, error) { var foundDesugaredObjects []*ast.DesugaredObject // First element will be super, self, or var name diff --git a/pkg/ast_processing/find_param.go b/pkg/ast_processing/find_param.go index 6d17c4c..8e65afe 100644 --- a/pkg/ast_processing/find_param.go +++ b/pkg/ast_processing/find_param.go @@ -1,4 +1,4 @@ -package processing +package ast_processing import ( "github.com/google/go-jsonnet/ast" diff --git a/pkg/ast_processing/find_position.go b/pkg/ast_processing/find_position.go index e827d8b..c98d099 100644 --- a/pkg/ast_processing/find_position.go +++ b/pkg/ast_processing/find_position.go @@ -1,4 +1,4 @@ -package processing +package ast_processing import ( "errors" diff --git a/pkg/ast_processing/object.go b/pkg/ast_processing/object.go index ed24faf..cc71713 100644 --- a/pkg/ast_processing/object.go +++ b/pkg/ast_processing/object.go @@ -1,4 +1,4 @@ -package processing +package ast_processing import ( "github.com/google/go-jsonnet/ast" diff --git a/pkg/ast_processing/object_range.go b/pkg/ast_processing/object_range.go new file mode 100644 index 0000000..8e608eb --- /dev/null +++ b/pkg/ast_processing/object_range.go @@ -0,0 +1,51 @@ +package ast_processing + +import ( + "github.com/google/go-jsonnet/ast" +) + +type ObjectRange struct { + Filename string + SelectionRange ast.LocationRange + FullRange ast.LocationRange +} + +func FieldToRange(field *ast.DesugaredObjectField) ObjectRange { + selectionRange := ast.LocationRange{ + Begin: ast.Location{ + Line: field.LocRange.Begin.Line, + Column: field.LocRange.Begin.Column, + }, + End: ast.Location{ + Line: field.LocRange.Begin.Line, + Column: field.LocRange.Begin.Column + len(field.Name.(*ast.LiteralString).Value), + }, + } + return ObjectRange{ + Filename: field.LocRange.FileName, + SelectionRange: selectionRange, + FullRange: field.LocRange, + } +} + +func LocalBindToRange(bind *ast.LocalBind) ObjectRange { + locRange := bind.LocRange + if !locRange.Begin.IsSet() { + locRange = *bind.Body.Loc() + } + filename := locRange.FileName + return ObjectRange{ + Filename: filename, + FullRange: locRange, + SelectionRange: ast.LocationRange{ + Begin: ast.Location{ + Line: locRange.Begin.Line, + Column: locRange.Begin.Column, + }, + End: ast.Location{ + Line: locRange.Begin.Line, + Column: locRange.Begin.Column + len(bind.Variable), + }, + }, + } +} diff --git a/pkg/ast_processing/range.go b/pkg/ast_processing/range.go index 45155f2..c0be6c9 100644 --- a/pkg/ast_processing/range.go +++ b/pkg/ast_processing/range.go @@ -1,4 +1,4 @@ -package processing +package ast_processing import "github.com/google/go-jsonnet/ast" diff --git a/pkg/ast_processing/top_level_objects.go b/pkg/ast_processing/top_level_objects.go index 0d53869..f2867de 100644 --- a/pkg/ast_processing/top_level_objects.go +++ b/pkg/ast_processing/top_level_objects.go @@ -1,4 +1,4 @@ -package processing +package ast_processing import ( "github.com/google/go-jsonnet" diff --git a/pkg/server/definition.go b/pkg/server/definition.go index e5cda4c..0c4b0ef 100644 --- a/pkg/server/definition.go +++ b/pkg/server/definition.go @@ -69,36 +69,24 @@ func findDefinition(root ast.Node, params *protocol.DefinitionParams, vm *jsonne case *ast.Var: log.Debugf("Found Var node %s", deepestNode.Id) - var ( - filename string - resultRange, resultSelectionRange protocol.Range - ) + var objectRange processing.ObjectRange if bind := processing.FindBindByIdViaStack(searchStack, deepestNode.Id); bind != nil { - locRange := bind.LocRange - if !locRange.Begin.IsSet() { - locRange = *bind.Body.Loc() - } - filename = locRange.FileName - resultRange = position.RangeASTToProtocol(locRange) - resultSelectionRange = position.NewProtocolRange( - locRange.Begin.Line-1, - locRange.Begin.Column-1, - locRange.Begin.Line-1, - locRange.Begin.Column-1+len(bind.Variable), - ) + objectRange = processing.LocalBindToRange(bind) } else if param := processing.FindParameterByIdViaStack(searchStack, deepestNode.Id); param != nil { - filename = param.LocRange.FileName - resultRange = position.RangeASTToProtocol(param.LocRange) - resultSelectionRange = position.RangeASTToProtocol(param.LocRange) + objectRange = processing.ObjectRange{ + Filename: param.LocRange.FileName, + FullRange: param.LocRange, + SelectionRange: param.LocRange, + } } else { return nil, fmt.Errorf("no matching bind found for %s", deepestNode.Id) } response = append(response, protocol.DefinitionLink{ - TargetURI: protocol.DocumentURI(filename), - TargetRange: resultRange, - TargetSelectionRange: resultSelectionRange, + TargetURI: protocol.DocumentURI(objectRange.Filename), + TargetRange: position.RangeASTToProtocol(objectRange.FullRange), + TargetSelectionRange: position.RangeASTToProtocol(objectRange.SelectionRange), }) case *ast.SuperIndex, *ast.Index: indexSearchStack := nodestack.NewNodeStack(deepestNode) diff --git a/pkg/server/server.go b/pkg/server/server.go index 839a675..a07f917 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -130,6 +130,7 @@ func (s *server) Initialize(ctx context.Context, params *protocol.ParamInitializ HoverProvider: true, DefinitionProvider: true, DocumentFormattingProvider: true, + DocumentSymbolProvider: true, ExecuteCommandProvider: protocol.ExecuteCommandOptions{Commands: []string{}}, TextDocumentSync: &protocol.TextDocumentSyncOptions{ Change: protocol.Full, diff --git a/pkg/server/symbols.go b/pkg/server/symbols.go new file mode 100644 index 0000000..8bd2cc7 --- /dev/null +++ b/pkg/server/symbols.go @@ -0,0 +1,102 @@ +package server + +import ( + "context" + "fmt" + "reflect" + "strings" + + "github.com/google/go-jsonnet/ast" + processing "github.com/grafana/jsonnet-language-server/pkg/ast_processing" + position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" + "github.com/grafana/jsonnet-language-server/pkg/utils" + "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" +) + +func (s *server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) { + doc, err := s.cache.get(params.TextDocument.URI) + if err != nil { + return nil, utils.LogErrorf("DocumentSymbol: %s: %w", errorRetrievingDocument, err) + } + + if doc.ast == nil { + return nil, utils.LogErrorf("DocumentSymbol: error parsing the document") + } + + symbols := buildDocumentSymbols(doc.ast) + + result := make([]interface{}, len(symbols)) + for i, symbol := range symbols { + result[i] = symbol + } + + return result, nil +} + +func buildDocumentSymbols(node ast.Node) []protocol.DocumentSymbol { + var symbols []protocol.DocumentSymbol + + switch node := node.(type) { + case *ast.Binary: + symbols = append(symbols, buildDocumentSymbols(node.Left)...) + symbols = append(symbols, buildDocumentSymbols(node.Right)...) + case *ast.Local: + for _, bind := range node.Binds { + objectRange := processing.LocalBindToRange(&bind) + symbols = append(symbols, protocol.DocumentSymbol{ + Name: string(bind.Variable), + Kind: protocol.Variable, + Range: position.RangeASTToProtocol(objectRange.FullRange), + SelectionRange: position.RangeASTToProtocol(objectRange.SelectionRange), + Detail: symbolDetails(bind.Body), + }) + } + symbols = append(symbols, buildDocumentSymbols(node.Body)...) + case *ast.DesugaredObject: + for _, field := range node.Fields { + kind := protocol.Field + if field.Hide == ast.ObjectFieldHidden { + kind = protocol.Property + } + fieldRange := processing.FieldToRange(&field) + symbols = append(symbols, protocol.DocumentSymbol{ + Name: field.Name.(*ast.LiteralString).Value, + Kind: kind, + Range: position.RangeASTToProtocol(fieldRange.FullRange), + SelectionRange: position.RangeASTToProtocol(fieldRange.SelectionRange), + Detail: symbolDetails(field.Body), + Children: buildDocumentSymbols(field.Body), + }) + } + } + + return symbols +} + +func symbolDetails(node ast.Node) string { + + switch node := node.(type) { + case *ast.Function: + var args []string + for _, param := range node.Parameters { + args = append(args, string(param.Name)) + } + return fmt.Sprintf("Function(%s)", strings.Join(args, ", ")) + case *ast.DesugaredObject: + return "Object" + case *ast.LiteralString: + return "String" + case *ast.LiteralNumber: + return "Number" + case *ast.LiteralBoolean: + return "Boolean" + case *ast.Import: + return "Import " + node.File.Value + case *ast.ImportStr: + return "Import " + node.File.Value + case *ast.Index: + return "" + } + + return strings.TrimPrefix(reflect.TypeOf(node).String(), "*ast.") +} diff --git a/pkg/server/symbols_test.go b/pkg/server/symbols_test.go new file mode 100644 index 0000000..14469b1 --- /dev/null +++ b/pkg/server/symbols_test.go @@ -0,0 +1,205 @@ +package server + +import ( + "context" + "testing" + + "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestSymbols(t *testing.T) { + for _, tc := range []struct { + name string + filename string + expectSymbols []interface{} + }{ + { + name: "One field", + filename: "testdata/goto-comment.jsonnet", + expectSymbols: []interface{}{ + protocol.DocumentSymbol{ + Name: "foo", + Detail: "String", + Kind: protocol.Field, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 2, + Character: 2, + }, + End: protocol.Position{ + Line: 2, + Character: 12, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 2, + Character: 2, + }, + End: protocol.Position{ + Line: 2, + Character: 5, + }, + }, + }, + }, + }, + { + name: "local var + two fields from plus root objects", + filename: "testdata/goto-basic-object.jsonnet", + expectSymbols: []interface{}{ + protocol.DocumentSymbol{ + Name: "somevar", + Detail: "String", + Kind: protocol.Variable, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 6, + }, + End: protocol.Position{ + Line: 0, + Character: 23, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 6, + }, + End: protocol.Position{ + Line: 0, + Character: 13, + }, + }, + }, + protocol.DocumentSymbol{ + Name: "foo", + Detail: "String", + Kind: protocol.Field, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 3, + Character: 2, + }, + End: protocol.Position{ + Line: 3, + Character: 12, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 3, + Character: 2, + }, + End: protocol.Position{ + Line: 3, + Character: 5, + }, + }, + }, + protocol.DocumentSymbol{ + Name: "bar", + Detail: "String", + Kind: protocol.Field, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 5, + Character: 2, + }, + End: protocol.Position{ + Line: 5, + Character: 12, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 5, + Character: 2, + }, + End: protocol.Position{ + Line: 5, + Character: 5, + }, + }, + }, + }, + }, + { + name: "Functions", + filename: "testdata/goto-functions.libsonnet", + expectSymbols: []interface{}{ + protocol.DocumentSymbol{ + Name: "myfunc", + Detail: "Function(arg1, arg2)", + Kind: protocol.Variable, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 6, + }, + End: protocol.Position{ + Line: 3, + Character: 1, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 6, + }, + End: protocol.Position{ + Line: 0, + Character: 12, + }, + }, + }, + + protocol.DocumentSymbol{ + Name: "objFunc", + Detail: "Function(arg1, arg2, arg3)", + Kind: protocol.Field, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 6, + Character: 2, + }, + End: protocol.Position{ + Line: 11, + Character: 3, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 6, + Character: 2, + }, + End: protocol.Position{ + Line: 6, + Character: 9, + }, + }, + }, + }, + }, + } { + t.Run(tc.name, func(t *testing.T) { + params := &protocol.DocumentSymbolParams{ + TextDocument: protocol.TextDocumentIdentifier{ + URI: protocol.URIFromPath(tc.filename), + }, + } + + server := NewServer("any", "test version", nil, Configuration{ + JPaths: []string{"testdata"}, + }) + serverOpenTestFile(t, server, string(tc.filename)) + response, err := server.DocumentSymbol(context.Background(), params) + require.NoError(t, err) + + assert.Equal(t, tc.expectSymbols, response) + }) + } +} diff --git a/pkg/server/unused.go b/pkg/server/unused.go index 7b80991..0d089a5 100644 --- a/pkg/server/unused.go +++ b/pkg/server/unused.go @@ -12,10 +12,6 @@ func (s *server) Initialized(context.Context, *protocol.InitializedParams) error return nil } -func (s *server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) { - return nil, nil -} - func (s *server) CodeAction(context.Context, *protocol.CodeActionParams) ([]protocol.CodeAction, error) { return nil, notImplemented("CodeAction") } From 945e817acf45371865f07ff8851fbf2c61c0b16f Mon Sep 17 00:00:00 2001 From: Zack Zehring Date: Thu, 1 Sep 2022 21:18:49 -0400 Subject: [PATCH 016/124] Enable go-to-definition for computed field names. (#61) When finding node by position, push `field.Name` to the search stack. This allows us to now search through the field names as well when finding definitions. --- pkg/ast_processing/find_position.go | 1 + pkg/server/definition_test.go | 16 ++++++++++++++++ .../testdata/goto-computed-field-names.jsonnet | 5 +++++ 3 files changed, 22 insertions(+) create mode 100644 pkg/server/testdata/goto-computed-field-names.jsonnet diff --git a/pkg/ast_processing/find_position.go b/pkg/ast_processing/find_position.go index c98d099..3bbc99a 100644 --- a/pkg/ast_processing/find_position.go +++ b/pkg/ast_processing/find_position.go @@ -46,6 +46,7 @@ func FindNodeByPosition(node ast.Node, location ast.Location) (*nodestack.NodeSt funcBody.LocRange = field.LocRange stack.Push(funcBody) } else { + stack.Push(field.Name) stack.Push(body) } } diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 14c97be..5821e20 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -723,6 +723,22 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "goto computed field name object field", + filename: "testdata/goto-computed-field-names.jsonnet", + position: protocol.Position{Line: 3, Character: 9}, + results: []definitionResult{{ + targetFilename: "testdata/goto-computed-field-names.jsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 0, Character: 14}, + End: protocol.Position{Line: 0, Character: 26}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 0, Character: 14}, + End: protocol.Position{Line: 0, Character: 17}, + }, + }}, + }, } func TestDefinition(t *testing.T) { diff --git a/pkg/server/testdata/goto-computed-field-names.jsonnet b/pkg/server/testdata/goto-computed-field-names.jsonnet new file mode 100644 index 0000000..b4cf465 --- /dev/null +++ b/pkg/server/testdata/goto-computed-field-names.jsonnet @@ -0,0 +1,5 @@ +local obj = { bar: 'hello' }; + +{ + [obj.bar]: 'world!', +} From 5e5a9886e88491b1907ca700b26cef7e93f162ab Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Fri, 2 Sep 2022 09:10:19 -0400 Subject: [PATCH 017/124] Remove copyright notices Github's https://choosealicense.com/licenses/agpl-3.0/ mentions that it's an optional step --- main.go | 16 ---------------- pkg/server/cache.go | 16 ---------------- pkg/server/server.go | 16 ---------------- 3 files changed, 48 deletions(-) diff --git a/main.go b/main.go index 2324c1c..622c8eb 100644 --- a/main.go +++ b/main.go @@ -1,19 +1,3 @@ -// jsonnet-language-server: A Language Server Protocol server for Jsonnet. -// Copyright (C) 2021 Jack Baldry - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as published -// by the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. - -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see . - package main import ( diff --git a/pkg/server/cache.go b/pkg/server/cache.go index 21bb1fa..169bb4c 100644 --- a/pkg/server/cache.go +++ b/pkg/server/cache.go @@ -1,19 +1,3 @@ -// jsonnet-language-server: A Language Server Protocol server for Jsonnet. -// Copyright (C) 2021 Jack Baldry - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as published -// by the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. - -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see . - package server import ( diff --git a/pkg/server/server.go b/pkg/server/server.go index a07f917..994178c 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -1,19 +1,3 @@ -// jsonnet-language-server: A Language Server Protocol server for Jsonnet. -// Copyright (C) 2021 Jack Baldry - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as published -// by the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. - -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see . - package server import ( From 6c988f72c17706cebcd54607a0e7abcfc336ee28 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Fri, 2 Sep 2022 18:58:50 -0400 Subject: [PATCH 018/124] Standardize parsing errors (#62) It's currently sending errors when document symbol fails to parse This happens VERY often, causing the language server to kill itself --- pkg/server/definition.go | 2 +- pkg/server/hover.go | 2 +- pkg/server/server.go | 1 + pkg/server/symbols.go | 6 +++++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkg/server/definition.go b/pkg/server/definition.go index 0c4b0ef..90f92fc 100644 --- a/pkg/server/definition.go +++ b/pkg/server/definition.go @@ -45,7 +45,7 @@ func (s *server) definitionLink(ctx context.Context, params *protocol.Definition } if doc.ast == nil { - return nil, utils.LogErrorf("Definition: error parsing the document") + return nil, utils.LogErrorf("Definition: %s", errorParsingDocument) } vm, err := s.getVM(doc.item.URI.SpanURI().Filename()) diff --git a/pkg/server/hover.go b/pkg/server/hover.go index 3da4d72..08cfd41 100644 --- a/pkg/server/hover.go +++ b/pkg/server/hover.go @@ -21,7 +21,7 @@ func (s *server) Hover(ctx context.Context, params *protocol.HoverParams) (*prot if doc.ast == nil { // Hover triggers often. Throwing an error on each request is noisy - log.Error("Hover: error parsing the document") + log.Errorf("Hover: %s", errorParsingDocument) return nil, nil } diff --git a/pkg/server/server.go b/pkg/server/server.go index 994178c..df846e8 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -15,6 +15,7 @@ import ( const ( errorRetrievingDocument = "unable to retrieve document from the cache" + errorParsingDocument = "error parsing the document" ) // New returns a new language server. diff --git a/pkg/server/symbols.go b/pkg/server/symbols.go index 8bd2cc7..298611c 100644 --- a/pkg/server/symbols.go +++ b/pkg/server/symbols.go @@ -11,6 +11,7 @@ import ( position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" + log "github.com/sirupsen/logrus" ) func (s *server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) { @@ -20,7 +21,10 @@ func (s *server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSy } if doc.ast == nil { - return nil, utils.LogErrorf("DocumentSymbol: error parsing the document") + // Returning an error too often can lead to the client killing the language server + // Logging the errors is sufficient + log.Errorf("DocumentSymbol: %s", errorParsingDocument) + return nil, nil } symbols := buildDocumentSymbols(doc.ast) From 49a3b9b45f147a979061510f45ff86c5ddc3b31b Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Fri, 2 Sep 2022 18:58:57 -0400 Subject: [PATCH 019/124] Basic go-to-definition inside functions (#63) When processing the index list, the language server will now go through function bodies to find fields This will only occur when the function's body is directly a DesugaredObject This doesn't support all cases. I will probably have to add more, I have already identified cases which are even more complex that do not work yet, but this is a good first step --- pkg/ast_processing/find_field.go | 28 ++++++++++++++-- pkg/nodestack/nodestack.go | 4 +++ pkg/server/definition_test.go | 32 ++++++++++++++++++- .../goto-functions-advanced.libsonnet | 10 ++++++ 4 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 pkg/server/testdata/goto-functions-advanced.libsonnet diff --git a/pkg/ast_processing/find_field.go b/pkg/ast_processing/find_field.go index bc87ecd..15ab821 100644 --- a/pkg/ast_processing/find_field.go +++ b/pkg/ast_processing/find_field.go @@ -2,6 +2,7 @@ package ast_processing import ( "fmt" + "reflect" "strings" "github.com/google/go-jsonnet" @@ -68,8 +69,13 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm tempStack := nodestack.NewNodeStack(bodyNode) indexList = append(tempStack.BuildIndexList(), indexList...) return FindRangesFromIndexList(stack, indexList, vm) + case *ast.Function: + // If the function's body is an object, it means we can look for indexes within the function + if funcBody, ok := bodyNode.Body.(*ast.DesugaredObject); ok { + foundDesugaredObjects = append(foundDesugaredObjects, funcBody) + } default: - return nil, fmt.Errorf("unexpected node type when finding bind for '%s'", start) + return nil, fmt.Errorf("unexpected node type when finding bind for '%s': %s", start, reflect.TypeOf(bind.Body)) } } var ranges []ObjectRange @@ -98,14 +104,29 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm return nil, err } - for _, fieldNode := range fieldNodes { + i := 0 + for i < len(fieldNodes) { + fieldNode := fieldNodes[i] switch fieldNode := fieldNode.(type) { + case *ast.Apply: + // Add the target of the Apply to the list of field nodes to look for + // The target is a function and will be found by findVarReference on the next loop + fieldNodes = append(fieldNodes, fieldNode.Target) case *ast.Var: varReference, err := findVarReference(fieldNode, vm) if err != nil { return nil, err } - foundDesugaredObjects = append(foundDesugaredObjects, varReference.(*ast.DesugaredObject)) + // If the reference is an object, add it directly to the list of objects to look in + if varReference, ok := varReference.(*ast.DesugaredObject); ok { + foundDesugaredObjects = append(foundDesugaredObjects, varReference) + } + // If the reference is a function, and the body of that function is an object, add it to the list of objects to look in + if varReference, ok := varReference.(*ast.Function); ok { + if funcBody, ok := varReference.Body.(*ast.DesugaredObject); ok { + foundDesugaredObjects = append(foundDesugaredObjects, funcBody) + } + } case *ast.DesugaredObject: stack.Push(fieldNode) foundDesugaredObjects = append(foundDesugaredObjects, findDesugaredObjectFromStack(stack)) @@ -123,6 +144,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm newObjs := findTopLevelObjectsInFile(vm, filename, string(fieldNode.Loc().File.DiagnosticFileName)) foundDesugaredObjects = append(foundDesugaredObjects, newObjs...) } + i++ } } diff --git a/pkg/nodestack/nodestack.go b/pkg/nodestack/nodestack.go index e1aa284..f901468 100644 --- a/pkg/nodestack/nodestack.go +++ b/pkg/nodestack/nodestack.go @@ -55,6 +55,10 @@ func (s *NodeStack) BuildIndexList() []string { for !s.IsEmpty() { curr := s.Pop() switch curr := curr.(type) { + case *ast.Apply: + if target, ok := curr.Target.(*ast.Var); ok { + indexList = append(indexList, string(target.Id)) + } case *ast.SuperIndex: s.Push(curr.Index) indexList = append(indexList, "super") diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 5821e20..7db2120 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -739,6 +739,36 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "goto field through function", + filename: "testdata/goto-functions-advanced.libsonnet", + position: protocol.Position{Line: 6, Character: 46}, + results: []definitionResult{{ + targetRange: protocol.Range{ + Start: protocol.Position{Line: 2, Character: 2}, + End: protocol.Position{Line: 2, Character: 12}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 2, Character: 2}, + End: protocol.Position{Line: 2, Character: 6}, + }, + }}, + }, + { + name: "goto field through function-created object", + filename: "testdata/goto-functions-advanced.libsonnet", + position: protocol.Position{Line: 8, Character: 52}, + results: []definitionResult{{ + targetRange: protocol.Range{ + Start: protocol.Position{Line: 2, Character: 2}, + End: protocol.Position{Line: 2, Character: 12}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 2, Character: 2}, + End: protocol.Position{Line: 2, Character: 6}, + }, + }}, + }, } func TestDefinition(t *testing.T) { @@ -837,7 +867,7 @@ func TestDefinitionFail(t *testing.T) { name: "goto range index fails", filename: "testdata/goto-local-function.libsonnet", position: protocol.Position{Line: 15, Character: 57}, - expected: fmt.Errorf("unexpected node type when finding bind for 'ports'"), + expected: fmt.Errorf("unexpected node type when finding bind for 'ports': *ast.Apply"), }, { name: "goto super fails as no LHS object exists", diff --git a/pkg/server/testdata/goto-functions-advanced.libsonnet b/pkg/server/testdata/goto-functions-advanced.libsonnet new file mode 100644 index 0000000..4c7455f --- /dev/null +++ b/pkg/server/testdata/goto-functions-advanced.libsonnet @@ -0,0 +1,10 @@ +local myfunc(arg1, arg2) = { + arg1: arg1, + arg2: arg2, +}; + +{ + accessThroughFunc: myfunc('test', 'test').arg2, + funcCreatedObj: myfunc('test', 'test'), + accesThroughFuncCreatedObj: self.funcCreatedObj.arg2, +} From 72e728222ce4cb565b5eaeca002ec0271ea01d37 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 6 Sep 2022 13:44:03 -0400 Subject: [PATCH 020/124] Support symbols for computed fields (#65) The server currently panics while trying to get symbols when there's a computed field present This will instead list the fields at `[field.content]` in symbols --- pkg/ast_processing/object_range.go | 22 ++++- pkg/server/symbols.go | 2 +- pkg/server/symbols_test.go | 82 +++++++++++++++++++ .../goto-computed-field-names.jsonnet | 3 +- 4 files changed, 106 insertions(+), 3 deletions(-) diff --git a/pkg/ast_processing/object_range.go b/pkg/ast_processing/object_range.go index 8e608eb..c42506a 100644 --- a/pkg/ast_processing/object_range.go +++ b/pkg/ast_processing/object_range.go @@ -1,6 +1,9 @@ package ast_processing import ( + "fmt" + "strings" + "github.com/google/go-jsonnet/ast" ) @@ -18,7 +21,7 @@ func FieldToRange(field *ast.DesugaredObjectField) ObjectRange { }, End: ast.Location{ Line: field.LocRange.Begin.Line, - Column: field.LocRange.Begin.Column + len(field.Name.(*ast.LiteralString).Value), + Column: field.LocRange.Begin.Column + len(FieldNameToString(field.Name)), }, } return ObjectRange{ @@ -28,6 +31,23 @@ func FieldToRange(field *ast.DesugaredObjectField) ObjectRange { } } +func FieldNameToString(fieldName ast.Node) string { + if fieldName, ok := fieldName.(*ast.LiteralString); ok { + return fieldName.Value + } + if fieldName, ok := fieldName.(*ast.Index); ok { + // We only want to wrap in brackets at the top level, so we trim at all step and then rewrap + return fmt.Sprintf("[%s.%s]", + strings.Trim(FieldNameToString(fieldName.Target), "[]"), + strings.Trim(FieldNameToString(fieldName.Index), "[]"), + ) + } + if fieldName, ok := fieldName.(*ast.Var); ok { + return string(fieldName.Id) + } + return "" +} + func LocalBindToRange(bind *ast.LocalBind) ObjectRange { locRange := bind.LocRange if !locRange.Begin.IsSet() { diff --git a/pkg/server/symbols.go b/pkg/server/symbols.go index 298611c..9746fcc 100644 --- a/pkg/server/symbols.go +++ b/pkg/server/symbols.go @@ -64,7 +64,7 @@ func buildDocumentSymbols(node ast.Node) []protocol.DocumentSymbol { } fieldRange := processing.FieldToRange(&field) symbols = append(symbols, protocol.DocumentSymbol{ - Name: field.Name.(*ast.LiteralString).Value, + Name: processing.FieldNameToString(field.Name), Kind: kind, Range: position.RangeASTToProtocol(fieldRange.FullRange), SelectionRange: position.RangeASTToProtocol(fieldRange.SelectionRange), diff --git a/pkg/server/symbols_test.go b/pkg/server/symbols_test.go index 14469b1..a7733eb 100644 --- a/pkg/server/symbols_test.go +++ b/pkg/server/symbols_test.go @@ -184,6 +184,88 @@ func TestSymbols(t *testing.T) { }, }, }, + { + name: "Computed fields", + filename: "testdata/goto-computed-field-names.jsonnet", + expectSymbols: []interface{}{ + protocol.DocumentSymbol{ + Name: "obj", + Detail: "Object", + Kind: protocol.Variable, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 6, + }, + End: protocol.Position{ + Line: 0, + Character: 54, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 6, + }, + End: protocol.Position{ + Line: 0, + Character: 9, + }, + }, + }, + + protocol.DocumentSymbol{ + Name: "[obj.bar]", + Detail: "String", + Kind: protocol.Field, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 3, + Character: 2, + }, + End: protocol.Position{ + Line: 3, + Character: 21, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 3, + Character: 2, + }, + End: protocol.Position{ + Line: 3, + Character: 11, + }, + }, + }, + protocol.DocumentSymbol{ + Name: "[obj.nested.bar]", + Detail: "String", + Kind: protocol.Field, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 4, + Character: 2, + }, + End: protocol.Position{ + Line: 4, + Character: 28, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 4, + Character: 2, + }, + End: protocol.Position{ + Line: 4, + Character: 18, + }, + }, + }, + }, + }, } { t.Run(tc.name, func(t *testing.T) { params := &protocol.DocumentSymbolParams{ diff --git a/pkg/server/testdata/goto-computed-field-names.jsonnet b/pkg/server/testdata/goto-computed-field-names.jsonnet index b4cf465..831c7b1 100644 --- a/pkg/server/testdata/goto-computed-field-names.jsonnet +++ b/pkg/server/testdata/goto-computed-field-names.jsonnet @@ -1,5 +1,6 @@ -local obj = { bar: 'hello' }; +local obj = { bar: 'hello', nested: { bar: 'hello' } }; { [obj.bar]: 'world!', + [obj.nested.bar]: 'world!', } From c8432b03bd6b9efcdb3e3eba0804d2931a9c54bd Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 6 Sep 2022 13:44:11 -0400 Subject: [PATCH 021/124] On parse failure, keep the old AST (#66) Also, add a new `linesChangedSinceAST` attribute to the cache. This new attribute contains all lines of a document which have changed since the AST was last parsed This allows us to still use the AST when the file is changed (a WIP is a common use-case) In order to reduce the amount of bad definitions in that case, go-to-definition is only active if the currently targeted line hasn't changed. Otherwise, it's all messed up While this feature is slightly useful for go-to-definition, it'll be absolutely necessary for the completion feature I'm working on --- pkg/server/cache.go | 5 ++++- pkg/server/definition.go | 6 +++++- pkg/server/hover.go | 2 +- pkg/server/server.go | 31 ++++++++++++++++++++++++------- pkg/server/symbols.go | 2 +- 5 files changed, 35 insertions(+), 11 deletions(-) diff --git a/pkg/server/cache.go b/pkg/server/cache.go index 169bb4c..940bc35 100644 --- a/pkg/server/cache.go +++ b/pkg/server/cache.go @@ -12,7 +12,10 @@ import ( type document struct { // From DidOpen and DidChange item protocol.TextDocumentItem - ast ast.Node + + // Contains the last succesfully parsed AST. If doc.err is not nil, it's out of date. + ast ast.Node + linesChangedSinceAST map[int]bool // From diagnostics val string diff --git a/pkg/server/definition.go b/pkg/server/definition.go index 90f92fc..0d10e06 100644 --- a/pkg/server/definition.go +++ b/pkg/server/definition.go @@ -44,8 +44,12 @@ func (s *server) definitionLink(ctx context.Context, params *protocol.Definition return nil, utils.LogErrorf("Definition: %s: %w", errorRetrievingDocument, err) } + // Only find definitions, if the the line we're trying to find a definition for hasn't changed since last succesful AST parse if doc.ast == nil { - return nil, utils.LogErrorf("Definition: %s", errorParsingDocument) + return nil, utils.LogErrorf("Definition: document was never successfully parsed, can't find definitions") + } + if doc.linesChangedSinceAST[int(params.Position.Line)] { + return nil, utils.LogErrorf("Definition: document line %d was changed since last successful parse, can't find definitions", params.Position.Line) } vm, err := s.getVM(doc.item.URI.SpanURI().Filename()) diff --git a/pkg/server/hover.go b/pkg/server/hover.go index 08cfd41..dd12b46 100644 --- a/pkg/server/hover.go +++ b/pkg/server/hover.go @@ -19,7 +19,7 @@ func (s *server) Hover(ctx context.Context, params *protocol.HoverParams) (*prot return nil, utils.LogErrorf("Hover: %s: %w", errorRetrievingDocument, err) } - if doc.ast == nil { + if doc.err != nil { // Hover triggers often. Throwing an error on each request is noisy log.Errorf("Hover: %s", errorParsingDocument) return nil, nil diff --git a/pkg/server/server.go b/pkg/server/server.go index df846e8..65b882b 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -3,8 +3,10 @@ package server import ( "context" "path/filepath" + "strings" "github.com/google/go-jsonnet" + "github.com/google/go-jsonnet/ast" "github.com/grafana/jsonnet-language-server/pkg/stdlib" "github.com/grafana/jsonnet-language-server/pkg/utils" tankaJsonnet "github.com/grafana/tanka/pkg/jsonnet" @@ -73,10 +75,28 @@ func (s *server) DidChange(ctx context.Context, params *protocol.DidChangeTextDo } if params.TextDocument.Version > doc.item.Version && len(params.ContentChanges) != 0 { + oldText := doc.item.Text doc.item.Text = params.ContentChanges[len(params.ContentChanges)-1].Text - doc.ast, doc.err = jsonnet.SnippetToAST(doc.item.URI.SpanURI().Filename(), doc.item.Text) - if doc.err != nil { - return s.cache.put(doc) + + var ast ast.Node + ast, doc.err = jsonnet.SnippetToAST(doc.item.URI.SpanURI().Filename(), doc.item.Text) + + // If the AST parsed correctly, set it on the document + // Otherwise, keep the old AST, and find all the lines that have changed since last AST + if ast != nil { + doc.ast = ast + doc.linesChangedSinceAST = map[int]bool{} + } else { + splitOldText := strings.Split(oldText, "\n") + splitNewText := strings.Split(doc.item.Text, "\n") + for index, oldLine := range splitOldText { + if index >= len(splitNewText) { + doc.linesChangedSinceAST[index] = true + } + if oldLine != splitNewText[index] { + doc.linesChangedSinceAST[index] = true + } + } } } return nil @@ -85,12 +105,9 @@ func (s *server) DidChange(ctx context.Context, params *protocol.DidChangeTextDo func (s *server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) (err error) { defer s.queueDiagnostics(params.TextDocument.URI) - doc := &document{item: params.TextDocument} + doc := &document{item: params.TextDocument, linesChangedSinceAST: map[int]bool{}} if params.TextDocument.Text != "" { doc.ast, doc.err = jsonnet.SnippetToAST(params.TextDocument.URI.SpanURI().Filename(), params.TextDocument.Text) - if doc.err != nil { - return s.cache.put(doc) - } } return s.cache.put(doc) } diff --git a/pkg/server/symbols.go b/pkg/server/symbols.go index 9746fcc..5bcd8fb 100644 --- a/pkg/server/symbols.go +++ b/pkg/server/symbols.go @@ -20,7 +20,7 @@ func (s *server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSy return nil, utils.LogErrorf("DocumentSymbol: %s: %w", errorRetrievingDocument, err) } - if doc.ast == nil { + if doc.err != nil { // Returning an error too often can lead to the client killing the language server // Logging the errors is sufficient log.Errorf("DocumentSymbol: %s", errorParsingDocument) From 08a5362506dc1041a86be24976a985ec2ce04df9 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 6 Sep 2022 13:48:22 -0400 Subject: [PATCH 022/124] Add more `golangci-lint` linters (#67) * More linters * Fix misspellings --- .golangci.toml | 25 +++++++++ main.go | 16 +++--- .../processing}/find_bind.go | 4 +- .../processing}/find_field.go | 51 ++++++++++--------- .../processing}/find_param.go | 4 +- .../processing}/find_position.go | 2 +- .../processing}/object.go | 5 +- .../processing}/object_range.go | 6 +-- .../processing}/range.go | 2 +- .../processing}/top_level_objects.go | 2 +- pkg/server/cache.go | 2 +- pkg/server/configuration_test.go | 19 +++---- pkg/server/definition.go | 20 +++----- pkg/server/definition_test.go | 13 +++-- pkg/server/diagnostics.go | 11 +--- pkg/server/execute.go | 18 +++---- pkg/server/hover.go | 2 +- pkg/server/hover_test.go | 6 +-- pkg/server/server.go | 7 ++- pkg/server/symbols.go | 7 ++- pkg/server/symbols_test.go | 2 +- pkg/server/utils_test.go | 2 +- pkg/stdlib/stdlib_test.go | 1 - 23 files changed, 118 insertions(+), 109 deletions(-) create mode 100644 .golangci.toml rename pkg/{ast_processing => ast/processing}/find_bind.go (84%) rename pkg/{ast_processing => ast/processing}/find_field.go (87%) rename pkg/{ast_processing => ast/processing}/find_param.go (79%) rename pkg/{ast_processing => ast/processing}/find_position.go (99%) rename pkg/{ast_processing => ast/processing}/object.go (91%) rename pkg/{ast_processing => ast/processing}/object_range.go (91%) rename pkg/{ast_processing => ast/processing}/range.go (97%) rename pkg/{ast_processing => ast/processing}/top_level_objects.go (98%) diff --git a/.golangci.toml b/.golangci.toml new file mode 100644 index 0000000..32afb88 --- /dev/null +++ b/.golangci.toml @@ -0,0 +1,25 @@ +[linters] +disable-all = true +enable = [ + "depguard", + "dogsled", + "exportloopref", + "goconst", + "gocritic", + "gocyclo", + "goimports", + "goprintffuncname", + "gosec", + "gosimple", + "govet", + "ineffassign", + "misspell", + "nakedret", + "staticcheck", + "stylecheck", + "typecheck", + "unconvert", + "unparam", + "unused", + "whitespace" +] diff --git a/main.go b/main.go index 622c8eb..25f0520 100644 --- a/main.go +++ b/main.go @@ -61,28 +61,28 @@ func main() { log.SetLevel(log.InfoLevel) for i, arg := range os.Args { - if arg == "-h" || arg == "--help" { + switch arg { + case "-h", "--help": printHelp(os.Stdout) os.Exit(0) - } else if arg == "-v" || arg == "--version" { + case "-v", "--version": printVersion(os.Stdout) os.Exit(0) - } else if arg == "-J" || arg == "--jpath" { + case "-J", "--jpath": config.JPaths = append([]string{getArgValue(i)}, config.JPaths...) - } else if arg == "-t" || arg == "--tanka" { + case "-t", "--tanka": config.ResolvePathsWithTanka = true - } else if arg == "-l" || arg == "--log-level" { + case "-l", "--log-level": logLevel, err := log.ParseLevel(getArgValue(i)) if err != nil { log.Fatalf("Invalid log level: %s", err) } log.SetLevel(logLevel) - } else if arg == "--lint" { + case "--lint": config.EnableLintDiagnostics = true - } else if arg == "--eval-diags" { + case "--eval-diags": config.EnableEvalDiagnostics = true } - } log.Infoln("Starting the language server") diff --git a/pkg/ast_processing/find_bind.go b/pkg/ast/processing/find_bind.go similarity index 84% rename from pkg/ast_processing/find_bind.go rename to pkg/ast/processing/find_bind.go index 10ec7fd..3cb8016 100644 --- a/pkg/ast_processing/find_bind.go +++ b/pkg/ast/processing/find_bind.go @@ -1,11 +1,11 @@ -package ast_processing +package processing import ( "github.com/google/go-jsonnet/ast" "github.com/grafana/jsonnet-language-server/pkg/nodestack" ) -func FindBindByIdViaStack(stack *nodestack.NodeStack, id ast.Identifier) *ast.LocalBind { +func FindBindByIDViaStack(stack *nodestack.NodeStack, id ast.Identifier) *ast.LocalBind { for _, node := range stack.Stack { switch curr := node.(type) { case *ast.Local: diff --git a/pkg/ast_processing/find_field.go b/pkg/ast/processing/find_field.go similarity index 87% rename from pkg/ast_processing/find_field.go rename to pkg/ast/processing/find_field.go index 15ab821..129106c 100644 --- a/pkg/ast_processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -1,4 +1,4 @@ -package ast_processing +package processing import ( "fmt" @@ -16,14 +16,15 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm // First element will be super, self, or var name start, indexList := indexList[0], indexList[1:] sameFileOnly := false - if start == "super" { + switch { + case start == "super": // Find the LHS desugared object of a binary node lhsObject, err := findLhsDesugaredObject(stack) if err != nil { return nil, err } foundDesugaredObjects = append(foundDesugaredObjects, lhsObject) - } else if start == "self" { + case start == "self": tmpStack := stack.Clone() // Special case. If the index was part of a binary node (ex: self.foo + {...}), @@ -31,20 +32,20 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm if _, ok := tmpStack.Peek().(*ast.Binary); ok { tmpStack.Pop() } - foundDesugaredObjects = filterSelfScope(findTopLevelObjects(tmpStack, vm)) - } else if start == "std" { + case start == "std": return nil, fmt.Errorf("cannot get definition of std lib") - } else if strings.Contains(start, ".") { - foundDesugaredObjects = findTopLevelObjectsInFile(vm, start, "") - } else if start == "$" { + case start == "$": sameFileOnly = true foundDesugaredObjects = findTopLevelObjects(nodestack.NewNodeStack(stack.From), vm) - } else { + case strings.Contains(start, "."): + foundDesugaredObjects = findTopLevelObjectsInFile(vm, start, "") + + default: // Get ast.DesugaredObject at variable definition by getting bind then setting ast.DesugaredObject - bind := FindBindByIdViaStack(stack, ast.Identifier(start)) + bind := FindBindByIDViaStack(stack, ast.Identifier(start)) if bind == nil { - param := FindParameterByIdViaStack(stack, ast.Identifier(start)) + param := FindParameterByIDViaStack(stack, ast.Identifier(start)) if param != nil { return []ObjectRange{ { @@ -78,18 +79,23 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm return nil, fmt.Errorf("unexpected node type when finding bind for '%s': %s", start, reflect.TypeOf(bind.Body)) } } + + return extractObjectRangesFromDesugaredObjs(stack, vm, foundDesugaredObjects, sameFileOnly, indexList) +} + +func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonnet.VM, desugaredObjs []*ast.DesugaredObject, sameFileOnly bool, indexList []string) ([]ObjectRange, error) { var ranges []ObjectRange for len(indexList) > 0 { index := indexList[0] indexList = indexList[1:] - foundFields := findObjectFieldsInObjects(foundDesugaredObjects, index) - foundDesugaredObjects = nil + foundFields := findObjectFieldsInObjects(desugaredObjs, index) + desugaredObjs = nil if len(foundFields) == 0 { return nil, fmt.Errorf("field %s was not found in ast.DesugaredObject", index) } if len(indexList) == 0 { for _, found := range foundFields { - ranges = append(ranges, FieldToRange(found)) + ranges = append(ranges, FieldToRange(*found)) // If the field is not PlusSuper (field+: value), we stop there. Other previous values are not relevant if !found.PlusSuper { @@ -119,17 +125,17 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm } // If the reference is an object, add it directly to the list of objects to look in if varReference, ok := varReference.(*ast.DesugaredObject); ok { - foundDesugaredObjects = append(foundDesugaredObjects, varReference) + desugaredObjs = append(desugaredObjs, varReference) } // If the reference is a function, and the body of that function is an object, add it to the list of objects to look in if varReference, ok := varReference.(*ast.Function); ok { if funcBody, ok := varReference.Body.(*ast.DesugaredObject); ok { - foundDesugaredObjects = append(foundDesugaredObjects, funcBody) + desugaredObjs = append(desugaredObjs, funcBody) } } case *ast.DesugaredObject: stack.Push(fieldNode) - foundDesugaredObjects = append(foundDesugaredObjects, findDesugaredObjectFromStack(stack)) + desugaredObjs = append(desugaredObjs, findDesugaredObjectFromStack(stack)) case *ast.Index: tempStack := nodestack.NewNodeStack(fieldNode) additionalIndexList := tempStack.BuildIndexList() @@ -142,12 +148,11 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm case *ast.Import: filename := fieldNode.File.Value newObjs := findTopLevelObjectsInFile(vm, filename, string(fieldNode.Loc().File.DiagnosticFileName)) - foundDesugaredObjects = append(foundDesugaredObjects, newObjs...) + desugaredObjs = append(desugaredObjs, newObjs...) } i++ } } - return ranges, nil } @@ -212,9 +217,7 @@ func findObjectFieldInObject(objectNode *ast.DesugaredObject, index string) *ast func findDesugaredObjectFromStack(stack *nodestack.NodeStack) *ast.DesugaredObject { for !stack.IsEmpty() { - curr := stack.Pop() - switch curr := curr.(type) { - case *ast.DesugaredObject: + if curr, ok := stack.Pop().(*ast.DesugaredObject); ok { return curr } } @@ -229,7 +232,7 @@ func findVarReference(varNode *ast.Var, vm *jsonnet.VM) (ast.Node, error) { if err != nil { return nil, fmt.Errorf("got the following error when finding the bind for %s: %w", varNode.Id, err) } - bind := FindBindByIdViaStack(varStack, varNode.Id) + bind := FindBindByIDViaStack(varStack, varNode.Id) if bind == nil { return nil, fmt.Errorf("could not find bind for %s", varNode.Id) } @@ -246,7 +249,7 @@ func findLhsDesugaredObject(stack *nodestack.NodeStack) (*ast.DesugaredObject, e case *ast.DesugaredObject: return lhsNode, nil case *ast.Var: - bind := FindBindByIdViaStack(stack, lhsNode.Id) + bind := FindBindByIDViaStack(stack, lhsNode.Id) if bind != nil { return bind.Body.(*ast.DesugaredObject), nil } diff --git a/pkg/ast_processing/find_param.go b/pkg/ast/processing/find_param.go similarity index 79% rename from pkg/ast_processing/find_param.go rename to pkg/ast/processing/find_param.go index 8e65afe..146f9c1 100644 --- a/pkg/ast_processing/find_param.go +++ b/pkg/ast/processing/find_param.go @@ -1,11 +1,11 @@ -package ast_processing +package processing import ( "github.com/google/go-jsonnet/ast" "github.com/grafana/jsonnet-language-server/pkg/nodestack" ) -func FindParameterByIdViaStack(stack *nodestack.NodeStack, id ast.Identifier) *ast.Parameter { +func FindParameterByIDViaStack(stack *nodestack.NodeStack, id ast.Identifier) *ast.Parameter { for _, node := range stack.Stack { if f, ok := node.(*ast.Function); ok { for _, param := range f.Parameters { diff --git a/pkg/ast_processing/find_position.go b/pkg/ast/processing/find_position.go similarity index 99% rename from pkg/ast_processing/find_position.go rename to pkg/ast/processing/find_position.go index 3bbc99a..cd25a85 100644 --- a/pkg/ast_processing/find_position.go +++ b/pkg/ast/processing/find_position.go @@ -1,4 +1,4 @@ -package ast_processing +package processing import ( "errors" diff --git a/pkg/ast_processing/object.go b/pkg/ast/processing/object.go similarity index 91% rename from pkg/ast_processing/object.go rename to pkg/ast/processing/object.go index cc71713..788b083 100644 --- a/pkg/ast_processing/object.go +++ b/pkg/ast/processing/object.go @@ -1,4 +1,4 @@ -package ast_processing +package processing import ( "github.com/google/go-jsonnet/ast" @@ -16,7 +16,8 @@ func filterSelfScope(objs []*ast.DesugaredObject) (result []*ast.DesugaredObject } // Copy the array so we don't modify the original - result = objs[:] + result = make([]*ast.DesugaredObject, len(objs)) + copy(result, objs) topLevel := result[0] i := 1 diff --git a/pkg/ast_processing/object_range.go b/pkg/ast/processing/object_range.go similarity index 91% rename from pkg/ast_processing/object_range.go rename to pkg/ast/processing/object_range.go index c42506a..6d09720 100644 --- a/pkg/ast_processing/object_range.go +++ b/pkg/ast/processing/object_range.go @@ -1,4 +1,4 @@ -package ast_processing +package processing import ( "fmt" @@ -13,7 +13,7 @@ type ObjectRange struct { FullRange ast.LocationRange } -func FieldToRange(field *ast.DesugaredObjectField) ObjectRange { +func FieldToRange(field ast.DesugaredObjectField) ObjectRange { selectionRange := ast.LocationRange{ Begin: ast.Location{ Line: field.LocRange.Begin.Line, @@ -48,7 +48,7 @@ func FieldNameToString(fieldName ast.Node) string { return "" } -func LocalBindToRange(bind *ast.LocalBind) ObjectRange { +func LocalBindToRange(bind ast.LocalBind) ObjectRange { locRange := bind.LocRange if !locRange.Begin.IsSet() { locRange = *bind.Body.Loc() diff --git a/pkg/ast_processing/range.go b/pkg/ast/processing/range.go similarity index 97% rename from pkg/ast_processing/range.go rename to pkg/ast/processing/range.go index c0be6c9..45155f2 100644 --- a/pkg/ast_processing/range.go +++ b/pkg/ast/processing/range.go @@ -1,4 +1,4 @@ -package ast_processing +package processing import "github.com/google/go-jsonnet/ast" diff --git a/pkg/ast_processing/top_level_objects.go b/pkg/ast/processing/top_level_objects.go similarity index 98% rename from pkg/ast_processing/top_level_objects.go rename to pkg/ast/processing/top_level_objects.go index f2867de..0d53869 100644 --- a/pkg/ast_processing/top_level_objects.go +++ b/pkg/ast/processing/top_level_objects.go @@ -1,4 +1,4 @@ -package ast_processing +package processing import ( "github.com/google/go-jsonnet" diff --git a/pkg/server/cache.go b/pkg/server/cache.go index 940bc35..6628649 100644 --- a/pkg/server/cache.go +++ b/pkg/server/cache.go @@ -13,7 +13,7 @@ type document struct { // From DidOpen and DidChange item protocol.TextDocumentItem - // Contains the last succesfully parsed AST. If doc.err is not nil, it's out of date. + // Contains the last successfully parsed AST. If doc.err is not nil, it's out of date. ast ast.Node linesChangedSinceAST map[int]bool diff --git a/pkg/server/configuration_test.go b/pkg/server/configuration_test.go index 10a67ef..ddeffe9 100644 --- a/pkg/server/configuration_test.go +++ b/pkg/server/configuration_test.go @@ -97,17 +97,14 @@ func TestConfiguration(t *testing.T) { Settings: tc.settings, }, ) - if tc.expectedErr == nil && err != nil { - t.Fatalf("DidChangeConfiguration produced unexpected error: %v", err) - } else if tc.expectedErr != nil && err == nil { - t.Fatalf("expected DidChangeConfiguration to produce error but it did not") - } else if tc.expectedErr != nil && err != nil { + if tc.expectedErr != nil { assert.EqualError(t, err, tc.expectedErr.Error()) return + } else { + assert.NoError(t, err) } - vm, err := s.getVM("any") - assert.NoError(t, err) + vm := s.getVM("any") doc, err := s.cache.get(fileURI) assert.NoError(t, err) @@ -252,13 +249,11 @@ func TestConfiguration_Formatting(t *testing.T) { Settings: tc.settings, }, ) - if tc.expectedErr == nil && err != nil { - t.Fatalf("DidChangeConfiguration produced unexpected error: %v", err) - } else if tc.expectedErr != nil && err == nil { - t.Fatalf("expected DidChangeConfiguration to produce error but it did not") - } else if tc.expectedErr != nil && err != nil { + if tc.expectedErr != nil { assert.EqualError(t, err, tc.expectedErr.Error()) return + } else { + assert.NoError(t, err) } assert.Equal(t, tc.expectedConfiguration, s.configuration) diff --git a/pkg/server/definition.go b/pkg/server/definition.go index 0d10e06..8329765 100644 --- a/pkg/server/definition.go +++ b/pkg/server/definition.go @@ -8,7 +8,7 @@ import ( "github.com/google/go-jsonnet" "github.com/google/go-jsonnet/ast" - processing "github.com/grafana/jsonnet-language-server/pkg/ast_processing" + "github.com/grafana/jsonnet-language-server/pkg/ast/processing" "github.com/grafana/jsonnet-language-server/pkg/nodestack" position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/grafana/jsonnet-language-server/pkg/utils" @@ -17,7 +17,7 @@ import ( ) func (s *server) Definition(ctx context.Context, params *protocol.DefinitionParams) (protocol.Definition, error) { - responseDefLinks, err := s.definitionLink(ctx, params) + responseDefLinks, err := s.definitionLink(params) if err != nil { // Returning an error too often can lead to the client killing the language server // Logging the errors is sufficient @@ -38,13 +38,13 @@ func (s *server) Definition(ctx context.Context, params *protocol.DefinitionPara return response, nil } -func (s *server) definitionLink(ctx context.Context, params *protocol.DefinitionParams) ([]protocol.DefinitionLink, error) { +func (s *server) definitionLink(params *protocol.DefinitionParams) ([]protocol.DefinitionLink, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Definition: %s: %w", errorRetrievingDocument, err) } - // Only find definitions, if the the line we're trying to find a definition for hasn't changed since last succesful AST parse + // Only find definitions, if the the line we're trying to find a definition for hasn't changed since last successful AST parse if doc.ast == nil { return nil, utils.LogErrorf("Definition: document was never successfully parsed, can't find definitions") } @@ -52,10 +52,7 @@ func (s *server) definitionLink(ctx context.Context, params *protocol.Definition return nil, utils.LogErrorf("Definition: document line %d was changed since last successful parse, can't find definitions", params.Position.Line) } - vm, err := s.getVM(doc.item.URI.SpanURI().Filename()) - if err != nil { - return nil, utils.LogErrorf("error creating the VM: %w", err) - } + vm := s.getVM(doc.item.URI.SpanURI().Filename()) responseDefLinks, err := findDefinition(doc.ast, params, vm) if err != nil { return nil, err @@ -75,9 +72,9 @@ func findDefinition(root ast.Node, params *protocol.DefinitionParams, vm *jsonne var objectRange processing.ObjectRange - if bind := processing.FindBindByIdViaStack(searchStack, deepestNode.Id); bind != nil { - objectRange = processing.LocalBindToRange(bind) - } else if param := processing.FindParameterByIdViaStack(searchStack, deepestNode.Id); param != nil { + if bind := processing.FindBindByIDViaStack(searchStack, deepestNode.Id); bind != nil { + objectRange = processing.LocalBindToRange(*bind) + } else if param := processing.FindParameterByIDViaStack(searchStack, deepestNode.Id); param != nil { objectRange = processing.ObjectRange{ Filename: param.LocRange.FileName, FullRange: param.LocRange, @@ -116,7 +113,6 @@ func findDefinition(root ast.Node, params *protocol.DefinitionParams, vm *jsonne default: log.Debugf("cannot find definition for node type %T", deepestNode) return nil, fmt.Errorf("cannot find definition") - } for i, item := range response { diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 7db2120..19ae461 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -1,7 +1,6 @@ package server import ( - "context" _ "embed" "fmt" "testing" @@ -786,8 +785,8 @@ func TestDefinition(t *testing.T) { server := NewServer("any", "test version", nil, Configuration{ JPaths: []string{"testdata"}, }) - serverOpenTestFile(t, server, string(tc.filename)) - response, err := server.definitionLink(context.Background(), params) + serverOpenTestFile(t, server, tc.filename) + response, err := server.definitionLink(params) require.NoError(t, err) var expected []protocol.DefinitionLink @@ -800,7 +799,7 @@ func TestDefinition(t *testing.T) { r.targetFilename = tc.filename } expected = append(expected, protocol.DefinitionLink{ - TargetURI: absUri(t, r.targetFilename), + TargetURI: absURI(t, r.targetFilename), TargetRange: r.targetRange, TargetSelectionRange: r.targetSelectionRange, }) @@ -825,12 +824,12 @@ func BenchmarkDefinition(b *testing.B) { server := NewServer("any", "test version", nil, Configuration{ JPaths: []string{"testdata"}, }) - serverOpenTestFile(b, server, string(tc.filename)) + serverOpenTestFile(b, server, tc.filename) for i := 0; i < b.N; i++ { // We don't care about the response for the benchmark // nolint:errcheck - server.definitionLink(context.Background(), params) + server.definitionLink(params) } }) } @@ -897,7 +896,7 @@ func TestDefinitionFail(t *testing.T) { JPaths: []string{"testdata"}, }) serverOpenTestFile(t, server, tc.filename) - got, err := server.definitionLink(context.Background(), params) + got, err := server.definitionLink(params) require.Error(t, err) assert.Equal(t, tc.expected.Error(), err.Error()) diff --git a/pkg/server/diagnostics.go b/pkg/server/diagnostics.go index c08dffd..0ae4abf 100644 --- a/pkg/server/diagnostics.go +++ b/pkg/server/diagnostics.go @@ -150,11 +150,7 @@ func (s *server) diagnosticsLoop() { func (s *server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { if doc.err == nil && s.configuration.EnableEvalDiagnostics { - vm, err := s.getVM(doc.item.URI.SpanURI().Filename()) - if err != nil { - log.Errorf("getEvalDiags: %s: %v\n", errorRetrievingDocument, err) - return - } + vm := s.getVM(doc.item.URI.SpanURI().Filename()) doc.val, doc.err = vm.EvaluateAnonymousSnippet(doc.item.URI.SpanURI().Filename(), doc.item.Text) } @@ -213,10 +209,7 @@ func (s *server) lintWithRecover(doc *document) (result string, err error) { } }() - vm, err := s.getVM(doc.item.URI.SpanURI().Filename()) - if err != nil { - return "", err - } + vm := s.getVM(doc.item.URI.SpanURI().Filename()) buf := &bytes.Buffer{} linter.LintSnippet(vm, buf, []linter.Snippet{ diff --git a/pkg/server/execute.go b/pkg/server/execute.go index c709536..72d9854 100644 --- a/pkg/server/execute.go +++ b/pkg/server/execute.go @@ -6,7 +6,7 @@ import ( "fmt" "reflect" - processing "github.com/grafana/jsonnet-language-server/pkg/ast_processing" + "github.com/grafana/jsonnet-language-server/pkg/ast/processing" position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" @@ -17,18 +17,18 @@ func (s *server) ExecuteCommand(ctx context.Context, params *protocol.ExecuteCom switch params.Command { case "jsonnet.evalItem": // WIP - return s.evalItem(ctx, params) + return s.evalItem(params) case "jsonnet.evalFile": params.Arguments = append(params.Arguments, json.RawMessage("\"\"")) - return s.evalExpression(ctx, params) + return s.evalExpression(params) case "jsonnet.evalExpression": - return s.evalExpression(ctx, params) + return s.evalExpression(params) } return nil, fmt.Errorf("unknown command: %s", params.Command) } -func (s *server) evalItem(ctx context.Context, params *protocol.ExecuteCommandParams) (interface{}, error) { +func (s *server) evalItem(params *protocol.ExecuteCommandParams) (interface{}, error) { args := params.Arguments if len(args) != 2 { return nil, fmt.Errorf("expected 2 arguments, got %d", len(args)) @@ -65,7 +65,7 @@ func (s *server) evalItem(ctx context.Context, params *protocol.ExecuteCommandPa return nil, fmt.Errorf("%v: %+v", reflect.TypeOf(node), node) } -func (s *server) evalExpression(ctx context.Context, params *protocol.ExecuteCommandParams) (interface{}, error) { +func (s *server) evalExpression(params *protocol.ExecuteCommandParams) (interface{}, error) { args := params.Arguments if len(args) != 2 { return nil, fmt.Errorf("expected 2 arguments, got %d", len(args)) @@ -81,15 +81,11 @@ func (s *server) evalExpression(ctx context.Context, params *protocol.ExecuteCom } // TODO: Replace this stuff with Tanka's `eval` code - vm, err := s.getVM(fileName) - if err != nil { - return nil, err - } + vm := s.getVM(fileName) script := fmt.Sprintf("local main = (import '%s');\nmain", fileName) if expression != "" { script += "." + expression - } return vm.EvaluateAnonymousSnippet(fileName, script) diff --git a/pkg/server/hover.go b/pkg/server/hover.go index dd12b46..6510fee 100644 --- a/pkg/server/hover.go +++ b/pkg/server/hover.go @@ -6,7 +6,7 @@ import ( "strings" "github.com/google/go-jsonnet/ast" - processing "github.com/grafana/jsonnet-language-server/pkg/ast_processing" + "github.com/grafana/jsonnet-language-server/pkg/ast/processing" position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" diff --git a/pkg/server/hover_test.go b/pkg/server/hover_test.go index 5f0b485..a99d27d 100644 --- a/pkg/server/hover_test.go +++ b/pkg/server/hover_test.go @@ -57,7 +57,7 @@ var ( End: protocol.Position{Line: 5, Character: 24}, }, } - expectedManifestJson = &protocol.Hover{ + expectedManifestJSON = &protocol.Hover{ Contents: protocol.MarkupContent{Kind: protocol.Markdown, Value: "`std.manifestJson(any)`\n\ndesc"}, Range: protocol.Range{ Start: protocol.Position{Line: 7, Character: 71}, @@ -116,13 +116,13 @@ func TestHover(t *testing.T) { name: "std.manifestJson over std", document: "./testdata/hover-std.jsonnet", position: protocol.Position{Line: 7, Character: 73}, - expected: expectedManifestJson, + expected: expectedManifestJSON, }, { name: "std.manifestJson over func name", document: "./testdata/hover-std.jsonnet", position: protocol.Position{Line: 7, Character: 82}, - expected: expectedManifestJson, + expected: expectedManifestJSON, }, { name: "list comprehension for", diff --git a/pkg/server/server.go b/pkg/server/server.go index 65b882b..25b8de1 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -44,11 +44,13 @@ type server struct { configuration Configuration } -func (s *server) getVM(path string) (vm *jsonnet.VM, err error) { +func (s *server) getVM(path string) *jsonnet.VM { + var vm *jsonnet.VM if s.configuration.ResolvePathsWithTanka { jpath, _, _, err := jpath.Resolve(path, false) if err != nil { log.Debugf("Unable to resolve jpath for %s: %s", path, err) + // nolint: gocritic jpath = append(s.configuration.JPaths, filepath.Dir(path)) } opts := tankaJsonnet.Opts{ @@ -56,6 +58,7 @@ func (s *server) getVM(path string) (vm *jsonnet.VM, err error) { } vm = tankaJsonnet.MakeVM(opts) } else { + // nolint: gocritic jpath := append(s.configuration.JPaths, filepath.Dir(path)) vm = jsonnet.MakeVM() importer := &jsonnet.FileImporter{JPaths: jpath} @@ -63,7 +66,7 @@ func (s *server) getVM(path string) (vm *jsonnet.VM, err error) { } resetExtVars(vm, s.configuration.ExtVars) - return vm, nil + return vm } func (s *server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams) error { diff --git a/pkg/server/symbols.go b/pkg/server/symbols.go index 5bcd8fb..aec9c5f 100644 --- a/pkg/server/symbols.go +++ b/pkg/server/symbols.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/google/go-jsonnet/ast" - processing "github.com/grafana/jsonnet-language-server/pkg/ast_processing" + "github.com/grafana/jsonnet-language-server/pkg/ast/processing" position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" @@ -46,7 +46,7 @@ func buildDocumentSymbols(node ast.Node) []protocol.DocumentSymbol { symbols = append(symbols, buildDocumentSymbols(node.Right)...) case *ast.Local: for _, bind := range node.Binds { - objectRange := processing.LocalBindToRange(&bind) + objectRange := processing.LocalBindToRange(bind) symbols = append(symbols, protocol.DocumentSymbol{ Name: string(bind.Variable), Kind: protocol.Variable, @@ -62,7 +62,7 @@ func buildDocumentSymbols(node ast.Node) []protocol.DocumentSymbol { if field.Hide == ast.ObjectFieldHidden { kind = protocol.Property } - fieldRange := processing.FieldToRange(&field) + fieldRange := processing.FieldToRange(field) symbols = append(symbols, protocol.DocumentSymbol{ Name: processing.FieldNameToString(field.Name), Kind: kind, @@ -78,7 +78,6 @@ func buildDocumentSymbols(node ast.Node) []protocol.DocumentSymbol { } func symbolDetails(node ast.Node) string { - switch node := node.(type) { case *ast.Function: var args []string diff --git a/pkg/server/symbols_test.go b/pkg/server/symbols_test.go index a7733eb..609d223 100644 --- a/pkg/server/symbols_test.go +++ b/pkg/server/symbols_test.go @@ -277,7 +277,7 @@ func TestSymbols(t *testing.T) { server := NewServer("any", "test version", nil, Configuration{ JPaths: []string{"testdata"}, }) - serverOpenTestFile(t, server, string(tc.filename)) + serverOpenTestFile(t, server, tc.filename) response, err := server.DocumentSymbol(context.Background(), params) require.NoError(t, err) diff --git a/pkg/server/utils_test.go b/pkg/server/utils_test.go index fe884f6..b98bbf7 100644 --- a/pkg/server/utils_test.go +++ b/pkg/server/utils_test.go @@ -28,7 +28,7 @@ func init() { logrus.SetLevel(logrus.WarnLevel) } -func absUri(t *testing.T, path string) protocol.DocumentURI { +func absURI(t *testing.T, path string) protocol.DocumentURI { t.Helper() abs, err := filepath.Abs(path) diff --git a/pkg/stdlib/stdlib_test.go b/pkg/stdlib/stdlib_test.go index 2af0459..252839d 100644 --- a/pkg/stdlib/stdlib_test.go +++ b/pkg/stdlib/stdlib_test.go @@ -7,7 +7,6 @@ import ( ) func TestFunctions(t *testing.T) { - functions, err := Functions() assert.NoError(t, err) From 513f1817fb14b46822e129bb425729120b1c0284 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 6 Sep 2022 14:06:52 -0400 Subject: [PATCH 023/124] Even more `golangci-lint` linters (#68) Add `revive` (popular general linter) and `forcetypeassert` (forcing type asserts to be checked) --- .golangci.toml | 3 +- pkg/ast/processing/find_field.go | 8 +- pkg/ast/processing/find_position.go | 6 +- pkg/position_conversion/point.go | 2 +- pkg/server/completion.go | 2 +- pkg/server/configuration.go | 59 +++++++++----- pkg/server/configuration_test.go | 44 ++++++++++- pkg/server/definition.go | 6 +- pkg/server/diagnostics.go | 10 +-- pkg/server/execute.go | 8 +- pkg/server/formatting.go | 2 +- pkg/server/hover.go | 4 +- pkg/server/server.go | 14 ++-- pkg/server/symbols.go | 2 +- pkg/server/unused.go | 114 ++++++++++++++-------------- pkg/server/utils_test.go | 6 +- 16 files changed, 177 insertions(+), 113 deletions(-) diff --git a/.golangci.toml b/.golangci.toml index 32afb88..e141ec5 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -1,9 +1,9 @@ [linters] -disable-all = true enable = [ "depguard", "dogsled", "exportloopref", + "forcetypeassert", "goconst", "gocritic", "gocyclo", @@ -15,6 +15,7 @@ enable = [ "ineffassign", "misspell", "nakedret", + "revive", "staticcheck", "stylecheck", "typecheck", diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index 129106c..96bfb22 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -19,7 +19,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm switch { case start == "super": // Find the LHS desugared object of a binary node - lhsObject, err := findLhsDesugaredObject(stack) + lhsObject, err := findLHSDesugaredObject(stack) if err != nil { return nil, err } @@ -239,7 +239,7 @@ func findVarReference(varNode *ast.Var, vm *jsonnet.VM) (ast.Node, error) { return bind.Body, nil } -func findLhsDesugaredObject(stack *nodestack.NodeStack) (*ast.DesugaredObject, error) { +func findLHSDesugaredObject(stack *nodestack.NodeStack) (*ast.DesugaredObject, error) { for !stack.IsEmpty() { curr := stack.Pop() switch curr := curr.(type) { @@ -251,7 +251,9 @@ func findLhsDesugaredObject(stack *nodestack.NodeStack) (*ast.DesugaredObject, e case *ast.Var: bind := FindBindByIDViaStack(stack, lhsNode.Id) if bind != nil { - return bind.Body.(*ast.DesugaredObject), nil + if bindBody, ok := bind.Body.(*ast.DesugaredObject); ok { + return bindBody, nil + } } } case *ast.Local: diff --git a/pkg/ast/processing/find_position.go b/pkg/ast/processing/find_position.go index cd25a85..92682d6 100644 --- a/pkg/ast/processing/find_position.go +++ b/pkg/ast/processing/find_position.go @@ -22,7 +22,11 @@ func FindNodeByPosition(node ast.Node, location ast.Location) (*nodestack.NodeSt // This is needed because SuperIndex only spans "key: super" and not the ".foo" after. This only occurs // when super only has 1 additional index. "super.foo.bar" will not have this issue if curr, isType := curr.(*ast.SuperIndex); isType { - curr.Loc().End.Column = curr.Loc().End.Column + len(curr.Index.(*ast.LiteralString).Value) + 1 + var indexLength int + if index, ok := curr.Index.(*ast.LiteralString); ok { + indexLength = len(index.Value) + } + curr.Loc().End.Column = curr.Loc().End.Column + indexLength + 1 } inRange := InRange(location, *curr.Loc()) if inRange { diff --git a/pkg/position_conversion/point.go b/pkg/position_conversion/point.go index e6bf81d..6de7864 100644 --- a/pkg/position_conversion/point.go +++ b/pkg/position_conversion/point.go @@ -5,7 +5,7 @@ import ( "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" ) -func PositionProtocolToAST(point protocol.Position) ast.Location { +func ProtocolToAST(point protocol.Position) ast.Location { return ast.Location{ Line: int(point.Line) + 1, Column: int(point.Character) + 1, diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 3a85e72..832c627 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -8,7 +8,7 @@ import ( "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" ) -func (s *server) Completion(ctx context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error) { +func (s *Server) Completion(ctx context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Completion: %s: %w", errorRetrievingDocument, err) diff --git a/pkg/server/configuration.go b/pkg/server/configuration.go index 6e30e08..351662d 100644 --- a/pkg/server/configuration.go +++ b/pkg/server/configuration.go @@ -23,7 +23,7 @@ type Configuration struct { EnableLintDiagnostics bool } -func (s *server) DidChangeConfiguration(ctx context.Context, params *protocol.DidChangeConfigurationParams) error { +func (s *Server) DidChangeConfiguration(ctx context.Context, params *protocol.DidChangeConfigurationParams) error { settingsMap, ok := params.Settings.(map[string]interface{}) if !ok { return fmt.Errorf("%w: unsupported settings payload. expected json object, got: %T", jsonrpc2.ErrInvalidParams, params.Settings) @@ -38,17 +38,37 @@ func (s *server) DidChangeConfiguration(ctx context.Context, params *protocol.Di } log.SetLevel(level) case "resolve_paths_with_tanka": - s.configuration.ResolvePathsWithTanka = sv.(bool) + if boolVal, ok := sv.(bool); ok { + s.configuration.ResolvePathsWithTanka = boolVal + } else { + return fmt.Errorf("%w: unsupported settings value for resolve_paths_with_tanka. expected boolean. got: %T", jsonrpc2.ErrInvalidParams, sv) + } case "jpath": - svList := sv.([]interface{}) - s.configuration.JPaths = make([]string, len(svList)) - for i, v := range svList { - s.configuration.JPaths[i] = v.(string) + if svList, ok := sv.([]interface{}); ok { + s.configuration.JPaths = make([]string, len(svList)) + for i, v := range svList { + if strVal, ok := v.(string); ok { + s.configuration.JPaths[i] = strVal + } else { + return fmt.Errorf("%w: unsupported settings value for jpath. expected string. got: %T", jsonrpc2.ErrInvalidParams, v) + } + } + } else { + return fmt.Errorf("%w: unsupported settings value for jpath. expected array of strings. got: %T", jsonrpc2.ErrInvalidParams, sv) } + case "enable_eval_diagnostics": - s.configuration.EnableEvalDiagnostics = sv.(bool) + if boolVal, ok := sv.(bool); ok { + s.configuration.EnableEvalDiagnostics = boolVal + } else { + return fmt.Errorf("%w: unsupported settings value for enable_eval_diagnostics. expected boolean. got: %T", jsonrpc2.ErrInvalidParams, sv) + } case "enable_lint_diagnostics": - s.configuration.EnableLintDiagnostics = sv.(bool) + if boolVal, ok := sv.(bool); ok { + s.configuration.EnableLintDiagnostics = boolVal + } else { + return fmt.Errorf("%w: unsupported settings value for enable_lint_diagnostics. expected boolean. got: %T", jsonrpc2.ErrInvalidParams, sv) + } case "ext_vars": newVars, err := s.parseExtVars(sv) if err != nil { @@ -71,7 +91,7 @@ func (s *server) DidChangeConfiguration(ctx context.Context, params *protocol.Di return nil } -func (s *server) parseExtVars(unparsed interface{}) (map[string]string, error) { +func (s *Server) parseExtVars(unparsed interface{}) (map[string]string, error) { newVars, ok := unparsed.(map[string]interface{}) if !ok { return nil, fmt.Errorf("unsupported settings value for ext_vars. expected json object. got: %T", unparsed) @@ -88,7 +108,7 @@ func (s *server) parseExtVars(unparsed interface{}) (map[string]string, error) { return extVars, nil } -func (s *server) parseFormattingOpts(unparsed interface{}) (formatter.Options, error) { +func (s *Server) parseFormattingOpts(unparsed interface{}) (formatter.Options, error) { newOpts, ok := unparsed.(map[string]interface{}) if !ok { return formatter.Options{}, fmt.Errorf("unsupported settings value for formatting. expected json object. got: %T", unparsed) @@ -124,12 +144,13 @@ func stringStyleDecodeFunc(from, to reflect.Type, unparsed interface{}) (interfa if to != reflect.TypeOf(formatter.StringStyleDouble) { return unparsed, nil } - if from.Kind() != reflect.String { - return nil, fmt.Errorf("expected string, got: %v", from.Kind()) - } + str, ok := unparsed.(string) + if !ok { + return nil, fmt.Errorf("expected string, got: %T", unparsed) + } // will not panic because of the kind == string check above - switch str := unparsed.(string); str { + switch str { case "double": return formatter.StringStyleDouble, nil case "single": @@ -145,12 +166,12 @@ func commentStyleDecodeFunc(from, to reflect.Type, unparsed interface{}) (interf if to != reflect.TypeOf(formatter.CommentStyleHash) { return unparsed, nil } - if from.Kind() != reflect.String { - return nil, fmt.Errorf("expected string, got: %v", from.Kind()) - } - // will not panic because of the kind == string check above - switch str := unparsed.(string); str { + str, ok := unparsed.(string) + if !ok { + return nil, fmt.Errorf("expected string, got: %T", unparsed) + } + switch str { case "hash": return formatter.CommentStyleHash, nil case "slash": diff --git a/pkg/server/configuration_test.go b/pkg/server/configuration_test.go index ddeffe9..59211e4 100644 --- a/pkg/server/configuration_test.go +++ b/pkg/server/configuration_test.go @@ -100,9 +100,8 @@ func TestConfiguration(t *testing.T) { if tc.expectedErr != nil { assert.EqualError(t, err, tc.expectedErr.Error()) return - } else { - assert.NoError(t, err) } + assert.NoError(t, err) vm := s.getVM("any") @@ -179,6 +178,15 @@ func TestConfiguration_Formatting(t *testing.T) { }, expectedErr: errors.New("JSON RPC invalid params: formatting options parsing failed: map decode failed: 1 error(s) decoding:\n\n* error decoding 'CommentStyle': expected one of 'hash', 'slash', 'leave', got: \"invalid\""), }, + { + name: "invalid comment style type", + settings: map[string]interface{}{ + "formatting": map[string]interface{}{ + "CommentStyle": 123, + }, + }, + expectedErr: errors.New("JSON RPC invalid params: formatting options parsing failed: map decode failed: 1 error(s) decoding:\n\n* error decoding 'CommentStyle': expected string, got: int"), + }, { name: "does not override default values", settings: map[string]interface{}{ @@ -186,9 +194,38 @@ func TestConfiguration_Formatting(t *testing.T) { }, expectedConfiguration: Configuration{FormattingOptions: formatter.DefaultOptions()}, }, + { + name: "invalid jpath type", + settings: map[string]interface{}{ + "jpath": 123, + }, + expectedErr: errors.New("JSON RPC invalid params: unsupported settings value for jpath. expected array of strings. got: int"), + }, + { + name: "invalid jpath item type", + settings: map[string]interface{}{ + "jpath": []interface{}{123}, + }, + expectedErr: errors.New("JSON RPC invalid params: unsupported settings value for jpath. expected string. got: int"), + }, + { + name: "invalid bool", + settings: map[string]interface{}{ + "resolve_paths_with_tanka": "true", + }, + expectedErr: errors.New("JSON RPC invalid params: unsupported settings value for resolve_paths_with_tanka. expected boolean. got: string"), + }, + { + name: "invalid log level", + settings: map[string]interface{}{ + "log_level": "bad", + }, + expectedErr: errors.New(`JSON RPC invalid params: not a valid logrus Level: "bad"`), + }, { name: "all settings", settings: map[string]interface{}{ + "log_level": "info", "formatting": map[string]interface{}{ "Indent": 4, "MaxBlankLines": 10, @@ -252,9 +289,8 @@ func TestConfiguration_Formatting(t *testing.T) { if tc.expectedErr != nil { assert.EqualError(t, err, tc.expectedErr.Error()) return - } else { - assert.NoError(t, err) } + assert.NoError(t, err) assert.Equal(t, tc.expectedConfiguration, s.configuration) }) diff --git a/pkg/server/definition.go b/pkg/server/definition.go index 8329765..4906364 100644 --- a/pkg/server/definition.go +++ b/pkg/server/definition.go @@ -16,7 +16,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *server) Definition(ctx context.Context, params *protocol.DefinitionParams) (protocol.Definition, error) { +func (s *Server) Definition(ctx context.Context, params *protocol.DefinitionParams) (protocol.Definition, error) { responseDefLinks, err := s.definitionLink(params) if err != nil { // Returning an error too often can lead to the client killing the language server @@ -38,7 +38,7 @@ func (s *server) Definition(ctx context.Context, params *protocol.DefinitionPara return response, nil } -func (s *server) definitionLink(params *protocol.DefinitionParams) ([]protocol.DefinitionLink, error) { +func (s *Server) definitionLink(params *protocol.DefinitionParams) ([]protocol.DefinitionLink, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Definition: %s: %w", errorRetrievingDocument, err) @@ -64,7 +64,7 @@ func (s *server) definitionLink(params *protocol.DefinitionParams) ([]protocol.D func findDefinition(root ast.Node, params *protocol.DefinitionParams, vm *jsonnet.VM) ([]protocol.DefinitionLink, error) { var response []protocol.DefinitionLink - searchStack, _ := processing.FindNodeByPosition(root, position.PositionProtocolToAST(params.Position)) + searchStack, _ := processing.FindNodeByPosition(root, position.ProtocolToAST(params.Position)) deepestNode := searchStack.Pop() switch deepestNode := deepestNode.(type) { case *ast.Var: diff --git a/pkg/server/diagnostics.go b/pkg/server/diagnostics.go index 0ae4abf..53de11a 100644 --- a/pkg/server/diagnostics.go +++ b/pkg/server/diagnostics.go @@ -73,13 +73,13 @@ func parseErrRegexpMatch(match []string) (string, protocol.Range) { return message, position.NewProtocolRange(line-1, col-1, endLine-1, endCol-1) } -func (s *server) queueDiagnostics(uri protocol.DocumentURI) { +func (s *Server) queueDiagnostics(uri protocol.DocumentURI) { s.cache.diagMutex.Lock() defer s.cache.diagMutex.Unlock() s.cache.diagQueue[uri] = struct{}{} } -func (s *server) diagnosticsLoop() { +func (s *Server) diagnosticsLoop() { go func() { for { s.cache.diagMutex.Lock() @@ -148,7 +148,7 @@ func (s *server) diagnosticsLoop() { }() } -func (s *server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { +func (s *Server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { if doc.err == nil && s.configuration.EnableEvalDiagnostics { vm := s.getVM(doc.item.URI.SpanURI().Filename()) doc.val, doc.err = vm.EvaluateAnonymousSnippet(doc.item.URI.SpanURI().Filename(), doc.item.Text) @@ -187,7 +187,7 @@ func (s *server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { return diags } -func (s *server) getLintDiags(doc *document) (diags []protocol.Diagnostic) { +func (s *Server) getLintDiags(doc *document) (diags []protocol.Diagnostic) { result, err := s.lintWithRecover(doc) if err != nil { log.Errorf("getLintDiags: %s: %v\n", errorRetrievingDocument, err) @@ -202,7 +202,7 @@ func (s *server) getLintDiags(doc *document) (diags []protocol.Diagnostic) { return diags } -func (s *server) lintWithRecover(doc *document) (result string, err error) { +func (s *Server) lintWithRecover(doc *document) (result string, err error) { defer func() { if r := recover(); r != nil { err = fmt.Errorf("error linting: %v", r) diff --git a/pkg/server/execute.go b/pkg/server/execute.go index 72d9854..efd4185 100644 --- a/pkg/server/execute.go +++ b/pkg/server/execute.go @@ -13,7 +13,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *server) ExecuteCommand(ctx context.Context, params *protocol.ExecuteCommandParams) (interface{}, error) { +func (s *Server) ExecuteCommand(ctx context.Context, params *protocol.ExecuteCommandParams) (interface{}, error) { switch params.Command { case "jsonnet.evalItem": // WIP @@ -28,7 +28,7 @@ func (s *server) ExecuteCommand(ctx context.Context, params *protocol.ExecuteCom return nil, fmt.Errorf("unknown command: %s", params.Command) } -func (s *server) evalItem(params *protocol.ExecuteCommandParams) (interface{}, error) { +func (s *Server) evalItem(params *protocol.ExecuteCommandParams) (interface{}, error) { args := params.Arguments if len(args) != 2 { return nil, fmt.Errorf("expected 2 arguments, got %d", len(args)) @@ -48,7 +48,7 @@ func (s *server) evalItem(params *protocol.ExecuteCommandParams) (interface{}, e return nil, utils.LogErrorf("evalItem: %s: %w", errorRetrievingDocument, err) } - stack, err := processing.FindNodeByPosition(doc.ast, position.PositionProtocolToAST(p)) + stack, err := processing.FindNodeByPosition(doc.ast, position.ProtocolToAST(p)) if err != nil { return nil, err } @@ -65,7 +65,7 @@ func (s *server) evalItem(params *protocol.ExecuteCommandParams) (interface{}, e return nil, fmt.Errorf("%v: %+v", reflect.TypeOf(node), node) } -func (s *server) evalExpression(params *protocol.ExecuteCommandParams) (interface{}, error) { +func (s *Server) evalExpression(params *protocol.ExecuteCommandParams) (interface{}, error) { args := params.Arguments if len(args) != 2 { return nil, fmt.Errorf("expected 2 arguments, got %d", len(args)) diff --git a/pkg/server/formatting.go b/pkg/server/formatting.go index 9061941..8d1368f 100644 --- a/pkg/server/formatting.go +++ b/pkg/server/formatting.go @@ -11,7 +11,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *server) Formatting(ctx context.Context, params *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error) { +func (s *Server) Formatting(ctx context.Context, params *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Formatting: %s: %w", errorRetrievingDocument, err) diff --git a/pkg/server/hover.go b/pkg/server/hover.go index 6510fee..11c7a7a 100644 --- a/pkg/server/hover.go +++ b/pkg/server/hover.go @@ -13,7 +13,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *server) Hover(ctx context.Context, params *protocol.HoverParams) (*protocol.Hover, error) { +func (s *Server) Hover(ctx context.Context, params *protocol.HoverParams) (*protocol.Hover, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Hover: %s: %w", errorRetrievingDocument, err) @@ -25,7 +25,7 @@ func (s *server) Hover(ctx context.Context, params *protocol.HoverParams) (*prot return nil, nil } - stack, err := processing.FindNodeByPosition(doc.ast, position.PositionProtocolToAST(params.Position)) + stack, err := processing.FindNodeByPosition(doc.ast, position.ProtocolToAST(params.Position)) if err != nil { return nil, err } diff --git a/pkg/server/server.go b/pkg/server/server.go index 25b8de1..8642388 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -21,8 +21,8 @@ const ( ) // New returns a new language server. -func NewServer(name, version string, client protocol.ClientCloser, configuration Configuration) *server { - server := &server{ +func NewServer(name, version string, client protocol.ClientCloser, configuration Configuration) *Server { + server := &Server{ name: name, version: version, cache: newCache(), @@ -34,7 +34,7 @@ func NewServer(name, version string, client protocol.ClientCloser, configuration } // server is the Jsonnet language server. -type server struct { +type Server struct { name, version string stdlib []stdlib.Function @@ -44,7 +44,7 @@ type server struct { configuration Configuration } -func (s *server) getVM(path string) *jsonnet.VM { +func (s *Server) getVM(path string) *jsonnet.VM { var vm *jsonnet.VM if s.configuration.ResolvePathsWithTanka { jpath, _, _, err := jpath.Resolve(path, false) @@ -69,7 +69,7 @@ func (s *server) getVM(path string) *jsonnet.VM { return vm } -func (s *server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams) error { +func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams) error { defer s.queueDiagnostics(params.TextDocument.URI) doc, err := s.cache.get(params.TextDocument.URI) @@ -105,7 +105,7 @@ func (s *server) DidChange(ctx context.Context, params *protocol.DidChangeTextDo return nil } -func (s *server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) (err error) { +func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) (err error) { defer s.queueDiagnostics(params.TextDocument.URI) doc := &document{item: params.TextDocument, linesChangedSinceAST: map[int]bool{}} @@ -115,7 +115,7 @@ func (s *server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocume return s.cache.put(doc) } -func (s *server) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error) { +func (s *Server) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error) { log.Infof("Initializing %s version %s", s.name, s.version) s.diagnosticsLoop() diff --git a/pkg/server/symbols.go b/pkg/server/symbols.go index aec9c5f..d28addc 100644 --- a/pkg/server/symbols.go +++ b/pkg/server/symbols.go @@ -14,7 +14,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) { +func (s *Server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("DocumentSymbol: %s: %w", errorRetrievingDocument, err) diff --git a/pkg/server/unused.go b/pkg/server/unused.go index 0d089a5..c022a0d 100644 --- a/pkg/server/unused.go +++ b/pkg/server/unused.go @@ -8,233 +8,233 @@ import ( "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" ) -func (s *server) Initialized(context.Context, *protocol.InitializedParams) error { +func (s *Server) Initialized(context.Context, *protocol.InitializedParams) error { return nil } -func (s *server) CodeAction(context.Context, *protocol.CodeActionParams) ([]protocol.CodeAction, error) { +func (s *Server) CodeAction(context.Context, *protocol.CodeActionParams) ([]protocol.CodeAction, error) { return nil, notImplemented("CodeAction") } -func (s *server) CodeLens(ctx context.Context, params *protocol.CodeLensParams) ([]protocol.CodeLens, error) { +func (s *Server) CodeLens(ctx context.Context, params *protocol.CodeLensParams) ([]protocol.CodeLens, error) { return []protocol.CodeLens{}, nil } -func (s *server) CodeLensRefresh(context.Context) error { +func (s *Server) CodeLensRefresh(context.Context) error { return notImplemented("CodeLensRefresh") } -func (s *server) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error) { +func (s *Server) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error) { return nil, notImplemented("ColorPresentation") } -func (s *server) Declaration(context.Context, *protocol.DeclarationParams) (protocol.Declaration, error) { +func (s *Server) Declaration(context.Context, *protocol.DeclarationParams) (protocol.Declaration, error) { return nil, notImplemented("Declaration") } -func (s *server) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error { +func (s *Server) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error { return notImplemented("DidRenameFiles") } -func (s *server) DidSave(context.Context, *protocol.DidSaveTextDocumentParams) error { +func (s *Server) DidSave(context.Context, *protocol.DidSaveTextDocumentParams) error { return notImplemented("DidSave") } -func (s *server) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error) { +func (s *Server) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error) { return nil, notImplemented("DocumentColor") } -func (s *server) DocumentHighlight(context.Context, *protocol.DocumentHighlightParams) ([]protocol.DocumentHighlight, error) { +func (s *Server) DocumentHighlight(context.Context, *protocol.DocumentHighlightParams) ([]protocol.DocumentHighlight, error) { return nil, notImplemented("DocumentHighlight") } -func (s *server) Exit(context.Context) error { +func (s *Server) Exit(context.Context) error { return notImplemented("Exit") } -func (s *server) FoldingRange(context.Context, *protocol.FoldingRangeParams) ([]protocol.FoldingRange, error) { +func (s *Server) FoldingRange(context.Context, *protocol.FoldingRangeParams) ([]protocol.FoldingRange, error) { return nil, notImplemented("FoldingRange") } -func (s *server) Implementation(context.Context, *protocol.ImplementationParams) (protocol.Definition, error) { +func (s *Server) Implementation(context.Context, *protocol.ImplementationParams) (protocol.Definition, error) { return nil, notImplemented("Implementation") } -func (s *server) IncomingCalls(context.Context, *protocol.CallHierarchyIncomingCallsParams) ([]protocol.CallHierarchyIncomingCall, error) { +func (s *Server) IncomingCalls(context.Context, *protocol.CallHierarchyIncomingCallsParams) ([]protocol.CallHierarchyIncomingCall, error) { return nil, notImplemented("IncomingCalls") } -func (s *server) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, error) { +func (s *Server) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, error) { return nil, notImplemented("LinkedEditingRange") } -func (s *server) LogTrace(context.Context, *protocol.LogTraceParams) error { +func (s *Server) LogTrace(context.Context, *protocol.LogTraceParams) error { return notImplemented("LogTrace") } -func (s *server) Moniker(context.Context, *protocol.MonikerParams) ([]protocol.Moniker, error) { +func (s *Server) Moniker(context.Context, *protocol.MonikerParams) ([]protocol.Moniker, error) { return nil, notImplemented("Moniker") } -func (s *server) NonstandardRequest(context.Context, string, interface{}) (interface{}, error) { +func (s *Server) NonstandardRequest(context.Context, string, interface{}) (interface{}, error) { return nil, notImplemented("NonstandardRequest") } -func (s *server) OnTypeFormatting(context.Context, *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error) { +func (s *Server) OnTypeFormatting(context.Context, *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error) { return nil, notImplemented("OnTypeFormatting") } -func (s *server) OutgoingCalls(context.Context, *protocol.CallHierarchyOutgoingCallsParams) ([]protocol.CallHierarchyOutgoingCall, error) { +func (s *Server) OutgoingCalls(context.Context, *protocol.CallHierarchyOutgoingCallsParams) ([]protocol.CallHierarchyOutgoingCall, error) { return nil, notImplemented("OutgoingCalls") } -func (s *server) PrepareCallHierarchy(context.Context, *protocol.CallHierarchyPrepareParams) ([]protocol.CallHierarchyItem, error) { +func (s *Server) PrepareCallHierarchy(context.Context, *protocol.CallHierarchyPrepareParams) ([]protocol.CallHierarchyItem, error) { return nil, notImplemented("PrepareCallHierarchy") } -func (s *server) PrepareRename(context.Context, *protocol.PrepareRenameParams) (*protocol.Range, error) { +func (s *Server) PrepareRename(context.Context, *protocol.PrepareRenameParams) (*protocol.Range, error) { return nil, notImplemented("PrepareRange") } -func (s *server) PrepareTypeHierarchy(context.Context, *protocol.TypeHierarchyPrepareParams) ([]protocol.TypeHierarchyItem, error) { +func (s *Server) PrepareTypeHierarchy(context.Context, *protocol.TypeHierarchyPrepareParams) ([]protocol.TypeHierarchyItem, error) { return nil, notImplemented("PrepareTypeHierarchy") } -func (s *server) RangeFormatting(context.Context, *protocol.DocumentRangeFormattingParams) ([]protocol.TextEdit, error) { +func (s *Server) RangeFormatting(context.Context, *protocol.DocumentRangeFormattingParams) ([]protocol.TextEdit, error) { return nil, notImplemented("RangeFormatting") } -func (s *server) References(context.Context, *protocol.ReferenceParams) ([]protocol.Location, error) { +func (s *Server) References(context.Context, *protocol.ReferenceParams) ([]protocol.Location, error) { return nil, notImplemented("References") } -func (s *server) Rename(context.Context, *protocol.RenameParams) (*protocol.WorkspaceEdit, error) { +func (s *Server) Rename(context.Context, *protocol.RenameParams) (*protocol.WorkspaceEdit, error) { return nil, notImplemented("Rename") } -func (s *server) Resolve(context.Context, *protocol.CompletionItem) (*protocol.CompletionItem, error) { +func (s *Server) Resolve(context.Context, *protocol.CompletionItem) (*protocol.CompletionItem, error) { return nil, notImplemented("Resolve") } -func (s *server) ResolveCodeAction(context.Context, *protocol.CodeAction) (*protocol.CodeAction, error) { +func (s *Server) ResolveCodeAction(context.Context, *protocol.CodeAction) (*protocol.CodeAction, error) { return nil, notImplemented("ResolveCodeAction") } -func (s *server) ResolveCodeLens(context.Context, *protocol.CodeLens) (*protocol.CodeLens, error) { +func (s *Server) ResolveCodeLens(context.Context, *protocol.CodeLens) (*protocol.CodeLens, error) { return nil, notImplemented("ResolveCodeLens") } -func (s *server) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error) { +func (s *Server) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error) { return nil, notImplemented("ResolveDocumentLink") } -func (s *server) SelectionRange(context.Context, *protocol.SelectionRangeParams) ([]protocol.SelectionRange, error) { +func (s *Server) SelectionRange(context.Context, *protocol.SelectionRangeParams) ([]protocol.SelectionRange, error) { return nil, notImplemented("SelectionRange") } -func (s *server) SemanticTokensFull(context.Context, *protocol.SemanticTokensParams) (*protocol.SemanticTokens, error) { +func (s *Server) SemanticTokensFull(context.Context, *protocol.SemanticTokensParams) (*protocol.SemanticTokens, error) { return nil, notImplemented("SemanticTokensFull") } -func (s *server) SemanticTokensFullDelta(context.Context, *protocol.SemanticTokensDeltaParams) (interface{}, error) { +func (s *Server) SemanticTokensFullDelta(context.Context, *protocol.SemanticTokensDeltaParams) (interface{}, error) { return nil, notImplemented("SemanticTokensFullDelta") } -func (s *server) SemanticTokensRange(context.Context, *protocol.SemanticTokensRangeParams) (*protocol.SemanticTokens, error) { +func (s *Server) SemanticTokensRange(context.Context, *protocol.SemanticTokensRangeParams) (*protocol.SemanticTokens, error) { return nil, notImplemented("SemanticTokensRange") } -func (s *server) SemanticTokensRefresh(context.Context) error { +func (s *Server) SemanticTokensRefresh(context.Context) error { return notImplemented("SemanticTokensRefresh") } -func (s *server) SetTrace(context.Context, *protocol.SetTraceParams) error { +func (s *Server) SetTrace(context.Context, *protocol.SetTraceParams) error { return notImplemented("SetTrace") } -func (s *server) Shutdown(context.Context) error { +func (s *Server) Shutdown(context.Context) error { return nil } -func (s *server) SignatureHelp(context.Context, *protocol.SignatureHelpParams) (*protocol.SignatureHelp, error) { +func (s *Server) SignatureHelp(context.Context, *protocol.SignatureHelpParams) (*protocol.SignatureHelp, error) { return nil, notImplemented("SignatureHelp") } -func (s *server) Subtypes(context.Context, *protocol.TypeHierarchySubtypesParams) ([]protocol.TypeHierarchyItem, error) { +func (s *Server) Subtypes(context.Context, *protocol.TypeHierarchySubtypesParams) ([]protocol.TypeHierarchyItem, error) { return nil, notImplemented("Subtypes") } -func (s *server) Supertypes(context.Context, *protocol.TypeHierarchySupertypesParams) ([]protocol.TypeHierarchyItem, error) { +func (s *Server) Supertypes(context.Context, *protocol.TypeHierarchySupertypesParams) ([]protocol.TypeHierarchyItem, error) { return nil, notImplemented("Supertypes") } -func (s *server) Symbol(context.Context, *protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error) { +func (s *Server) Symbol(context.Context, *protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error) { return nil, notImplemented("Symbol") } -func (s *server) TypeDefinition(context.Context, *protocol.TypeDefinitionParams) (protocol.Definition, error) { +func (s *Server) TypeDefinition(context.Context, *protocol.TypeDefinitionParams) (protocol.Definition, error) { return nil, notImplemented("TypeDefinition") } -func (s *server) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error) { +func (s *Server) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error) { return nil, notImplemented("WillCreateFiles") } -func (s *server) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error) { +func (s *Server) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error) { return nil, notImplemented("WillDeleteFiles") } -func (s *server) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, error) { +func (s *Server) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, error) { return nil, notImplemented("WillRenameFiles") } -func (s *server) WillSave(context.Context, *protocol.WillSaveTextDocumentParams) error { +func (s *Server) WillSave(context.Context, *protocol.WillSaveTextDocumentParams) error { return notImplemented("WillSave") } -func (s *server) WillSaveWaitUntil(context.Context, *protocol.WillSaveTextDocumentParams) ([]protocol.TextEdit, error) { +func (s *Server) WillSaveWaitUntil(context.Context, *protocol.WillSaveTextDocumentParams) ([]protocol.TextEdit, error) { return nil, notImplemented("WillSaveWaitUntil") } -func (s *server) WorkDoneProgressCancel(context.Context, *protocol.WorkDoneProgressCancelParams) error { +func (s *Server) WorkDoneProgressCancel(context.Context, *protocol.WorkDoneProgressCancelParams) error { return notImplemented("WorkDoneProgressCancel") } -func (s *server) Diagnostic(context.Context, *string) (*string, error) { +func (s *Server) Diagnostic(context.Context, *string) (*string, error) { return nil, notImplemented("Diagnostic") } -func (s *server) DiagnosticRefresh(context.Context) error { +func (s *Server) DiagnosticRefresh(context.Context) error { return notImplemented("DiagnosticRefresh") } -func (s *server) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnosticParams) (*protocol.WorkspaceDiagnosticReport, error) { +func (s *Server) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnosticParams) (*protocol.WorkspaceDiagnosticReport, error) { return nil, notImplemented("DiagnosticWorkspace") } -func (s *server) DidChangeWatchedFiles(context.Context, *protocol.DidChangeWatchedFilesParams) error { +func (s *Server) DidChangeWatchedFiles(context.Context, *protocol.DidChangeWatchedFilesParams) error { return notImplemented("DidChangeWatchedFiles") } -func (s *server) DidChangeWorkspaceFolders(context.Context, *protocol.DidChangeWorkspaceFoldersParams) error { +func (s *Server) DidChangeWorkspaceFolders(context.Context, *protocol.DidChangeWorkspaceFoldersParams) error { return notImplemented("DidChangeWorkspaceFolders") } -func (s *server) DidClose(context.Context, *protocol.DidCloseTextDocumentParams) error { +func (s *Server) DidClose(context.Context, *protocol.DidCloseTextDocumentParams) error { return notImplemented("DidClose") } -func (s *server) DidCreateFiles(context.Context, *protocol.CreateFilesParams) error { +func (s *Server) DidCreateFiles(context.Context, *protocol.CreateFilesParams) error { return notImplemented("DidCreateFiles") } -func (s *server) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error { +func (s *Server) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error { return notImplemented("DidDeleteFiles") } // DocumentLink is not implemented. // TODO(#13): Understand why the server capabilities includes documentlink. -func (s *server) DocumentLink(context.Context, *protocol.DocumentLinkParams) ([]protocol.DocumentLink, error) { +func (s *Server) DocumentLink(context.Context, *protocol.DocumentLinkParams) ([]protocol.DocumentLink, error) { return nil, nil } diff --git a/pkg/server/utils_test.go b/pkg/server/utils_test.go index b98bbf7..5069269 100644 --- a/pkg/server/utils_test.go +++ b/pkg/server/utils_test.go @@ -36,7 +36,7 @@ func absURI(t *testing.T, path string) protocol.DocumentURI { return protocol.URIFromPath(abs) } -func testServer(t *testing.T, stdlib []stdlib.Function) (server *server) { +func testServer(t *testing.T, stdlib []stdlib.Function) (server *Server) { t.Helper() stream := jsonrpc2.NewHeaderStream(utils.NewStdio(nil, fakeWriterCloser{io.Discard})) @@ -52,7 +52,7 @@ func testServer(t *testing.T, stdlib []stdlib.Function) (server *server) { return server } -func serverOpenTestFile(t require.TestingT, server *server, filename string) protocol.DocumentURI { +func serverOpenTestFile(t require.TestingT, server *Server, filename string) protocol.DocumentURI { fileContent, err := os.ReadFile(filename) require.NoError(t, err) @@ -70,7 +70,7 @@ func serverOpenTestFile(t require.TestingT, server *server, filename string) pro return uri } -func testServerWithFile(t *testing.T, stdlib []stdlib.Function, fileContent string) (server *server, fileURI protocol.DocumentURI) { +func testServerWithFile(t *testing.T, stdlib []stdlib.Function, fileContent string) (server *Server, fileURI protocol.DocumentURI) { t.Helper() server = testServer(t, stdlib) From 9d165e624d0c4c6abbba550c58a58ad4e7ce9653 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 6 Sep 2022 21:34:02 -0400 Subject: [PATCH 024/124] Add benchmark --- .github/workflows/bench.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/bench.yml diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml new file mode 100644 index 0000000..84a1c5f --- /dev/null +++ b/.github/workflows/bench.yml @@ -0,0 +1,34 @@ +name: go benchmark +# Do not run this workflow on pull request since this workflow has permission to modify contents. +on: + push: + branches: + - master + +permissions: + # deployments permission to deploy GitHub pages website + deployments: write + # contents permission to update benchmark contents in gh-pages branch + contents: write + +jobs: + benchmark: + name: Performance regression check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + # Run benchmark with `go test -bench` and stores the output to a file + - name: Run benchmark + run: go test ./... -bench . | tee output.txt + # gh-pages branch is updated and pushed automatically with extracted benchmark data + - name: Store benchmark result + uses: benchmark-action/github-action-benchmark@v1 + with: + name: jsonnet-language-server benchmark + tool: 'go' + output-file-path: output.txt + # Access token to deploy GitHub Pages branch + github-token: ${{ secrets.GITHUB_TOKEN }} + # Push and deploy GitHub pages branch automatically + auto-push: true \ No newline at end of file From 89b8e8a24bd6469db592cd6a189dee3486785f5b Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 6 Sep 2022 21:34:56 -0400 Subject: [PATCH 025/124] Wrong branch name... --- .github/workflows/bench.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 84a1c5f..9ec2cdd 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -3,7 +3,7 @@ name: go benchmark on: push: branches: - - master + - main permissions: # deployments permission to deploy GitHub pages website From 462c4b9fe074f0884c1992211e898e747338fe20 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 7 Sep 2022 06:46:13 -0400 Subject: [PATCH 026/124] Add benchstat action for PRs (#69) * Add benchstat action for PRs This will compare between PR and main * Check files + comment * Test * test * Post PR comment --- .github/workflows/bench.yml | 34 ------------- .github/workflows/benchstat-pr.yml | 82 ++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/bench.yml create mode 100644 .github/workflows/benchstat-pr.yml diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml deleted file mode 100644 index 9ec2cdd..0000000 --- a/.github/workflows/bench.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: go benchmark -# Do not run this workflow on pull request since this workflow has permission to modify contents. -on: - push: - branches: - - main - -permissions: - # deployments permission to deploy GitHub pages website - deployments: write - # contents permission to update benchmark contents in gh-pages branch - contents: write - -jobs: - benchmark: - name: Performance regression check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - # Run benchmark with `go test -bench` and stores the output to a file - - name: Run benchmark - run: go test ./... -bench . | tee output.txt - # gh-pages branch is updated and pushed automatically with extracted benchmark data - - name: Store benchmark result - uses: benchmark-action/github-action-benchmark@v1 - with: - name: jsonnet-language-server benchmark - tool: 'go' - output-file-path: output.txt - # Access token to deploy GitHub Pages branch - github-token: ${{ secrets.GITHUB_TOKEN }} - # Push and deploy GitHub pages branch automatically - auto-push: true \ No newline at end of file diff --git a/.github/workflows/benchstat-pr.yml b/.github/workflows/benchstat-pr.yml new file mode 100644 index 0000000..192e6df --- /dev/null +++ b/.github/workflows/benchstat-pr.yml @@ -0,0 +1,82 @@ +name: Benchstat + +on: [pull_request] + +jobs: + incoming: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version: '1.19' + - name: Checkout + uses: actions/checkout@v3 + - name: Benchmark + run: go test ./... -count=5 -run=Benchmark -bench=. | tee -a bench.txt + - name: Upload Benchmark + uses: actions/upload-artifact@v3 + with: + name: bench-incoming + path: bench.txt + current: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version: '1.19' + - name: Checkout + uses: actions/checkout@v3 + with: + ref: main + - name: Benchmark + run: go test ./... -count=5 -run=Benchmark -bench=. | tee -a bench.txt + - name: Upload Benchmark + uses: actions/upload-artifact@v3 + with: + name: bench-current + path: bench.txt + benchstat: + needs: [incoming, current] + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version: '1.19' + - name: Install benchstat + run: go install golang.org/x/perf/cmd/benchstat@latest + - name: Download Incoming + uses: actions/download-artifact@v3 + with: + name: bench-incoming + path: bench-incoming + - name: Download Current + uses: actions/download-artifact@v3 + with: + name: bench-current + path: bench-current + - name: Benchstat Results + run: benchstat bench-current/bench.txt bench-incoming/bench.txt | tee -a benchstat.txt + - name: Upload benchstat results + uses: actions/upload-artifact@v3 + with: + name: benchstat + path: benchstat.txt + - name: Read benchstat.txt + id: benchstat_content + uses: juliangruber/read-file-action@v1 + with: + path: ./benchstat.txt + - name: Post PR Comment + uses: thollander/actions-comment-pull-request@v1 + with: + message: | + Benchstat (compared to main): + + ``` + ${{ steps.benchstat_content.outputs.content }} + ``` + comment_includes: 'Benchstat (compared to main):' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 076cbeca46883e2200240574683f12d476209b60 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 7 Sep 2022 22:33:57 -0400 Subject: [PATCH 027/124] Support more functions (#70) Fetching attributes through builder pattern + mixins --- pkg/ast/processing/find_field.go | 17 ++++++-- pkg/server/configuration_test.go | 2 +- pkg/server/definition_test.go | 42 ++++++++++++++++--- .../goto-functions-advanced.libsonnet | 17 ++++++-- 4 files changed, 65 insertions(+), 13 deletions(-) diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index 96bfb22..649e336 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -144,7 +144,14 @@ func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonne if sameFileOnly && len(result) > 0 && result[0].Filename != stack.From.Loc().FileName { continue } - return result, err + if len(result) > 0 { + return result, err + } + + fieldNodes = append(fieldNodes, fieldNode.Target) + case *ast.Function: + stack.Push(fieldNode.Body) + desugaredObjs = append(desugaredObjs, findDesugaredObjectFromStack(stack)) case *ast.Import: filename := fieldNode.File.Value newObjs := findTopLevelObjectsInFile(vm, filename, string(fieldNode.Loc().File.DiagnosticFileName)) @@ -217,8 +224,12 @@ func findObjectFieldInObject(objectNode *ast.DesugaredObject, index string) *ast func findDesugaredObjectFromStack(stack *nodestack.NodeStack) *ast.DesugaredObject { for !stack.IsEmpty() { - if curr, ok := stack.Pop().(*ast.DesugaredObject); ok { - return curr + switch node := stack.Pop().(type) { + case *ast.DesugaredObject: + return node + case *ast.Binary: + stack.Push(node.Left) + stack.Push(node.Right) } } return nil diff --git a/pkg/server/configuration_test.go b/pkg/server/configuration_test.go index 59211e4..1357950 100644 --- a/pkg/server/configuration_test.go +++ b/pkg/server/configuration_test.go @@ -225,7 +225,7 @@ func TestConfiguration_Formatting(t *testing.T) { { name: "all settings", settings: map[string]interface{}{ - "log_level": "info", + "log_level": "error", "formatting": map[string]interface{}{ "Indent": 4, "MaxBlankLines": 10, diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 19ae461..540a383 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -741,22 +741,22 @@ var definitionTestCases = []definitionTestCase{ { name: "goto field through function", filename: "testdata/goto-functions-advanced.libsonnet", - position: protocol.Position{Line: 6, Character: 46}, + position: protocol.Position{Line: 15, Character: 48}, results: []definitionResult{{ targetRange: protocol.Range{ - Start: protocol.Position{Line: 2, Character: 2}, - End: protocol.Position{Line: 2, Character: 12}, + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 12}, }, targetSelectionRange: protocol.Range{ - Start: protocol.Position{Line: 2, Character: 2}, - End: protocol.Position{Line: 2, Character: 6}, + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 6}, }, }}, }, { name: "goto field through function-created object", filename: "testdata/goto-functions-advanced.libsonnet", - position: protocol.Position{Line: 8, Character: 52}, + position: protocol.Position{Line: 16, Character: 54}, results: []definitionResult{{ targetRange: protocol.Range{ Start: protocol.Position{Line: 2, Character: 2}, @@ -768,6 +768,36 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "goto field through builder pattern attribute", + filename: "testdata/goto-functions-advanced.libsonnet", + position: protocol.Position{Line: 17, Character: 67}, + results: []definitionResult{{ + targetRange: protocol.Range{ + Start: protocol.Position{Line: 5, Character: 4}, + End: protocol.Position{Line: 5, Character: 14}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 5, Character: 4}, + End: protocol.Position{Line: 5, Character: 8}, + }, + }}, + }, + { + name: "goto field through mixin attribute", + filename: "testdata/goto-functions-advanced.libsonnet", + position: protocol.Position{Line: 18, Character: 58}, + results: []definitionResult{{ + targetRange: protocol.Range{ + Start: protocol.Position{Line: 11, Character: 4}, + End: protocol.Position{Line: 11, Character: 14}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 11, Character: 4}, + End: protocol.Position{Line: 11, Character: 8}, + }, + }}, + }, } func TestDefinition(t *testing.T) { diff --git a/pkg/server/testdata/goto-functions-advanced.libsonnet b/pkg/server/testdata/goto-functions-advanced.libsonnet index 4c7455f..be4db78 100644 --- a/pkg/server/testdata/goto-functions-advanced.libsonnet +++ b/pkg/server/testdata/goto-functions-advanced.libsonnet @@ -1,10 +1,21 @@ local myfunc(arg1, arg2) = { arg1: arg1, arg2: arg2, + + builderPattern(arg3):: self { + arg3: arg3, + }, }; { - accessThroughFunc: myfunc('test', 'test').arg2, - funcCreatedObj: myfunc('test', 'test'), - accesThroughFuncCreatedObj: self.funcCreatedObj.arg2, + withMixin(arg4):: { + arg4: arg4, + }, + funcCreatedObj: myfunc('test1', 'test2').builderPattern('test3') + self.withMixin('test4'), + + accessThroughFunc: myfunc('test1', 'test2').arg1, + accessThroughFuncCreatedObj: self.funcCreatedObj.arg2, + accessBuilderPatternThroughFuncCreatedObj: self.funcCreatedObj.arg3, + accessMixinThroughFuncCreatedObj: self.funcCreatedObj.arg4, + } From 2961df88fd1a938a8a38d4fd06046809794c5b60 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 8 Sep 2022 07:05:59 -0400 Subject: [PATCH 028/124] Simplify code and prevent infinite loop (#71) There's a continue without a i++ there, this could possibly loop forever --- pkg/ast/processing/find_field.go | 43 +++++++++++++++----------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index 649e336..b32abcd 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -72,7 +72,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm return FindRangesFromIndexList(stack, indexList, vm) case *ast.Function: // If the function's body is an object, it means we can look for indexes within the function - if funcBody, ok := bodyNode.Body.(*ast.DesugaredObject); ok { + if funcBody := findChildDesugaredObject(bodyNode.Body); funcBody != nil { foundDesugaredObjects = append(foundDesugaredObjects, funcBody) } default: @@ -124,34 +124,29 @@ func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonne return nil, err } // If the reference is an object, add it directly to the list of objects to look in - if varReference, ok := varReference.(*ast.DesugaredObject); ok { + if varReference := findChildDesugaredObject(varReference); varReference != nil { desugaredObjs = append(desugaredObjs, varReference) } // If the reference is a function, and the body of that function is an object, add it to the list of objects to look in if varReference, ok := varReference.(*ast.Function); ok { - if funcBody, ok := varReference.Body.(*ast.DesugaredObject); ok { + if funcBody := findChildDesugaredObject(varReference.Body); funcBody != nil { desugaredObjs = append(desugaredObjs, funcBody) } } case *ast.DesugaredObject: - stack.Push(fieldNode) - desugaredObjs = append(desugaredObjs, findDesugaredObjectFromStack(stack)) + desugaredObjs = append(desugaredObjs, fieldNode) case *ast.Index: - tempStack := nodestack.NewNodeStack(fieldNode) - additionalIndexList := tempStack.BuildIndexList() - additionalIndexList = append(additionalIndexList, indexList...) + additionalIndexList := append(nodestack.NewNodeStack(fieldNode).BuildIndexList(), indexList...) result, err := FindRangesFromIndexList(stack, additionalIndexList, vm) - if sameFileOnly && len(result) > 0 && result[0].Filename != stack.From.Loc().FileName { - continue - } if len(result) > 0 { - return result, err + if !sameFileOnly || result[0].Filename == stack.From.Loc().FileName { + return result, err + } } fieldNodes = append(fieldNodes, fieldNode.Target) case *ast.Function: - stack.Push(fieldNode.Body) - desugaredObjs = append(desugaredObjs, findDesugaredObjectFromStack(stack)) + desugaredObjs = append(desugaredObjs, findChildDesugaredObject(fieldNode.Body)) case *ast.Import: filename := fieldNode.File.Value newObjs := findTopLevelObjectsInFile(vm, filename, string(fieldNode.Loc().File.DiagnosticFileName)) @@ -222,14 +217,16 @@ func findObjectFieldInObject(objectNode *ast.DesugaredObject, index string) *ast return nil } -func findDesugaredObjectFromStack(stack *nodestack.NodeStack) *ast.DesugaredObject { - for !stack.IsEmpty() { - switch node := stack.Pop().(type) { - case *ast.DesugaredObject: - return node - case *ast.Binary: - stack.Push(node.Left) - stack.Push(node.Right) +func findChildDesugaredObject(node ast.Node) *ast.DesugaredObject { + switch node := node.(type) { + case *ast.DesugaredObject: + return node + case *ast.Binary: + if res := findChildDesugaredObject(node.Left); res != nil { + return res + } + if res := findChildDesugaredObject(node.Right); res != nil { + return res } } return nil @@ -262,7 +259,7 @@ func findLHSDesugaredObject(stack *nodestack.NodeStack) (*ast.DesugaredObject, e case *ast.Var: bind := FindBindByIDViaStack(stack, lhsNode.Id) if bind != nil { - if bindBody, ok := bind.Body.(*ast.DesugaredObject); ok { + if bindBody := findChildDesugaredObject(bind.Body); bindBody != nil { return bindBody, nil } } From b2f74184bec118ce71aada35e60b8afe7869bbdd Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 8 Sep 2022 12:20:32 -0400 Subject: [PATCH 029/124] Add basic completion for `self` fields and locals (#72) * Fix benchstat Run sequentially to get good comparison * Add basic completion Supports `self` fields and locals Closes https://github.com/grafana/jsonnet-language-server/issues/3 * Oops, install benchstat --- .github/workflows/benchstat-pr.yml | 37 ++-- pkg/server/completion.go | 118 ++++++++++++- pkg/server/completion_test.go | 171 +++++++++++++++++-- pkg/server/definition_test.go | 2 +- pkg/server/testdata/test_basic_lib.libsonnet | 4 +- 5 files changed, 289 insertions(+), 43 deletions(-) diff --git a/.github/workflows/benchstat-pr.yml b/.github/workflows/benchstat-pr.yml index 192e6df..3bc1080 100644 --- a/.github/workflows/benchstat-pr.yml +++ b/.github/workflows/benchstat-pr.yml @@ -1,50 +1,43 @@ -name: Benchstat +name: benchstat on: [pull_request] jobs: - incoming: + benchstat: runs-on: ubuntu-latest steps: - name: Install Go uses: actions/setup-go@v3 with: go-version: '1.19' + + # Generate benchmark report for main branch - name: Checkout uses: actions/checkout@v3 + with: + ref: main - name: Benchmark run: go test ./... -count=5 -run=Benchmark -bench=. | tee -a bench.txt - name: Upload Benchmark uses: actions/upload-artifact@v3 with: - name: bench-incoming + name: bench-current path: bench.txt - current: - runs-on: ubuntu-latest - steps: - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: '1.19' + + # Generate benchmark report for the PR - name: Checkout uses: actions/checkout@v3 - with: - ref: main - name: Benchmark run: go test ./... -count=5 -run=Benchmark -bench=. | tee -a bench.txt - name: Upload Benchmark uses: actions/upload-artifact@v3 with: - name: bench-current + name: bench-incoming path: bench.txt - benchstat: - needs: [incoming, current] - runs-on: ubuntu-latest - steps: - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: '1.19' + + # Compare the two reports + - name: Checkout + uses: actions/checkout@v3 - name: Install benchstat run: go install golang.org/x/perf/cmd/benchstat@latest - name: Download Incoming @@ -79,4 +72,4 @@ jobs: ${{ steps.benchstat_content.outputs.content }} ``` comment_includes: 'Benchstat (compared to main):' - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 832c627..69b2f72 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -4,8 +4,13 @@ import ( "context" "strings" + "github.com/google/go-jsonnet/ast" + "github.com/grafana/jsonnet-language-server/pkg/ast/processing" + "github.com/grafana/jsonnet-language-server/pkg/nodestack" + position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/grafana/jsonnet-language-server/pkg/utils" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" + log "github.com/sirupsen/logrus" ) func (s *Server) Completion(ctx context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error) { @@ -14,14 +19,98 @@ func (s *Server) Completion(ctx context.Context, params *protocol.CompletionPara return nil, utils.LogErrorf("Completion: %s: %w", errorRetrievingDocument, err) } - items := []protocol.CompletionItem{} + line := getCompletionLine(doc.item.Text, params.Position) + + // Short-circuit if it's a stdlib completion + if items := s.completionStdLib(line); len(items) > 0 { + return &protocol.CompletionList{IsIncomplete: false, Items: items}, nil + } + + // Otherwise, parse the AST and search for completions + if doc.ast == nil { + log.Errorf("Completion: document was never successfully parsed, can't autocomplete") + return nil, nil + } + + searchStack, err := processing.FindNodeByPosition(doc.ast, position.ProtocolToAST(params.Position)) + if err != nil { + log.Errorf("Completion: error computing node: %v", err) + return nil, nil + } + + items := s.completionFromStack(line, searchStack) + return &protocol.CompletionList{IsIncomplete: false, Items: items}, nil +} - line := strings.Split(doc.item.Text, "\n")[params.Position.Line] - charIndex := int(params.Position.Character) +func getCompletionLine(fileContent string, position protocol.Position) string { + line := strings.Split(fileContent, "\n")[position.Line] + charIndex := int(position.Character) if charIndex > len(line) { charIndex = len(line) } line = line[:charIndex] + return line +} + +func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack) []protocol.CompletionItem { + var items []protocol.CompletionItem + + lineWords := strings.Split(line, " ") + lastWord := lineWords[len(lineWords)-1] + + indexes := strings.Split(lastWord, ".") + firstIndex, indexes := indexes[0], indexes[1:] + + if firstIndex == "self" && len(indexes) > 0 { + fieldPrefix := indexes[0] + + for !stack.IsEmpty() { + curr := stack.Pop() + + switch curr := curr.(type) { + case *ast.Binary: + stack.Push(curr.Left) + stack.Push(curr.Right) + case *ast.DesugaredObject: + for _, field := range curr.Fields { + label := processing.FieldNameToString(field.Name) + // Ignore fields that don't match the prefix + if !strings.HasPrefix(label, fieldPrefix) { + continue + } + + // Ignore the current field + if strings.Contains(line, label+":") { + continue + } + + items = append(items, createCompletionItem(label, "self."+label, protocol.FieldCompletion, field.Body)) + } + } + } + } else if len(indexes) == 0 { + // firstIndex is a variable (local) completion + for !stack.IsEmpty() { + if curr, ok := stack.Pop().(*ast.Local); ok { + for _, bind := range curr.Binds { + label := string(bind.Variable) + + if !strings.HasPrefix(label, firstIndex) { + continue + } + + items = append(items, createCompletionItem(label, label, protocol.VariableCompletion, bind.Body)) + } + } + } + } + + return items +} + +func (s *Server) completionStdLib(line string) []protocol.CompletionItem { + items := []protocol.CompletionItem{} + stdIndex := strings.LastIndex(line, "std.") if stdIndex != -1 { userInput := line[stdIndex+4:] @@ -55,5 +144,26 @@ func (s *Server) Completion(ctx context.Context, params *protocol.CompletionPara items = append(items, funcContains...) } - return &protocol.CompletionList{IsIncomplete: false, Items: items}, nil + return items +} + +func createCompletionItem(label, detail string, kind protocol.CompletionItemKind, body ast.Node) protocol.CompletionItem { + insertText := label + if asFunc, ok := body.(*ast.Function); ok { + kind = protocol.FunctionCompletion + params := []string{} + for _, param := range asFunc.Parameters { + params = append(params, string(param.Name)) + } + paramsString := "(" + strings.Join(params, ", ") + ")" + detail += paramsString + insertText += paramsString + } + + return protocol.CompletionItem{ + Label: label, + Detail: detail, + Kind: kind, + InsertText: insertText, + } } diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index d3f324c..9a2634b 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -3,11 +3,14 @@ package server import ( "context" "fmt" + "os" + "strings" "testing" "github.com/grafana/jsonnet-language-server/pkg/stdlib" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) var ( @@ -54,11 +57,11 @@ var ( } ) -func TestCompletion(t *testing.T) { +func TestCompletionStdLib(t *testing.T) { var testCases = []struct { name string line string - expected protocol.CompletionList + expected *protocol.CompletionList expectedErr error }{ { @@ -80,7 +83,7 @@ func TestCompletion(t *testing.T) { { name: "std: all functions", line: "all_std_funcs: std.", - expected: protocol.CompletionList{ + expected: &protocol.CompletionList{ Items: []protocol.CompletionItem{otherMinItem, maxItem, minItem}, IsIncomplete: false, }, @@ -88,7 +91,7 @@ func TestCompletion(t *testing.T) { { name: "std: starting with aaa", line: "std_funcs_starting_with: std.aaa", - expected: protocol.CompletionList{ + expected: &protocol.CompletionList{ Items: []protocol.CompletionItem{otherMinItem}, IsIncomplete: false, }, @@ -96,7 +99,7 @@ func TestCompletion(t *testing.T) { { name: "std: partial match", line: "partial_match: std.ther", - expected: protocol.CompletionList{ + expected: &protocol.CompletionList{ Items: []protocol.CompletionItem{otherMinItem}, IsIncomplete: false, }, @@ -104,7 +107,7 @@ func TestCompletion(t *testing.T) { { name: "std: case insensitive", line: "case_insensitive: std.MAX", - expected: protocol.CompletionList{ + expected: &protocol.CompletionList{ Items: []protocol.CompletionItem{maxItem}, IsIncomplete: false, }, @@ -112,7 +115,7 @@ func TestCompletion(t *testing.T) { { name: "std: submatch + startswith", line: "submatch_and_startwith: std.Min", - expected: protocol.CompletionList{ + expected: &protocol.CompletionList{ Items: []protocol.CompletionItem{minItem, otherMinItem}, IsIncomplete: false, }, @@ -122,13 +125,6 @@ func TestCompletion(t *testing.T) { t.Run(tc.name, func(t *testing.T) { document := fmt.Sprintf("{ %s }", tc.line) - if tc.expected.Items == nil { - tc.expected = protocol.CompletionList{ - IsIncomplete: false, - Items: []protocol.CompletionItem{}, - } - } - server, fileURI := testServerWithFile(t, completionTestStdlib, document) result, err := server.Completion(context.TODO(), &protocol.CompletionParams{ @@ -142,6 +138,153 @@ func TestCompletion(t *testing.T) { } else { assert.NoError(t, err) } + assert.Equal(t, tc.expected, result) + }) + } +} + +func TestCompletion(t *testing.T) { + var testCases = []struct { + name string + filename string + replaceString, replaceByString string + expected protocol.CompletionList + }{ + { + name: "self function", + filename: "testdata/test_basic_lib.libsonnet", + replaceString: "self.greet('Zack')", + replaceByString: "self.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{{ + Label: "greet", + Kind: protocol.FunctionCompletion, + Detail: "self.greet(name)", + InsertText: "greet(name)", + }}, + }, + }, + { + name: "self function with bad first letter letter", + filename: "testdata/test_basic_lib.libsonnet", + replaceString: "self.greet('Zack')", + replaceByString: "self.h", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: nil, + }, + }, + { + name: "self function with first letter", + filename: "testdata/test_basic_lib.libsonnet", + replaceString: "self.greet('Zack')", + replaceByString: "self.g", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{{ + Label: "greet", + Kind: protocol.FunctionCompletion, + Detail: "self.greet(name)", + InsertText: "greet(name)", + }}, + }, + }, + { + name: "autocomplete through binary", + filename: "testdata/goto-basic-object.jsonnet", + replaceString: "bar: 'foo',", + replaceByString: "bar: self.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{{ + Label: "foo", + Kind: protocol.FieldCompletion, + Detail: "self.foo", + InsertText: "foo", + }}, + }, + }, + { + name: "autocomplete locals", + filename: "testdata/goto-basic-object.jsonnet", + replaceString: "bar: 'foo',", + replaceByString: "bar: ", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{{ + Label: "somevar", + Kind: protocol.VariableCompletion, + Detail: "somevar", + InsertText: "somevar", + }}, + }, + }, + { + name: "autocomplete locals: good prefix", + filename: "testdata/goto-basic-object.jsonnet", + replaceString: "bar: 'foo',", + replaceByString: "bar: some", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{{ + Label: "somevar", + Kind: protocol.VariableCompletion, + Detail: "somevar", + InsertText: "somevar", + }}, + }, + }, + { + name: "autocomplete locals: bad prefix", + filename: "testdata/goto-basic-object.jsonnet", + replaceString: "bar: 'foo',", + replaceByString: "bar: bad", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: nil, + }, + }, + } + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + content, err := os.ReadFile(tc.filename) + require.NoError(t, err) + + server, fileURI := testServerWithFile(t, completionTestStdlib, string(content)) + + replacedContent := strings.ReplaceAll(string(content), tc.replaceString, tc.replaceByString) + + err = server.DidChange(context.Background(), &protocol.DidChangeTextDocumentParams{ + ContentChanges: []protocol.TextDocumentContentChangeEvent{{ + Text: replacedContent, + }}, + TextDocument: protocol.VersionedTextDocumentIdentifier{ + TextDocumentIdentifier: protocol.TextDocumentIdentifier{URI: fileURI}, + Version: 2, + }, + }) + require.NoError(t, err) + + cursorPosition := protocol.Position{} + for _, line := range strings.Split(replacedContent, "\n") { + if strings.Contains(line, tc.replaceByString) { + cursorPosition.Character = uint32(strings.Index(line, tc.replaceByString) + len(tc.replaceByString)) + break + } + cursorPosition.Line++ + } + if cursorPosition.Character == 0 { + t.Fatal("Could not find cursor position for test. Replace probably didn't work") + } + + result, err := server.Completion(context.TODO(), &protocol.CompletionParams{ + TextDocumentPositionParams: protocol.TextDocumentPositionParams{ + TextDocument: protocol.TextDocumentIdentifier{URI: fileURI}, + Position: cursorPosition, + }, + }) + require.NoError(t, err) assert.Equal(t, &tc.expected, result) }) } diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 540a383..28c20fc 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -109,7 +109,7 @@ var definitionTestCases = []definitionTestCase{ results: []definitionResult{{ targetRange: protocol.Range{ Start: protocol.Position{Line: 1, Character: 2}, - End: protocol.Position{Line: 3, Character: 16}, + End: protocol.Position{Line: 3, Character: 19}, }, targetSelectionRange: protocol.Range{ Start: protocol.Position{Line: 1, Character: 2}, diff --git a/pkg/server/testdata/test_basic_lib.libsonnet b/pkg/server/testdata/test_basic_lib.libsonnet index abb007a..04a8a97 100644 --- a/pkg/server/testdata/test_basic_lib.libsonnet +++ b/pkg/server/testdata/test_basic_lib.libsonnet @@ -1,6 +1,6 @@ { - greet(x):: + greet(name):: local greeting = 'Hello, '; - greeting + x, + greeting + name, message: self.greet('Zack'), } From 7938ac0b6bc46c2abcdb4926c298e5bf8d6b4076 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Mon, 12 Sep 2022 15:31:29 -0400 Subject: [PATCH 030/124] Fix index access panic (#74) * Fix index access panic Oops, the second "if" crashes * Remove empty line --- pkg/server/server.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/server/server.go b/pkg/server/server.go index 8642388..c165332 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -93,10 +93,7 @@ func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDo splitOldText := strings.Split(oldText, "\n") splitNewText := strings.Split(doc.item.Text, "\n") for index, oldLine := range splitOldText { - if index >= len(splitNewText) { - doc.linesChangedSinceAST[index] = true - } - if oldLine != splitNewText[index] { + if index >= len(splitNewText) || oldLine != splitNewText[index] { doc.linesChangedSinceAST[index] = true } } From 3df7d72c11aa3bbebadb406fef6316d4cad9f444 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Mon, 12 Sep 2022 16:18:38 -0400 Subject: [PATCH 031/124] Update Nix --- nix/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/default.nix b/nix/default.nix index 210d4ee..68a54b6 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -3,7 +3,7 @@ with pkgs; buildGoModule rec { pname = "jsonnet-language-server"; - version = "0.8.0"; + version = "0.9.1"; ldflags = '' -X main.version=${version} From ea39b882073315b5d6c47cf56aac9c0513088ada Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Sep 2022 20:28:44 -0400 Subject: [PATCH 032/124] Bump github.com/JohannesKaufmann/html-to-markdown from 1.3.5 to 1.3.6 (#75) Bumps [github.com/JohannesKaufmann/html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown) from 1.3.5 to 1.3.6. - [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases) - [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v1.3.5...v1.3.6) --- updated-dependencies: - dependency-name: github.com/JohannesKaufmann/html-to-markdown dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 10 +++++----- go.sum | 43 +++++++++++++++++++++++++------------------ 2 files changed, 30 insertions(+), 23 deletions(-) diff --git a/go.mod b/go.mod index bdefb38..7807599 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/grafana/jsonnet-language-server go 1.19 require ( - github.com/JohannesKaufmann/html-to-markdown v1.3.5 + github.com/JohannesKaufmann/html-to-markdown v1.3.6 github.com/google/go-jsonnet v0.18.0 github.com/grafana/tanka v0.22.1 github.com/hexops/gotextdiff v1.0.3 @@ -18,8 +18,8 @@ require ( github.com/Masterminds/semver v1.5.0 // indirect github.com/Masterminds/semver/v3 v3.1.1 // indirect github.com/Masterminds/sprig/v3 v3.2.2 // indirect - github.com/PuerkitoBio/goquery v1.5.1 // indirect - github.com/andybalholm/cascadia v1.1.0 // indirect + github.com/PuerkitoBio/goquery v1.8.0 // indirect + github.com/andybalholm/cascadia v1.3.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fatih/color v1.13.0 // indirect github.com/gobwas/glob v0.2.3 // indirect @@ -37,8 +37,8 @@ require ( github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.4.0 // indirect golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect - golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect - golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect + golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect + golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 5083893..5bf5361 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/JohannesKaufmann/html-to-markdown v1.3.5 h1:FrP3D5IqpxkNOk97TvbFduSo0JQKs/ZpgjuxpmAEFRA= -github.com/JohannesKaufmann/html-to-markdown v1.3.5/go.mod h1:JNSClIRYICFDiFhw6RBhBeWGnMSSKVZ6sPQA+TK4tyM= +github.com/JohannesKaufmann/html-to-markdown v1.3.6 h1:i3Ma4RmIU97gqArbxZXbFqbWKm7XtImlMwVNUouQ7Is= +github.com/JohannesKaufmann/html-to-markdown v1.3.6/go.mod h1:Ol3Jv/xw8jt8qsaLeSh/6DBBw4ZBJrTqrOu3wbbUUg8= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= @@ -8,10 +8,10 @@ github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030I github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8= github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= -github.com/PuerkitoBio/goquery v1.5.1 h1:PSPBGne8NIUWw+/7vFBV+kG2J/5MOjbzc7154OaKCSE= -github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc= -github.com/andybalholm/cascadia v1.1.0 h1:BuuO6sSfQNFRu1LppgbD25Hr2vLYW25JvxHs5zzsLTo= -github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y= +github.com/PuerkitoBio/goquery v1.8.0 h1:PJTF7AmFCFKk1N6V6jmKfrNH9tV5pNE6lZMkG0gta/U= +github.com/PuerkitoBio/goquery v1.8.0/go.mod h1:ypIiRMtY7COPGk+I/YbZLbxsxn9g5ejnI2HSMtkjZvI= +github.com/andybalholm/cascadia v1.3.1 h1:nhxRkql1kdYCc8Snf7D5/D3spOX+dBgjA6u8x004T2c= +github.com/andybalholm/cascadia v1.3.1/go.mod h1:R4bJ1UQfqADjvDa4P6HZHLh/3OxWWEqc0Sk8XGwHqvA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -65,11 +65,12 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/sebdah/goldie/v2 v2.5.1 h1:hh70HvG4n3T3MNRJN2z/baxPR8xutxo7JVxyi2svl+s= -github.com/sebdah/goldie/v2 v2.5.1/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI= +github.com/sebdah/goldie/v2 v2.5.3 h1:9ES/mNN+HNUbNWpVAlrzuZ7jE+Nrczbj8uFRjM7624Y= +github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= +github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= @@ -89,27 +90,34 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/yuin/goldmark v1.2.0 h1:WOOcyaJPlzb8fZ8TloxFe8QZkhOOJx87leDa9MIT9dc= -github.com/yuin/goldmark v1.2.0/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.4.14 h1:jwww1XQfhJN7Zm+/a1ZA/3WUiEBEroYFNTiV3dKwM8U= +github.com/yuin/goldmark v1.4.14/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA= golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210916014120-12bc252f5db8/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591 h1:D0B/7al0LLrVC8aWF4+oxpv/m8bc7ViFfVS8/gXGdqI= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 h1:WIoqL4EROvwiPdUtaip4VcDdpZ4kha7wBWZrbVKCIZg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -118,7 +126,6 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= From 4b86f9db64b5c00de98850e883c5712ce15d5bc6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 08:24:34 -0400 Subject: [PATCH 033/124] Bump github.com/grafana/tanka from 0.22.1 to 0.23.1 (#76) * Bump github.com/grafana/tanka from 0.22.1 to 0.23.1 Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.22.1 to 0.23.1. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.22.1...v0.23.1) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Remove benchstat workflow. Annoying, bad idea Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Duchesne --- .github/workflows/benchstat-pr.yml | 75 ------------------------------ .github/workflows/test.yml | 2 +- go.mod | 2 +- go.sum | 4 +- 4 files changed, 4 insertions(+), 79 deletions(-) delete mode 100644 .github/workflows/benchstat-pr.yml diff --git a/.github/workflows/benchstat-pr.yml b/.github/workflows/benchstat-pr.yml deleted file mode 100644 index 3bc1080..0000000 --- a/.github/workflows/benchstat-pr.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: benchstat - -on: [pull_request] - -jobs: - benchstat: - runs-on: ubuntu-latest - steps: - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: '1.19' - - # Generate benchmark report for main branch - - name: Checkout - uses: actions/checkout@v3 - with: - ref: main - - name: Benchmark - run: go test ./... -count=5 -run=Benchmark -bench=. | tee -a bench.txt - - name: Upload Benchmark - uses: actions/upload-artifact@v3 - with: - name: bench-current - path: bench.txt - - # Generate benchmark report for the PR - - name: Checkout - uses: actions/checkout@v3 - - name: Benchmark - run: go test ./... -count=5 -run=Benchmark -bench=. | tee -a bench.txt - - name: Upload Benchmark - uses: actions/upload-artifact@v3 - with: - name: bench-incoming - path: bench.txt - - # Compare the two reports - - name: Checkout - uses: actions/checkout@v3 - - name: Install benchstat - run: go install golang.org/x/perf/cmd/benchstat@latest - - name: Download Incoming - uses: actions/download-artifact@v3 - with: - name: bench-incoming - path: bench-incoming - - name: Download Current - uses: actions/download-artifact@v3 - with: - name: bench-current - path: bench-current - - name: Benchstat Results - run: benchstat bench-current/bench.txt bench-incoming/bench.txt | tee -a benchstat.txt - - name: Upload benchstat results - uses: actions/upload-artifact@v3 - with: - name: benchstat - path: benchstat.txt - - name: Read benchstat.txt - id: benchstat_content - uses: juliangruber/read-file-action@v1 - with: - path: ./benchstat.txt - - name: Post PR Comment - uses: thollander/actions-comment-pull-request@v1 - with: - message: | - Benchstat (compared to main): - - ``` - ${{ steps.benchstat_content.outputs.content }} - ``` - comment_includes: 'Benchstat (compared to main):' - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2123e0..61c8d23 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,5 +12,5 @@ jobs: - uses: actions/setup-go@v2 with: go-version: '1.19' - - run: go test ./... + - run: go test ./... -bench=. -benchmem \ No newline at end of file diff --git a/go.mod b/go.mod index 7807599..8834aa0 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/JohannesKaufmann/html-to-markdown v1.3.6 github.com/google/go-jsonnet v0.18.0 - github.com/grafana/tanka v0.22.1 + github.com/grafana/tanka v0.23.1 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 diff --git a/go.sum b/go.sum index 5bf5361..8cc41e3 100644 --- a/go.sum +++ b/go.sum @@ -26,8 +26,8 @@ github.com/google/go-jsonnet v0.18.0/go.mod h1:C3fTzyVJDslXdiTqw/bTFk7vSGyCtH3MG github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.22.1 h1:OssU78lA1skUXac4+R1ur9wbfp8m0Shvmhn2gAyoiuk= -github.com/grafana/tanka v0.22.1/go.mod h1:B6Tgi1YHOfym1FOM1HOXKyOnCjtG/8imTav6vwj3C38= +github.com/grafana/tanka v0.23.1 h1:yRiToCwr5KgOz5H0U6ytsq2j0qbhg/VChXS8mbNTa7c= +github.com/grafana/tanka v0.23.1/go.mod h1:2ihsickzs4quqt9kQ+jAQ7PPeBk4TaBFkABWxSzMEU8= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= From 008c7bf924498fb711a2a078a4f01b9fb8e84685 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 12 Oct 2022 15:20:08 -0400 Subject: [PATCH 034/124] Find definitions through function applies (#77) Started in https://github.com/grafana/jsonnet-language-server/pull/63 and https://github.com/grafana/jsonnet-language-server/pull/70 I think this now covers all (or most) cases Most of this PR is just tests, since the missing code was just missing a few cases in switch cases --- pkg/ast/processing/find_field.go | 2 +- pkg/ast/processing/top_level_objects.go | 2 + pkg/nodestack/nodestack.go | 4 +- pkg/server/definition_test.go | 103 ++++++++++++++++-- .../testdata/goto-root-function-lib.libsonnet | 7 ++ .../testdata/goto-root-function.jsonnet | 13 +++ 6 files changed, 120 insertions(+), 11 deletions(-) create mode 100644 pkg/server/testdata/goto-root-function-lib.libsonnet create mode 100644 pkg/server/testdata/goto-root-function.jsonnet diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index b32abcd..a44f0e9 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -66,7 +66,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm case *ast.Import: filename := bodyNode.File.Value foundDesugaredObjects = findTopLevelObjectsInFile(vm, filename, "") - case *ast.Index: + case *ast.Index, *ast.Apply: tempStack := nodestack.NewNodeStack(bodyNode) indexList = append(tempStack.BuildIndexList(), indexList...) return FindRangesFromIndexList(stack, indexList, vm) diff --git a/pkg/ast/processing/top_level_objects.go b/pkg/ast/processing/top_level_objects.go index 0d53869..859f3b5 100644 --- a/pkg/ast/processing/top_level_objects.go +++ b/pkg/ast/processing/top_level_objects.go @@ -55,6 +55,8 @@ func findTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.Desu continue } stack.Push(varReference) + case *ast.Function: + stack.Push(curr.Body) } } return objects diff --git a/pkg/nodestack/nodestack.go b/pkg/nodestack/nodestack.go index f901468..d215c63 100644 --- a/pkg/nodestack/nodestack.go +++ b/pkg/nodestack/nodestack.go @@ -56,9 +56,7 @@ func (s *NodeStack) BuildIndexList() []string { curr := s.Pop() switch curr := curr.(type) { case *ast.Apply: - if target, ok := curr.Target.(*ast.Var); ok { - indexList = append(indexList, string(target.Id)) - } + s.Push(curr.Target) case *ast.SuperIndex: s.Push(curr.Index) indexList = append(indexList, "super") diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 28c20fc..9883209 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -798,6 +798,102 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "goto attribute of root-function library", + filename: "testdata/goto-root-function.jsonnet", + position: protocol.Position{Line: 5, Character: 70}, + results: []definitionResult{{ + targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 22}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 11}, + }, + }}, + }, + { + name: "goto attribute of root-function library through local import", + filename: "testdata/goto-root-function.jsonnet", + position: protocol.Position{Line: 6, Character: 28}, + results: []definitionResult{{ + targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 22}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 11}, + }, + }}, + }, + { + name: "goto attribute of root-function library through local resolved import", + filename: "testdata/goto-root-function.jsonnet", + position: protocol.Position{Line: 7, Character: 36}, + results: []definitionResult{{ + targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 22}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 11}, + }, + }}, + }, + { + name: "goto nested attribute of root-function library", + filename: "testdata/goto-root-function.jsonnet", + position: protocol.Position{Line: 9, Character: 98}, + results: []definitionResult{{ + targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 4, Character: 4}, + End: protocol.Position{Line: 4, Character: 36}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 4, Character: 4}, + End: protocol.Position{Line: 4, Character: 19}, + }, + }}, + }, + { + name: "goto nested attribute of root-function library through local import", + filename: "testdata/goto-root-function.jsonnet", + position: protocol.Position{Line: 10, Character: 55}, + results: []definitionResult{{ + targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 4, Character: 4}, + End: protocol.Position{Line: 4, Character: 36}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 4, Character: 4}, + End: protocol.Position{Line: 4, Character: 19}, + }, + }}, + }, + { + name: "goto nested attribute of root-function library through local resolved import", + filename: "testdata/goto-root-function.jsonnet", + position: protocol.Position{Line: 11, Character: 64}, + results: []definitionResult{{ + targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 4, Character: 4}, + End: protocol.Position{Line: 4, Character: 36}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 4, Character: 4}, + End: protocol.Position{Line: 4, Character: 19}, + }, + }}, + }, } func TestDefinition(t *testing.T) { @@ -891,13 +987,6 @@ func TestDefinitionFail(t *testing.T) { position: protocol.Position{Line: 0, Character: 1}, expected: fmt.Errorf("cannot find definition"), }, - - { - name: "goto range index fails", - filename: "testdata/goto-local-function.libsonnet", - position: protocol.Position{Line: 15, Character: 57}, - expected: fmt.Errorf("unexpected node type when finding bind for 'ports': *ast.Apply"), - }, { name: "goto super fails as no LHS object exists", filename: "testdata/goto-local-function.libsonnet", diff --git a/pkg/server/testdata/goto-root-function-lib.libsonnet b/pkg/server/testdata/goto-root-function-lib.libsonnet new file mode 100644 index 0000000..41add8c --- /dev/null +++ b/pkg/server/testdata/goto-root-function-lib.libsonnet @@ -0,0 +1,7 @@ +function(attribute) { + attribute: attribute, + + nestedFunc(nestedAttribute):: { + nestedAttribute: nestedAttribute, + }, +} diff --git a/pkg/server/testdata/goto-root-function.jsonnet b/pkg/server/testdata/goto-root-function.jsonnet new file mode 100644 index 0000000..9eb4f5b --- /dev/null +++ b/pkg/server/testdata/goto-root-function.jsonnet @@ -0,0 +1,13 @@ +local lib = import 'goto-root-function-lib.libsonnet'; +local libResolved = (import 'goto-root-function-lib.libsonnet')('test'); + +{ + + fromImport: (import 'goto-root-function-lib.libsonnet')('test').attribute, + fromLib: lib('test').attribute, + fromResolvedLib: libResolved.attribute, + + nestedFromImport: (import 'goto-root-function-lib.libsonnet')('test').nestedFunc('test').nestedAttribute, + nestedFromLib: lib('test').nestedFunc('test').nestedAttribute, + nestedFromResolvedLib: libResolved.nestedFunc('test').nestedAttribute, +} From 81ab873020b5a224bb7326f889e70535e7431418 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 20 Oct 2022 12:27:05 -0400 Subject: [PATCH 035/124] Completion from imports: Basic cases (#78) * Completion from imports: Basic cases Progress towards https://github.com/grafana/jsonnet-language-server/issues/5 Logic is starting to leak out of the processing lib as I haven't found an interface that makes sense for this Some of this should probably be re-architected. However, I believe it is good enough for now and tests are in-place if we want to refactor a bit * Better structure, fix lint * Add unsupported case --- pkg/ast/processing/find_field.go | 20 ++--- pkg/ast/processing/top_level_objects.go | 8 +- pkg/server/completion.go | 112 +++++++++++++++++------- pkg/server/completion_test.go | 41 +++++++++ 4 files changed, 133 insertions(+), 48 deletions(-) diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index a44f0e9..efc2928 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -32,14 +32,14 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm if _, ok := tmpStack.Peek().(*ast.Binary); ok { tmpStack.Pop() } - foundDesugaredObjects = filterSelfScope(findTopLevelObjects(tmpStack, vm)) + foundDesugaredObjects = filterSelfScope(FindTopLevelObjects(tmpStack, vm)) case start == "std": return nil, fmt.Errorf("cannot get definition of std lib") case start == "$": sameFileOnly = true - foundDesugaredObjects = findTopLevelObjects(nodestack.NewNodeStack(stack.From), vm) + foundDesugaredObjects = FindTopLevelObjects(nodestack.NewNodeStack(stack.From), vm) case strings.Contains(start, "."): - foundDesugaredObjects = findTopLevelObjectsInFile(vm, start, "") + foundDesugaredObjects = FindTopLevelObjectsInFile(vm, start, "") default: // Get ast.DesugaredObject at variable definition by getting bind then setting ast.DesugaredObject @@ -62,10 +62,10 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm foundDesugaredObjects = append(foundDesugaredObjects, bodyNode) case *ast.Self: tmpStack := nodestack.NewNodeStack(stack.From) - foundDesugaredObjects = findTopLevelObjects(tmpStack, vm) + foundDesugaredObjects = FindTopLevelObjects(tmpStack, vm) case *ast.Import: filename := bodyNode.File.Value - foundDesugaredObjects = findTopLevelObjectsInFile(vm, filename, "") + foundDesugaredObjects = FindTopLevelObjectsInFile(vm, filename, "") case *ast.Index, *ast.Apply: tempStack := nodestack.NewNodeStack(bodyNode) indexList = append(tempStack.BuildIndexList(), indexList...) @@ -116,10 +116,10 @@ func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonne switch fieldNode := fieldNode.(type) { case *ast.Apply: // Add the target of the Apply to the list of field nodes to look for - // The target is a function and will be found by findVarReference on the next loop + // The target is a function and will be found by FindVarReference on the next loop fieldNodes = append(fieldNodes, fieldNode.Target) case *ast.Var: - varReference, err := findVarReference(fieldNode, vm) + varReference, err := FindVarReference(fieldNode, vm) if err != nil { return nil, err } @@ -149,7 +149,7 @@ func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonne desugaredObjs = append(desugaredObjs, findChildDesugaredObject(fieldNode.Body)) case *ast.Import: filename := fieldNode.File.Value - newObjs := findTopLevelObjectsInFile(vm, filename, string(fieldNode.Loc().File.DiagnosticFileName)) + newObjs := FindTopLevelObjectsInFile(vm, filename, string(fieldNode.Loc().File.DiagnosticFileName)) desugaredObjs = append(desugaredObjs, newObjs...) } i++ @@ -232,9 +232,9 @@ func findChildDesugaredObject(node ast.Node) *ast.DesugaredObject { return nil } -// findVarReference finds the object that the variable is referencing +// FindVarReference finds the object that the variable is referencing // To do so, we get the stack where the var is used and search that stack for the var's definition -func findVarReference(varNode *ast.Var, vm *jsonnet.VM) (ast.Node, error) { +func FindVarReference(varNode *ast.Var, vm *jsonnet.VM) (ast.Node, error) { varFileNode, _, _ := vm.ImportAST("", varNode.LocRange.FileName) varStack, err := FindNodeByPosition(varFileNode, varNode.Loc().Begin) if err != nil { diff --git a/pkg/ast/processing/top_level_objects.go b/pkg/ast/processing/top_level_objects.go index 859f3b5..d0a2ad8 100644 --- a/pkg/ast/processing/top_level_objects.go +++ b/pkg/ast/processing/top_level_objects.go @@ -9,18 +9,18 @@ import ( var fileTopLevelObjectsCache = make(map[string][]*ast.DesugaredObject) -func findTopLevelObjectsInFile(vm *jsonnet.VM, filename, importedFrom string) []*ast.DesugaredObject { +func FindTopLevelObjectsInFile(vm *jsonnet.VM, filename, importedFrom string) []*ast.DesugaredObject { cacheKey := importedFrom + ":" + filename if _, ok := fileTopLevelObjectsCache[cacheKey]; !ok { rootNode, _, _ := vm.ImportAST(importedFrom, filename) - fileTopLevelObjectsCache[cacheKey] = findTopLevelObjects(nodestack.NewNodeStack(rootNode), vm) + fileTopLevelObjectsCache[cacheKey] = FindTopLevelObjects(nodestack.NewNodeStack(rootNode), vm) } return fileTopLevelObjectsCache[cacheKey] } // Find all ast.DesugaredObject's from NodeStack -func findTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.DesugaredObject { +func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.DesugaredObject { var objects []*ast.DesugaredObject for !stack.IsEmpty() { curr := stack.Pop() @@ -49,7 +49,7 @@ func findTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.Desu } } case *ast.Var: - varReference, err := findVarReference(curr, vm) + varReference, err := FindVarReference(curr, vm) if err != nil { log.WithError(err).Errorf("Error finding var reference, ignoring this node") continue diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 69b2f72..47b09b3 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -4,7 +4,9 @@ import ( "context" "strings" + "github.com/google/go-jsonnet" "github.com/google/go-jsonnet/ast" + "github.com/google/go-jsonnet/toolutils" "github.com/grafana/jsonnet-language-server/pkg/ast/processing" "github.com/grafana/jsonnet-language-server/pkg/nodestack" position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" @@ -38,7 +40,9 @@ func (s *Server) Completion(ctx context.Context, params *protocol.CompletionPara return nil, nil } - items := s.completionFromStack(line, searchStack) + vm := s.getVM(doc.item.URI.SpanURI().Filename()) + + items := s.completionFromStack(line, searchStack, vm) return &protocol.CompletionList{IsIncomplete: false, Items: items}, nil } @@ -52,43 +56,15 @@ func getCompletionLine(fileContent string, position protocol.Position) string { return line } -func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack) []protocol.CompletionItem { - var items []protocol.CompletionItem - +func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm *jsonnet.VM) []protocol.CompletionItem { lineWords := strings.Split(line, " ") lastWord := lineWords[len(lineWords)-1] indexes := strings.Split(lastWord, ".") firstIndex, indexes := indexes[0], indexes[1:] - if firstIndex == "self" && len(indexes) > 0 { - fieldPrefix := indexes[0] - - for !stack.IsEmpty() { - curr := stack.Pop() - - switch curr := curr.(type) { - case *ast.Binary: - stack.Push(curr.Left) - stack.Push(curr.Right) - case *ast.DesugaredObject: - for _, field := range curr.Fields { - label := processing.FieldNameToString(field.Name) - // Ignore fields that don't match the prefix - if !strings.HasPrefix(label, fieldPrefix) { - continue - } - - // Ignore the current field - if strings.Contains(line, label+":") { - continue - } - - items = append(items, createCompletionItem(label, "self."+label, protocol.FieldCompletion, field.Body)) - } - } - } - } else if len(indexes) == 0 { + if len(indexes) == 0 { + var items []protocol.CompletionItem // firstIndex is a variable (local) completion for !stack.IsEmpty() { if curr, ok := stack.Pop().(*ast.Local); ok { @@ -103,13 +79,51 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack) [] } } } + return items } - return items + if len(indexes) > 1 { + // TODO: Support multiple indexes, the objects to search through will be the reference in the last index + return nil + } + + var ( + objectsToSearch []*ast.DesugaredObject + ) + + if firstIndex == "self" { + // Search through the current stack + objectsToSearch = processing.FindTopLevelObjects(stack, vm) + } else { + // If the index is something other than 'self', find what it refers to (Var reference) and find objects in that + for !stack.IsEmpty() { + curr := stack.Pop() + + if targetVar, ok := curr.(*ast.Var); ok && string(targetVar.Id) == firstIndex { + ref, _ := processing.FindVarReference(targetVar, vm) + + switch ref := ref.(type) { + case *ast.DesugaredObject: + objectsToSearch = []*ast.DesugaredObject{ref} + case *ast.Import: + filename := ref.File.Value + objectsToSearch = processing.FindTopLevelObjectsInFile(vm, filename, string(curr.Loc().File.DiagnosticFileName)) + } + break + } + + for _, node := range toolutils.Children(curr) { + stack.Push(node) + } + } + } + + fieldPrefix := indexes[0] + return createCompletionItemsFromObjects(objectsToSearch, firstIndex, fieldPrefix, line) } func (s *Server) completionStdLib(line string) []protocol.CompletionItem { - items := []protocol.CompletionItem{} + var items []protocol.CompletionItem stdIndex := strings.LastIndex(line, "std.") if stdIndex != -1 { @@ -147,6 +161,36 @@ func (s *Server) completionStdLib(line string) []protocol.CompletionItem { return items } +func createCompletionItemsFromObjects(objects []*ast.DesugaredObject, firstIndex, fieldPrefix, currentLine string) []protocol.CompletionItem { + var items []protocol.CompletionItem + labels := make(map[string]bool) + + for _, obj := range objects { + for _, field := range obj.Fields { + label := processing.FieldNameToString(field.Name) + + if labels[label] { + continue + } + + // Ignore fields that don't match the prefix + if !strings.HasPrefix(label, fieldPrefix) { + continue + } + + // Ignore the current field + if strings.Contains(currentLine, label+":") { + continue + } + + items = append(items, createCompletionItem(label, firstIndex+"."+label, protocol.FieldCompletion, field.Body)) + labels[label] = true + } + } + + return items +} + func createCompletionItem(label, detail string, kind protocol.CompletionItemKind, body ast.Node) protocol.CompletionItem { insertText := label if asFunc, ok := body.(*ast.Function); ok { diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index 9a2634b..3d4a57b 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -245,6 +245,46 @@ func TestCompletion(t *testing.T) { Items: nil, }, }, + { + name: "autocomplete through import", + filename: "testdata/goto-imported-file.jsonnet", + replaceString: "b: otherfile.bar,", + replaceByString: "b: otherfile.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "bar", + Kind: protocol.FieldCompletion, + Detail: "otherfile.bar", + InsertText: "bar", + }, + { + Label: "foo", + Kind: protocol.FieldCompletion, + Detail: "otherfile.foo", + InsertText: "foo", + }, + }, + }, + }, + { + name: "autocomplete through import with prefix", + filename: "testdata/goto-imported-file.jsonnet", + replaceString: "b: otherfile.bar,", + replaceByString: "b: otherfile.b", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "bar", + Kind: protocol.FieldCompletion, + Detail: "otherfile.bar", + InsertText: "bar", + }, + }, + }, + }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { @@ -252,6 +292,7 @@ func TestCompletion(t *testing.T) { require.NoError(t, err) server, fileURI := testServerWithFile(t, completionTestStdlib, string(content)) + server.configuration.JPaths = []string{"testdata"} replacedContent := strings.ReplaceAll(string(content), tc.replaceString, tc.replaceByString) From f6fe858b381af19b4b586b5d856732d6bccf95ce Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 20 Oct 2022 12:41:20 -0400 Subject: [PATCH 036/124] Completion from dollar sign: Basic case (#79) Closes #4 Also: - Sort the list of suggestions by label - Ignore lines ending with , or ;. This happens when a user is replacing an index in an existing line (refactoring, etc) --- pkg/server/completion.go | 8 ++++++ pkg/server/completion_test.go | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 47b09b3..3c30263 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -2,6 +2,7 @@ package server import ( "context" + "sort" "strings" "github.com/google/go-jsonnet" @@ -59,6 +60,7 @@ func getCompletionLine(fileContent string, position protocol.Position) string { func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm *jsonnet.VM) []protocol.CompletionItem { lineWords := strings.Split(line, " ") lastWord := lineWords[len(lineWords)-1] + lastWord = strings.TrimRight(lastWord, ",;") // Ignore trailing commas and semicolons, they can present when someone is modifying an existing line indexes := strings.Split(lastWord, ".") firstIndex, indexes := indexes[0], indexes[1:] @@ -103,6 +105,8 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm ref, _ := processing.FindVarReference(targetVar, vm) switch ref := ref.(type) { + case *ast.Self: // This case catches `$` references (it's set as a self reference on the root object) + objectsToSearch = processing.FindTopLevelObjects(nodestack.NewNodeStack(stack.From), vm) case *ast.DesugaredObject: objectsToSearch = []*ast.DesugaredObject{ref} case *ast.Import: @@ -188,6 +192,10 @@ func createCompletionItemsFromObjects(objects []*ast.DesugaredObject, firstIndex } } + sort.Slice(items, func(i, j int) bool { + return items[i].Label < items[j].Label + }) + return items } diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index 3d4a57b..22ea761 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -285,6 +285,52 @@ func TestCompletion(t *testing.T) { }, }, }, + { + name: "autocomplete dollar sign", + filename: "testdata/goto-dollar-simple.jsonnet", + replaceString: "test: $.attribute,", + replaceByString: "test: $.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "attribute", + Kind: protocol.FieldCompletion, + Detail: "$.attribute", + InsertText: "attribute", + }, + { + Label: "attribute2", + Kind: protocol.FieldCompletion, + Detail: "$.attribute2", + InsertText: "attribute2", + }, + }, + }, + }, + { + name: "autocomplete dollar sign, end with comma", + filename: "testdata/goto-dollar-simple.jsonnet", + replaceString: "test: $.attribute,", + replaceByString: "test: $.,", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "attribute", + Kind: protocol.FieldCompletion, + Detail: "$.attribute", + InsertText: "attribute", + }, + { + Label: "attribute2", + Kind: protocol.FieldCompletion, + Detail: "$.attribute2", + InsertText: "attribute2", + }, + }, + }, + }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { From d21bd468caf54601a9c02a4abd8cb25ea43921a2 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 20 Oct 2022 12:58:45 -0400 Subject: [PATCH 037/124] Update Nix for 0.10.0 --- nix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/default.nix b/nix/default.nix index 68a54b6..00958ab 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -3,13 +3,13 @@ with pkgs; buildGoModule rec { pname = "jsonnet-language-server"; - version = "0.9.1"; + version = "0.10.0"; ldflags = '' -X main.version=${version} ''; src = lib.cleanSource ../.; - vendorSha256 = "sha256-tsVevkMHuCv70A9Ohg9L+ghH5+v52X4sToI4bMlDzzo="; + vendorSha256 = "sha256-imFr4N/YmpwjVZSCBHG7cyJt4RKTn+T7VPdL8R/ba5o="; meta = with lib; { description = "A Language Server Protocol server for Jsonnet"; From 093174984b3456cbc15a0d07f157afe811296d7a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Oct 2022 19:27:27 -0400 Subject: [PATCH 038/124] Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#80) --- go.mod | 4 ++-- go.sum | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 8834aa0..5c34aa1 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 github.com/sirupsen/logrus v1.9.0 - github.com/stretchr/testify v1.8.0 + github.com/stretchr/testify v1.8.1 ) require ( @@ -35,7 +35,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect - github.com/stretchr/objx v0.4.0 // indirect + github.com/stretchr/objx v0.5.0 // indirect golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect diff --git a/go.sum b/go.sum index 8cc41e3..f7922f7 100644 --- a/go.sum +++ b/go.sum @@ -80,16 +80,18 @@ github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0 h1:M2gUjqZET1qApGOWNSnZ49BAIMX4F/1plDv3+l31EJ4= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/yuin/goldmark v1.4.14 h1:jwww1XQfhJN7Zm+/a1ZA/3WUiEBEroYFNTiV3dKwM8U= github.com/yuin/goldmark v1.4.14/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= From 5c8f3ec4cd980a034f1ffe727d54939f95c16879 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Oct 2022 20:06:51 -0400 Subject: [PATCH 039/124] Bump github.com/google/go-jsonnet from 0.18.0 to 0.19.1 (#81) Bumps [github.com/google/go-jsonnet](https://github.com/google/go-jsonnet) from 0.18.0 to 0.19.1. - [Release notes](https://github.com/google/go-jsonnet/releases) - [Changelog](https://github.com/google/go-jsonnet/blob/master/.goreleaser.yml) - [Commits](https://github.com/google/go-jsonnet/compare/v0.18.0...v0.19.1) --- updated-dependencies: - dependency-name: github.com/google/go-jsonnet dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 4 ++-- go.sum | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 5c34aa1..03b867b 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/JohannesKaufmann/html-to-markdown v1.3.6 - github.com/google/go-jsonnet v0.18.0 + github.com/google/go-jsonnet v0.19.1 github.com/grafana/tanka v0.23.1 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 @@ -38,7 +38,7 @@ require ( github.com/stretchr/objx v0.5.0 // indirect golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect - golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect + golang.org/x/sys v0.1.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index f7922f7..d1867db 100644 --- a/go.sum +++ b/go.sum @@ -15,14 +15,14 @@ github.com/andybalholm/cascadia v1.3.1/go.mod h1:R4bJ1UQfqADjvDa4P6HZHLh/3OxWWEq github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= +github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= -github.com/google/go-jsonnet v0.18.0 h1:/6pTy6g+Jh1a1I2UMoAODkqELFiVIdOxbNwv0DDzoOg= -github.com/google/go-jsonnet v0.18.0/go.mod h1:C3fTzyVJDslXdiTqw/bTFk7vSGyCtH3MGRbDfvEwGd0= +github.com/google/go-jsonnet v0.19.1 h1:MORxkrG0elylUqh36R4AcSPX0oZQa9hvI3lroN+kDhs= +github.com/google/go-jsonnet v0.19.1/go.mod h1:5JVT33JVCoehdTj5Z2KJq1eIdt3Nb8PCmZ+W5D8U350= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -112,8 +112,9 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 h1:WIoqL4EROvwiPdUtaip4VcDdpZ4kha7wBWZrbVKCIZg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= From e6112122ab389ec06f361ee9927466dac5806db3 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 1 Nov 2022 09:28:33 -0400 Subject: [PATCH 040/124] Pull stdlib content from v0.19.0 (#82) This should add the `splitLimitR`, `all` and `any` functions to autocomplete + hover --- pkg/stdlib/stdlib-content.jsonnet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/stdlib/stdlib-content.jsonnet b/pkg/stdlib/stdlib-content.jsonnet index 369aaa4..56eb282 100644 --- a/pkg/stdlib/stdlib-content.jsonnet +++ b/pkg/stdlib/stdlib-content.jsonnet @@ -385,7 +385,7 @@ local html = import 'html.libsonnet'; { name: 'splitLimitR', params: ['str', 'c', 'maxsplits'], - availableSince: 'upcoming', + availableSince: 'v0.19.0', description: 'As std.splitLimit(str, c, maxsplits) but will split from right to left.', examples: [ { @@ -1286,7 +1286,7 @@ local html = import 'html.libsonnet'; { name: 'all', params: ['arr'], - availableSince: 'upcoming', + availableSince: 'v0.19.0', description: html.paragraphs([ ||| Return true if all elements of arr is true, false otherwise. all([]) evaluates to true. @@ -1299,7 +1299,7 @@ local html = import 'html.libsonnet'; { name: 'any', params: ['arr'], - availableSince: 'upcoming', + availableSince: 'v0.19.0', description: html.paragraphs([ ||| Return true if any element of arr is true, false otherwise. any([]) evaluates to false. From c02475dc12e7eb9c0dc42d4cd33a0161e51de3fb Mon Sep 17 00:00:00 2001 From: Jack Baldry Date: Wed, 16 Nov 2022 09:59:18 -0400 Subject: [PATCH 041/124] Update the sha256 sum for vendored go modules (#84) --- nix/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/default.nix b/nix/default.nix index 00958ab..f0bd0cc 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -9,7 +9,7 @@ buildGoModule rec { -X main.version=${version} ''; src = lib.cleanSource ../.; - vendorSha256 = "sha256-imFr4N/YmpwjVZSCBHG7cyJt4RKTn+T7VPdL8R/ba5o="; + vendorSha256 = "sha256-ZyTo79M5nqtqrtTOGanzgHcnSvqCKACacNBWzhYG5nY="; meta = with lib; { description = "A Language Server Protocol server for Jsonnet"; From dd39569860989cacfa4ab9243aec9b9262d1b6e0 Mon Sep 17 00:00:00 2001 From: Puddinghat <75942619+Puddinghat@users.noreply.github.com> Date: Wed, 23 Nov 2022 14:16:38 +0100 Subject: [PATCH 042/124] added config option for ext_code (#83) Co-authored-by: Matthias Wilhelm --- pkg/server/configuration.go | 34 +++++++++++++++++++++++++- pkg/server/configuration_test.go | 42 ++++++++++++++++++++++++++++++++ pkg/server/server.go | 2 +- 3 files changed, 76 insertions(+), 2 deletions(-) diff --git a/pkg/server/configuration.go b/pkg/server/configuration.go index 351662d..4c67d6f 100644 --- a/pkg/server/configuration.go +++ b/pkg/server/configuration.go @@ -17,6 +17,7 @@ type Configuration struct { ResolvePathsWithTanka bool JPaths []string ExtVars map[string]string + ExtCode map[string]string FormattingOptions formatter.Options EnableEvalDiagnostics bool @@ -82,6 +83,13 @@ func (s *Server) DidChangeConfiguration(ctx context.Context, params *protocol.Di } s.configuration.FormattingOptions = newFmtOpts + case "ext_code": + newCode, err := s.parseExtCode(sv) + if err != nil { + return fmt.Errorf("%w: ext_code parsing failed: %v", jsonrpc2.ErrInvalidParams, err) + } + s.configuration.ExtCode = newCode + default: return fmt.Errorf("%w: unsupported settings key: %q", jsonrpc2.ErrInvalidParams, sk) } @@ -133,11 +141,35 @@ func (s *Server) parseFormattingOpts(unparsed interface{}) (formatter.Options, e return opts, nil } -func resetExtVars(vm *jsonnet.VM, vars map[string]string) { +func (s *Server) parseExtCode(unparsed interface{}) (map[string]string, error) { + newVars, ok := unparsed.(map[string]interface{}) + if !ok { + return nil, fmt.Errorf("unsupported settings value for ext_code. expected json object. got: %T", unparsed) + } + + vm := s.getVM(".") + + extCode := make(map[string]string, len(newVars)) + for varKey, varValue := range newVars { + vv, ok := varValue.(string) + if !ok { + return nil, fmt.Errorf("unsupported settings value for ext_code.%s. expected string. got: %T", varKey, varValue) + } + jsonResult, _ := vm.EvaluateAnonymousSnippet("ext-code", vv) + extCode[varKey] = jsonResult + } + + return extCode, nil +} + +func resetExtVars(vm *jsonnet.VM, vars map[string]string, code map[string]string) { vm.ExtReset() for vk, vv := range vars { vm.ExtVar(vk, vv) } + for vk, vv := range code { + vm.ExtCode(vk, vv) + } } func stringStyleDecodeFunc(from, to reflect.Type, unparsed interface{}) (interface{}, error) { diff --git a/pkg/server/configuration_test.go b/pkg/server/configuration_test.go index 1357950..020b3ae 100644 --- a/pkg/server/configuration_test.go +++ b/pkg/server/configuration_test.go @@ -82,6 +82,42 @@ func TestConfiguration(t *testing.T) { expectedFileOutput: ` { "hello": "world" +} + `, + }, + { + name: "ext_code config is not an object", + settings: map[string]interface{}{ + "ext_code": []string{}, + }, + fileContent: `[]`, + expectedErr: errors.New("JSON RPC invalid params: ext_code parsing failed: unsupported settings value for ext_code. expected json object. got: []string"), + }, + { + name: "ext_code config is empty", + settings: map[string]interface{}{ + "ext_code": map[string]interface{}{}, + }, + fileContent: `[]`, + expectedFileOutput: `[]`, + }, + { + name: "ext_code config is valid", + settings: map[string]interface{}{ + "ext_code": map[string]interface{}{ + "hello": "{\"world\": true,}", + }, + }, + fileContent: ` +{ + hello: std.extVar("hello"), +} + `, + expectedFileOutput: ` +{ + "hello": { + "world": true + } } `, }, @@ -243,6 +279,9 @@ func TestConfiguration_Formatting(t *testing.T) { "ext_vars": map[string]interface{}{ "hello": "world", }, + "ext_code": map[string]interface{}{ + "hello": "{\"world\": true,}", + }, "resolve_paths_with_tanka": false, "jpath": []interface{}{"blabla", "blabla2"}, "enable_eval_diagnostics": false, @@ -268,6 +307,9 @@ func TestConfiguration_Formatting(t *testing.T) { ExtVars: map[string]string{ "hello": "world", }, + ExtCode: map[string]string{ + "hello": "{\n \"world\": true\n}\n", + }, ResolvePathsWithTanka: false, JPaths: []string{"blabla", "blabla2"}, EnableEvalDiagnostics: false, diff --git a/pkg/server/server.go b/pkg/server/server.go index c165332..65402da 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -65,7 +65,7 @@ func (s *Server) getVM(path string) *jsonnet.VM { vm.Importer(importer) } - resetExtVars(vm, s.configuration.ExtVars) + resetExtVars(vm, s.configuration.ExtVars, s.configuration.ExtCode) return vm } From f0d735ba883dd08146408bae4b39197c5352fb18 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 29 Nov 2022 19:58:11 -0500 Subject: [PATCH 043/124] Yet another import case (#85) * Yet another import case not working This adds a new test case that (hopefully) contains all the ways to reference something by import Fixed by doing recursive processing, I removed a "special" case to do so * oops, lint --- pkg/ast/processing/find_field.go | 13 +++++-------- pkg/server/definition_test.go | 16 ++++++++++++++++ .../goto-multilevel-library-main.jsonnet | 4 ++++ .../goto-multilevel-library-sub-1.1.libsonnet | 3 +++ .../goto-multilevel-library-sub-1.2.libsonnet | 3 +++ .../goto-multilevel-library-sub-1.libsonnet | 4 ++++ .../goto-multilevel-library-sub-2.libsonnet | 3 +++ .../goto-multilevel-library-top.libsonnet | 7 +++++++ 8 files changed, 45 insertions(+), 8 deletions(-) create mode 100644 pkg/server/testdata/goto-multilevel-library-main.jsonnet create mode 100644 pkg/server/testdata/goto-multilevel-library-sub-1.1.libsonnet create mode 100644 pkg/server/testdata/goto-multilevel-library-sub-1.2.libsonnet create mode 100644 pkg/server/testdata/goto-multilevel-library-sub-1.libsonnet create mode 100644 pkg/server/testdata/goto-multilevel-library-sub-2.libsonnet create mode 100644 pkg/server/testdata/goto-multilevel-library-top.libsonnet diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index efc2928..c34704c 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -124,14 +124,11 @@ func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonne return nil, err } // If the reference is an object, add it directly to the list of objects to look in - if varReference := findChildDesugaredObject(varReference); varReference != nil { - desugaredObjs = append(desugaredObjs, varReference) - } - // If the reference is a function, and the body of that function is an object, add it to the list of objects to look in - if varReference, ok := varReference.(*ast.Function); ok { - if funcBody := findChildDesugaredObject(varReference.Body); funcBody != nil { - desugaredObjs = append(desugaredObjs, funcBody) - } + // Otherwise, add it back to the list for further processing + if varReferenceObj := findChildDesugaredObject(varReference); varReferenceObj != nil { + desugaredObjs = append(desugaredObjs, varReferenceObj) + } else { + fieldNodes = append(fieldNodes, varReference) } case *ast.DesugaredObject: desugaredObjs = append(desugaredObjs, fieldNode) diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 9883209..d2908ca 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -894,6 +894,22 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "goto function nested multiple times in different ways", + filename: "testdata/goto-multilevel-library-main.jsonnet", + position: protocol.Position{Line: 2, Character: 34}, + results: []definitionResult{{ + targetFilename: "testdata/goto-multilevel-library-sub-1.1.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 28}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 2}, + End: protocol.Position{Line: 1, Character: 5}, + }, + }}, + }, } func TestDefinition(t *testing.T) { diff --git a/pkg/server/testdata/goto-multilevel-library-main.jsonnet b/pkg/server/testdata/goto-multilevel-library-main.jsonnet new file mode 100644 index 0000000..92cc427 --- /dev/null +++ b/pkg/server/testdata/goto-multilevel-library-main.jsonnet @@ -0,0 +1,4 @@ +local library = import 'goto-multilevel-library-top.libsonnet'; +{ + my_item: library.sub1.subsub1.new(name='test'), +} diff --git a/pkg/server/testdata/goto-multilevel-library-sub-1.1.libsonnet b/pkg/server/testdata/goto-multilevel-library-sub-1.1.libsonnet new file mode 100644 index 0000000..2342dc9 --- /dev/null +++ b/pkg/server/testdata/goto-multilevel-library-sub-1.1.libsonnet @@ -0,0 +1,3 @@ +{ + new(name='lib-1.1'):: name, +} diff --git a/pkg/server/testdata/goto-multilevel-library-sub-1.2.libsonnet b/pkg/server/testdata/goto-multilevel-library-sub-1.2.libsonnet new file mode 100644 index 0000000..fb42de9 --- /dev/null +++ b/pkg/server/testdata/goto-multilevel-library-sub-1.2.libsonnet @@ -0,0 +1,3 @@ +{ + new(name='lib-1.2'):: name, +} diff --git a/pkg/server/testdata/goto-multilevel-library-sub-1.libsonnet b/pkg/server/testdata/goto-multilevel-library-sub-1.libsonnet new file mode 100644 index 0000000..2b24cfb --- /dev/null +++ b/pkg/server/testdata/goto-multilevel-library-sub-1.libsonnet @@ -0,0 +1,4 @@ +{ + subsub1: import 'goto-multilevel-library-sub-1.1.libsonnet', + subsub2: import 'goto-multilevel-library-sub-1.2.libsonnet', +} diff --git a/pkg/server/testdata/goto-multilevel-library-sub-2.libsonnet b/pkg/server/testdata/goto-multilevel-library-sub-2.libsonnet new file mode 100644 index 0000000..5a141a8 --- /dev/null +++ b/pkg/server/testdata/goto-multilevel-library-sub-2.libsonnet @@ -0,0 +1,3 @@ +{ + new(name='lib-2'):: name, +} diff --git a/pkg/server/testdata/goto-multilevel-library-top.libsonnet b/pkg/server/testdata/goto-multilevel-library-top.libsonnet new file mode 100644 index 0000000..d6075ae --- /dev/null +++ b/pkg/server/testdata/goto-multilevel-library-top.libsonnet @@ -0,0 +1,7 @@ +local sub1 = import 'goto-multilevel-library-sub-1.libsonnet'; +local sub2 = import 'goto-multilevel-library-sub-2.libsonnet'; + +{ + sub1:: sub1, + sub2:: sub2, +} From 048fc873038f8a0e5d8975da025ea697b250fb33 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 29 Nov 2022 21:11:39 -0500 Subject: [PATCH 044/124] Release 0.11.0 --- nix/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/default.nix b/nix/default.nix index f0bd0cc..ef3bdd5 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -3,7 +3,7 @@ with pkgs; buildGoModule rec { pname = "jsonnet-language-server"; - version = "0.10.0"; + version = "0.11.0"; ldflags = '' -X main.version=${version} From b73e66dacd0cfe2900aea580571fc412d78e95d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 18:56:21 -0500 Subject: [PATCH 045/124] Bump github.com/grafana/tanka from 0.23.1 to 0.24.0 (#86) Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.23.1 to 0.24.0. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.23.1...v0.24.0) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 3 ++- go.sum | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 03b867b..756e5ae 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/JohannesKaufmann/html-to-markdown v1.3.6 github.com/google/go-jsonnet v0.19.1 - github.com/grafana/tanka v0.23.1 + github.com/grafana/tanka v0.24.0 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -33,6 +33,7 @@ require ( github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rs/zerolog v1.28.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.0 // indirect diff --git a/go.sum b/go.sum index d1867db..0ec71f9 100644 --- a/go.sum +++ b/go.sum @@ -12,6 +12,7 @@ github.com/PuerkitoBio/goquery v1.8.0 h1:PJTF7AmFCFKk1N6V6jmKfrNH9tV5pNE6lZMkG0g github.com/PuerkitoBio/goquery v1.8.0/go.mod h1:ypIiRMtY7COPGk+I/YbZLbxsxn9g5ejnI2HSMtkjZvI= github.com/andybalholm/cascadia v1.3.1 h1:nhxRkql1kdYCc8Snf7D5/D3spOX+dBgjA6u8x004T2c= github.com/andybalholm/cascadia v1.3.1/go.mod h1:R4bJ1UQfqADjvDa4P6HZHLh/3OxWWEqc0Sk8XGwHqvA= +github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -20,14 +21,15 @@ github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-jsonnet v0.19.1 h1:MORxkrG0elylUqh36R4AcSPX0oZQa9hvI3lroN+kDhs= github.com/google/go-jsonnet v0.19.1/go.mod h1:5JVT33JVCoehdTj5Z2KJq1eIdt3Nb8PCmZ+W5D8U350= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.23.1 h1:yRiToCwr5KgOz5H0U6ytsq2j0qbhg/VChXS8mbNTa7c= -github.com/grafana/tanka v0.23.1/go.mod h1:2ihsickzs4quqt9kQ+jAQ7PPeBk4TaBFkABWxSzMEU8= +github.com/grafana/tanka v0.24.0 h1:GwW3D2/TU2SjPdS2IfgAFd36T5iZWs6zIcxxsxmpnpc= +github.com/grafana/tanka v0.24.0/go.mod h1:2JRHwdhELXdwJwUiy45NnSjEKwN4DM1+5PvOdnczVvY= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= @@ -65,6 +67,9 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.28.0 h1:MirSo27VyNi7RJYP3078AA1+Cyzd2GB66qy3aUHvsWY= +github.com/rs/zerolog v1.28.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0= github.com/sebdah/goldie/v2 v2.5.3 h1:9ES/mNN+HNUbNWpVAlrzuZ7jE+Nrczbj8uFRjM7624Y= github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= From 7997dbc509786951d78edac98b69f1ba24aad8ac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Feb 2023 21:03:03 -0500 Subject: [PATCH 046/124] Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (#88) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.1 to 1.8.2. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.8.1...v1.8.2) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 756e5ae..2c95a1e 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 github.com/sirupsen/logrus v1.9.0 - github.com/stretchr/testify v1.8.1 + github.com/stretchr/testify v1.8.2 ) require ( diff --git a/go.sum b/go.sum index 0ec71f9..6ee0520 100644 --- a/go.sum +++ b/go.sum @@ -95,8 +95,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/yuin/goldmark v1.4.14 h1:jwww1XQfhJN7Zm+/a1ZA/3WUiEBEroYFNTiV3dKwM8U= github.com/yuin/goldmark v1.4.14/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= From 8eda37f5ebde541911b8e8e8df137913b73439f7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 Mar 2023 08:58:44 -0400 Subject: [PATCH 047/124] Bump github.com/JohannesKaufmann/html-to-markdown from 1.3.6 to 1.3.7 (#89) Bumps [github.com/JohannesKaufmann/html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown) from 1.3.6 to 1.3.7. - [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases) - [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v1.3.6...v1.3.7) --- updated-dependencies: - dependency-name: github.com/JohannesKaufmann/html-to-markdown dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 8 ++++---- go.sum | 44 ++++++++++++++++++++++++++++++++++---------- 2 files changed, 38 insertions(+), 14 deletions(-) diff --git a/go.mod b/go.mod index 2c95a1e..9d60426 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/grafana/jsonnet-language-server go 1.19 require ( - github.com/JohannesKaufmann/html-to-markdown v1.3.6 + github.com/JohannesKaufmann/html-to-markdown v1.3.7 github.com/google/go-jsonnet v0.19.1 github.com/grafana/tanka v0.24.0 github.com/hexops/gotextdiff v1.0.3 @@ -18,7 +18,7 @@ require ( github.com/Masterminds/semver v1.5.0 // indirect github.com/Masterminds/semver/v3 v3.1.1 // indirect github.com/Masterminds/sprig/v3 v3.2.2 // indirect - github.com/PuerkitoBio/goquery v1.8.0 // indirect + github.com/PuerkitoBio/goquery v1.8.1 // indirect github.com/andybalholm/cascadia v1.3.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fatih/color v1.13.0 // indirect @@ -38,8 +38,8 @@ require ( github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.0 // indirect golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect - golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect - golang.org/x/sys v0.1.0 // indirect + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 6ee0520..35a9c3b 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/JohannesKaufmann/html-to-markdown v1.3.6 h1:i3Ma4RmIU97gqArbxZXbFqbWKm7XtImlMwVNUouQ7Is= -github.com/JohannesKaufmann/html-to-markdown v1.3.6/go.mod h1:Ol3Jv/xw8jt8qsaLeSh/6DBBw4ZBJrTqrOu3wbbUUg8= +github.com/JohannesKaufmann/html-to-markdown v1.3.7 h1:06rF6ct6hDbB7ur380y9Vv26UowFdTFYljSv6f4VjdI= +github.com/JohannesKaufmann/html-to-markdown v1.3.7/go.mod h1:BzWBqKEgKeVFX4EHEF98koY2ZnAfUM6ahWmXSWAAq9o= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= @@ -8,8 +8,8 @@ github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030I github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8= github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= -github.com/PuerkitoBio/goquery v1.8.0 h1:PJTF7AmFCFKk1N6V6jmKfrNH9tV5pNE6lZMkG0gta/U= -github.com/PuerkitoBio/goquery v1.8.0/go.mod h1:ypIiRMtY7COPGk+I/YbZLbxsxn9g5ejnI2HSMtkjZvI= +github.com/PuerkitoBio/goquery v1.8.1 h1:uQxhNlArOIdbrH1tr0UXwdVFgDcZDrZVdcpygAcwmWM= +github.com/PuerkitoBio/goquery v1.8.1/go.mod h1:Q8ICL1kNUJ2sXGoAhPGUdYDJvgQgHzJsnnd3H7Ho5jQ= github.com/andybalholm/cascadia v1.3.1 h1:nhxRkql1kdYCc8Snf7D5/D3spOX+dBgjA6u8x004T2c= github.com/andybalholm/cascadia v1.3.1/go.mod h1:R4bJ1UQfqADjvDa4P6HZHLh/3OxWWEqc0Sk8XGwHqvA= github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= @@ -97,16 +97,28 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/yuin/goldmark v1.4.14 h1:jwww1XQfhJN7Zm+/a1ZA/3WUiEBEroYFNTiV3dKwM8U= -github.com/yuin/goldmark v1.4.14/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.5.4 h1:2uY/xC0roWy8IBEGLgB1ywIoEJFGmRrX21YQcvGZzjU= +github.com/yuin/goldmark v1.5.4/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA= golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210916014120-12bc252f5db8/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220909164309-bea034e7d591 h1:D0B/7al0LLrVC8aWF4+oxpv/m8bc7ViFfVS8/gXGdqI= -golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -116,16 +128,28 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= From 19eaceec6fb517cb7379f123f3608b74ea529bca Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Apr 2023 07:37:12 -0400 Subject: [PATCH 048/124] Bump github.com/google/go-jsonnet from 0.19.1 to 0.20.0 (#91) * Bump github.com/google/go-jsonnet from 0.19.1 to 0.20.0 Bumps [github.com/google/go-jsonnet](https://github.com/google/go-jsonnet) from 0.19.1 to 0.20.0. - [Release notes](https://github.com/google/go-jsonnet/releases) - [Changelog](https://github.com/google/go-jsonnet/blob/master/.goreleaser.yml) - [Commits](https://github.com/google/go-jsonnet/compare/v0.19.1...v0.20.0) --- updated-dependencies: - dependency-name: github.com/google/go-jsonnet dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fix linting --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Duchesne --- go.mod | 2 +- go.sum | 10 ++-------- pkg/server/completion.go | 2 +- pkg/server/configuration.go | 6 +++--- pkg/server/definition.go | 2 +- pkg/server/execute.go | 2 +- pkg/server/formatting.go | 2 +- pkg/server/hover.go | 2 +- pkg/server/server.go | 6 +++--- pkg/server/symbols.go | 2 +- pkg/server/unused.go | 2 +- pkg/utils/stdio.go | 6 +++--- 12 files changed, 19 insertions(+), 25 deletions(-) diff --git a/go.mod b/go.mod index 9d60426..5148d7c 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/JohannesKaufmann/html-to-markdown v1.3.7 - github.com/google/go-jsonnet v0.19.1 + github.com/google/go-jsonnet v0.20.0 github.com/grafana/tanka v0.24.0 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 diff --git a/go.sum b/go.sum index 35a9c3b..ea73ae9 100644 --- a/go.sum +++ b/go.sum @@ -16,15 +16,14 @@ github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= -github.com/google/go-jsonnet v0.19.1 h1:MORxkrG0elylUqh36R4AcSPX0oZQa9hvI3lroN+kDhs= -github.com/google/go-jsonnet v0.19.1/go.mod h1:5JVT33JVCoehdTj5Z2KJq1eIdt3Nb8PCmZ+W5D8U350= +github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= +github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -47,7 +46,6 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= @@ -73,7 +71,6 @@ github.com/rs/zerolog v1.28.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6us github.com/sebdah/goldie/v2 v2.5.3 h1:9ES/mNN+HNUbNWpVAlrzuZ7jE+Nrczbj8uFRjM7624Y= github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= @@ -131,7 +128,6 @@ golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -157,13 +153,11 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogR gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 3c30263..67a3637 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -16,7 +16,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *Server) Completion(ctx context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error) { +func (s *Server) Completion(_ context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Completion: %s: %w", errorRetrievingDocument, err) diff --git a/pkg/server/configuration.go b/pkg/server/configuration.go index 4c67d6f..c970842 100644 --- a/pkg/server/configuration.go +++ b/pkg/server/configuration.go @@ -24,7 +24,7 @@ type Configuration struct { EnableLintDiagnostics bool } -func (s *Server) DidChangeConfiguration(ctx context.Context, params *protocol.DidChangeConfigurationParams) error { +func (s *Server) DidChangeConfiguration(_ context.Context, params *protocol.DidChangeConfigurationParams) error { settingsMap, ok := params.Settings.(map[string]interface{}) if !ok { return fmt.Errorf("%w: unsupported settings payload. expected json object, got: %T", jsonrpc2.ErrInvalidParams, params.Settings) @@ -172,7 +172,7 @@ func resetExtVars(vm *jsonnet.VM, vars map[string]string, code map[string]string } } -func stringStyleDecodeFunc(from, to reflect.Type, unparsed interface{}) (interface{}, error) { +func stringStyleDecodeFunc(_, to reflect.Type, unparsed interface{}) (interface{}, error) { if to != reflect.TypeOf(formatter.StringStyleDouble) { return unparsed, nil } @@ -194,7 +194,7 @@ func stringStyleDecodeFunc(from, to reflect.Type, unparsed interface{}) (interfa } } -func commentStyleDecodeFunc(from, to reflect.Type, unparsed interface{}) (interface{}, error) { +func commentStyleDecodeFunc(_, to reflect.Type, unparsed interface{}) (interface{}, error) { if to != reflect.TypeOf(formatter.CommentStyleHash) { return unparsed, nil } diff --git a/pkg/server/definition.go b/pkg/server/definition.go index 4906364..ecbe272 100644 --- a/pkg/server/definition.go +++ b/pkg/server/definition.go @@ -16,7 +16,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *Server) Definition(ctx context.Context, params *protocol.DefinitionParams) (protocol.Definition, error) { +func (s *Server) Definition(_ context.Context, params *protocol.DefinitionParams) (protocol.Definition, error) { responseDefLinks, err := s.definitionLink(params) if err != nil { // Returning an error too often can lead to the client killing the language server diff --git a/pkg/server/execute.go b/pkg/server/execute.go index efd4185..e5956af 100644 --- a/pkg/server/execute.go +++ b/pkg/server/execute.go @@ -13,7 +13,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *Server) ExecuteCommand(ctx context.Context, params *protocol.ExecuteCommandParams) (interface{}, error) { +func (s *Server) ExecuteCommand(_ context.Context, params *protocol.ExecuteCommandParams) (interface{}, error) { switch params.Command { case "jsonnet.evalItem": // WIP diff --git a/pkg/server/formatting.go b/pkg/server/formatting.go index 8d1368f..fa3cd21 100644 --- a/pkg/server/formatting.go +++ b/pkg/server/formatting.go @@ -11,7 +11,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *Server) Formatting(ctx context.Context, params *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error) { +func (s *Server) Formatting(_ context.Context, params *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Formatting: %s: %w", errorRetrievingDocument, err) diff --git a/pkg/server/hover.go b/pkg/server/hover.go index 11c7a7a..671fece 100644 --- a/pkg/server/hover.go +++ b/pkg/server/hover.go @@ -13,7 +13,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *Server) Hover(ctx context.Context, params *protocol.HoverParams) (*protocol.Hover, error) { +func (s *Server) Hover(_ context.Context, params *protocol.HoverParams) (*protocol.Hover, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Hover: %s: %w", errorRetrievingDocument, err) diff --git a/pkg/server/server.go b/pkg/server/server.go index 65402da..2bd926b 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -69,7 +69,7 @@ func (s *Server) getVM(path string) *jsonnet.VM { return vm } -func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams) error { +func (s *Server) DidChange(_ context.Context, params *protocol.DidChangeTextDocumentParams) error { defer s.queueDiagnostics(params.TextDocument.URI) doc, err := s.cache.get(params.TextDocument.URI) @@ -102,7 +102,7 @@ func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDo return nil } -func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) (err error) { +func (s *Server) DidOpen(_ context.Context, params *protocol.DidOpenTextDocumentParams) (err error) { defer s.queueDiagnostics(params.TextDocument.URI) doc := &document{item: params.TextDocument, linesChangedSinceAST: map[int]bool{}} @@ -112,7 +112,7 @@ func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocume return s.cache.put(doc) } -func (s *Server) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error) { +func (s *Server) Initialize(_ context.Context, _ *protocol.ParamInitialize) (*protocol.InitializeResult, error) { log.Infof("Initializing %s version %s", s.name, s.version) s.diagnosticsLoop() diff --git a/pkg/server/symbols.go b/pkg/server/symbols.go index d28addc..4338c92 100644 --- a/pkg/server/symbols.go +++ b/pkg/server/symbols.go @@ -14,7 +14,7 @@ import ( log "github.com/sirupsen/logrus" ) -func (s *Server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) { +func (s *Server) DocumentSymbol(_ context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) { doc, err := s.cache.get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("DocumentSymbol: %s: %w", errorRetrievingDocument, err) diff --git a/pkg/server/unused.go b/pkg/server/unused.go index c022a0d..78cce7c 100644 --- a/pkg/server/unused.go +++ b/pkg/server/unused.go @@ -16,7 +16,7 @@ func (s *Server) CodeAction(context.Context, *protocol.CodeActionParams) ([]prot return nil, notImplemented("CodeAction") } -func (s *Server) CodeLens(ctx context.Context, params *protocol.CodeLensParams) ([]protocol.CodeLens, error) { +func (s *Server) CodeLens(_ context.Context, _ *protocol.CodeLensParams) ([]protocol.CodeLens, error) { return []protocol.CodeLens{}, nil } diff --git a/pkg/utils/stdio.go b/pkg/utils/stdio.go index 62af30f..f797c61 100644 --- a/pkg/utils/stdio.go +++ b/pkg/utils/stdio.go @@ -44,13 +44,13 @@ func (s Stdio) LocalAddr() net.Addr { return s } func (s Stdio) RemoteAddr() net.Addr { return s } // SetDeadline implements net.Conn interface. -func (Stdio) SetDeadline(t time.Time) error { return nil } +func (Stdio) SetDeadline(_ time.Time) error { return nil } // SetReadDeadline implements net.Conn interface. -func (Stdio) SetReadDeadline(t time.Time) error { return nil } +func (Stdio) SetReadDeadline(_ time.Time) error { return nil } // SetWriteDeadline implements net.Conn interface. -func (Stdio) SetWriteDeadline(t time.Time) error { return nil } +func (Stdio) SetWriteDeadline(_ time.Time) error { return nil } // Network implements net.Addr interface. func (Stdio) Network() string { return "Stdio" } From a7565a71922d969f68f8f710a624d276d7265c9f Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Mon, 1 May 2023 09:09:18 -0400 Subject: [PATCH 049/124] Pull new `stdlib` def (#92) * Pull new `stdlib` def * fix test --- pkg/stdlib/stdlib-content.jsonnet | 154 +++++++++++++++++++++++++++++- pkg/stdlib/stdlib_test.go | 1 + 2 files changed, 150 insertions(+), 5 deletions(-) diff --git a/pkg/stdlib/stdlib-content.jsonnet b/pkg/stdlib/stdlib-content.jsonnet index 56eb282..241f11a 100644 --- a/pkg/stdlib/stdlib-content.jsonnet +++ b/pkg/stdlib/stdlib-content.jsonnet @@ -15,6 +15,9 @@ local html = import 'html.libsonnet'; then the actual code executed would be local std = { ... }; {x: "foo"}. The functions in the standard library are all hidden fields of the std object. |||, + ||| + Note: Some of these functions marked available since v0.10.0 were actually available earlier. + |||, ]), prefix: 'std', groups: [ @@ -25,6 +28,7 @@ local html = import 'html.libsonnet'; { name: 'extVar', params: ['x'], + availableSince: '0.10.0', description: 'If an external variable with the given name was defined, return its string value. Otherwise, raise an error.', }, ], @@ -35,11 +39,13 @@ local html = import 'html.libsonnet'; fields: [ { name: 'thisFile', + availableSince: '0.10.0', description: 'Note that this is a field. It contains the current Jsonnet filename as a string.', }, { name: 'type', params: ['x'], + availableSince: '0.10.0', description: html.paragraphs([ ||| Return a string that indicates the type of the value. The possible return values are: @@ -56,6 +62,7 @@ local html = import 'html.libsonnet'; { name: 'length', params: ['x'], + availableSince: '0.10.0', description: ||| Depending on the type of the value given, either returns the number of elements in the array, the number of codepoints in the string, the number of parameters in the function, or @@ -75,6 +82,7 @@ local html = import 'html.libsonnet'; { name: 'objectHas', params: ['o', 'f'], + availableSince: '0.10.0', description: ||| Returns true if the given object has the field (given as a string), otherwise false. Raises an error if the arguments are not object and string @@ -84,6 +92,7 @@ local html = import 'html.libsonnet'; { name: 'objectFields', params: ['o'], + availableSince: '0.10.0', description: ||| Returns an array of strings, each element being a field from the given object. Does not include hidden fields. @@ -97,9 +106,19 @@ local html = import 'html.libsonnet'; Returns an array of the values in the given object. Does not include hidden fields. |||, }, + { + name: 'objectKeysValues', + params: ['o'], + availableSince: '0.20.0', + description: ||| + Returns an array of objects from the given object, each object having two fields: + key (string) and value (object). Does not include hidden fields. + |||, + }, { name: 'objectHasAll', params: ['o', 'f'], + availableSince: '0.10.0', description: ||| As std.objectHas but also includes hidden fields. |||, @@ -107,6 +126,7 @@ local html = import 'html.libsonnet'; { name: 'objectFieldsAll', params: ['o'], + availableSince: '0.10.0', description: ||| As std.objectFields but also includes hidden fields. |||, @@ -119,9 +139,18 @@ local html = import 'html.libsonnet'; As std.objectValues but also includes hidden fields. |||, }, + { + name: 'objectKeysValuesAll', + params: ['o'], + availableSince: '0.20.0', + description: ||| + As std.objectKeysValues but also includes hidden fields. + |||, + }, { name: 'prune', params: ['a'], + availableSince: '0.10.0', description: ||| Recursively remove all "empty" members of a. "Empty" is defined as zero length `arrays`, zero length `objects`, or `null` values. @@ -131,6 +160,7 @@ local html = import 'html.libsonnet'; { name: 'mapWithKey', params: ['func', 'obj'], + availableSince: '0.10.0', description: ||| Apply the given function to all fields of the given object, also passing the field name. The function func is expected to take the @@ -166,6 +196,7 @@ local html = import 'html.libsonnet';
    std.asin(x)
    std.acos(x)
    std.atan(x)
+
    std.round(x)

The function std.mod(a, b) is what the % operator is desugared to. It performs @@ -208,6 +239,7 @@ local html = import 'html.libsonnet'; { name: 'assertEqual', params: ['a', 'b'], + availableSince: '0.10.0', description: 'Ensure that a == b. Returns true or throws an error message.', }, ], @@ -219,6 +251,7 @@ local html = import 'html.libsonnet'; { name: 'toString', params: ['a'], + availableSince: '0.10.0', description: ||| Convert the given argument to a string. |||, @@ -226,6 +259,7 @@ local html = import 'html.libsonnet'; { name: 'codepoint', params: ['str'], + availableSince: '0.10.0', description: ||| Returns the positive integer representing the unicode codepoint of the character in the given single-character string. This function is the inverse of std.char(n). @@ -234,6 +268,7 @@ local html = import 'html.libsonnet'; { name: 'char', params: ['n'], + availableSince: '0.10.0', description: ||| Returns a string of length one whose only unicode codepoint has integer id n. This function is the inverse of std.codepoint(str). @@ -242,6 +277,7 @@ local html = import 'html.libsonnet'; { name: 'substr', params: ['str', 'from', 'len'], + availableSince: '0.10.0', description: ||| Returns a string that is the part of s that starts at offset from and is len codepoints long. If the string s is shorter than @@ -251,6 +287,7 @@ local html = import 'html.libsonnet'; { name: 'findSubstr', params: ['pat', 'str'], + availableSince: '0.10.0', description: ||| Returns an array that contains the indexes of all occurrences of pat in str. @@ -259,6 +296,7 @@ local html = import 'html.libsonnet'; { name: 'startsWith', params: ['a', 'b'], + availableSince: '0.10.0', description: ||| Returns whether the string a is prefixed by the string b. |||, @@ -266,6 +304,7 @@ local html = import 'html.libsonnet'; { name: 'endsWith', params: ['a', 'b'], + availableSince: '0.10.0', description: ||| Returns whether the string a is suffixed by the string b. |||, @@ -339,6 +378,7 @@ local html = import 'html.libsonnet'; { name: 'split', params: ['str', 'c'], + availableSince: '0.10.0', description: [ html.p({}, ||| Split the string str into an array of strings, divided by the string @@ -362,6 +402,7 @@ local html = import 'html.libsonnet'; { name: 'splitLimit', params: ['str', 'c', 'maxsplits'], + availableSince: '0.10.0', description: [ html.p({}, ||| As std.split(str, c) but will stop after maxsplits splits, thereby the largest @@ -385,7 +426,7 @@ local html = import 'html.libsonnet'; { name: 'splitLimitR', params: ['str', 'c', 'maxsplits'], - availableSince: 'v0.19.0', + availableSince: '0.19.0', description: 'As std.splitLimit(str, c, maxsplits) but will split from right to left.', examples: [ { @@ -397,6 +438,7 @@ local html = import 'html.libsonnet'; { name: 'strReplace', params: ['str', 'from', 'to'], + availableSince: '0.10.0', description: ||| Returns a copy of the string in which all occurrences of string from have been replaced with string to. @@ -408,9 +450,18 @@ local html = import 'html.libsonnet'; }, ], }, + { + name: 'isEmpty', + params: ['str'], + availableSince: '0.20.0', + description: ||| + Returns true if the the given string is of zero length. + |||, + }, { name: 'asciiUpper', params: ['str'], + availableSince: '0.10.0', description: ||| Returns a copy of the string in which all ASCII letters are capitalized. |||, @@ -424,6 +475,7 @@ local html = import 'html.libsonnet'; { name: 'asciiLower', params: ['str'], + availableSince: '0.10.0', description: ||| Returns a copy of the string in which all ASCII letters are lower cased. |||, @@ -437,6 +489,7 @@ local html = import 'html.libsonnet'; { name: 'stringChars', params: ['str'], + availableSince: '0.10.0', description: ||| Split the string str into an array of strings, each containing a single codepoint. @@ -451,6 +504,7 @@ local html = import 'html.libsonnet'; { name: 'format', params: ['str', 'vals'], + availableSince: '0.10.0', description: ||| Format the string str using the values in vals. The values can be an array, an object, or in other cases are treated as if they were provided in a singleton @@ -480,6 +534,7 @@ local html = import 'html.libsonnet'; { name: 'escapeStringBash', params: ['str'], + availableSince: '0.10.0', description: ||| Wrap str in single quotes, and escape any single quotes within str by changing them to a sequence '"'"'. This allows injection of arbitrary strings @@ -489,6 +544,7 @@ local html = import 'html.libsonnet'; { name: 'escapeStringDollars', params: ['str'], + availableSince: '0.10.0', description: ||| Convert $ to $$ in str. This allows injection of arbitrary strings into systems that use $ for string interpolation (like Terraform). @@ -497,6 +553,7 @@ local html = import 'html.libsonnet'; { name: 'escapeStringJson', params: ['str'], + availableSince: '0.10.0', description: ||| Convert str to allow it to be embedded in a JSON representation, within a string. This adds quotes, escapes backslashes, and escapes unprintable characters. @@ -517,11 +574,29 @@ local html = import 'html.libsonnet'; { name: 'escapeStringPython', params: ['str'], + availableSince: '0.10.0', description: ||| Convert str to allow it to be embedded in Python. This is an alias for std.escapeStringJson. |||, }, + { + name: 'escapeStringXml', + params: ['str'], + availableSince: '0.10.0', + description: ||| + Convert str to allow it to be embedded in XML (or HTML). The following replacements are made: +

+            {
+              "<": "&lt;",
+              ">": "&gt;",
+              "&": "&amp;",
+              "\"": "&quot;",
+              "'": "&apos;",
+            }
+            
+ |||, + }, ], }, { @@ -531,6 +606,7 @@ local html = import 'html.libsonnet'; { name: 'parseInt', params: ['str'], + availableSince: '0.10.0', description: ||| Parses a signed decimal integer from the input string. |||, @@ -548,6 +624,7 @@ local html = import 'html.libsonnet'; { name: 'parseOctal', params: ['str'], + availableSince: '0.10.0', description: ||| Parses an unsigned octal integer from the input string. Initial zeroes are tolerated. |||, @@ -561,6 +638,7 @@ local html = import 'html.libsonnet'; { name: 'parseHex', params: ['str'], + availableSince: '0.10.0', description: ||| Parses an unsigned hexadecimal integer, from the input string. Case insensitive. |||, @@ -573,8 +651,8 @@ local html = import 'html.libsonnet'; }, { name: 'parseJson', - availableSince: '0.13.0', params: ['str'], + availableSince: '0.13.0', description: ||| Parses a JSON string. |||, @@ -587,8 +665,8 @@ local html = import 'html.libsonnet'; }, { name: 'parseYaml', - availableSince: '0.18.0', params: ['str'], + availableSince: '0.18.0', description: ||| Parses a YAML string. This is provided as a "best-effort" mechanism and should not be relied on to provide a fully standards compliant YAML parser. YAML is a superset of JSON, consequently "downcasting" or @@ -631,6 +709,7 @@ local html = import 'html.libsonnet'; { name: 'manifestIni', params: ['ini'], + availableSince: '0.10.0', description: [ html.p({}, ||| Convert the given structure to a string in INI format. This @@ -671,6 +750,7 @@ local html = import 'html.libsonnet'; { name: 'manifestPython', params: ['v'], + availableSince: '0.10.0', description: [ html.p({}, ||| Convert the given value to a JSON-like form that is compatible with Python. The chief @@ -703,6 +783,7 @@ local html = import 'html.libsonnet'; { name: 'manifestPythonVars', params: ['conf'], + availableSince: '0.10.0', description: [ html.p({}, ||| Convert the given object to a JSON-like form that is compatible with Python. The key @@ -734,6 +815,7 @@ local html = import 'html.libsonnet'; { name: 'manifestJsonEx', params: ['value', 'indent', 'newline', 'key_val_sep'], + availableSince: '0.10.0', description: [ html.p({}, ||| Convert the given object to a JSON form. indent is a string containing @@ -826,6 +908,7 @@ local html = import 'html.libsonnet'; { name: 'manifestYamlDoc', params: ['value', 'indent_array_in_object=false', 'quote_keys=true'], + availableSince: '0.10.0', description: [ html.p({}, ||| Convert the given value to a YAML form. Note that std.manifestJson could also @@ -875,6 +958,7 @@ local html = import 'html.libsonnet'; { name: 'manifestYamlStream', params: ['value', 'indent_array_in_object=false', 'c_document_end=false', 'quote_keys=true'], + availableSince: '0.10.0', description: [ html.p({}, ||| Given an array of values, emit a YAML "stream", which is a sequence of documents separated @@ -914,6 +998,7 @@ local html = import 'html.libsonnet'; { name: 'manifestXmlJsonml', params: ['value'], + availableSince: '0.10.0', description: [ html.p({}, ||| Convert the given JsonML-encoded value to a string @@ -1039,6 +1124,7 @@ local html = import 'html.libsonnet'; { name: 'makeArray', params: ['sz', 'func'], + availableSince: '0.10.0', description: ||| Create a new array of sz elements by calling func(i) to initialize each element. Func is expected to be a function that takes a single parameter, the index of @@ -1063,6 +1149,7 @@ local html = import 'html.libsonnet'; { name: 'count', params: ['arr', 'x'], + availableSince: '0.10.0', description: ||| Return the number of times that x occurs in arr. |||, @@ -1070,6 +1157,7 @@ local html = import 'html.libsonnet'; { name: 'find', params: ['value', 'arr'], + availableSince: '0.10.0', description: ||| Returns an array that contains the indexes of all occurrences of value in arr. @@ -1078,6 +1166,7 @@ local html = import 'html.libsonnet'; { name: 'map', params: ['func', 'arr'], + availableSince: '0.10.0', description: ||| Apply the given function to every element of the array to form a new array. |||, @@ -1085,6 +1174,7 @@ local html = import 'html.libsonnet'; { name: 'mapWithIndex', params: ['func', 'arr'], + availableSince: '0.10.0', description: ||| Similar to map above, but it also passes to the function the element's index in the array. The function func is expected to take the index as the @@ -1094,6 +1184,7 @@ local html = import 'html.libsonnet'; { name: 'filterMap', params: ['filter_func', 'map_func', 'arr'], + availableSince: '0.10.0', description: ||| It first filters, then maps the given array, using the two functions provided. |||, @@ -1101,6 +1192,7 @@ local html = import 'html.libsonnet'; { name: 'flatMap', params: ['func', 'arr'], + availableSince: '0.10.0', description: html.paragraphs([ ||| Apply the given function to every element of arr to form a new array then flatten the result. @@ -1134,6 +1226,7 @@ local html = import 'html.libsonnet'; { name: 'filter', params: ['func', 'arr'], + availableSince: '0.10.0', description: ||| Return a new array containing all the elements of arr for which the func function returns true. @@ -1142,6 +1235,7 @@ local html = import 'html.libsonnet'; { name: 'foldl', params: ['func', 'arr', 'init'], + availableSince: '0.10.0', description: ||| Classic foldl function. Calls the function on the result of the previous function call and each array element, or init in the case of the initial element. Traverses the @@ -1151,6 +1245,7 @@ local html = import 'html.libsonnet'; { name: 'foldr', params: ['func', 'arr', 'init'], + availableSince: '0.10.0', description: ||| Classic foldr function. Calls the function on the result of the previous function call and each array element, or init in the case of the initial element. Traverses the @@ -1160,6 +1255,7 @@ local html = import 'html.libsonnet'; { name: 'range', params: ['from', 'to'], + availableSince: '0.10.0', description: ||| Return an array of ascending numbers between the two limits, inclusively. |||, @@ -1185,6 +1281,7 @@ local html = import 'html.libsonnet'; { name: 'slice', params: ['indexable', 'index', 'end', 'step'], + availableSince: '0.10.0', description: html.paragraphs([ ||| Selects the elements of an array or a string from index to end with step and returns an array or a string respectively. @@ -1211,6 +1308,7 @@ local html = import 'html.libsonnet'; { name: 'join', params: ['sep', 'arr'], + availableSince: '0.10.0', description: ||| If sep is a string, then arr must be an array of strings, in which case they are concatenated with sep used as a delimiter. If sep @@ -1231,6 +1329,7 @@ local html = import 'html.libsonnet'; { name: 'lines', params: ['arr'], + availableSince: '0.10.0', description: ||| Concatenate an array of strings into a text file with newline characters after each string. This is suitable for constructing bash scripts and the like. @@ -1239,6 +1338,7 @@ local html = import 'html.libsonnet'; { name: 'flattenArrays', params: ['arr'], + availableSince: '0.10.0', description: ||| Concatenate an array of arrays into a single array. |||, @@ -1260,6 +1360,7 @@ local html = import 'html.libsonnet'; { name: 'sort', params: ['arr', 'keyF=id'], + availableSince: '0.10.0', description: html.paragraphs([ ||| Sorts the array using the <= operator. @@ -1273,6 +1374,7 @@ local html = import 'html.libsonnet'; { name: 'uniq', params: ['arr', 'keyF=id'], + availableSince: '0.10.0', description: html.paragraphs([ ||| Removes successive duplicates. When given a sorted array, removes all duplicates. @@ -1286,7 +1388,7 @@ local html = import 'html.libsonnet'; { name: 'all', params: ['arr'], - availableSince: 'v0.19.0', + availableSince: '0.19.0', description: html.paragraphs([ ||| Return true if all elements of arr is true, false otherwise. all([]) evaluates to true. @@ -1299,7 +1401,7 @@ local html = import 'html.libsonnet'; { name: 'any', params: ['arr'], - availableSince: 'v0.19.0', + availableSince: '0.19.0', description: html.paragraphs([ ||| Return true if any element of arr is true, false otherwise. any([]) evaluates to false. @@ -1309,6 +1411,16 @@ local html = import 'html.libsonnet'; |||, ]), }, + { + name: 'sum', + params: ['arr'], + availableSince: '0.20.0', + description: html.paragraphs([ + ||| + Return sum of all element in arr. + |||, + ]), + }, ], }, { @@ -1333,6 +1445,7 @@ local html = import 'html.libsonnet'; { name: 'set', params: ['arr', 'keyF=id'], + availableSince: '0.10.0', description: ||| Shortcut for std.uniq(std.sort(arr)). |||, @@ -1340,6 +1453,7 @@ local html = import 'html.libsonnet'; { name: 'setInter', params: ['a', 'b', 'keyF=id'], + availableSince: '0.10.0', description: ||| Set intersection operation (values in both a and b). |||, @@ -1347,6 +1461,7 @@ local html = import 'html.libsonnet'; { name: 'setUnion', params: ['a', 'b', 'keyF=id'], + availableSince: '0.10.0', description: ||| Set union operation (values in any of a or b). Note that + on sets will simply concatenate @@ -1367,6 +1482,7 @@ local html = import 'html.libsonnet'; { name: 'setDiff', params: ['a', 'b', 'keyF=id'], + availableSince: '0.10.0', description: ||| Set difference operation (values in a but not b). |||, @@ -1374,6 +1490,7 @@ local html = import 'html.libsonnet'; { name: 'setMember', params: ['x', 'arr', 'keyF=id'], + availableSince: '0.10.0', description: ||| Returns true if x is a member of array, otherwise false. |||, @@ -1387,6 +1504,7 @@ local html = import 'html.libsonnet'; { name: 'base64', params: ['input'], + availableSince: '0.10.0', description: ||| Encodes the given value into a base64 string. The encoding sequence is A-Za-z0-9+/ with = @@ -1398,6 +1516,7 @@ local html = import 'html.libsonnet'; { name: 'base64DecodeBytes', params: ['str'], + availableSince: '0.10.0', description: ||| Decodes the given base64 string into an array of bytes (number values). Currently assumes the input string has no linebreaks and is padded to a multiple of 4 (with the = character). @@ -1407,6 +1526,7 @@ local html = import 'html.libsonnet'; { name: 'base64Decode', params: ['str'], + availableSince: '0.10.0', description: html.paragraphs([ ||| Deprecated, use std.base64DecodeBytes and decode the string explicitly (e.g. with std.decodeUTF8) instead. @@ -1419,12 +1539,35 @@ local html = import 'html.libsonnet'; { name: 'md5', params: ['s'], + availableSince: '0.10.0', description: ||| Encodes the given value into an MD5 string. |||, }, ], }, + { + name: 'Booleans', + id: 'booleans', + fields: [ + { + name: 'xor', + params: ['x', 'y'], + availableSince: '0.20.0', + description: ||| + Returns the xor of the two given booleans. + |||, + }, + { + name: 'xnor', + params: ['x', 'y'], + availableSince: '0.20.0', + description: ||| + Returns the xnor of the two given booleans. + |||, + }, + ], + }, { name: 'JSON Merge Patch', id: 'json_merge_patch', @@ -1432,6 +1575,7 @@ local html = import 'html.libsonnet'; { name: 'mergePatch', params: ['target', 'patch'], + availableSince: '0.10.0', description: ||| Applies patch to target according to RFC7396 diff --git a/pkg/stdlib/stdlib_test.go b/pkg/stdlib/stdlib_test.go index 252839d..0e8b2e6 100644 --- a/pkg/stdlib/stdlib_test.go +++ b/pkg/stdlib/stdlib_test.go @@ -43,6 +43,7 @@ func TestFunctions(t *testing.T) { // Check std.manifestYamlDoc yamlFunc := Function{ Name: "manifestYamlDoc", + AvailableSince: "0.10.0", Params: []string{"value", "indent_array_in_object=false", "quote_keys=true"}, MarkdownDescription: "Convert the given value to a YAML form. Note that `std.manifestJson` could also\nbe used for this purpose, because any JSON is also valid YAML. But this function will\nproduce more canonical-looking YAML.\n\n```\nstd.manifestYamlDoc(\n {\n x: [1, 2, 3, true, false, null,\n \"string\\nstring\\n\"],\n y: { a: 1, b: 2, c: [1, 2] },\n },\n indent_array_in_object=false)\n```\n\nYields a string containing this YAML:\n\n```\n\"x\":\n - 1\n - 2\n - 3\n - true\n - false\n - null\n - |\n string\n string\n\"y\":\n \"a\": 1\n \"b\": 2\n \"c\":\n - 1\n - 2\n```\n\nThe `indent_array_in_object` param adds additional indentation which some people\nmay find easier to read.\n\nThe `quote_keys` parameter controls whether YAML identifiers are always quoted\nor only when necessary.", } From 4214e85a4a08360a5ba328aaddc9e4bf0fcafbad Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 2 May 2023 07:34:56 -0400 Subject: [PATCH 050/124] Full completion support (#93) Closes https://github.com/grafana/jsonnet-language-server/issues/5 Simplified the code in the process. Completion was using it's own stack-walking code, I moved it to use the same thing as go-to-definition --- pkg/ast/processing/find_field.go | 39 +++++---- pkg/ast/processing/find_param.go | 6 +- pkg/ast/processing/object_range.go | 4 + pkg/ast/processing/top_level_objects.go | 6 +- pkg/server/completion.go | 111 ++++++++++-------------- pkg/server/completion_test.go | 94 ++++++++++++++++++++ pkg/server/definition.go | 4 +- 7 files changed, 177 insertions(+), 87 deletions(-) diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index c34704c..a5765aa 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -11,7 +11,7 @@ import ( log "github.com/sirupsen/logrus" ) -func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm *jsonnet.VM) ([]ObjectRange, error) { +func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm *jsonnet.VM, partialMatchFields bool) ([]ObjectRange, error) { var foundDesugaredObjects []*ast.DesugaredObject // First element will be super, self, or var name start, indexList := indexList[0], indexList[1:] @@ -45,7 +45,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm // Get ast.DesugaredObject at variable definition by getting bind then setting ast.DesugaredObject bind := FindBindByIDViaStack(stack, ast.Identifier(start)) if bind == nil { - param := FindParameterByIDViaStack(stack, ast.Identifier(start)) + param := FindParameterByIDViaStack(stack, ast.Identifier(start), partialMatchFields) if param != nil { return []ObjectRange{ { @@ -69,7 +69,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm case *ast.Index, *ast.Apply: tempStack := nodestack.NewNodeStack(bodyNode) indexList = append(tempStack.BuildIndexList(), indexList...) - return FindRangesFromIndexList(stack, indexList, vm) + return FindRangesFromIndexList(stack, indexList, vm, partialMatchFields) case *ast.Function: // If the function's body is an object, it means we can look for indexes within the function if funcBody := findChildDesugaredObject(bodyNode.Body); funcBody != nil { @@ -80,15 +80,15 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm } } - return extractObjectRangesFromDesugaredObjs(stack, vm, foundDesugaredObjects, sameFileOnly, indexList) + return extractObjectRangesFromDesugaredObjs(stack, vm, foundDesugaredObjects, sameFileOnly, indexList, partialMatchFields) } -func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonnet.VM, desugaredObjs []*ast.DesugaredObject, sameFileOnly bool, indexList []string) ([]ObjectRange, error) { +func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonnet.VM, desugaredObjs []*ast.DesugaredObject, sameFileOnly bool, indexList []string, partialMatchFields bool) ([]ObjectRange, error) { var ranges []ObjectRange for len(indexList) > 0 { index := indexList[0] indexList = indexList[1:] - foundFields := findObjectFieldsInObjects(desugaredObjs, index) + foundFields := findObjectFieldsInObjects(desugaredObjs, index, partialMatchFields) desugaredObjs = nil if len(foundFields) == 0 { return nil, fmt.Errorf("field %s was not found in ast.DesugaredObject", index) @@ -98,7 +98,8 @@ func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonne ranges = append(ranges, FieldToRange(*found)) // If the field is not PlusSuper (field+: value), we stop there. Other previous values are not relevant - if !found.PlusSuper { + // If partialMatchFields is true, we can continue to look for other fields + if !found.PlusSuper && !partialMatchFields { break } } @@ -134,7 +135,7 @@ func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonne desugaredObjs = append(desugaredObjs, fieldNode) case *ast.Index: additionalIndexList := append(nodestack.NewNodeStack(fieldNode).BuildIndexList(), indexList...) - result, err := FindRangesFromIndexList(stack, additionalIndexList, vm) + result, err := FindRangesFromIndexList(stack, additionalIndexList, vm, partialMatchFields) if len(result) > 0 { if !sameFileOnly || result[0].Filename == stack.From.Loc().FileName { return result, err @@ -186,32 +187,36 @@ func unpackFieldNodes(vm *jsonnet.VM, fields []*ast.DesugaredObjectField) ([]ast return fieldNodes, nil } -func findObjectFieldsInObjects(objectNodes []*ast.DesugaredObject, index string) []*ast.DesugaredObjectField { +func findObjectFieldsInObjects(objectNodes []*ast.DesugaredObject, index string, partialMatchFields bool) []*ast.DesugaredObjectField { var matchingFields []*ast.DesugaredObjectField for _, object := range objectNodes { - field := findObjectFieldInObject(object, index) - if field != nil { - matchingFields = append(matchingFields, field) - } + fields := findObjectFieldsInObject(object, index, partialMatchFields) + matchingFields = append(matchingFields, fields...) } return matchingFields } -func findObjectFieldInObject(objectNode *ast.DesugaredObject, index string) *ast.DesugaredObjectField { +func findObjectFieldsInObject(objectNode *ast.DesugaredObject, index string, partialMatchFields bool) []*ast.DesugaredObjectField { if objectNode == nil { return nil } + + var matchingFields []*ast.DesugaredObjectField for _, field := range objectNode.Fields { + field := field literalString, isString := field.Name.(*ast.LiteralString) if !isString { continue } log.Debugf("Checking index name %s against field name %s", index, literalString.Value) - if index == literalString.Value { - return &field + if index == literalString.Value || (partialMatchFields && strings.HasPrefix(literalString.Value, index)) { + matchingFields = append(matchingFields, &field) + if !partialMatchFields { + break + } } } - return nil + return matchingFields } func findChildDesugaredObject(node ast.Node) *ast.DesugaredObject { diff --git a/pkg/ast/processing/find_param.go b/pkg/ast/processing/find_param.go index 146f9c1..33a170f 100644 --- a/pkg/ast/processing/find_param.go +++ b/pkg/ast/processing/find_param.go @@ -1,15 +1,17 @@ package processing import ( + "strings" + "github.com/google/go-jsonnet/ast" "github.com/grafana/jsonnet-language-server/pkg/nodestack" ) -func FindParameterByIDViaStack(stack *nodestack.NodeStack, id ast.Identifier) *ast.Parameter { +func FindParameterByIDViaStack(stack *nodestack.NodeStack, id ast.Identifier, partialMatchFields bool) *ast.Parameter { for _, node := range stack.Stack { if f, ok := node.(*ast.Function); ok { for _, param := range f.Parameters { - if param.Name == id { + if param.Name == id || (partialMatchFields && strings.HasPrefix(string(param.Name), string(id))) { return ¶m } } diff --git a/pkg/ast/processing/object_range.go b/pkg/ast/processing/object_range.go index 6d09720..1d5be49 100644 --- a/pkg/ast/processing/object_range.go +++ b/pkg/ast/processing/object_range.go @@ -11,6 +11,8 @@ type ObjectRange struct { Filename string SelectionRange ast.LocationRange FullRange ast.LocationRange + FieldName string + Node ast.Node } func FieldToRange(field ast.DesugaredObjectField) ObjectRange { @@ -28,6 +30,8 @@ func FieldToRange(field ast.DesugaredObjectField) ObjectRange { Filename: field.LocRange.FileName, SelectionRange: selectionRange, FullRange: field.LocRange, + FieldName: FieldNameToString(field.Name), + Node: field.Body, } } diff --git a/pkg/ast/processing/top_level_objects.go b/pkg/ast/processing/top_level_objects.go index d0a2ad8..b628808 100644 --- a/pkg/ast/processing/top_level_objects.go +++ b/pkg/ast/processing/top_level_objects.go @@ -43,9 +43,9 @@ func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.Desu if !indexIsString { continue } - obj := findObjectFieldInObject(containerObj, indexValue.Value) - if obj != nil { - stack.Push(obj.Body) + objs := findObjectFieldsInObject(containerObj, indexValue.Value, false) + if len(objs) > 0 { + stack.Push(objs[0].Body) } } case *ast.Var: diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 67a3637..9bf413c 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -2,12 +2,12 @@ package server import ( "context" + "reflect" "sort" "strings" "github.com/google/go-jsonnet" "github.com/google/go-jsonnet/ast" - "github.com/google/go-jsonnet/toolutils" "github.com/grafana/jsonnet-language-server/pkg/ast/processing" "github.com/grafana/jsonnet-language-server/pkg/nodestack" position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" @@ -63,9 +63,8 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm lastWord = strings.TrimRight(lastWord, ",;") // Ignore trailing commas and semicolons, they can present when someone is modifying an existing line indexes := strings.Split(lastWord, ".") - firstIndex, indexes := indexes[0], indexes[1:] - if len(indexes) == 0 { + if len(indexes) == 1 { var items []protocol.CompletionItem // firstIndex is a variable (local) completion for !stack.IsEmpty() { @@ -73,7 +72,7 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm for _, bind := range curr.Binds { label := string(bind.Variable) - if !strings.HasPrefix(label, firstIndex) { + if !strings.HasPrefix(label, indexes[0]) { continue } @@ -84,46 +83,14 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm return items } - if len(indexes) > 1 { - // TODO: Support multiple indexes, the objects to search through will be the reference in the last index + ranges, err := processing.FindRangesFromIndexList(stack, indexes, vm, true) + if err != nil { + log.Errorf("Completion: error finding ranges: %v", err) return nil } - var ( - objectsToSearch []*ast.DesugaredObject - ) - - if firstIndex == "self" { - // Search through the current stack - objectsToSearch = processing.FindTopLevelObjects(stack, vm) - } else { - // If the index is something other than 'self', find what it refers to (Var reference) and find objects in that - for !stack.IsEmpty() { - curr := stack.Pop() - - if targetVar, ok := curr.(*ast.Var); ok && string(targetVar.Id) == firstIndex { - ref, _ := processing.FindVarReference(targetVar, vm) - - switch ref := ref.(type) { - case *ast.Self: // This case catches `$` references (it's set as a self reference on the root object) - objectsToSearch = processing.FindTopLevelObjects(nodestack.NewNodeStack(stack.From), vm) - case *ast.DesugaredObject: - objectsToSearch = []*ast.DesugaredObject{ref} - case *ast.Import: - filename := ref.File.Value - objectsToSearch = processing.FindTopLevelObjectsInFile(vm, filename, string(curr.Loc().File.DiagnosticFileName)) - } - break - } - - for _, node := range toolutils.Children(curr) { - stack.Push(node) - } - } - } - - fieldPrefix := indexes[0] - return createCompletionItemsFromObjects(objectsToSearch, firstIndex, fieldPrefix, line) + completionPrefix := strings.Join(indexes[:len(indexes)-1], ".") + return createCompletionItemsFromRanges(ranges, completionPrefix, line) } func (s *Server) completionStdLib(line string) []protocol.CompletionItem { @@ -165,31 +132,24 @@ func (s *Server) completionStdLib(line string) []protocol.CompletionItem { return items } -func createCompletionItemsFromObjects(objects []*ast.DesugaredObject, firstIndex, fieldPrefix, currentLine string) []protocol.CompletionItem { +func createCompletionItemsFromRanges(ranges []processing.ObjectRange, completionPrefix, currentLine string) []protocol.CompletionItem { var items []protocol.CompletionItem labels := make(map[string]bool) - for _, obj := range objects { - for _, field := range obj.Fields { - label := processing.FieldNameToString(field.Name) - - if labels[label] { - continue - } - - // Ignore fields that don't match the prefix - if !strings.HasPrefix(label, fieldPrefix) { - continue - } + for _, field := range ranges { + label := field.FieldName - // Ignore the current field - if strings.Contains(currentLine, label+":") { - continue - } + if labels[label] { + continue + } - items = append(items, createCompletionItem(label, firstIndex+"."+label, protocol.FieldCompletion, field.Body)) - labels[label] = true + // Ignore the current field + if strings.Contains(currentLine, label+":") && completionPrefix == "self" { + continue } + + items = append(items, createCompletionItem(label, completionPrefix+"."+label, protocol.FieldCompletion, field.Node)) + labels[label] = true } sort.Slice(items, func(i, j int) bool { @@ -213,9 +173,34 @@ func createCompletionItem(label, detail string, kind protocol.CompletionItemKind } return protocol.CompletionItem{ - Label: label, - Detail: detail, - Kind: kind, + Label: label, + Detail: detail, + Kind: kind, + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: typeToString(body), + }, InsertText: insertText, } } + +func typeToString(t ast.Node) string { + switch t.(type) { + case *ast.Array: + return "array" + case *ast.LiteralBoolean: + return "boolean" + case *ast.Function: + return "function" + case *ast.LiteralNull: + return "null" + case *ast.LiteralNumber: + return "number" + case *ast.Object, *ast.DesugaredObject: + return "object" + case *ast.LiteralString: + return "string" + case *ast.Import, *ast.ImportStr: + return "import" + } + return reflect.TypeOf(t).String() +} diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index 22ea761..f991da7 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -162,6 +162,9 @@ func TestCompletion(t *testing.T) { Kind: protocol.FunctionCompletion, Detail: "self.greet(name)", InsertText: "greet(name)", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "function", + }, }}, }, }, @@ -187,6 +190,9 @@ func TestCompletion(t *testing.T) { Kind: protocol.FunctionCompletion, Detail: "self.greet(name)", InsertText: "greet(name)", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "function", + }, }}, }, }, @@ -202,6 +208,9 @@ func TestCompletion(t *testing.T) { Kind: protocol.FieldCompletion, Detail: "self.foo", InsertText: "foo", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, }}, }, }, @@ -217,6 +226,9 @@ func TestCompletion(t *testing.T) { Kind: protocol.VariableCompletion, Detail: "somevar", InsertText: "somevar", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, }}, }, }, @@ -232,6 +244,9 @@ func TestCompletion(t *testing.T) { Kind: protocol.VariableCompletion, Detail: "somevar", InsertText: "somevar", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, }}, }, }, @@ -258,12 +273,18 @@ func TestCompletion(t *testing.T) { Kind: protocol.FieldCompletion, Detail: "otherfile.bar", InsertText: "bar", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, }, { Label: "foo", Kind: protocol.FieldCompletion, Detail: "otherfile.foo", InsertText: "foo", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, }, }, }, @@ -281,6 +302,9 @@ func TestCompletion(t *testing.T) { Kind: protocol.FieldCompletion, Detail: "otherfile.bar", InsertText: "bar", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, }, }, }, @@ -298,12 +322,18 @@ func TestCompletion(t *testing.T) { Kind: protocol.FieldCompletion, Detail: "$.attribute", InsertText: "attribute", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, }, { Label: "attribute2", Kind: protocol.FieldCompletion, Detail: "$.attribute2", InsertText: "attribute2", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, }, }, }, @@ -321,12 +351,76 @@ func TestCompletion(t *testing.T) { Kind: protocol.FieldCompletion, Detail: "$.attribute", InsertText: "attribute", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, }, { Label: "attribute2", Kind: protocol.FieldCompletion, Detail: "$.attribute2", InsertText: "attribute2", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, + }, + }, + }, + }, + { + name: "autocomplete nested imported file", + filename: "testdata/goto-nested-imported-file.jsonnet", + replaceString: "foo: file.foo,", + replaceByString: "foo: file.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "bar", + Kind: protocol.FieldCompletion, + Detail: "file.bar", + InsertText: "bar", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + }, + { + Label: "foo", + Kind: protocol.FieldCompletion, + Detail: "file.foo", + InsertText: "foo", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + }, + }, + }, + }, + { + name: "autocomplete multiple fields within local", + filename: "testdata/goto-indexes.jsonnet", + replaceString: "attr: obj.foo", + replaceByString: "attr: obj.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "bar", + Kind: protocol.FieldCompletion, + Detail: "obj.bar", + InsertText: "bar", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + }, + { + Label: "foo", + Kind: protocol.FieldCompletion, + Detail: "obj.foo", + InsertText: "foo", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, }, }, }, diff --git a/pkg/server/definition.go b/pkg/server/definition.go index ecbe272..071d585 100644 --- a/pkg/server/definition.go +++ b/pkg/server/definition.go @@ -74,7 +74,7 @@ func findDefinition(root ast.Node, params *protocol.DefinitionParams, vm *jsonne if bind := processing.FindBindByIDViaStack(searchStack, deepestNode.Id); bind != nil { objectRange = processing.LocalBindToRange(*bind) - } else if param := processing.FindParameterByIDViaStack(searchStack, deepestNode.Id); param != nil { + } else if param := processing.FindParameterByIDViaStack(searchStack, deepestNode.Id, false); param != nil { objectRange = processing.ObjectRange{ Filename: param.LocRange.FileName, FullRange: param.LocRange, @@ -93,7 +93,7 @@ func findDefinition(root ast.Node, params *protocol.DefinitionParams, vm *jsonne indexSearchStack := nodestack.NewNodeStack(deepestNode) indexList := indexSearchStack.BuildIndexList() tempSearchStack := *searchStack - objectRanges, err := processing.FindRangesFromIndexList(&tempSearchStack, indexList, vm) + objectRanges, err := processing.FindRangesFromIndexList(&tempSearchStack, indexList, vm, false) if err != nil { return nil, err } From df7a9d56a0581e6c725cf120398901b2d70b7604 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 May 2023 07:35:12 -0400 Subject: [PATCH 051/124] Bump github.com/JohannesKaufmann/html-to-markdown from 1.3.7 to 1.4.0 (#94) Bumps [github.com/JohannesKaufmann/html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown) from 1.3.7 to 1.4.0. - [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases) - [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v1.3.7...v1.4.0) --- updated-dependencies: - dependency-name: github.com/JohannesKaufmann/html-to-markdown dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 6 +++--- go.sum | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index 5148d7c..09982cc 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/grafana/jsonnet-language-server go 1.19 require ( - github.com/JohannesKaufmann/html-to-markdown v1.3.7 + github.com/JohannesKaufmann/html-to-markdown v1.4.0 github.com/google/go-jsonnet v0.20.0 github.com/grafana/tanka v0.24.0 github.com/hexops/gotextdiff v1.0.3 @@ -38,8 +38,8 @@ require ( github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.0 // indirect golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect - golang.org/x/net v0.8.0 // indirect - golang.org/x/sys v0.6.0 // indirect + golang.org/x/net v0.9.0 // indirect + golang.org/x/sys v0.7.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index ea73ae9..328b952 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/JohannesKaufmann/html-to-markdown v1.3.7 h1:06rF6ct6hDbB7ur380y9Vv26UowFdTFYljSv6f4VjdI= -github.com/JohannesKaufmann/html-to-markdown v1.3.7/go.mod h1:BzWBqKEgKeVFX4EHEF98koY2ZnAfUM6ahWmXSWAAq9o= +github.com/JohannesKaufmann/html-to-markdown v1.4.0 h1:uaIPDub6VrBsQP0r5xKjpPo9lxMcuQF1L1pT6BiBdmw= +github.com/JohannesKaufmann/html-to-markdown v1.4.0/go.mod h1:3p+lDUqSw+cxolZl7OINYzJ70JHXogXjyCl9UnMQ5gU= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= @@ -111,8 +111,8 @@ golang.org/x/net v0.0.0-20210916014120-12bc252f5db8/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= +golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -129,18 +129,18 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= +golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= From 69230fe700d4bad6debcc2c11ed91cf1b035a892 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 2 May 2023 08:24:03 -0400 Subject: [PATCH 052/124] Update default.nix --- nix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/default.nix b/nix/default.nix index ef3bdd5..c6f1767 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -3,13 +3,13 @@ with pkgs; buildGoModule rec { pname = "jsonnet-language-server"; - version = "0.11.0"; + version = "0.12.0"; ldflags = '' -X main.version=${version} ''; src = lib.cleanSource ../.; - vendorSha256 = "sha256-ZyTo79M5nqtqrtTOGanzgHcnSvqCKACacNBWzhYG5nY="; + vendorSha256 = "sha256-lC3GAOJ/XVzn+9kk4PnW/7UwqjiXP7DqYmqauwOqQ+k="; meta = with lib; { description = "A Language Server Protocol server for Jsonnet"; From cc09479584d8a5b520f0a9d5ca1c5b2e3e620421 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Fri, 12 May 2023 13:44:40 -0400 Subject: [PATCH 053/124] fix: Protect against completion NPE (#96) Closes https://github.com/grafana/jsonnet-language-server/issues/95 --- pkg/server/completion.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 9bf413c..bfd8a91 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -139,6 +139,10 @@ func createCompletionItemsFromRanges(ranges []processing.ObjectRange, completion for _, field := range ranges { label := field.FieldName + if field.Node == nil { + continue + } + if labels[label] { continue } From b9a79441640e87fdf8ea56548e0349dd789dd216 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 16 May 2023 07:37:40 -0400 Subject: [PATCH 054/124] Bump github.com/grafana/tanka from 0.24.0 to 0.25.0 (#97) Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.24.0 to 0.25.0. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.24.0...v0.25.0) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 6 +++--- go.sum | 13 +++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 09982cc..d337172 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/JohannesKaufmann/html-to-markdown v1.4.0 github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.24.0 + github.com/grafana/tanka v0.25.0 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -26,7 +26,7 @@ require ( github.com/google/uuid v1.3.0 // indirect github.com/huandu/xstrings v1.3.2 // indirect github.com/imdario/mergo v0.3.12 // indirect - github.com/karrick/godirwalk v1.16.1 // indirect + github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-colorable v0.1.12 // indirect github.com/mattn/go-isatty v0.0.14 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect @@ -39,7 +39,7 @@ require ( github.com/stretchr/objx v0.5.0 // indirect golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect golang.org/x/net v0.9.0 // indirect - golang.org/x/sys v0.7.0 // indirect + golang.org/x/sys v0.8.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 328b952..9b8b18b 100644 --- a/go.sum +++ b/go.sum @@ -21,14 +21,14 @@ github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYF github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.24.0 h1:GwW3D2/TU2SjPdS2IfgAFd36T5iZWs6zIcxxsxmpnpc= -github.com/grafana/tanka v0.24.0/go.mod h1:2JRHwdhELXdwJwUiy45NnSjEKwN4DM1+5PvOdnczVvY= +github.com/grafana/tanka v0.25.0 h1:4S5ouwiXx6TDTxjLAFxhfHanJA20PfvWwMXjCOpqVQ4= +github.com/grafana/tanka v0.25.0/go.mod h1:5jFLE73Qrzs/YHugOTJCCPrILbQZaIyHahrBfnXYtzA= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= @@ -39,8 +39,8 @@ github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 h1:t0A10MAY8Z3eeBIBzlzrPpdjsag6Biuxq8iMCHmdGU8= github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2/go.mod h1:Hp8QDOEcdn4aDZ+DFTda+smIB0b5MvII4Q0Jo0y2VkA= -github.com/karrick/godirwalk v1.16.1 h1:DynhcF+bztK8gooS0+NDJFrdNZjJ3gzVzC545UNA9iw= -github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= +github.com/karrick/godirwalk v1.17.0 h1:b4kY7nqDdioR/6qnbHQyDvmA17u5G1cZ6J+CZXwSWoI= +github.com/karrick/godirwalk v1.17.0/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -129,8 +129,9 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= From c045b4f78315d1e6c41a6ed34b62b799951444ae Mon Sep 17 00:00:00 2001 From: Jeroen Op 't Eynde Date: Wed, 17 May 2023 13:43:54 +0200 Subject: [PATCH 055/124] docs(editor): fix lspconfig setup (#98) --- editor/vim/README.md | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/editor/vim/README.md b/editor/vim/README.md index d5501b8..ffddc0d 100644 --- a/editor/vim/README.md +++ b/editor/vim/README.md @@ -14,23 +14,25 @@ The LSP integration will depend on the vim plugin you're using * Configure settings via [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) ```lua require'lspconfig'.jsonnet_ls.setup{ - ext_vars = { - foo = 'bar', - }, - formatting = { - -- default values - Indent = 2, - MaxBlankLines = 2, - StringStyle = 'single', - CommentStyle = 'slash', - PrettyFieldNames = true, - PadArrays = false, - PadObjects = true, - SortImports = true, - UseImplicitPlus = true, - StripEverything = false, - StripComments = false, - StripAllButComments = false, + settings = { + ext_vars = { + foo = 'bar', + }, + formatting = { + -- default values + Indent = 2, + MaxBlankLines = 2, + StringStyle = 'single', + CommentStyle = 'slash', + PrettyFieldNames = true, + PadArrays = false, + PadObjects = true, + SortImports = true, + UseImplicitPlus = true, + StripEverything = false, + StripComments = false, + StripAllButComments = false, + }, }, } ``` From 2c5b240d8f1a3aa30bef1b98dbb048f11f3e209a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 May 2023 07:38:37 -0400 Subject: [PATCH 056/124] Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#100) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.3. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.3) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index d337172..f1a8628 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 github.com/sirupsen/logrus v1.9.0 - github.com/stretchr/testify v1.8.2 + github.com/stretchr/testify v1.8.3 ) require ( diff --git a/go.sum b/go.sum index 9b8b18b..33e1996 100644 --- a/go.sum +++ b/go.sum @@ -92,8 +92,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yuin/goldmark v1.5.4 h1:2uY/xC0roWy8IBEGLgB1ywIoEJFGmRrX21YQcvGZzjU= github.com/yuin/goldmark v1.5.4/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= From dc85eed5dcdeb1ee80dd43999349c910f295ad5e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 May 2023 08:54:55 -0400 Subject: [PATCH 057/124] Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2 (#101) Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.0 to 1.9.2. - [Release notes](https://github.com/sirupsen/logrus/releases) - [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md) - [Commits](https://github.com/sirupsen/logrus/compare/v1.9.0...v1.9.2) --- updated-dependencies: - dependency-name: github.com/sirupsen/logrus dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index f1a8628..a7583fa 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 - github.com/sirupsen/logrus v1.9.0 + github.com/sirupsen/logrus v1.9.2 github.com/stretchr/testify v1.8.3 ) diff --git a/go.sum b/go.sum index 33e1996..fc362d2 100644 --- a/go.sum +++ b/go.sum @@ -76,8 +76,8 @@ github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNX github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= -github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sirupsen/logrus v1.9.2 h1:oxx1eChJGI6Uks2ZC4W1zpLlVgqB8ner4EuQwV4Ik1Y= +github.com/sirupsen/logrus v1.9.2/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= From 452926b71e18c4cc8f901458d825d011d93db111 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 6 Jun 2023 14:53:11 -0400 Subject: [PATCH 058/124] Fix linting (#106) We don't need depguard in this repo --- .golangci.toml | 1 - pkg/server/diagnostics.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.golangci.toml b/.golangci.toml index e141ec5..1178a69 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -1,6 +1,5 @@ [linters] enable = [ - "depguard", "dogsled", "exportloopref", "forcetypeassert", diff --git a/pkg/server/diagnostics.go b/pkg/server/diagnostics.go index 53de11a..a13e7b9 100644 --- a/pkg/server/diagnostics.go +++ b/pkg/server/diagnostics.go @@ -159,7 +159,7 @@ func (s *Server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { lines := strings.Split(doc.err.Error(), "\n") if len(lines) == 0 { log.Errorf("publishDiagnostics: expected at least two lines of Jsonnet evaluation error output, got: %v\n", lines) - return + return diags } var match []string From 9c40b7a06d94914e05ec2d0529552d0365c95d9c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Jun 2023 18:11:05 -0400 Subject: [PATCH 059/124] Bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3 (#105) Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.2 to 1.9.3. - [Release notes](https://github.com/sirupsen/logrus/releases) - [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md) - [Commits](https://github.com/sirupsen/logrus/compare/v1.9.2...v1.9.3) --- updated-dependencies: - dependency-name: github.com/sirupsen/logrus dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index a7583fa..845c3bf 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 - github.com/sirupsen/logrus v1.9.2 + github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.8.3 ) diff --git a/go.sum b/go.sum index fc362d2..d66bde2 100644 --- a/go.sum +++ b/go.sum @@ -76,8 +76,8 @@ github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNX github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/sirupsen/logrus v1.9.2 h1:oxx1eChJGI6Uks2ZC4W1zpLlVgqB8ner4EuQwV4Ik1Y= -github.com/sirupsen/logrus v1.9.2/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= From bba4b7a1b21a91ddd5b627a4ef20cc564ad06803 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Jun 2023 18:20:10 -0400 Subject: [PATCH 060/124] Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#104) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.8.3...v1.8.4) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 845c3bf..3f2d4c3 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 github.com/sirupsen/logrus v1.9.3 - github.com/stretchr/testify v1.8.3 + github.com/stretchr/testify v1.8.4 ) require ( diff --git a/go.sum b/go.sum index d66bde2..89c56ad 100644 --- a/go.sum +++ b/go.sum @@ -92,8 +92,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yuin/goldmark v1.5.4 h1:2uY/xC0roWy8IBEGLgB1ywIoEJFGmRrX21YQcvGZzjU= github.com/yuin/goldmark v1.5.4/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= From 3484c24c594f8ecb5a277c5af43ec7114820efff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Aug 2023 07:14:04 -0400 Subject: [PATCH 061/124] Bump github.com/grafana/tanka from 0.25.0 to 0.26.0 (#112) --- go.mod | 21 ++++++++++----------- go.sum | 58 ++++++++++++++++++++++++++++------------------------------ 2 files changed, 38 insertions(+), 41 deletions(-) diff --git a/go.mod b/go.mod index 3f2d4c3..81a9021 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/JohannesKaufmann/html-to-markdown v1.4.0 github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.25.0 + github.com/grafana/tanka v0.26.0 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -15,31 +15,30 @@ require ( require ( github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver v1.5.0 // indirect - github.com/Masterminds/semver/v3 v3.1.1 // indirect - github.com/Masterminds/sprig/v3 v3.2.2 // indirect + github.com/Masterminds/semver/v3 v3.2.0 // indirect + github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/PuerkitoBio/goquery v1.8.1 // indirect github.com/andybalholm/cascadia v1.3.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/fatih/color v1.13.0 // indirect + github.com/fatih/color v1.15.0 // indirect github.com/gobwas/glob v0.2.3 // indirect github.com/google/uuid v1.3.0 // indirect - github.com/huandu/xstrings v1.3.2 // indirect + github.com/huandu/xstrings v1.3.3 // indirect github.com/imdario/mergo v0.3.12 // indirect github.com/karrick/godirwalk v1.17.0 // indirect - github.com/mattn/go-colorable v0.1.12 // indirect - github.com/mattn/go-isatty v0.0.14 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.17 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/rs/zerolog v1.28.0 // indirect + github.com/rs/zerolog v1.30.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.0 // indirect - golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect + golang.org/x/crypto v0.3.0 // indirect golang.org/x/net v0.9.0 // indirect - golang.org/x/sys v0.8.0 // indirect + golang.org/x/sys v0.10.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 89c56ad..44a6414 100644 --- a/go.sum +++ b/go.sum @@ -2,22 +2,20 @@ github.com/JohannesKaufmann/html-to-markdown v1.4.0 h1:uaIPDub6VrBsQP0r5xKjpPo9l github.com/JohannesKaufmann/html-to-markdown v1.4.0/go.mod h1:3p+lDUqSw+cxolZl7OINYzJ70JHXogXjyCl9UnMQ5gU= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= -github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc= -github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8= -github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= +github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= +github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= +github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= github.com/PuerkitoBio/goquery v1.8.1 h1:uQxhNlArOIdbrH1tr0UXwdVFgDcZDrZVdcpygAcwmWM= github.com/PuerkitoBio/goquery v1.8.1/go.mod h1:Q8ICL1kNUJ2sXGoAhPGUdYDJvgQgHzJsnnd3H7Ho5jQ= github.com/andybalholm/cascadia v1.3.1 h1:nhxRkql1kdYCc8Snf7D5/D3spOX+dBgjA6u8x004T2c= github.com/andybalholm/cascadia v1.3.1/go.mod h1:R4bJ1UQfqADjvDa4P6HZHLh/3OxWWEqc0Sk8XGwHqvA= -github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -27,13 +25,12 @@ github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9 github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.25.0 h1:4S5ouwiXx6TDTxjLAFxhfHanJA20PfvWwMXjCOpqVQ4= -github.com/grafana/tanka v0.25.0/go.mod h1:5jFLE73Qrzs/YHugOTJCCPrILbQZaIyHahrBfnXYtzA= +github.com/grafana/tanka v0.26.0 h1:qyP+l1mQ9byku3L6swEEl4n3KDeHqBr33KdCGNiEG2c= +github.com/grafana/tanka v0.26.0/go.mod h1:tYhhrouDY2Z8UvJvn0sI10vHXCyaEeHTHn9Y91Xh8mY= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= -github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4= +github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= @@ -46,12 +43,13 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= +github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= @@ -65,9 +63,9 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.28.0 h1:MirSo27VyNi7RJYP3078AA1+Cyzd2GB66qy3aUHvsWY= -github.com/rs/zerolog v1.28.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.30.0 h1:SymVODrcRsaRaSInD9yQtKbtWqwsfoPcRff/oRXLj4c= +github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w= github.com/sebdah/goldie/v2 v2.5.3 h1:9ES/mNN+HNUbNWpVAlrzuZ7jE+Nrczbj8uFRjM7624Y= github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= @@ -98,17 +96,16 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t github.com/yuin/goldmark v1.5.4 h1:2uY/xC0roWy8IBEGLgB1ywIoEJFGmRrX21YQcvGZzjU= github.com/yuin/goldmark v1.5.4/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA= -golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.3.0 h1:a06MkbcxBrEFc0w0QIZWXrH/9cCX6KJyWbBOIwAn+7A= +golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210916014120-12bc252f5db8/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= @@ -117,9 +114,6 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -128,18 +122,22 @@ golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= +golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= From 24235f8666e6bd33ebc19e69244b5be6c358a0b9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Aug 2023 19:20:17 -0400 Subject: [PATCH 062/124] Bump github.com/JohannesKaufmann/html-to-markdown from 1.4.0 to 1.4.1 (#116) Bumps [github.com/JohannesKaufmann/html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown) from 1.4.0 to 1.4.1. - [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases) - [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v1.4.0...v1.4.1) --- updated-dependencies: - dependency-name: github.com/JohannesKaufmann/html-to-markdown dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 8 ++++---- go.sum | 26 +++++++++++++++----------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 81a9021..6a288f4 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/grafana/jsonnet-language-server go 1.19 require ( - github.com/JohannesKaufmann/html-to-markdown v1.4.0 + github.com/JohannesKaufmann/html-to-markdown v1.4.1 github.com/google/go-jsonnet v0.20.0 github.com/grafana/tanka v0.26.0 github.com/hexops/gotextdiff v1.0.3 @@ -36,9 +36,9 @@ require ( github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.0 // indirect - golang.org/x/crypto v0.3.0 // indirect - golang.org/x/net v0.9.0 // indirect - golang.org/x/sys v0.10.0 // indirect + golang.org/x/crypto v0.12.0 // indirect + golang.org/x/net v0.14.0 // indirect + golang.org/x/sys v0.11.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 44a6414..64b0c38 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/JohannesKaufmann/html-to-markdown v1.4.0 h1:uaIPDub6VrBsQP0r5xKjpPo9lxMcuQF1L1pT6BiBdmw= -github.com/JohannesKaufmann/html-to-markdown v1.4.0/go.mod h1:3p+lDUqSw+cxolZl7OINYzJ70JHXogXjyCl9UnMQ5gU= +github.com/JohannesKaufmann/html-to-markdown v1.4.1 h1:CMAl6hz2MRfs03ZGAwYqQTC43Egi3vbc9SVo6nEKUE0= +github.com/JohannesKaufmann/html-to-markdown v1.4.1/go.mod h1:1zaDDQVWTRwNksmTUTkcVXqgNF28YHiEUIm8FL9Z+II= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= @@ -93,12 +93,13 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yuin/goldmark v1.5.4 h1:2uY/xC0roWy8IBEGLgB1ywIoEJFGmRrX21YQcvGZzjU= -github.com/yuin/goldmark v1.5.4/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.5.5 h1:IJznPe8wOzfIKETmMkd06F8nXkmlhaHqFRM9l1hAGsU= +github.com/yuin/goldmark v1.5.5/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.3.0 h1:a06MkbcxBrEFc0w0QIZWXrH/9cCX6KJyWbBOIwAn+7A= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= +golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= +golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -108,8 +109,9 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= -golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= +golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -125,14 +127,15 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= -golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -140,6 +143,7 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= From 92fc191af3186cd276d2fe5a23ce63e183e59947 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 23 Aug 2023 10:22:11 -0400 Subject: [PATCH 063/124] Completion: Fix two issues with local vars (#117) * Completion: Fix two issues with local vars Closes https://github.com/grafana/jsonnet-language-server/issues/114 Closes https://github.com/grafana/jsonnet-language-server/issues/115 I still have #113 to fix but I'll do it in another PR * Fix linting * Fix linting --- pkg/ast/processing/find_bind.go | 4 +- pkg/ast/processing/find_field.go | 1 + pkg/server/completion_test.go | 85 ++++++++++++++++++++- pkg/server/testdata/local-at-root-2.jsonnet | 5 ++ pkg/server/testdata/local-at-root.jsonnet | 13 ++++ 5 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 pkg/server/testdata/local-at-root-2.jsonnet create mode 100644 pkg/server/testdata/local-at-root.jsonnet diff --git a/pkg/ast/processing/find_bind.go b/pkg/ast/processing/find_bind.go index 3cb8016..59da31b 100644 --- a/pkg/ast/processing/find_bind.go +++ b/pkg/ast/processing/find_bind.go @@ -6,7 +6,9 @@ import ( ) func FindBindByIDViaStack(stack *nodestack.NodeStack, id ast.Identifier) *ast.LocalBind { - for _, node := range stack.Stack { + nodes := append([]ast.Node{}, stack.From) + nodes = append(nodes, stack.Stack...) + for _, node := range nodes { switch curr := node.(type) { case *ast.Local: for _, bind := range curr.Binds { diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index a5765aa..c674044 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -88,6 +88,7 @@ func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonne for len(indexList) > 0 { index := indexList[0] indexList = indexList[1:] + partialMatchFields := partialMatchFields && len(indexList) == 0 // Only partial match on the last index. Others are considered complete foundFields := findObjectFieldsInObjects(desugaredObjs, index, partialMatchFields) desugaredObjs = nil if len(foundFields) == 0 { diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index f991da7..5ba5177 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -425,6 +425,89 @@ func TestCompletion(t *testing.T) { }, }, }, + { + name: "autocomplete local at root", + filename: "testdata/local-at-root.jsonnet", + replaceString: "hello.hello", + replaceByString: "hello.hel", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "hel", + Kind: protocol.FieldCompletion, + Detail: "hello.hel", + InsertText: "hel", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, + }, + { + Label: "hello", + Kind: protocol.FieldCompletion, + Detail: "hello.hello", + InsertText: "hello", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, + }, + }, + }, + }, + // TODO: This one doesn't work yet + // Issue: https://github.com/grafana/jsonnet-language-server/issues/113 + // { + // name: "autocomplete local at root 2", + // filename: "testdata/local-at-root-2.jsonnet", + // replaceString: "hello.to", + // replaceByString: "hello.", + // expected: protocol.CompletionList{ + // IsIncomplete: false, + // Items: []protocol.CompletionItem{ + // { + // Label: "to", + // Kind: protocol.FieldCompletion, + // Detail: "hello.to", + // InsertText: "to", + // LabelDetails: protocol.CompletionItemLabelDetails{ + // Description: "object", + // }, + // }, + // }, + // }, + // }, + { + // This checks that we don't match on `hello.hello.*` if we autocomplete on `hello.hel.` + name: "autocomplete local at root, no partial match if full match exists", + filename: "testdata/local-at-root.jsonnet", + replaceString: "hello.hello", + replaceByString: "hello.hel.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "wel", + Kind: protocol.FieldCompletion, + Detail: "hello.hel.wel", + InsertText: "wel", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + }, + }, + }, + }, + { + // This checks that we don't match anything on `hello.hell.*` + name: "autocomplete local at root, no match on unknown field", + filename: "testdata/local-at-root.jsonnet", + replaceString: "hello.hello", + replaceByString: "hello.hell.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: nil, + }, + }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { @@ -466,7 +549,7 @@ func TestCompletion(t *testing.T) { }, }) require.NoError(t, err) - assert.Equal(t, &tc.expected, result) + assert.Equal(t, tc.expected, *result) }) } } diff --git a/pkg/server/testdata/local-at-root-2.jsonnet b/pkg/server/testdata/local-at-root-2.jsonnet new file mode 100644 index 0000000..7e25388 --- /dev/null +++ b/pkg/server/testdata/local-at-root-2.jsonnet @@ -0,0 +1,5 @@ +local hello = import 'local-at-root.jsonnet'; + +{ + a: hello.to, +} diff --git a/pkg/server/testdata/local-at-root.jsonnet b/pkg/server/testdata/local-at-root.jsonnet new file mode 100644 index 0000000..c7fbcda --- /dev/null +++ b/pkg/server/testdata/local-at-root.jsonnet @@ -0,0 +1,13 @@ +// hello.jsonnet +local hello = { + hel: { + wel: 'test', + }, + hello: { + to: { + the: 'world', + }, + }, +}; + +hello.hello From fd733b2325ad1811a02e71e8a56117e0584a58fb Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 24 Aug 2023 10:05:36 -0400 Subject: [PATCH 064/124] Completion: Fix completion through an import pointing to a local bind (#118) * Completion: Fix completion through an import pointing to a local bind Closes https://github.com/grafana/jsonnet-language-server/issues/113 This also fixes the go-to-definition functionality for this case, since it's the same code * Change order. Var ref is probably more exact than a stack search * Make it work nested --- pkg/ast/processing/top_level_objects.go | 36 +++++-- pkg/server/completion_test.go | 102 +++++++++++++++----- pkg/server/testdata/local-at-root-2.jsonnet | 4 +- pkg/server/testdata/local-at-root-3.jsonnet | 3 + pkg/server/testdata/local-at-root-4.jsonnet | 3 + pkg/server/testdata/local-at-root.jsonnet | 4 +- 6 files changed, 119 insertions(+), 33 deletions(-) create mode 100644 pkg/server/testdata/local-at-root-3.jsonnet create mode 100644 pkg/server/testdata/local-at-root-4.jsonnet diff --git a/pkg/ast/processing/top_level_objects.go b/pkg/ast/processing/top_level_objects.go index b628808..13014dd 100644 --- a/pkg/ast/processing/top_level_objects.go +++ b/pkg/ast/processing/top_level_objects.go @@ -37,15 +37,37 @@ func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.Desu rootNode, _, _ := vm.ImportAST(string(curr.Loc().File.DiagnosticFileName), filename) stack.Push(rootNode) case *ast.Index: - container := stack.Peek() - if containerObj, containerIsObj := container.(*ast.DesugaredObject); containerIsObj { - indexValue, indexIsString := curr.Index.(*ast.LiteralString) - if !indexIsString { + indexValue, indexIsString := curr.Index.(*ast.LiteralString) + if !indexIsString { + continue + } + + var container ast.Node + // If our target is a var, the container for the index is the var ref + if varTarget, targetIsVar := curr.Target.(*ast.Var); targetIsVar { + ref, err := FindVarReference(varTarget, vm) + if err != nil { + log.WithError(err).Errorf("Error finding var reference, ignoring this node") continue } - objs := findObjectFieldsInObject(containerObj, indexValue.Value, false) - if len(objs) > 0 { - stack.Push(objs[0].Body) + container = ref + } + + // If we have not found a viable container, peek at the next object on the stack + if container == nil { + container = stack.Peek() + } + + var possibleObjects []*ast.DesugaredObject + if containerObj, containerIsObj := container.(*ast.DesugaredObject); containerIsObj { + possibleObjects = []*ast.DesugaredObject{containerObj} + } else if containerImport, containerIsImport := container.(*ast.Import); containerIsImport { + possibleObjects = FindTopLevelObjectsInFile(vm, containerImport.File.Value, string(containerImport.Loc().File.DiagnosticFileName)) + } + + for _, obj := range possibleObjects { + for _, field := range findObjectFieldsInObject(obj, indexValue.Value, false) { + stack.Push(field.Body) } } case *ast.Var: diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index 5ba5177..c0c48ad 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -454,28 +454,6 @@ func TestCompletion(t *testing.T) { }, }, }, - // TODO: This one doesn't work yet - // Issue: https://github.com/grafana/jsonnet-language-server/issues/113 - // { - // name: "autocomplete local at root 2", - // filename: "testdata/local-at-root-2.jsonnet", - // replaceString: "hello.to", - // replaceByString: "hello.", - // expected: protocol.CompletionList{ - // IsIncomplete: false, - // Items: []protocol.CompletionItem{ - // { - // Label: "to", - // Kind: protocol.FieldCompletion, - // Detail: "hello.to", - // InsertText: "to", - // LabelDetails: protocol.CompletionItemLabelDetails{ - // Description: "object", - // }, - // }, - // }, - // }, - // }, { // This checks that we don't match on `hello.hello.*` if we autocomplete on `hello.hel.` name: "autocomplete local at root, no partial match if full match exists", @@ -508,6 +486,86 @@ func TestCompletion(t *testing.T) { Items: nil, }, }, + { + name: "autocomplete local at root 2", + filename: "testdata/local-at-root-2.jsonnet", + replaceString: "hello.to", + replaceByString: "hello.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "to", + Kind: protocol.FieldCompletion, + Detail: "hello.to", + InsertText: "to", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, + }, + }, + }, + }, + { + name: "autocomplete local at root 2, nested", + filename: "testdata/local-at-root-2.jsonnet", + replaceString: "hello.to", + replaceByString: "hello.to.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "the", + Kind: protocol.FieldCompletion, + Detail: "hello.to.the", + InsertText: "the", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, + }, + }, + }, + }, + { + name: "autocomplete local at root 3, import chain", + filename: "testdata/local-at-root-3.jsonnet", + replaceString: "hello2.the", + replaceByString: "hello2.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "the", + Kind: protocol.FieldCompletion, + Detail: "hello2.the", + InsertText: "the", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, + }, + }, + }, + }, + { + name: "autocomplete local at root 4, import chain", + filename: "testdata/local-at-root-4.jsonnet", + replaceString: "hello3.world", + replaceByString: "hello3.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "world", + Kind: protocol.FieldCompletion, + Detail: "hello3.world", + InsertText: "world", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + }, + }, + }, + }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { diff --git a/pkg/server/testdata/local-at-root-2.jsonnet b/pkg/server/testdata/local-at-root-2.jsonnet index 7e25388..00d6469 100644 --- a/pkg/server/testdata/local-at-root-2.jsonnet +++ b/pkg/server/testdata/local-at-root-2.jsonnet @@ -1,5 +1,3 @@ local hello = import 'local-at-root.jsonnet'; -{ - a: hello.to, -} +hello.to diff --git a/pkg/server/testdata/local-at-root-3.jsonnet b/pkg/server/testdata/local-at-root-3.jsonnet new file mode 100644 index 0000000..f492759 --- /dev/null +++ b/pkg/server/testdata/local-at-root-3.jsonnet @@ -0,0 +1,3 @@ +local hello2 = import 'local-at-root-2.jsonnet'; + +hello2.the diff --git a/pkg/server/testdata/local-at-root-4.jsonnet b/pkg/server/testdata/local-at-root-4.jsonnet new file mode 100644 index 0000000..f4ff87c --- /dev/null +++ b/pkg/server/testdata/local-at-root-4.jsonnet @@ -0,0 +1,3 @@ +local hello3 = import 'local-at-root-3.jsonnet'; + +hello3.world diff --git a/pkg/server/testdata/local-at-root.jsonnet b/pkg/server/testdata/local-at-root.jsonnet index c7fbcda..bae83c0 100644 --- a/pkg/server/testdata/local-at-root.jsonnet +++ b/pkg/server/testdata/local-at-root.jsonnet @@ -5,7 +5,9 @@ local hello = { }, hello: { to: { - the: 'world', + the: { + world: 'hello', + }, }, }, }; From 1d94a47d25effd7d3a7aaf8835ee8ef71b185829 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 24 Aug 2023 10:05:46 -0400 Subject: [PATCH 065/124] Add label when completing a nested index (#119) When doing auto-complete, it currently shows `*ast.Index` when it's nested Indexing because we don't follow up to the final ref Instead of `ast.Index`, we can say `object attribute` which makes a bit more sense for users --- pkg/server/completion.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/server/completion.go b/pkg/server/completion.go index bfd8a91..06c482c 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -205,6 +205,8 @@ func typeToString(t ast.Node) string { return "string" case *ast.Import, *ast.ImportStr: return "import" + case *ast.Index: + return "object field" } return reflect.TypeOf(t).String() } From 970897807f4df928c8f55eeb0f21684952732ea3 Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Thu, 24 Aug 2023 11:33:53 -0600 Subject: [PATCH 066/124] update vendor sha signature and bump version in flake (#121) --- nix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/default.nix b/nix/default.nix index c6f1767..2167b31 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -3,13 +3,13 @@ with pkgs; buildGoModule rec { pname = "jsonnet-language-server"; - version = "0.12.0"; + version = "0.13.0"; ldflags = '' -X main.version=${version} ''; src = lib.cleanSource ../.; - vendorSha256 = "sha256-lC3GAOJ/XVzn+9kk4PnW/7UwqjiXP7DqYmqauwOqQ+k="; + vendorSha256 = "/mfwBHaouYN8JIxPz720/7MlMVh+5EEB+ocnYe4B020="; meta = with lib; { description = "A Language Server Protocol server for Jsonnet"; From a23b945db71afba631daba405a3062a3bda81102 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 29 Aug 2023 08:10:47 -0400 Subject: [PATCH 067/124] Fix world's slowest stack overflow (#123) * Fix world's slowest stack overflow When dealing with CRDsonnet libraries in our (Grafana Labs) repositories, the language server would lock up: - I thought it had something to do with CRDsonnet but I was wrong. - This happened because it was trying to find a field in the wrong nodestack repeatedly (see image) - This PR fixes the issue. - Obviously, the language server can't find fields that come from processing jsonschema, but at least it doesn't take up 4 full CPUs (it reached a full 1% CPU usage while testing :) ) * Remove unneeded boolean All tests are still passing. `$` can be resolved across multiple files, so I guess the language server is just better now and doesn't need that safety If this causes a bug, we should add a new test --- pkg/ast/processing/find_field.go | 20 +++++++++++-------- pkg/server/definition_test.go | 16 +++++++++++++++ .../goto-infinite-recursion-bug-1.jsonnet | 6 ++++++ .../goto-infinite-recursion-bug-2.libsonnet | 15 ++++++++++++++ .../goto-infinite-recursion-bug-3.libsonnet | 13 ++++++++++++ 5 files changed, 62 insertions(+), 8 deletions(-) create mode 100644 pkg/server/testdata/goto-infinite-recursion-bug-1.jsonnet create mode 100644 pkg/server/testdata/goto-infinite-recursion-bug-2.libsonnet create mode 100644 pkg/server/testdata/goto-infinite-recursion-bug-3.libsonnet diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index c674044..364be83 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -15,7 +15,6 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm var foundDesugaredObjects []*ast.DesugaredObject // First element will be super, self, or var name start, indexList := indexList[0], indexList[1:] - sameFileOnly := false switch { case start == "super": // Find the LHS desugared object of a binary node @@ -36,7 +35,6 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm case start == "std": return nil, fmt.Errorf("cannot get definition of std lib") case start == "$": - sameFileOnly = true foundDesugaredObjects = FindTopLevelObjects(nodestack.NewNodeStack(stack.From), vm) case strings.Contains(start, "."): foundDesugaredObjects = FindTopLevelObjectsInFile(vm, start, "") @@ -66,6 +64,7 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm case *ast.Import: filename := bodyNode.File.Value foundDesugaredObjects = FindTopLevelObjectsInFile(vm, filename, "") + case *ast.Index, *ast.Apply: tempStack := nodestack.NewNodeStack(bodyNode) indexList = append(tempStack.BuildIndexList(), indexList...) @@ -80,10 +79,10 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm } } - return extractObjectRangesFromDesugaredObjs(stack, vm, foundDesugaredObjects, sameFileOnly, indexList, partialMatchFields) + return extractObjectRangesFromDesugaredObjs(vm, foundDesugaredObjects, indexList, partialMatchFields) } -func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonnet.VM, desugaredObjs []*ast.DesugaredObject, sameFileOnly bool, indexList []string, partialMatchFields bool) ([]ObjectRange, error) { +func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.DesugaredObject, indexList []string, partialMatchFields bool) ([]ObjectRange, error) { var ranges []ObjectRange for len(indexList) > 0 { index := indexList[0] @@ -135,10 +134,15 @@ func extractObjectRangesFromDesugaredObjs(stack *nodestack.NodeStack, vm *jsonne case *ast.DesugaredObject: desugaredObjs = append(desugaredObjs, fieldNode) case *ast.Index: - additionalIndexList := append(nodestack.NewNodeStack(fieldNode).BuildIndexList(), indexList...) - result, err := FindRangesFromIndexList(stack, additionalIndexList, vm, partialMatchFields) - if len(result) > 0 { - if !sameFileOnly || result[0].Filename == stack.From.Loc().FileName { + // if we're trying to find the a definition which is an index, + // we need to find it from itself, meaning that we need to create a stack + // from the index's target and search from there + rootNode, _, _ := vm.ImportAST("", fieldNode.LocRange.FileName) + stack, _ := FindNodeByPosition(rootNode, fieldNode.Target.Loc().Begin) + if stack != nil { + additionalIndexList := append(nodestack.NewNodeStack(fieldNode).BuildIndexList(), indexList...) + result, _ := FindRangesFromIndexList(stack, additionalIndexList, vm, partialMatchFields) + if len(result) > 0 { return result, err } } diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index d2908ca..6661dba 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -910,6 +910,22 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "test fix infinite recursion", + filename: "./testdata/goto-infinite-recursion-bug-1.jsonnet", + position: protocol.Position{Line: 2, Character: 26}, + results: []definitionResult{{ + targetFilename: "testdata/goto-infinite-recursion-bug-3.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 5, Character: 10}, + End: protocol.Position{Line: 5, Character: 36}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 5, Character: 10}, + End: protocol.Position{Line: 5, Character: 22}, + }, + }}, + }, } func TestDefinition(t *testing.T) { diff --git a/pkg/server/testdata/goto-infinite-recursion-bug-1.jsonnet b/pkg/server/testdata/goto-infinite-recursion-bug-1.jsonnet new file mode 100644 index 0000000..a1592c5 --- /dev/null +++ b/pkg/server/testdata/goto-infinite-recursion-bug-1.jsonnet @@ -0,0 +1,6 @@ +local drone = import './goto-infinite-recursion-bug-2.libsonnet'; +{ + steps: drone.step.withCommands([ + 'blabla', + ]), +} diff --git a/pkg/server/testdata/goto-infinite-recursion-bug-2.libsonnet b/pkg/server/testdata/goto-infinite-recursion-bug-2.libsonnet new file mode 100644 index 0000000..53b2dd4 --- /dev/null +++ b/pkg/server/testdata/goto-infinite-recursion-bug-2.libsonnet @@ -0,0 +1,15 @@ +local drone = import './goto-infinite-recursion-bug-3.libsonnet'; +{ + pipeline: + drone.pipeline.docker { + new(name): + super.new(name) + + super.clone.withRetries(3) + + super.clone.withDepth(10000) + + super.platform.withArch('amd64') + + super.withImagePullSecrets(['dockerconfigjson']), + }, + + step: + drone.pipeline.docker.step, +} diff --git a/pkg/server/testdata/goto-infinite-recursion-bug-3.libsonnet b/pkg/server/testdata/goto-infinite-recursion-bug-3.libsonnet new file mode 100644 index 0000000..ddc49ee --- /dev/null +++ b/pkg/server/testdata/goto-infinite-recursion-bug-3.libsonnet @@ -0,0 +1,13 @@ +local lib = + { + pipeline: { + docker: { + step: { + withCommands(commands): {}, + }, + }, + }, + }; + + +lib From aebe16108ead9c44bc88fc09db3199d4ffc51534 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 31 Aug 2023 14:15:23 -0400 Subject: [PATCH 068/124] Fix double completion bug (#124) * Fix double completion bug woops Closes https://github.com/grafana/jsonnet-language-server/issues/122 * One more layer in test --- pkg/ast/processing/find_field.go | 8 ++++---- pkg/server/completion_test.go | 20 +++++++++++++++++++ .../testdata/doubled-index-bug-1.jsonnet | 7 +++++++ .../testdata/doubled-index-bug-2.jsonnet | 1 + .../testdata/doubled-index-bug-3.jsonnet | 1 + .../testdata/doubled-index-bug-4.jsonnet | 5 +++++ 6 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 pkg/server/testdata/doubled-index-bug-1.jsonnet create mode 100644 pkg/server/testdata/doubled-index-bug-2.jsonnet create mode 100644 pkg/server/testdata/doubled-index-bug-3.jsonnet create mode 100644 pkg/server/testdata/doubled-index-bug-4.jsonnet diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index 364be83..d54021d 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -87,8 +87,8 @@ func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.D for len(indexList) > 0 { index := indexList[0] indexList = indexList[1:] - partialMatchFields := partialMatchFields && len(indexList) == 0 // Only partial match on the last index. Others are considered complete - foundFields := findObjectFieldsInObjects(desugaredObjs, index, partialMatchFields) + partialMatchCurrentField := partialMatchFields && len(indexList) == 0 // Only partial match on the last index. Others are considered complete + foundFields := findObjectFieldsInObjects(desugaredObjs, index, partialMatchCurrentField) desugaredObjs = nil if len(foundFields) == 0 { return nil, fmt.Errorf("field %s was not found in ast.DesugaredObject", index) @@ -98,8 +98,8 @@ func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.D ranges = append(ranges, FieldToRange(*found)) // If the field is not PlusSuper (field+: value), we stop there. Other previous values are not relevant - // If partialMatchFields is true, we can continue to look for other fields - if !found.PlusSuper && !partialMatchFields { + // If partialMatchCurrentField is true, we can continue to look for other fields + if !found.PlusSuper && !partialMatchCurrentField { break } } diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index c0c48ad..92855d7 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -566,6 +566,26 @@ func TestCompletion(t *testing.T) { }, }, }, + { + name: "autocomplete fix doubled index bug", + filename: "testdata/doubled-index-bug-4.jsonnet", + replaceString: "a: g.hello", + replaceByString: "a: g.hello.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "to", + Kind: protocol.FieldCompletion, + Detail: "g.hello.to", + InsertText: "to", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "object", + }, + }, + }, + }, + }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { diff --git a/pkg/server/testdata/doubled-index-bug-1.jsonnet b/pkg/server/testdata/doubled-index-bug-1.jsonnet new file mode 100644 index 0000000..7bd7208 --- /dev/null +++ b/pkg/server/testdata/doubled-index-bug-1.jsonnet @@ -0,0 +1,7 @@ +{ + hello: { + to: { + the: 'world', + }, + }, +} diff --git a/pkg/server/testdata/doubled-index-bug-2.jsonnet b/pkg/server/testdata/doubled-index-bug-2.jsonnet new file mode 100644 index 0000000..b0ab51d --- /dev/null +++ b/pkg/server/testdata/doubled-index-bug-2.jsonnet @@ -0,0 +1 @@ +{ hello: (import 'doubled-index-bug-1.jsonnet').hello } diff --git a/pkg/server/testdata/doubled-index-bug-3.jsonnet b/pkg/server/testdata/doubled-index-bug-3.jsonnet new file mode 100644 index 0000000..ddd33ad --- /dev/null +++ b/pkg/server/testdata/doubled-index-bug-3.jsonnet @@ -0,0 +1 @@ +import 'doubled-index-bug-2.jsonnet' diff --git a/pkg/server/testdata/doubled-index-bug-4.jsonnet b/pkg/server/testdata/doubled-index-bug-4.jsonnet new file mode 100644 index 0000000..3a3bef1 --- /dev/null +++ b/pkg/server/testdata/doubled-index-bug-4.jsonnet @@ -0,0 +1,5 @@ +local g = import 'doubled-index-bug-3.jsonnet'; +{ + // completing fields of `g.hello` should get use `g.hello.to`, not `g.hello.hello` + a: g.hello, +} From 2865918fd84fd4dca81f10cdde8ce95be42963a3 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 31 Aug 2023 14:32:00 -0400 Subject: [PATCH 069/124] Release as draft --- .goreleaser.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 7194535..2212092 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,23 +1,23 @@ builds: - env: - CGO_ENABLED=0 - goos: - darwin - linux - windows - goarch: - amd64 - arm - arm64 - # GOARM to build for when GOARCH is arm. # For more info refer to: https://golang.org/doc/install/source#environment # Default is only 6. goarm: - '6' - '7' - archives: - - format: binary \ No newline at end of file + - format: binary +release: + draft: true +changelog: + skip: true From 4117c7be2f76b54e7f9b93b69d541c133582b7df Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 7 Sep 2023 14:18:38 -0400 Subject: [PATCH 070/124] Vendor grafonnet in testdata, and fix jsonnetfmt (#127) No changes to the go code. This will be used in a future PR --- .github/workflows/jsonnetfmt.yml | 9 +- .../goto-functions-advanced.libsonnet | 2 +- pkg/server/testdata/goto-overrides.jsonnet | 2 +- .../testdata/grafonnet/jsonnetfile.json | 15 + .../testdata/grafonnet/jsonnetfile.lock.json | 36 + pkg/server/testdata/grafonnet/vendor/doc-util | 1 + .../clean/dashboard.libsonnet | 266 ++ .../grafonnet-v10.0.0/clean/panel.libsonnet | 341 +++ .../clean/panel/alertGroups.libsonnet | 20 + .../clean/panel/annotationsList.libsonnet | 40 + .../clean/panel/barChart.libsonnet | 157 + .../clean/panel/barGauge.libsonnet | 58 + .../clean/panel/candlestick.libsonnet | 11 + .../clean/panel/canvas.libsonnet | 11 + .../clean/panel/dashboardList.libsonnet | 40 + .../clean/panel/datagrid.libsonnet | 16 + .../clean/panel/debug.libsonnet | 29 + .../clean/panel/gauge.libsonnet | 52 + .../clean/panel/geomap.libsonnet | 155 + .../clean/panel/heatmap.libsonnet | 266 ++ .../clean/panel/histogram.libsonnet | 119 + .../clean/panel/logs.libsonnet | 30 + .../clean/panel/news.libsonnet | 18 + .../clean/panel/nodeGraph.libsonnet | 51 + .../clean/panel/pieChart.libsonnet | 130 + .../clean/panel/stat.libsonnet | 56 + .../clean/panel/stateTimeline.libsonnet | 98 + .../clean/panel/statusHistory.libsonnet | 96 + .../clean/panel/table.libsonnet | 73 + .../clean/panel/text.libsonnet | 31 + .../clean/panel/timeSeries.libsonnet | 188 ++ .../clean/panel/trend.libsonnet | 182 ++ .../clean/panel/xyChart.libsonnet | 211 ++ .../clean/query/loki.libsonnet | 27 + .../clean/query/prometheus.libsonnet | 29 + .../clean/query/tempo.libsonnet | 54 + .../custom/dashboard.libsonnet | 44 + .../custom/dashboard/annotation.libsonnet | 36 + .../custom/dashboard/link.libsonnet | 90 + .../custom/dashboard/variable.libsonnet | 483 +++ .../grafonnet-v10.0.0/custom/panel.libsonnet | 125 + .../custom/query/loki.libsonnet | 27 + .../custom/query/prometheus.libsonnet | 47 + .../custom/query/tempo.libsonnet | 29 + .../grafonnet-v10.0.0/custom/row.libsonnet | 11 + .../custom/util/dashboard.libsonnet | 55 + .../custom/util/grid.libsonnet | 134 + .../custom/util/main.libsonnet | 9 + .../custom/util/panel.libsonnet | 51 + .../custom/util/string.libsonnet | 27 + .../gen/grafonnet-v10.0.0/docs/README.md | 29 + .../docs/grafonnet/dashboard/annotation.md | 217 ++ .../docs/grafonnet/dashboard/index.md | 400 +++ .../docs/grafonnet/dashboard/link.md | 149 + .../docs/grafonnet/dashboard/variable.md | 780 +++++ .../docs/grafonnet/librarypanel.md | 256 ++ .../panel/alertGroups/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/alertGroups/index.md | 497 ++++ .../docs/grafonnet/panel/alertGroups/link.md | 109 + .../panel/alertGroups/thresholdStep.md | 47 + .../panel/alertGroups/transformation.md | 76 + .../panel/alertGroups/valueMapping.md | 365 +++ .../panel/annotationsList/fieldOverride.md | 194 ++ .../grafonnet/panel/annotationsList/index.md | 569 ++++ .../grafonnet/panel/annotationsList/link.md | 109 + .../panel/annotationsList/thresholdStep.md | 47 + .../panel/annotationsList/transformation.md | 76 + .../panel/annotationsList/valueMapping.md | 365 +++ .../grafonnet/panel/barChart/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/barChart/index.md | 1030 +++++++ .../docs/grafonnet/panel/barChart/link.md | 109 + .../grafonnet/panel/barChart/thresholdStep.md | 47 + .../panel/barChart/transformation.md | 76 + .../grafonnet/panel/barChart/valueMapping.md | 365 +++ .../grafonnet/panel/barGauge/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/barGauge/index.md | 638 ++++ .../docs/grafonnet/panel/barGauge/link.md | 109 + .../grafonnet/panel/barGauge/thresholdStep.md | 47 + .../panel/barGauge/transformation.md | 76 + .../grafonnet/panel/barGauge/valueMapping.md | 365 +++ .../panel/candlestick/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/candlestick/index.md | 466 +++ .../docs/grafonnet/panel/candlestick/link.md | 109 + .../panel/candlestick/thresholdStep.md | 47 + .../panel/candlestick/transformation.md | 76 + .../panel/candlestick/valueMapping.md | 365 +++ .../grafonnet/panel/canvas/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/canvas/index.md | 466 +++ .../docs/grafonnet/panel/canvas/link.md | 109 + .../grafonnet/panel/canvas/thresholdStep.md | 47 + .../grafonnet/panel/canvas/transformation.md | 76 + .../grafonnet/panel/canvas/valueMapping.md | 365 +++ .../panel/dashboardList/fieldOverride.md | 194 ++ .../grafonnet/panel/dashboardList/index.md | 569 ++++ .../grafonnet/panel/dashboardList/link.md | 109 + .../panel/dashboardList/thresholdStep.md | 47 + .../panel/dashboardList/transformation.md | 76 + .../panel/dashboardList/valueMapping.md | 365 +++ .../grafonnet/panel/datagrid/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/datagrid/index.md | 479 +++ .../docs/grafonnet/panel/datagrid/link.md | 109 + .../grafonnet/panel/datagrid/thresholdStep.md | 47 + .../panel/datagrid/transformation.md | 76 + .../grafonnet/panel/datagrid/valueMapping.md | 365 +++ .../grafonnet/panel/debug/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/debug/index.md | 530 ++++ .../docs/grafonnet/panel/debug/link.md | 109 + .../grafonnet/panel/debug/thresholdStep.md | 47 + .../grafonnet/panel/debug/transformation.md | 76 + .../grafonnet/panel/debug/valueMapping.md | 365 +++ .../grafonnet/panel/gauge/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/gauge/index.md | 606 ++++ .../docs/grafonnet/panel/gauge/link.md | 109 + .../grafonnet/panel/gauge/thresholdStep.md | 47 + .../grafonnet/panel/gauge/transformation.md | 76 + .../grafonnet/panel/gauge/valueMapping.md | 365 +++ .../grafonnet/panel/geomap/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/geomap/index.md | 1030 +++++++ .../docs/grafonnet/panel/geomap/link.md | 109 + .../grafonnet/panel/geomap/thresholdStep.md | 47 + .../grafonnet/panel/geomap/transformation.md | 76 + .../grafonnet/panel/geomap/valueMapping.md | 365 +++ .../grafonnet/panel/heatmap/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/heatmap/index.md | 1420 +++++++++ .../docs/grafonnet/panel/heatmap/link.md | 109 + .../grafonnet/panel/heatmap/thresholdStep.md | 47 + .../grafonnet/panel/heatmap/transformation.md | 76 + .../grafonnet/panel/heatmap/valueMapping.md | 365 +++ .../panel/histogram/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/histogram/index.md | 874 ++++++ .../docs/grafonnet/panel/histogram/link.md | 109 + .../panel/histogram/thresholdStep.md | 47 + .../panel/histogram/transformation.md | 76 + .../grafonnet/panel/histogram/valueMapping.md | 365 +++ .../docs/grafonnet/panel/index.md | 33 + .../grafonnet/panel/logs/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/logs/index.md | 546 ++++ .../docs/grafonnet/panel/logs/link.md | 109 + .../grafonnet/panel/logs/thresholdStep.md | 47 + .../grafonnet/panel/logs/transformation.md | 76 + .../docs/grafonnet/panel/logs/valueMapping.md | 365 +++ .../grafonnet/panel/news/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/news/index.md | 488 +++ .../docs/grafonnet/panel/news/link.md | 109 + .../grafonnet/panel/news/thresholdStep.md | 47 + .../grafonnet/panel/news/transformation.md | 76 + .../docs/grafonnet/panel/news/valueMapping.md | 365 +++ .../panel/nodeGraph/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/nodeGraph/index.md | 590 ++++ .../docs/grafonnet/panel/nodeGraph/link.md | 109 + .../panel/nodeGraph/thresholdStep.md | 47 + .../panel/nodeGraph/transformation.md | 76 + .../grafonnet/panel/nodeGraph/valueMapping.md | 365 +++ .../grafonnet/panel/pieChart/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/pieChart/index.md | 857 ++++++ .../docs/grafonnet/panel/pieChart/link.md | 109 + .../grafonnet/panel/pieChart/thresholdStep.md | 47 + .../panel/pieChart/transformation.md | 76 + .../grafonnet/panel/pieChart/valueMapping.md | 365 +++ .../docs/grafonnet/panel/row.md | 187 ++ .../grafonnet/panel/stat/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/stat/index.md | 632 ++++ .../docs/grafonnet/panel/stat/link.md | 109 + .../grafonnet/panel/stat/thresholdStep.md | 47 + .../grafonnet/panel/stat/transformation.md | 76 + .../docs/grafonnet/panel/stat/valueMapping.md | 365 +++ .../panel/stateTimeline/fieldOverride.md | 194 ++ .../grafonnet/panel/stateTimeline/index.md | 764 +++++ .../grafonnet/panel/stateTimeline/link.md | 109 + .../panel/stateTimeline/thresholdStep.md | 47 + .../panel/stateTimeline/transformation.md | 76 + .../panel/stateTimeline/valueMapping.md | 365 +++ .../panel/statusHistory/fieldOverride.md | 194 ++ .../grafonnet/panel/statusHistory/index.md | 755 +++++ .../grafonnet/panel/statusHistory/link.md | 109 + .../panel/statusHistory/thresholdStep.md | 47 + .../panel/statusHistory/transformation.md | 76 + .../panel/statusHistory/valueMapping.md | 365 +++ .../grafonnet/panel/table/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/table/index.md | 653 ++++ .../docs/grafonnet/panel/table/link.md | 109 + .../grafonnet/panel/table/thresholdStep.md | 47 + .../grafonnet/panel/table/transformation.md | 76 + .../grafonnet/panel/table/valueMapping.md | 365 +++ .../grafonnet/panel/text/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/text/index.md | 541 ++++ .../docs/grafonnet/panel/text/link.md | 109 + .../grafonnet/panel/text/thresholdStep.md | 47 + .../grafonnet/panel/text/transformation.md | 76 + .../docs/grafonnet/panel/text/valueMapping.md | 365 +++ .../panel/timeSeries/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/timeSeries/index.md | 1141 +++++++ .../docs/grafonnet/panel/timeSeries/link.md | 109 + .../panel/timeSeries/thresholdStep.md | 47 + .../panel/timeSeries/transformation.md | 76 + .../panel/timeSeries/valueMapping.md | 365 +++ .../grafonnet/panel/trend/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/trend/index.md | 1132 +++++++ .../docs/grafonnet/panel/trend/link.md | 109 + .../grafonnet/panel/trend/thresholdStep.md | 47 + .../grafonnet/panel/trend/transformation.md | 76 + .../grafonnet/panel/trend/valueMapping.md | 365 +++ .../grafonnet/panel/xyChart/fieldOverride.md | 194 ++ .../docs/grafonnet/panel/xyChart/index.md | 1207 ++++++++ .../docs/grafonnet/panel/xyChart/link.md | 109 + .../grafonnet/panel/xyChart/thresholdStep.md | 47 + .../grafonnet/panel/xyChart/transformation.md | 76 + .../grafonnet/panel/xyChart/valueMapping.md | 365 +++ .../docs/grafonnet/playlist.md | 97 + .../docs/grafonnet/preferences.md | 85 + .../docs/grafonnet/publicdashboard.md | 62 + .../docs/grafonnet/query/azureMonitor.md | 1294 ++++++++ .../docs/grafonnet/query/cloudWatch.md | 1082 +++++++ .../docs/grafonnet/query/elasticsearch.md | 2620 +++++++++++++++++ .../docs/grafonnet/query/grafanaPyroscope.md | 97 + .../docs/grafonnet/query/index.md | 16 + .../docs/grafonnet/query/loki.md | 123 + .../docs/grafonnet/query/parca.md | 70 + .../docs/grafonnet/query/prometheus.md | 134 + .../docs/grafonnet/query/tempo.md | 217 ++ .../docs/grafonnet/query/testData.md | 619 ++++ .../docs/grafonnet/serviceaccount.md | 120 + .../grafonnet-v10.0.0/docs/grafonnet/team.md | 82 + .../grafonnet-v10.0.0/docs/grafonnet/util.md | 81 + .../gen/grafonnet-v10.0.0/jsonnetfile.json | 24 + .../gen/grafonnet-v10.0.0/main.libsonnet | 23 + .../gen/grafonnet-v10.0.0/panel.libsonnet | 30 + .../gen/grafonnet-v10.0.0/query.libsonnet | 13 + .../grafonnet-v10.0.0/raw/dashboard.libsonnet | 296 ++ .../raw/librarypanel.libsonnet | 65 + .../gen/grafonnet-v10.0.0/raw/panel.libsonnet | 407 +++ .../raw/panel/alertGroups.libsonnet | 19 + .../raw/panel/annotationsList.libsonnet | 39 + .../raw/panel/barChart.libsonnet | 168 ++ .../raw/panel/barGauge.libsonnet | 57 + .../raw/panel/candlestick.libsonnet | 6 + .../raw/panel/canvas.libsonnet | 6 + .../raw/panel/dashboardList.libsonnet | 39 + .../raw/panel/datagrid.libsonnet | 15 + .../raw/panel/debug.libsonnet | 43 + .../raw/panel/gauge.libsonnet | 51 + .../raw/panel/geomap.libsonnet | 215 ++ .../raw/panel/heatmap.libsonnet | 414 +++ .../raw/panel/histogram.libsonnet | 130 + .../raw/panel/logs.libsonnet | 29 + .../raw/panel/news.libsonnet | 17 + .../raw/panel/nodeGraph.libsonnet | 98 + .../raw/panel/pieChart.libsonnet | 186 ++ .../grafonnet-v10.0.0/raw/panel/row.libsonnet | 51 + .../raw/panel/stat.libsonnet | 55 + .../raw/panel/stateTimeline.libsonnet | 109 + .../raw/panel/statusHistory.libsonnet | 107 + .../raw/panel/table.libsonnet | 72 + .../raw/panel/text.libsonnet | 47 + .../raw/panel/timeSeries.libsonnet | 199 ++ .../raw/panel/trend.libsonnet | 193 ++ .../raw/panel/xyChart.libsonnet | 487 +++ .../grafonnet-v10.0.0/raw/playlist.libsonnet | 27 + .../raw/preferences.libsonnet | 23 + .../raw/publicdashboard.libsonnet | 16 + .../raw/query/azureMonitor.libsonnet | 360 +++ .../raw/query/cloudWatch.libsonnet | 306 ++ .../raw/query/elasticsearch.libsonnet | 758 +++++ .../raw/query/grafanaPyroscope.libsonnet | 26 + .../raw/query/loki.libsonnet | 26 + .../raw/query/parca.libsonnet | 16 + .../raw/query/prometheus.libsonnet | 28 + .../raw/query/tempo.libsonnet | 53 + .../raw/query/testData.libsonnet | 167 ++ .../raw/serviceaccount.libsonnet | 32 + .../gen/grafonnet-v10.0.0/raw/team.libsonnet | 20 + .../jsonnet-libs/docsonnet/doc-util/README.md | 231 ++ .../docsonnet/doc-util/main.libsonnet | 218 ++ .../docsonnet/doc-util/render.libsonnet | 401 +++ .../github.com/jsonnet-libs/xtd/.gitignore | 3 + .../github.com/jsonnet-libs/xtd/LICENSE | 201 ++ .../github.com/jsonnet-libs/xtd/Makefile | 16 + .../github.com/jsonnet-libs/xtd/README.md | 19 + .../jsonnet-libs/xtd/aggregate.libsonnet | 104 + .../jsonnet-libs/xtd/array.libsonnet | 37 + .../jsonnet-libs/xtd/ascii.libsonnet | 39 + .../jsonnet-libs/xtd/camelcase.libsonnet | 80 + .../jsonnet-libs/xtd/date.libsonnet | 58 + .../jsonnet-libs/xtd/docs/.gitignore | 2 + .../github.com/jsonnet-libs/xtd/docs/Gemfile | 2 + .../jsonnet-libs/xtd/docs/README.md | 27 + .../jsonnet-libs/xtd/docs/_config.yml | 2 + .../jsonnet-libs/xtd/docs/aggregate.md | 74 + .../github.com/jsonnet-libs/xtd/docs/array.md | 25 + .../github.com/jsonnet-libs/xtd/docs/ascii.md | 43 + .../jsonnet-libs/xtd/docs/camelcase.md | 29 + .../github.com/jsonnet-libs/xtd/docs/date.md | 45 + .../jsonnet-libs/xtd/docs/inspect.md | 93 + .../jsonnet-libs/xtd/docs/jsonpath.md | 53 + .../jsonnet-libs/xtd/docs/string.md | 26 + .../github.com/jsonnet-libs/xtd/docs/url.md | 56 + .../jsonnet-libs/xtd/inspect.libsonnet | 209 ++ .../jsonnet-libs/xtd/jsonpath.libsonnet | 142 + .../jsonnet-libs/xtd/main.libsonnet | 24 + .../jsonnet-libs/xtd/string.libsonnet | 35 + .../jsonnet-libs/xtd/test/array_test.jsonnet | 83 + .../xtd/test/camelcase_test.jsonnet | 137 + .../jsonnet-libs/xtd/test/date_test.jsonnet | 131 + .../xtd/test/inspect_test.jsonnet | 152 + .../jsonnet-libs/xtd/test/jsonnetfile.json | 15 + .../xtd/test/jsonpath_test.jsonnet | 305 ++ .../jsonnet-libs/xtd/test/url_test.jsonnet | 209 ++ .../github.com/jsonnet-libs/xtd/url.libsonnet | 111 + .../grafonnet/vendor/grafonnet-v10.0.0 | 1 + pkg/server/testdata/grafonnet/vendor/xtd | 1 + scripts/jsonnetfmt.sh | 13 +- 311 files changed, 60206 insertions(+), 7 deletions(-) create mode 100644 pkg/server/testdata/grafonnet/jsonnetfile.json create mode 100644 pkg/server/testdata/grafonnet/jsonnetfile.lock.json create mode 120000 pkg/server/testdata/grafonnet/vendor/doc-util create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/annotation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/variable.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/librarypanel.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/row.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/fieldOverride.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/link.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/thresholdStep.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/transformation.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/valueMapping.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/playlist.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/preferences.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/publicdashboard.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/azureMonitor.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/cloudWatch.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/elasticsearch.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/grafanaPyroscope.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/index.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/loki.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/parca.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/prometheus.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/tempo.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/testData.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/serviceaccount.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/team.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/util.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/.gitignore create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/LICENSE create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/Makefile create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/README.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/array.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/date.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/README.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/array.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/date.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/string.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/url.md create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/main.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/string.libsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet create mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/url.libsonnet create mode 120000 pkg/server/testdata/grafonnet/vendor/grafonnet-v10.0.0 create mode 120000 pkg/server/testdata/grafonnet/vendor/xtd diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index 47222db..9a2b741 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -9,10 +9,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Format - uses: docker://bitnami/jsonnet:latest + - uses: actions/setup-go@v2 with: - entrypoint: ./scripts/jsonnetfmt.sh + go-version: 1.19 + - name: Format + run: | + go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest + ./scripts/jsonnetfmt.sh - run: | STATUS="$(git status --porcelain)" test -z "${STATUS}" || { diff --git a/pkg/server/testdata/goto-functions-advanced.libsonnet b/pkg/server/testdata/goto-functions-advanced.libsonnet index be4db78..e5c32a3 100644 --- a/pkg/server/testdata/goto-functions-advanced.libsonnet +++ b/pkg/server/testdata/goto-functions-advanced.libsonnet @@ -2,7 +2,7 @@ local myfunc(arg1, arg2) = { arg1: arg1, arg2: arg2, - builderPattern(arg3):: self { + builderPattern(arg3):: self + { arg3: arg3, }, }; diff --git a/pkg/server/testdata/goto-overrides.jsonnet b/pkg/server/testdata/goto-overrides.jsonnet index a655c86..b7cd3d9 100644 --- a/pkg/server/testdata/goto-overrides.jsonnet +++ b/pkg/server/testdata/goto-overrides.jsonnet @@ -1,4 +1,4 @@ -(import 'goto-overrides-base.jsonnet') // 1. Initial definition from base file +(import 'goto-overrides-base.jsonnet') + // 1. Initial definition from base file { // 2. Override nested string a+: { hello: 'world', diff --git a/pkg/server/testdata/grafonnet/jsonnetfile.json b/pkg/server/testdata/grafonnet/jsonnetfile.json new file mode 100644 index 0000000..115d143 --- /dev/null +++ b/pkg/server/testdata/grafonnet/jsonnetfile.json @@ -0,0 +1,15 @@ +{ + "version": 1, + "dependencies": [ + { + "source": { + "git": { + "remote": "https://github.com/grafana/grafonnet.git", + "subdir": "gen/grafonnet-v10.0.0" + } + }, + "version": "main" + } + ], + "legacyImports": true +} diff --git a/pkg/server/testdata/grafonnet/jsonnetfile.lock.json b/pkg/server/testdata/grafonnet/jsonnetfile.lock.json new file mode 100644 index 0000000..e400ebe --- /dev/null +++ b/pkg/server/testdata/grafonnet/jsonnetfile.lock.json @@ -0,0 +1,36 @@ +{ + "version": 1, + "dependencies": [ + { + "source": { + "git": { + "remote": "https://github.com/grafana/grafonnet.git", + "subdir": "gen/grafonnet-v10.0.0" + } + }, + "version": "d37dd0e8d3498bfe45c997d1b634df37483b8abc", + "sum": "niLBEXrTCZ1JwqTMLnvy+yXqhrhvuIk0v+1YsB/bIkg=" + }, + { + "source": { + "git": { + "remote": "https://github.com/jsonnet-libs/docsonnet.git", + "subdir": "doc-util" + } + }, + "version": "7c865ec0606f2b68c0f6b2721f101e6a99cd2593", + "sum": "zjjufxN4yAIevldYEERiZEp27vK0BJKj1VvZcVtWiOo=" + }, + { + "source": { + "git": { + "remote": "https://github.com/jsonnet-libs/xtd.git", + "subdir": "" + } + }, + "version": "0256a910ac71f0f842696d7bca0bf01ea77eb654", + "sum": "zBOpb1oTNvXdq9RF6yzTHill5r1YTJLBBoqyx4JYtAg=" + } + ], + "legacyImports": false +} diff --git a/pkg/server/testdata/grafonnet/vendor/doc-util b/pkg/server/testdata/grafonnet/vendor/doc-util new file mode 120000 index 0000000..dcfde67 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/doc-util @@ -0,0 +1 @@ +github.com/jsonnet-libs/docsonnet/doc-util \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet new file mode 100644 index 0000000..6afc545 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet @@ -0,0 +1,266 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.dashboard', name: 'dashboard' }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Description of dashboard.' } }, + withDescription(value): { description: value }, + '#withEditable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether a dashboard is editable or not.' } }, + withEditable(value=true): { editable: value }, + '#withFiscalYearStartMonth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'The month that the fiscal year starts on. 0 = January, 11 = December' } }, + withFiscalYearStartMonth(value=0): { fiscalYearStartMonth: value }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withLinks(value): { links: (if std.isArray(value) + then value + else [value]) }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withLinksMixin(value): { links+: (if std.isArray(value) + then value + else [value]) }, + '#withLiveNow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'When set to true, the dashboard will redraw panels at an interval matching the pixel width.\nThis will keep data "moving left" regardless of the query refresh rate. This setting helps\navoid dashboards presenting stale live data' } }, + withLiveNow(value=true): { liveNow: value }, + '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPanels(value): { panels: (if std.isArray(value) + then value + else [value]) }, + '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPanelsMixin(value): { panels+: (if std.isArray(value) + then value + else [value]) }, + '#withRefresh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, + withRefresh(value): { refresh: value }, + '#withRefreshMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, + withRefreshMixin(value): { refresh+: value }, + '#withSchemaVersion': { 'function': { args: [{ default: 36, enums: null, name: 'value', type: 'integer' }], help: "Version of the JSON schema, incremented each time a Grafana update brings\nchanges to said schema.\nTODO this is the existing schema numbering system. It will be replaced by Thema's themaVersion" } }, + withSchemaVersion(value=36): { schemaVersion: value }, + '#withStyle': { 'function': { args: [{ default: 'dark', enums: ['dark', 'light'], name: 'value', type: 'string' }], help: 'Theme of dashboard.' } }, + withStyle(value='dark'): { style: value }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Tags associated with dashboard.' } }, + withTags(value): { tags: (if std.isArray(value) + then value + else [value]) }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Tags associated with dashboard.' } }, + withTagsMixin(value): { tags+: (if std.isArray(value) + then value + else [value]) }, + '#withTemplating': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTemplating(value): { templating: value }, + '#withTemplatingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTemplatingMixin(value): { templating+: value }, + '#withTimezone': { 'function': { args: [{ default: 'browser', enums: null, name: 'value', type: 'string' }], help: 'Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc".' } }, + withTimezone(value='browser'): { timezone: value }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Title of dashboard.' } }, + withTitle(value): { title: value }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique dashboard identifier that can be generated by anyone. string (8-40)' } }, + withUid(value): { uid: value }, + '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withWeekStart(value): { weekStart: value }, + time+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: 'string' }], help: '' } }, + withFrom(value='now-6h'): { time+: { from: value } }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: 'string' }], help: '' } }, + withTo(value='now'): { time+: { to: value } }, + }, + timepicker+: + { + '#withCollapse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is collapsed or not.' } }, + withCollapse(value=true): { timepicker+: { collapse: value } }, + '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is enabled or not.' } }, + withEnable(value=true): { timepicker+: { enable: value } }, + '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is visible or not.' } }, + withHidden(value=true): { timepicker+: { hidden: value } }, + '#withRefreshIntervals': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: 'array' }], help: 'Selectable intervals for auto-refresh.' } }, + withRefreshIntervals(value): { timepicker+: { refresh_intervals: (if std.isArray(value) + then value + else [value]) } }, + '#withRefreshIntervalsMixin': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: 'array' }], help: 'Selectable intervals for auto-refresh.' } }, + withRefreshIntervalsMixin(value): { timepicker+: { refresh_intervals+: (if std.isArray(value) + then value + else [value]) } }, + '#withTimeOptions': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTimeOptions(value): { timepicker+: { time_options: (if std.isArray(value) + then value + else [value]) } }, + '#withTimeOptionsMixin': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTimeOptionsMixin(value): { timepicker+: { time_options+: (if std.isArray(value) + then value + else [value]) } }, + }, + link+: + { + dashboards+: + { + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTitle(value): { title: value }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { type: value }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTags(value): { tags: (if std.isArray(value) + then value + else [value]) }, + options+: + { + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsDropdown(value=true): { asDropdown: value }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withKeepTime(value=true): { keepTime: value }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIncludeVars(value=true): { includeVars: value }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTargetBlank(value=true): { targetBlank: value }, + }, + }, + link+: + { + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTitle(value): { title: value }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { type: value }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUrl(value): { url: value }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTooltip(value): { tooltip: value }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { icon: value }, + options+: + { + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsDropdown(value=true): { asDropdown: value }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withKeepTime(value=true): { keepTime: value }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIncludeVars(value=true): { includeVars: value }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTargetBlank(value=true): { targetBlank: value }, + }, + }, + }, + annotation+: + { + '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withList(value): { annotations+: { list: (if std.isArray(value) + then value + else [value]) } }, + '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withListMixin(value): { annotations+: { list+: (if std.isArray(value) + then value + else [value]) } }, + list+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: Should be DataSourceRef' } }, + withDatasource(value): { datasource: value }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: Should be DataSourceRef' } }, + withDatasourceMixin(value): { datasource+: value }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { datasource+: { type: value } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUid(value): { datasource+: { uid: value } }, + }, + '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'When enabled the annotation query is issued with every dashboard refresh' } }, + withEnable(value=true): { enable: value }, + '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFilter(value): { filter: value }, + '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFilterMixin(value): { filter+: value }, + filter+: + { + '#withExclude': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Should the specified panels be included or excluded' } }, + withExclude(value=true): { filter+: { exclude: value } }, + '#withIds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel IDs that should be included or excluded' } }, + withIds(value): { filter+: { ids: (if std.isArray(value) + then value + else [value]) } }, + '#withIdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel IDs that should be included or excluded' } }, + withIdsMixin(value): { filter+: { ids+: (if std.isArray(value) + then value + else [value]) } }, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Annotation queries can be toggled on or off at the top of the dashboard.\nWhen hide is true, the toggle is not shown in the dashboard.' } }, + withHide(value=true): { hide: value }, + '#withIconColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Color to use for the annotation event markers' } }, + withIconColor(value): { iconColor: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of annotation.' } }, + withName(value): { name: value }, + '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, + withTarget(value): { target: value }, + '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, + withTargetMixin(value): { target+: value }, + target+: + { + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withLimit(value): { target+: { limit: value } }, + '#withMatchAny': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withMatchAny(value=true): { target+: { matchAny: value } }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withTags(value): { target+: { tags: (if std.isArray(value) + then value + else [value]) } }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withTagsMixin(value): { target+: { tags+: (if std.isArray(value) + then value + else [value]) } }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withType(value): { target+: { type: value } }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO -- this should not exist here, it is based on the --grafana-- datasource' } }, + withType(value): { type: value }, + }, + }, + templating+: + { + '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withList(value): { templating+: { list: (if std.isArray(value) + then value + else [value]) } }, + '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withListMixin(value): { templating+: { list+: (if std.isArray(value) + then value + else [value]) } }, + list+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { datasource: value }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { datasource+: value }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The plugin type-id' } }, + withType(value): { datasource+: { type: value } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specific datasource instance' } }, + withUid(value): { datasource+: { uid: value } }, + }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withDescription(value): { description: value }, + '#withError': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withError(value): { 'error': value }, + '#withErrorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withErrorMixin(value): { 'error'+: value }, + '#withGlobal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withGlobal(value=true): { global: value }, + '#withHide': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: 'integer' }], help: '' } }, + withHide(value): { hide: value }, + '#withId': { 'function': { args: [{ default: '00000000-0000-0000-0000-000000000000', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value='00000000-0000-0000-0000-000000000000'): { id: value }, + '#withIndex': { 'function': { args: [{ default: -1, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withIndex(value=-1): { index: value }, + '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLabel(value): { label: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, + withQuery(value): { query: value }, + '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, + withQueryMixin(value): { query+: value }, + '#withRootStateKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRootStateKey(value): { rootStateKey: value }, + '#withSkipUrlSync': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSkipUrlSync(value=true): { skipUrlSync: value }, + '#withState': { 'function': { args: [{ default: null, enums: ['NotStarted', 'Loading', 'Streaming', 'Done', 'Error'], name: 'value', type: 'string' }], help: '' } }, + withState(value): { state: value }, + '#withType': { 'function': { args: [{ default: null, enums: ['query', 'adhoc', 'constant', 'datasource', 'interval', 'textbox', 'custom', 'system'], name: 'value', type: 'string' }], help: 'FROM: packages/grafana-data/src/types/templateVars.ts\nTODO docs\nTODO this implies some wider pattern/discriminated union, probably?' } }, + withType(value): { type: value }, + }, + }, +} ++ (import '../custom/dashboard.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet new file mode 100644 index 0000000..e8f823a --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet @@ -0,0 +1,341 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel', name: 'panel' }, + panelOptions+: + { + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Panel title.' } }, + withTitle(value): { title: value }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Description.' } }, + withDescription(value): { description: value }, + '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether to display the panel without a background.' } }, + withTransparent(value=true): { transparent: value }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, + withLinks(value): { links: (if std.isArray(value) + then value + else [value]) }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, + withLinksMixin(value): { links+: (if std.isArray(value) + then value + else [value]) }, + '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of template variable to repeat for.' } }, + withRepeat(value): { repeat: value }, + '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: 'string' }], help: "Direction to repeat in if 'repeat' is set.\n\"h\" for horizontal, \"v\" for vertical.\nTODO this is probably optional" } }, + withRepeatDirection(value='h'): { repeatDirection: value }, + '#withPluginVersion': { 'function': { args: [], help: '' } }, + withPluginVersion(): { pluginVersion: 'v10.0.0' }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The panel plugin type id. May not be empty.' } }, + withType(value): { type: value }, + }, + queryOptions+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'The datasource used in all targets.' } }, + withDatasource(value): { datasource: value }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'The datasource used in all targets.' } }, + withDatasourceMixin(value): { datasource+: value }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'TODO docs' } }, + withMaxDataPoints(value): { maxDataPoints: value }, + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, + withInterval(value): { interval: value }, + '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, + withTimeFrom(value): { timeFrom: value }, + '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, + withTimeShift(value): { timeShift: value }, + '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTargets(value): { targets: (if std.isArray(value) + then value + else [value]) }, + '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTargetsMixin(value): { targets+: (if std.isArray(value) + then value + else [value]) }, + '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTransformations(value): { transformations: (if std.isArray(value) + then value + else [value]) }, + '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTransformationsMixin(value): { transformations+: (if std.isArray(value) + then value + else [value]) }, + }, + standardOptions+: + { + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Numeric Options' } }, + withUnit(value): { fieldConfig+: { defaults+: { unit: value } } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMin(value): { fieldConfig+: { defaults+: { min: value } } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMax(value): { fieldConfig+: { defaults+: { max: value } } }, + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Significant digits (for display)' } }, + withDecimals(value): { fieldConfig+: { defaults+: { decimals: value } } }, + '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The display value for this field. This supports template variables blank is auto' } }, + withDisplayName(value): { fieldConfig+: { defaults+: { displayName: value } } }, + color+: + { + '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Stores the fixed color value if mode is fixed' } }, + withFixedColor(value): { fieldConfig+: { defaults+: { color+: { fixedColor: value } } } }, + '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The main color scheme mode' } }, + withMode(value): { fieldConfig+: { defaults+: { color+: { mode: value } } } }, + '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSeriesBy(value): { fieldConfig+: { defaults+: { color+: { seriesBy: value } } } }, + }, + '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Alternative to empty string' } }, + withNoValue(value): { fieldConfig+: { defaults+: { noValue: value } } }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The behavior when clicking on a result' } }, + withLinks(value): { fieldConfig+: { defaults+: { links: (if std.isArray(value) + then value + else [value]) } } }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The behavior when clicking on a result' } }, + withLinksMixin(value): { fieldConfig+: { defaults+: { links+: (if std.isArray(value) + then value + else [value]) } } }, + '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Convert input values into a display string' } }, + withMappings(value): { fieldConfig+: { defaults+: { mappings: (if std.isArray(value) + then value + else [value]) } } }, + '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Convert input values into a display string' } }, + withMappingsMixin(value): { fieldConfig+: { defaults+: { mappings+: (if std.isArray(value) + then value + else [value]) } } }, + '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withOverrides(value): { fieldConfig+: { overrides: (if std.isArray(value) + then value + else [value]) } }, + '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withOverridesMixin(value): { fieldConfig+: { overrides+: (if std.isArray(value) + then value + else [value]) } }, + thresholds+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { fieldConfig+: { defaults+: { thresholds+: { mode: value } } } }, + '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: "Must be sorted by 'value', first value is always -Infinity" } }, + withSteps(value): { fieldConfig+: { defaults+: { thresholds+: { steps: (if std.isArray(value) + then value + else [value]) } } } }, + '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: "Must be sorted by 'value', first value is always -Infinity" } }, + withStepsMixin(value): { fieldConfig+: { defaults+: { thresholds+: { steps+: (if std.isArray(value) + then value + else [value]) } } } }, + }, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { datasource+: { type: value } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUid(value): { datasource+: { uid: value } }, + }, + libraryPanel+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { libraryPanel+: { name: value } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUid(value): { libraryPanel+: { uid: value } }, + }, + gridPos+: + { + '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, + withH(value=9): { gridPos+: { h: value } }, + '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if fixed' } }, + withStatic(value=true): { gridPos+: { static: value } }, + '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, + withW(value=12): { gridPos+: { w: value } }, + '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel x' } }, + withX(value=0): { gridPos+: { x: value } }, + '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel y' } }, + withY(value=0): { gridPos+: { y: value } }, + }, + link+: + { + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsDropdown(value=true): { asDropdown: value }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { icon: value }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIncludeVars(value=true): { includeVars: value }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withKeepTime(value=true): { keepTime: value }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTags(value): { tags: (if std.isArray(value) + then value + else [value]) }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTagsMixin(value): { tags+: (if std.isArray(value) + then value + else [value]) }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTargetBlank(value=true): { targetBlank: value }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTitle(value): { title: value }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTooltip(value): { tooltip: value }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { type: value }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUrl(value): { url: value }, + }, + transformation+: + { + '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Disabled transformations are skipped' } }, + withDisabled(value=true): { disabled: value }, + '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFilter(value): { filter: value }, + '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFilterMixin(value): { filter+: value }, + filter+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value=''): { filter+: { id: value } }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withOptions(value): { filter+: { options: value } }, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique identifier of transformer' } }, + withId(value): { id: value }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, + withOptions(value): { options: value }, + }, + valueMapping+: + { + ValueMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + RangeMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'to and from are `number | null` in current ts, really not sure what to do' } }, + withFrom(value): { options+: { from: value } }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResult(value): { options+: { result: value } }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResultMixin(value): { options+: { result+: value } }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withColor(value): { options+: { result+: { color: value } } }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { options+: { result+: { icon: value } } }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withIndex(value): { options+: { result+: { index: value } } }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withText(value): { options+: { result+: { text: value } } }, + }, + '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withTo(value): { options+: { to: value } }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + RegexMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPattern(value): { options+: { pattern: value } }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResult(value): { options+: { result: value } }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResultMixin(value): { options+: { result+: value } }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withColor(value): { options+: { result+: { color: value } } }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { options+: { result+: { icon: value } } }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withIndex(value): { options+: { result+: { index: value } } }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withText(value): { options+: { result+: { text: value } } }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + SpecialValueMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false'], name: 'value', type: 'string' }], help: '' } }, + withMatch(value): { options+: { match: value } }, + '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPattern(value): { options+: { pattern: value } }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResult(value): { options+: { result: value } }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResultMixin(value): { options+: { result+: value } }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withColor(value): { options+: { result+: { color: value } } }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { options+: { result+: { icon: value } } }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withIndex(value): { options+: { result+: { index: value } } }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withText(value): { options+: { result+: { text: value } } }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + }, + thresholdStep+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withColor(value): { color: value }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Threshold index, an old property that is not needed an should only appear in older dashboards' } }, + withIndex(value): { index: value }, + '#withState': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO are the values here enumerable into a disjunction?\nSome seem to be listed in typescript comment' } }, + withState(value): { state: value }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'TODO docs\nFIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON' } }, + withValue(value): { value: value }, + }, + fieldOverride+: + { + '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMatcher(value): { matcher: value }, + '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMatcherMixin(value): { matcher+: value }, + matcher+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value=''): { matcher+: { id: value } }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withOptions(value): { matcher+: { options: value } }, + }, + '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withProperties(value): { properties: (if std.isArray(value) + then value + else [value]) }, + '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPropertiesMixin(value): { properties+: (if std.isArray(value) + then value + else [value]) }, + properties+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value=''): { id: value }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withValue(value): { value: value }, + }, + }, +} ++ (import '../custom/panel.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet new file mode 100644 index 0000000..09fe462 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet @@ -0,0 +1,20 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.alertGroups', name: 'alertGroups' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'alertGroups' }, + }, + options+: + { + '#withAlertmanager': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the alertmanager used as a source for alerts' } }, + withAlertmanager(value): { options+: { alertmanager: value } }, + '#withExpandAll': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Expand all alert groups by default' } }, + withExpandAll(value=true): { options+: { expandAll: value } }, + '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Comma-separated list of values used to filter alert results' } }, + withLabels(value): { options+: { labels: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet new file mode 100644 index 0000000..f434c32 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet @@ -0,0 +1,40 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.annotationsList', name: 'annotationsList' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'annolist' }, + }, + options+: + { + '#withLimit': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLimit(value=10): { options+: { limit: value } }, + '#withNavigateAfter': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: 'string' }], help: '' } }, + withNavigateAfter(value='10m'): { options+: { navigateAfter: value } }, + '#withNavigateBefore': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: 'string' }], help: '' } }, + withNavigateBefore(value='10m'): { options+: { navigateBefore: value } }, + '#withNavigateToPanel': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withNavigateToPanel(value=true): { options+: { navigateToPanel: value } }, + '#withOnlyFromThisDashboard': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withOnlyFromThisDashboard(value=true): { options+: { onlyFromThisDashboard: value } }, + '#withOnlyInTimeRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withOnlyInTimeRange(value=true): { options+: { onlyInTimeRange: value } }, + '#withShowTags': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowTags(value=true): { options+: { showTags: value } }, + '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowTime(value=true): { options+: { showTime: value } }, + '#withShowUser': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowUser(value=true): { options+: { showUser: value } }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTags(value): { options+: { tags: (if std.isArray(value) + then value + else [value]) } }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTagsMixin(value): { options+: { tags+: (if std.isArray(value) + then value + else [value]) } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet new file mode 100644 index 0000000..ceef0ef --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet @@ -0,0 +1,157 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.barChart', name: 'barChart' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'barchart' }, + }, + fieldConfig+: + { + defaults+: + { + custom+: + { + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: 'integer' }], help: 'Controls the fill opacity of the bars.' } }, + withFillOpacity(value=80): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, + withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, + '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls line width of the bars.' } }, + withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, + }, + }, + }, + }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withBarRadius': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'number' }], help: 'Controls the radius of each bar.' } }, + withBarRadius(value=0): { options+: { barRadius: value } }, + '#withBarWidth': { 'function': { args: [{ default: 0.96999999999999997, enums: null, name: 'value', type: 'number' }], help: 'Controls the width of bars. 1 = Max width, 0 = Min width.' } }, + withBarWidth(value=0.96999999999999997): { options+: { barWidth: value } }, + '#withColorByField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Use the color value for a sibling field to color each bar value.' } }, + withColorByField(value): { options+: { colorByField: value } }, + '#withFullHighlight': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Enables mode which highlights the entire bar area and shows tooltip when cursor\nhovers over highlighted area' } }, + withFullHighlight(value=true): { options+: { fullHighlight: value } }, + '#withGroupWidth': { 'function': { args: [{ default: 0.69999999999999996, enums: null, name: 'value', type: 'number' }], help: 'Controls the width of groups. 1 = max with, 0 = min width.' } }, + withGroupWidth(value=0.69999999999999996): { options+: { groupWidth: value } }, + '#withOrientation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the orientation of the bar chart, either vertical or horizontal.' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'This controls whether values are shown on top or to the left of bars.' } }, + withShowValue(value): { options+: { showValue: value } }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls whether bars are stacked or not, either normally or in percent mode.' } }, + withStacking(value): { options+: { stacking: value } }, + '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Manually select which field from the dataset to represent the x field.' } }, + withXField(value): { options+: { xField: value } }, + '#withXTickLabelMaxLength': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Sets the max length that a label can have before it is truncated.' } }, + withXTickLabelMaxLength(value): { options+: { xTickLabelMaxLength: value } }, + '#withXTickLabelRotation': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Controls the rotation of the x axis labels.' } }, + withXTickLabelRotation(value=0): { options+: { xTickLabelRotation: value } }, + '#withXTickLabelSpacing': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Controls the spacing between x axis labels.\nnegative values indicate backwards skipping behavior' } }, + withXTickLabelSpacing(value=0): { options+: { xTickLabelSpacing: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet new file mode 100644 index 0000000..1596a28 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet @@ -0,0 +1,58 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.barGauge', name: 'barGauge' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'bargauge' }, + }, + options+: + { + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptions(value): { options+: { reduceOptions: value } }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { options+: { reduceOptions+: { fields: value } } }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, + withLimit(value): { options+: { reduceOptions+: { limit: value } } }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, + withValues(value=true): { options+: { reduceOptions+: { values: value } } }, + }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['basic', 'lcd', 'gradient'], name: 'value', type: 'string' }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, + withDisplayMode(value): { options+: { displayMode: value } }, + '#withMinVizHeight': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMinVizHeight(value=10): { options+: { minVizHeight: value } }, + '#withMinVizWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMinVizWidth(value=0): { options+: { minVizWidth: value } }, + '#withShowUnfilled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowUnfilled(value=true): { options+: { showUnfilled: value } }, + '#withValueMode': { 'function': { args: [{ default: null, enums: ['color', 'text', 'hidden'], name: 'value', type: 'string' }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, + withValueMode(value): { options+: { valueMode: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet new file mode 100644 index 0000000..8d9e6ef --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet @@ -0,0 +1,11 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.candlestick', name: 'candlestick' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'candlestick' }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet new file mode 100644 index 0000000..4814e32 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet @@ -0,0 +1,11 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.canvas', name: 'canvas' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'canvas' }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet new file mode 100644 index 0000000..9c981c2 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet @@ -0,0 +1,40 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.dashboardList', name: 'dashboardList' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'dashlist' }, + }, + options+: + { + '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withFolderId(value): { options+: { folderId: value } }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIncludeVars(value=true): { options+: { includeVars: value } }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withKeepTime(value=true): { options+: { keepTime: value } }, + '#withMaxItems': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMaxItems(value=10): { options+: { maxItems: value } }, + '#withQuery': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, + withQuery(value=''): { options+: { query: value } }, + '#withShowHeadings': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowHeadings(value=true): { options+: { showHeadings: value } }, + '#withShowRecentlyViewed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowRecentlyViewed(value=true): { options+: { showRecentlyViewed: value } }, + '#withShowSearch': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowSearch(value=true): { options+: { showSearch: value } }, + '#withShowStarred': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowStarred(value=true): { options+: { showStarred: value } }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTags(value): { options+: { tags: (if std.isArray(value) + then value + else [value]) } }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTagsMixin(value): { options+: { tags+: (if std.isArray(value) + then value + else [value]) } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet new file mode 100644 index 0000000..e8d7558 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet @@ -0,0 +1,16 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.datagrid', name: 'datagrid' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'datagrid' }, + }, + options+: + { + '#withSelectedSeries': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withSelectedSeries(value=0): { options+: { selectedSeries: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet new file mode 100644 index 0000000..da8c70e --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet @@ -0,0 +1,29 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.debug', name: 'debug' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'debug' }, + }, + options+: + { + '#withCounters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCounters(value): { options+: { counters: value } }, + '#withCountersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCountersMixin(value): { options+: { counters+: value } }, + counters+: + { + '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withDataChanged(value=true): { options+: { counters+: { dataChanged: value } } }, + '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withRender(value=true): { options+: { counters+: { render: value } } }, + '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSchemaChanged(value=true): { options+: { counters+: { schemaChanged: value } } }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { mode: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet new file mode 100644 index 0000000..a45c39c --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet @@ -0,0 +1,52 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.gauge', name: 'gauge' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'gauge' }, + }, + options+: + { + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptions(value): { options+: { reduceOptions: value } }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { options+: { reduceOptions+: { fields: value } } }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, + withLimit(value): { options+: { reduceOptions+: { limit: value } } }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, + withValues(value=true): { options+: { reduceOptions+: { values: value } } }, + }, + '#withShowThresholdLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowThresholdLabels(value=true): { options+: { showThresholdLabels: value } }, + '#withShowThresholdMarkers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowThresholdMarkers(value=true): { options+: { showThresholdMarkers: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet new file mode 100644 index 0000000..a0f8aeb --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet @@ -0,0 +1,155 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.geomap', name: 'geomap' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'geomap' }, + }, + options+: + { + '#withBasemap': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withBasemap(value): { options+: { basemap: value } }, + '#withBasemapMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withBasemapMixin(value): { options+: { basemap+: value } }, + basemap+: + { + '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Custom options depending on the type' } }, + withConfig(value): { options+: { basemap+: { config: value } } }, + '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, + withFilterData(value): { options+: { basemap+: { filterData: value } } }, + '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLocation(value): { options+: { basemap+: { location: value } } }, + '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLocationMixin(value): { options+: { basemap+: { location+: value } } }, + location+: + { + '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Path to Gazetteer' } }, + withGazetteer(value): { options+: { basemap+: { location+: { gazetteer: value } } } }, + '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field mappings' } }, + withGeohash(value): { options+: { basemap+: { location+: { geohash: value } } } }, + '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLatitude(value): { options+: { basemap+: { location+: { latitude: value } } } }, + '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLongitude(value): { options+: { basemap+: { location+: { longitude: value } } } }, + '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLookup(value): { options+: { basemap+: { location+: { lookup: value } } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { basemap+: { location+: { mode: value } } } }, + '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withWkt(value): { options+: { basemap+: { location+: { wkt: value } } } }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'configured unique display name' } }, + withName(value): { options+: { basemap+: { name: value } } }, + '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, + withOpacity(value): { options+: { basemap+: { opacity: value } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Check tooltip (defaults to true)' } }, + withTooltip(value=true): { options+: { basemap+: { tooltip: value } } }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { options+: { basemap+: { type: value } } }, + }, + '#withControls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withControls(value): { options+: { controls: value } }, + '#withControlsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withControlsMixin(value): { options+: { controls+: value } }, + controls+: + { + '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'let the mouse wheel zoom' } }, + withMouseWheelZoom(value=true): { options+: { controls+: { mouseWheelZoom: value } } }, + '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Lower right' } }, + withShowAttribution(value=true): { options+: { controls+: { showAttribution: value } } }, + '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show debug' } }, + withShowDebug(value=true): { options+: { controls+: { showDebug: value } } }, + '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show measure' } }, + withShowMeasure(value=true): { options+: { controls+: { showMeasure: value } } }, + '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Scale options' } }, + withShowScale(value=true): { options+: { controls+: { showScale: value } } }, + '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Zoom (upper left)' } }, + withShowZoom(value=true): { options+: { controls+: { showZoom: value } } }, + }, + '#withLayers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withLayers(value): { options+: { layers: (if std.isArray(value) + then value + else [value]) } }, + '#withLayersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withLayersMixin(value): { options+: { layers+: (if std.isArray(value) + then value + else [value]) } }, + layers+: + { + '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Custom options depending on the type' } }, + withConfig(value): { config: value }, + '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, + withFilterData(value): { filterData: value }, + '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLocation(value): { location: value }, + '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLocationMixin(value): { location+: value }, + location+: + { + '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Path to Gazetteer' } }, + withGazetteer(value): { location+: { gazetteer: value } }, + '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field mappings' } }, + withGeohash(value): { location+: { geohash: value } }, + '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLatitude(value): { location+: { latitude: value } }, + '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLongitude(value): { location+: { longitude: value } }, + '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLookup(value): { location+: { lookup: value } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { location+: { mode: value } }, + '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withWkt(value): { location+: { wkt: value } }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'configured unique display name' } }, + withName(value): { name: value }, + '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, + withOpacity(value): { opacity: value }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Check tooltip (defaults to true)' } }, + withTooltip(value=true): { tooltip: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + }, + '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withView(value): { options+: { view: value } }, + '#withViewMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withViewMixin(value): { options+: { view+: value } }, + view+: + { + '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAllLayers(value=true): { options+: { view+: { allLayers: value } } }, + '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value='zero'): { options+: { view+: { id: value } } }, + '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLastOnly(value=true): { options+: { view+: { lastOnly: value } } }, + '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLat(value=0): { options+: { view+: { lat: value } } }, + '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLayer(value): { options+: { view+: { layer: value } } }, + '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLon(value=0): { options+: { view+: { lon: value } } }, + '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMaxZoom(value): { options+: { view+: { maxZoom: value } } }, + '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMinZoom(value): { options+: { view+: { minZoom: value } } }, + '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withPadding(value): { options+: { view+: { padding: value } } }, + '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShared(value=true): { options+: { view+: { shared: value } } }, + '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withZoom(value=1): { options+: { view+: { zoom: value } } }, + }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet new file mode 100644 index 0000000..24b141c --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet @@ -0,0 +1,266 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.heatmap', name: 'heatmap' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'heatmap' }, + }, + fieldConfig+: + { + defaults+: + { + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + }, + }, + }, + options+: + { + '#withCalculate': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the heatmap should be calculated from data' } }, + withCalculate(value=true): { options+: { calculate: value } }, + '#withCalculation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCalculation(value): { options+: { calculation: value } }, + '#withCalculationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCalculationMixin(value): { options+: { calculation+: value } }, + calculation+: + { + '#withXBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withXBuckets(value): { options+: { calculation+: { xBuckets: value } } }, + '#withXBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withXBucketsMixin(value): { options+: { calculation+: { xBuckets+: value } } }, + xBuckets+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { calculation+: { xBuckets+: { mode: value } } } }, + '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScale(value): { options+: { calculation+: { xBuckets+: { scale: value } } } }, + '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleMixin(value): { options+: { calculation+: { xBuckets+: { scale+: value } } } }, + scale+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { options+: { calculation+: { xBuckets+: { scale+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { options+: { calculation+: { xBuckets+: { scale+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { options+: { calculation+: { xBuckets+: { scale+: { type: value } } } } }, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The number of buckets to use for the axis in the heatmap' } }, + withValue(value): { options+: { calculation+: { xBuckets+: { value: value } } } }, + }, + '#withYBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withYBuckets(value): { options+: { calculation+: { yBuckets: value } } }, + '#withYBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withYBucketsMixin(value): { options+: { calculation+: { yBuckets+: value } } }, + yBuckets+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { calculation+: { yBuckets+: { mode: value } } } }, + '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScale(value): { options+: { calculation+: { yBuckets+: { scale: value } } } }, + '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleMixin(value): { options+: { calculation+: { yBuckets+: { scale+: value } } } }, + scale+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { options+: { calculation+: { yBuckets+: { scale+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { options+: { calculation+: { yBuckets+: { scale+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { options+: { calculation+: { yBuckets+: { scale+: { type: value } } } } }, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The number of buckets to use for the axis in the heatmap' } }, + withValue(value): { options+: { calculation+: { yBuckets+: { value: value } } } }, + }, + }, + '#withCellGap': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls gap between cells' } }, + withCellGap(value=1): { options+: { cellGap: value } }, + '#withCellRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls cell radius' } }, + withCellRadius(value): { options+: { cellRadius: value } }, + '#withCellValues': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value unit' } }, + withCellValues(value={}): { options+: { cellValues: value } }, + '#withCellValuesMixin': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value unit' } }, + withCellValuesMixin(value): { options+: { cellValues+: value } }, + cellValues+: + { + '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, + withCellValues(value): { options+: { cellValues+: { CellValues: value } } }, + '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, + withCellValuesMixin(value): { options+: { cellValues+: { CellValues+: value } } }, + CellValues+: + { + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for cell values' } }, + withDecimals(value): { options+: { cellValues+: { decimals: value } } }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the cell value unit' } }, + withUnit(value): { options+: { cellValues+: { unit: value } } }, + }, + }, + '#withColor': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: 'object' }], help: 'Controls the color options' } }, + withColor(value={ exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }): { options+: { color: value } }, + '#withColorMixin': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: 'object' }], help: 'Controls the color options' } }, + withColorMixin(value): { options+: { color+: value } }, + color+: + { + '#withHeatmapColorOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, + withHeatmapColorOptions(value): { options+: { color+: { HeatmapColorOptions: value } } }, + '#withHeatmapColorOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, + withHeatmapColorOptionsMixin(value): { options+: { color+: { HeatmapColorOptions+: value } } }, + HeatmapColorOptions+: + { + '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the exponent when scale is set to exponential' } }, + withExponent(value): { options+: { color+: { exponent: value } } }, + '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color fill when in opacity mode' } }, + withFill(value): { options+: { color+: { fill: value } } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the color scale' } }, + withMax(value): { options+: { color+: { max: value } } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the color scale' } }, + withMin(value): { options+: { color+: { min: value } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: 'string' }], help: 'Controls the color mode of the heatmap' } }, + withMode(value): { options+: { color+: { mode: value } } }, + '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the color scheme' } }, + withReverse(value=true): { options+: { color+: { reverse: value } } }, + '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: 'string' }], help: 'Controls the color scale of the heatmap' } }, + withScale(value): { options+: { color+: { scale: value } } }, + '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color scheme used' } }, + withScheme(value): { options+: { color+: { scheme: value } } }, + '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Controls the number of color steps' } }, + withSteps(value): { options+: { color+: { steps: value } } }, + }, + }, + '#withExemplars': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, + withExemplars(value): { options+: { exemplars: value } }, + '#withExemplarsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, + withExemplarsMixin(value): { options+: { exemplars+: value } }, + exemplars+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the color of the exemplar markers' } }, + withColor(value): { options+: { exemplars+: { color: value } } }, + }, + '#withFilterValues': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: 'object' }], help: 'Filters values between a given range' } }, + withFilterValues(value={ le: 1.0000000000000001e-09 }): { options+: { filterValues: value } }, + '#withFilterValuesMixin': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: 'object' }], help: 'Filters values between a given range' } }, + withFilterValuesMixin(value): { options+: { filterValues+: value } }, + filterValues+: + { + '#withFilterValueRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, + withFilterValueRange(value): { options+: { filterValues+: { FilterValueRange: value } } }, + '#withFilterValueRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, + withFilterValueRangeMixin(value): { options+: { filterValues+: { FilterValueRange+: value } } }, + FilterValueRange+: + { + '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values greater than or equal to the given value' } }, + withGe(value): { options+: { filterValues+: { ge: value } } }, + '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values less than or equal to the given value' } }, + withLe(value): { options+: { filterValues+: { le: value } } }, + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the legend is shown' } }, + withShow(value=true): { options+: { legend+: { show: value } } }, + }, + '#withRowsFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, + withRowsFrame(value): { options+: { rowsFrame: value } }, + '#withRowsFrameMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, + withRowsFrameMixin(value): { options+: { rowsFrame+: value } }, + rowsFrame+: + { + '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: 'string' }], help: '' } }, + withLayout(value): { options+: { rowsFrame+: { layout: value } } }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the name of the cell when not calculating from data' } }, + withValue(value): { options+: { rowsFrame+: { value: value } } }, + }, + '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '| *{\n\tlayout: ui.HeatmapCellLayout & "auto" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\n}\nControls the display of the value in the cell' } }, + withShowValue(value): { options+: { showValue: value } }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip is shown' } }, + withShow(value=true): { options+: { tooltip+: { show: value } } }, + '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, + withYHistogram(value=true): { options+: { tooltip+: { yHistogram: value } } }, + }, + '#withYAxis': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, + withYAxis(value): { options+: { yAxis: value } }, + '#withYAxisMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, + withYAxisMixin(value): { options+: { yAxis+: value } }, + yAxis+: + { + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { options+: { yAxis+: { axisCenteredZero: value } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { options+: { yAxis+: { axisColorMode: value } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { options+: { yAxis+: { axisGridShow: value } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { options+: { yAxis+: { axisLabel: value } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { options+: { yAxis+: { axisPlacement: value } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { options+: { yAxis+: { axisSoftMax: value } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { options+: { yAxis+: { axisSoftMin: value } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { options+: { yAxis+: { axisWidth: value } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { options+: { yAxis+: { scaleDistribution: value } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { options+: { yAxis+: { scaleDistribution+: value } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { options+: { yAxis+: { scaleDistribution+: { linearThreshold: value } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { options+: { yAxis+: { scaleDistribution+: { log: value } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { options+: { yAxis+: { scaleDistribution+: { type: value } } } }, + }, + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for yAxis values' } }, + withDecimals(value): { options+: { yAxis+: { decimals: value } } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the yAxis' } }, + withMax(value): { options+: { yAxis+: { max: value } } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the yAxis' } }, + withMin(value): { options+: { yAxis+: { min: value } } }, + '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the yAxis' } }, + withReverse(value=true): { options+: { yAxis+: { reverse: value } } }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the yAxis unit' } }, + withUnit(value): { options+: { yAxis+: { unit: value } } }, + }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet new file mode 100644 index 0000000..36f46eb --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet @@ -0,0 +1,119 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.histogram', name: 'histogram' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'histogram' }, + }, + fieldConfig+: + { + defaults+: + { + custom+: + { + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: 'integer' }], help: 'Controls the fill opacity of the bars.' } }, + withFillOpacity(value=80): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, + withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, + '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls line width of the bars.' } }, + withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + }, + }, + }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withBucketOffset': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Offset buckets by this amount' } }, + withBucketOffset(value=0): { options+: { bucketOffset: value } }, + '#withBucketSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Size of each bucket' } }, + withBucketSize(value): { options+: { bucketSize: value } }, + '#withCombine': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Combines multiple series into a single histogram' } }, + withCombine(value=true): { options+: { combine: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet new file mode 100644 index 0000000..cd95ac5 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet @@ -0,0 +1,30 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.logs', name: 'logs' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'logs' }, + }, + options+: + { + '#withDedupStrategy': { 'function': { args: [{ default: null, enums: ['none', 'exact', 'numbers', 'signature'], name: 'value', type: 'string' }], help: '' } }, + withDedupStrategy(value): { options+: { dedupStrategy: value } }, + '#withEnableLogDetails': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withEnableLogDetails(value=true): { options+: { enableLogDetails: value } }, + '#withPrettifyLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withPrettifyLogMessage(value=true): { options+: { prettifyLogMessage: value } }, + '#withShowCommonLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowCommonLabels(value=true): { options+: { showCommonLabels: value } }, + '#withShowLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLabels(value=true): { options+: { showLabels: value } }, + '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowTime(value=true): { options+: { showTime: value } }, + '#withSortOrder': { 'function': { args: [{ default: null, enums: ['Descending', 'Ascending'], name: 'value', type: 'string' }], help: '' } }, + withSortOrder(value): { options+: { sortOrder: value } }, + '#withWrapLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withWrapLogMessage(value=true): { options+: { wrapLogMessage: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet new file mode 100644 index 0000000..1c44759 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet @@ -0,0 +1,18 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.news', name: 'news' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'news' }, + }, + options+: + { + '#withFeedUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'empty/missing will default to grafana blog' } }, + withFeedUrl(value): { options+: { feedUrl: value } }, + '#withShowImage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowImage(value=true): { options+: { showImage: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet new file mode 100644 index 0000000..73facc5 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet @@ -0,0 +1,51 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.nodeGraph', name: 'nodeGraph' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'nodeGraph' }, + }, + options+: + { + '#withEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withEdges(value): { options+: { edges: value } }, + '#withEdgesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withEdgesMixin(value): { options+: { edges+: value } }, + edges+: + { + '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, + withMainStatUnit(value): { options+: { edges+: { mainStatUnit: value } } }, + '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, + withSecondaryStatUnit(value): { options+: { edges+: { secondaryStatUnit: value } } }, + }, + '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withNodes(value): { options+: { nodes: value } }, + '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withNodesMixin(value): { options+: { nodes+: value } }, + nodes+: + { + '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, + withArcs(value): { options+: { nodes+: { arcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, + withArcsMixin(value): { options+: { nodes+: { arcs+: (if std.isArray(value) + then value + else [value]) } } }, + arcs+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The color of the arc.' } }, + withColor(value): { color: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, + withField(value): { field: value }, + }, + '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, + withMainStatUnit(value): { options+: { nodes+: { mainStatUnit: value } } }, + '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, + withSecondaryStatUnit(value): { options+: { nodes+: { secondaryStatUnit: value } } }, + }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet new file mode 100644 index 0000000..4854949 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet @@ -0,0 +1,130 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.pieChart', name: 'pieChart' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'piechart' }, + }, + fieldConfig+: + { + defaults+: + { + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + }, + }, + }, + options+: + { + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptions(value): { options+: { reduceOptions: value } }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { options+: { reduceOptions+: { fields: value } } }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, + withLimit(value): { options+: { reduceOptions+: { limit: value } } }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, + withValues(value=true): { options+: { reduceOptions+: { values: value } } }, + }, + '#withDisplayLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDisplayLabels(value): { options+: { displayLabels: (if std.isArray(value) + then value + else [value]) } }, + '#withDisplayLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDisplayLabelsMixin(value): { options+: { displayLabels+: (if std.isArray(value) + then value + else [value]) } }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withValues(value): { options+: { legend+: { values: (if std.isArray(value) + then value + else [value]) } } }, + '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withValuesMixin(value): { options+: { legend+: { values+: (if std.isArray(value) + then value + else [value]) } } }, + }, + '#withPieType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: 'string' }], help: 'Select the pie chart display style.' } }, + withPieType(value): { options+: { pieType: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet new file mode 100644 index 0000000..d6b5f8b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet @@ -0,0 +1,56 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.stat', name: 'stat' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'stat' }, + }, + options+: + { + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptions(value): { options+: { reduceOptions: value } }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { options+: { reduceOptions+: { fields: value } } }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, + withLimit(value): { options+: { reduceOptions+: { limit: value } } }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, + withValues(value=true): { options+: { reduceOptions+: { values: value } } }, + }, + '#withColorMode': { 'function': { args: [{ default: null, enums: ['value', 'background', 'background_solid', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withColorMode(value): { options+: { colorMode: value } }, + '#withGraphMode': { 'function': { args: [{ default: null, enums: ['none', 'line', 'area'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withGraphMode(value): { options+: { graphMode: value } }, + '#withJustifyMode': { 'function': { args: [{ default: null, enums: ['auto', 'center'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withJustifyMode(value): { options+: { justifyMode: value } }, + '#withTextMode': { 'function': { args: [{ default: null, enums: ['auto', 'value', 'value_and_name', 'name', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withTextMode(value): { options+: { textMode: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet new file mode 100644 index 0000000..1e75e69 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet @@ -0,0 +1,98 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.stateTimeline', name: 'stateTimeline' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'state-timeline' }, + }, + fieldConfig+: + { + defaults+: + { + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withFillOpacity(value=70): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withLineWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLineWidth(value=0): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + }, + }, + }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezone(value): { options+: { timezone: (if std.isArray(value) + then value + else [value]) } }, + '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) + then value + else [value]) } }, + '#withAlignValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls value alignment on the timelines' } }, + withAlignValue(value): { options+: { alignValue: value } }, + '#withMergeValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Merge equal consecutive values' } }, + withMergeValues(value=true): { options+: { mergeValues: value } }, + '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Controls the row height' } }, + withRowHeight(value=0.90000000000000002): { options+: { rowHeight: value } }, + '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Show timeline values on chart' } }, + withShowValue(value): { options+: { showValue: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet new file mode 100644 index 0000000..9fe7e6b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet @@ -0,0 +1,96 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.statusHistory', name: 'statusHistory' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'status-history' }, + }, + fieldConfig+: + { + defaults+: + { + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withFillOpacity(value=70): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + }, + }, + }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezone(value): { options+: { timezone: (if std.isArray(value) + then value + else [value]) } }, + '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) + then value + else [value]) } }, + '#withColWidth': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Controls the column width' } }, + withColWidth(value=0.90000000000000002): { options+: { colWidth: value } }, + '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Set the height of the rows' } }, + withRowHeight(value=0.90000000000000002): { options+: { rowHeight: value } }, + '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Show values on the columns' } }, + withShowValue(value): { options+: { showValue: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet new file mode 100644 index 0000000..a09d2d7 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet @@ -0,0 +1,73 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.table', name: 'table' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'table' }, + }, + options+: + { + '#withCellHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the height of the rows' } }, + withCellHeight(value): { options+: { cellHeight: value } }, + '#withFooter': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: 'object' }], help: 'Controls footer options' } }, + withFooter(value={ countRows: false, reducer: [], show: false }): { options+: { footer: value } }, + '#withFooterMixin': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: 'object' }], help: 'Controls footer options' } }, + withFooterMixin(value): { options+: { footer+: value } }, + footer+: + { + '#withTableFooterOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Footer options' } }, + withTableFooterOptions(value): { options+: { footer+: { TableFooterOptions: value } } }, + '#withTableFooterOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Footer options' } }, + withTableFooterOptionsMixin(value): { options+: { footer+: { TableFooterOptions+: value } } }, + TableFooterOptions+: + { + '#withCountRows': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withCountRows(value=true): { options+: { footer+: { countRows: value } } }, + '#withEnablePagination': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withEnablePagination(value=true): { options+: { footer+: { enablePagination: value } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFields(value): { options+: { footer+: { fields: (if std.isArray(value) + then value + else [value]) } } }, + '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFieldsMixin(value): { options+: { footer+: { fields+: (if std.isArray(value) + then value + else [value]) } } }, + '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withReducer(value): { options+: { footer+: { reducer: (if std.isArray(value) + then value + else [value]) } } }, + '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withReducerMixin(value): { options+: { footer+: { reducer+: (if std.isArray(value) + then value + else [value]) } } }, + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShow(value=true): { options+: { footer+: { show: value } } }, + }, + }, + '#withFrameIndex': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'number' }], help: 'Represents the index of the selected frame' } }, + withFrameIndex(value=0): { options+: { frameIndex: value } }, + '#withShowHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls whether the panel should show the header' } }, + withShowHeader(value=true): { options+: { showHeader: value } }, + '#withShowTypeIcons': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls whether the header should show icons for the column types' } }, + withShowTypeIcons(value=true): { options+: { showTypeIcons: value } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Used to control row sorting' } }, + withSortBy(value): { options+: { sortBy: (if std.isArray(value) + then value + else [value]) } }, + '#withSortByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Used to control row sorting' } }, + withSortByMixin(value): { options+: { sortBy+: (if std.isArray(value) + then value + else [value]) } }, + sortBy+: + { + '#withDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag used to indicate descending sort order' } }, + withDesc(value=true): { desc: value }, + '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the display name of the field to sort by' } }, + withDisplayName(value): { displayName: value }, + }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet new file mode 100644 index 0000000..fe1101b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet @@ -0,0 +1,31 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.text', name: 'text' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'text' }, + }, + options+: + { + '#withCode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCode(value): { options+: { code: value } }, + '#withCodeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCodeMixin(value): { options+: { code+: value } }, + code+: + { + '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: 'string' }], help: '' } }, + withLanguage(value='plaintext'): { options+: { code+: { language: value } } }, + '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLineNumbers(value=true): { options+: { code+: { showLineNumbers: value } } }, + '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowMiniMap(value=true): { options+: { code+: { showMiniMap: value } } }, + }, + '#withContent': { 'function': { args: [{ default: '# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)', enums: null, name: 'value', type: 'string' }], help: '' } }, + withContent(value='# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)'): { options+: { content: value } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { mode: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet new file mode 100644 index 0000000..8c034d5 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet @@ -0,0 +1,188 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.timeSeries', name: 'timeSeries' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'timeseries' }, + }, + fieldConfig+: + { + defaults+: + { + custom+: + { + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLineColor(value): { fieldConfig+: { defaults+: { custom+: { lineColor: value } } } }, + '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withLineInterpolation(value): { fieldConfig+: { defaults+: { custom+: { lineInterpolation: value } } } }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyle(value): { fieldConfig+: { defaults+: { custom+: { lineStyle: value } } } }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: value } } } }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDash(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash: (if std.isArray(value) + then value + else [value]) } } } } }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDashMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash+: (if std.isArray(value) + then value + else [value]) } } } } }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, + withFill(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { fill: value } } } } }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLineWidth(value): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNulls(value): { fieldConfig+: { defaults+: { custom+: { spanNulls: value } } } }, + '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNullsMixin(value): { fieldConfig+: { defaults+: { custom+: { spanNulls+: value } } } }, + '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFillBelowTo(value): { fieldConfig+: { defaults+: { custom+: { fillBelowTo: value } } } }, + '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFillColor(value): { fieldConfig+: { defaults+: { custom+: { fillColor: value } } } }, + '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withFillOpacity(value): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPointColor(value): { fieldConfig+: { defaults+: { custom+: { pointColor: value } } } }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withPointSize(value): { fieldConfig+: { defaults+: { custom+: { pointSize: value } } } }, + '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPointSymbol(value): { fieldConfig+: { defaults+: { custom+: { pointSymbol: value } } } }, + '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withShowPoints(value): { fieldConfig+: { defaults+: { custom+: { showPoints: value } } } }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: 'integer' }], help: 'TODO docs' } }, + withBarAlignment(value): { fieldConfig+: { defaults+: { custom+: { barAlignment: value } } } }, + '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withBarMaxWidth(value): { fieldConfig+: { defaults+: { custom+: { barMaxWidth: value } } } }, + '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withBarWidthFactor(value): { fieldConfig+: { defaults+: { custom+: { barWidthFactor: value } } } }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withStacking(value): { fieldConfig+: { defaults+: { custom+: { stacking: value } } } }, + '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withStackingMixin(value): { fieldConfig+: { defaults+: { custom+: { stacking+: value } } } }, + stacking+: + { + '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withGroup(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { group: value } } } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { mode: value } } } } }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withDrawStyle(value): { fieldConfig+: { defaults+: { custom+: { drawStyle: value } } } }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, + }, + '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withTransform(value): { fieldConfig+: { defaults+: { custom+: { transform: value } } } }, + }, + }, + }, + options+: + { + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezone(value): { options+: { timezone: (if std.isArray(value) + then value + else [value]) } }, + '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) + then value + else [value]) } }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet new file mode 100644 index 0000000..51e3173 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet @@ -0,0 +1,182 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.trend', name: 'trend' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'trend' }, + }, + fieldConfig+: + { + defaults+: + { + custom+: + { + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLineColor(value): { fieldConfig+: { defaults+: { custom+: { lineColor: value } } } }, + '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withLineInterpolation(value): { fieldConfig+: { defaults+: { custom+: { lineInterpolation: value } } } }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyle(value): { fieldConfig+: { defaults+: { custom+: { lineStyle: value } } } }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: value } } } }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDash(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash: (if std.isArray(value) + then value + else [value]) } } } } }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDashMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash+: (if std.isArray(value) + then value + else [value]) } } } } }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, + withFill(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { fill: value } } } } }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLineWidth(value): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNulls(value): { fieldConfig+: { defaults+: { custom+: { spanNulls: value } } } }, + '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNullsMixin(value): { fieldConfig+: { defaults+: { custom+: { spanNulls+: value } } } }, + '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFillBelowTo(value): { fieldConfig+: { defaults+: { custom+: { fillBelowTo: value } } } }, + '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFillColor(value): { fieldConfig+: { defaults+: { custom+: { fillColor: value } } } }, + '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withFillOpacity(value): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPointColor(value): { fieldConfig+: { defaults+: { custom+: { pointColor: value } } } }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withPointSize(value): { fieldConfig+: { defaults+: { custom+: { pointSize: value } } } }, + '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPointSymbol(value): { fieldConfig+: { defaults+: { custom+: { pointSymbol: value } } } }, + '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withShowPoints(value): { fieldConfig+: { defaults+: { custom+: { showPoints: value } } } }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: 'integer' }], help: 'TODO docs' } }, + withBarAlignment(value): { fieldConfig+: { defaults+: { custom+: { barAlignment: value } } } }, + '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withBarMaxWidth(value): { fieldConfig+: { defaults+: { custom+: { barMaxWidth: value } } } }, + '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withBarWidthFactor(value): { fieldConfig+: { defaults+: { custom+: { barWidthFactor: value } } } }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withStacking(value): { fieldConfig+: { defaults+: { custom+: { stacking: value } } } }, + '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withStackingMixin(value): { fieldConfig+: { defaults+: { custom+: { stacking+: value } } } }, + stacking+: + { + '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withGroup(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { group: value } } } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { mode: value } } } } }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withDrawStyle(value): { fieldConfig+: { defaults+: { custom+: { drawStyle: value } } } }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, + }, + '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withTransform(value): { fieldConfig+: { defaults+: { custom+: { transform: value } } } }, + }, + }, + }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the x field to use (defaults to first number)' } }, + withXField(value): { options+: { xField: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet new file mode 100644 index 0000000..4128b6c --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet @@ -0,0 +1,211 @@ +// This file is generated, do not manually edit. +(import '../../clean/panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.xyChart', name: 'xyChart' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'xychart' }, + }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withDims': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDims(value): { options+: { dims: value } }, + '#withDimsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDimsMixin(value): { options+: { dims+: value } }, + dims+: + { + '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExclude(value): { options+: { dims+: { exclude: (if std.isArray(value) + then value + else [value]) } } }, + '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExcludeMixin(value): { options+: { dims+: { exclude+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withFrame(value): { options+: { dims+: { frame: value } } }, + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withX(value): { options+: { dims+: { x: value } } }, + }, + '#withSeries': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withSeries(value): { options+: { series: (if std.isArray(value) + then value + else [value]) } }, + '#withSeriesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withSeriesMixin(value): { options+: { series+: (if std.isArray(value) + then value + else [value]) } }, + series+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { hideFrom: value }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { hideFrom+: value }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { hideFrom+: { legend: value } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { hideFrom+: { tooltip: value } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { hideFrom+: { viz: value } }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { axisCenteredZero: value }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { axisColorMode: value }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { axisGridShow: value }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { axisLabel: value }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { axisPlacement: value }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { axisSoftMax: value }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { axisSoftMin: value }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { axisWidth: value }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { scaleDistribution: value }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { scaleDistribution+: value }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { scaleDistribution+: { linearThreshold: value } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { scaleDistribution+: { log: value } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { scaleDistribution+: { type: value } }, + }, + '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withLabel(value): { label: value }, + '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLabelValue(value): { labelValue: value }, + '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLabelValueMixin(value): { labelValue+: value }, + labelValue+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { labelValue+: { field: value } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { labelValue+: { fixed: value } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { labelValue+: { mode: value } }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLineColor(value): { lineColor: value }, + '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLineColorMixin(value): { lineColor+: value }, + lineColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { lineColor+: { field: value } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { lineColor+: { fixed: value } }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyle(value): { lineStyle: value }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyleMixin(value): { lineStyle+: value }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDash(value): { lineStyle+: { dash: (if std.isArray(value) + then value + else [value]) } }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDashMixin(value): { lineStyle+: { dash+: (if std.isArray(value) + then value + else [value]) } }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, + withFill(value): { lineStyle+: { fill: value } }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLineWidth(value): { lineWidth: value }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointColor(value): { pointColor: value }, + '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointColorMixin(value): { pointColor+: value }, + pointColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { pointColor+: { field: value } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { pointColor+: { fixed: value } }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointSize(value): { pointSize: value }, + '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointSizeMixin(value): { pointSize+: value }, + pointSize+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { pointSize+: { field: value } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withFixed(value): { pointSize+: { fixed: value } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMax(value): { pointSize+: { max: value } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMin(value): { pointSize+: { min: value } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { pointSize+: { mode: value } }, + }, + '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, + withShow(value): { show: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withX(value): { x: value }, + '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withY(value): { y: value }, + }, + '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: 'string' }], help: '' } }, + withSeriesMapping(value): { options+: { seriesMapping: value } }, + }, +} ++ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet new file mode 100644 index 0000000..f7cf1bb --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet @@ -0,0 +1,27 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.loki', name: 'loki' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: 'string' }], help: '' } }, + withEditorMode(value): { editorMode: value }, + '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The LogQL query.' } }, + withExpr(value): { expr: value }, + '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '@deprecated, now use queryType.' } }, + withInstant(value=true): { instant: value }, + '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Used to override the name of the series.' } }, + withLegendFormat(value): { legendFormat: value }, + '#withMaxLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Used to limit the number of log rows returned.' } }, + withMaxLines(value): { maxLines: value }, + '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '@deprecated, now use queryType.' } }, + withRange(value=true): { range: value }, + '#withResolution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Used to scale the interval value.' } }, + withResolution(value): { resolution: value }, +} ++ (import '../../custom/query/loki.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet new file mode 100644 index 0000000..19196ce --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet @@ -0,0 +1,29 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.prometheus', name: 'prometheus' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: 'string' }], help: '' } }, + withEditorMode(value): { editorMode: value }, + '#withExemplar': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Execute an additional query to identify interesting raw samples relevant for the given expr' } }, + withExemplar(value=true): { exemplar: value }, + '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The actual expression/query that will be evaluated by Prometheus' } }, + withExpr(value): { expr: value }, + '#withFormat': { 'function': { args: [{ default: null, enums: ['time_series', 'table', 'heatmap'], name: 'value', type: 'string' }], help: '' } }, + withFormat(value): { format: value }, + '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Returns only the latest value that Prometheus has scraped for the requested time series' } }, + withInstant(value=true): { instant: value }, + '#withIntervalFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '@deprecated Used to specify how many times to divide max data points by. We use max data points under query options\nSee https://github.com/grafana/grafana/issues/48081' } }, + withIntervalFactor(value): { intervalFactor: value }, + '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname' } }, + withLegendFormat(value): { legendFormat: value }, + '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series' } }, + withRange(value=true): { range: value }, +} ++ (import '../../custom/query/prometheus.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet new file mode 100644 index 0000000..40a4eaf --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet @@ -0,0 +1,54 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.tempo', name: 'tempo' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFilters(value): { filters: (if std.isArray(value) + then value + else [value]) }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFiltersMixin(value): { filters+: (if std.isArray(value) + then value + else [value]) }, + filters+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, + withId(value): { id: value }, + '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, + withOperator(value): { operator: value }, + '#withScope': { 'function': { args: [{ default: null, enums: ['unscoped', 'resource', 'span'], name: 'value', type: 'string' }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, + withScope(value): { scope: value }, + '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, + withTag(value): { tag: value }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The value for the search filter' } }, + withValue(value): { value: value }, + '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The value for the search filter' } }, + withValueMixin(value): { value+: value }, + '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, + withValueType(value): { valueType: value }, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Defines the maximum number of traces that are returned from Tempo' } }, + withLimit(value): { limit: value }, + '#withMaxDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, + withMaxDuration(value): { maxDuration: value }, + '#withMinDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, + withMinDuration(value): { minDuration: value }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TraceQL query or trace ID' } }, + withQuery(value): { query: value }, + '#withSearch': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true' } }, + withSearch(value): { search: value }, + '#withServiceMapQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}' } }, + withServiceMapQuery(value): { serviceMapQuery: value }, + '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Query traces by service name' } }, + withServiceName(value): { serviceName: value }, + '#withSpanName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Query traces by span name' } }, + withSpanName(value): { spanName: value }, +} ++ (import '../../custom/query/tempo.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet new file mode 100644 index 0000000..0620a22 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet @@ -0,0 +1,44 @@ +local util = import './util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#new':: d.func.new( + 'Creates a new dashboard with a title.', + args=[d.arg('title', d.T.string)] + ), + new(title): + self.withTitle(title) + + self.withSchemaVersion() + + self.withTimezone('utc') + + self.time.withFrom('now-6h') + + self.time.withTo('now'), + + withPanels(value): { + _panels:: if std.isArray(value) then value else [value], + panels: util.panel.setPanelIDs(self._panels), + }, + withPanelsMixin(value): { + _panels+:: if std.isArray(value) then value else [value], + panels: util.panel.setPanelIDs(self._panels), + }, + + graphTooltip+: { + // 0 - Default + // 1 - Shared crosshair + // 2 - Shared tooltip + '#withSharedCrosshair':: d.func.new( + 'Share crosshair on all panels.', + ), + withSharedCrosshair(): + { graphTooltip: 1 }, + + '#withSharedTooltip':: d.func.new( + 'Share crosshair and tooltip on all panels.', + ), + withSharedTooltip(): + { graphTooltip: 2 }, + }, +} ++ (import './dashboard/annotation.libsonnet') ++ (import './dashboard/link.libsonnet') ++ (import './dashboard/variable.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet new file mode 100644 index 0000000..7b2e04f --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet @@ -0,0 +1,36 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#annotation':: {}, + + '#withAnnotations': + d.func.new( + ||| + `withAnnotations` adds an array of annotations to a dashboard. + + This function appends passed data to existing values + |||, + args=[d.arg('value', d.T.array)] + ), + withAnnotations(value): super.annotation.withList(value), + + '#withAnnotationsMixin': + d.func.new( + ||| + `withAnnotationsMixin` adds an array of annotations to a dashboard. + + This function appends passed data to existing values + |||, + args=[d.arg('value', d.T.array)] + ), + withAnnotationsMixin(value): super.annotation.withListMixin(value), + + annotation: + super.annotation.list + { + '#':: d.package.newSub( + 'annotation', + '', + ), + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet new file mode 100644 index 0000000..eb9b2fe --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet @@ -0,0 +1,90 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#withLinks':: d.func.new( + ||| + Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. + + `withLinks` takes an array of [link objects](./link.md). + + The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. + + Example: + + ```jsonnet + local g = import 'g.libsonnet'; + local link = g.dashboard.link; + + g.dashboard.new('Title dashboard') + + g.dashboard.withLinks([ + link.link.new('My title', 'https://wikipedia.org/'), + ]) + ``` + |||, + [d.arg('value', d.T.array)], + ), + '#withLinksMixin':: self['#withLinks'], + + link+: { + '#':: d.package.newSub( + 'link', + ||| + Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. + + The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. + + Example: + + ```jsonnet + local g = import 'g.libsonnet'; + local link = g.dashboard.link; + + g.dashboard.new('Title dashboard') + + g.dashboard.withLinks([ + link.link.new('My title', 'https://wikipedia.org/'), + ]) + ``` + |||, + ), + + dashboards+: { + '#new':: d.func.new( + ||| + Create links to dashboards based on `tags`. + |||, + args=[ + d.arg('title', d.T.string), + d.arg('tags', d.T.array), + ] + ), + new(title, tags): + self.withTitle(title) + + self.withType('dashboards') + + self.withTags(tags), + + '#withTitle':: {}, + '#withType':: {}, + '#withTags':: {}, + }, + + link+: { + '#new':: d.func.new( + ||| + Create link to an arbitrary URL. + |||, + args=[ + d.arg('title', d.T.string), + d.arg('url', d.T.string), + ] + ), + new(title, url): + self.withTitle(title) + + self.withType('link') + + self.withUrl(url), + + '#withTitle':: {}, + '#withType':: {}, + '#withUrl':: {}, + }, + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet new file mode 100644 index 0000000..e21ef9c --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet @@ -0,0 +1,483 @@ +local util = import '../util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#templating':: {}, + local var = self.templating.list, + + '#withVariables': + d.func.new( + ||| + `withVariables` adds an array of variables to a dashboard + |||, + args=[d.arg('value', d.T.array)] + ), + withVariables(value): self.templating.withList(value), + + '#withVariablesMixin': + d.func.new( + ||| + `withVariablesMixin` adds an array of variables to a dashboard. + + This function appends passed data to existing values + |||, + args=[d.arg('value', d.T.array)] + ), + withVariablesMixin(value): self.templating.withListMixin(value), + + variable: { + '#':: d.package.newSub( + 'variable', + ||| + Example usage: + + ```jsonnet + local g = import 'g.libsonnet'; + local var = g.dashboard.variable; + + local customVar = + var.custom.new( + 'myOptions', + values=['a', 'b', 'c', 'd'], + ) + + var.custom.generalOptions.withDescription( + 'This is a variable for my custom options.' + ) + + var.custom.selectionOptions.withMulti(); + + local queryVar = + var.query.new('queryOptions') + + var.query.queryTypes.withLabelValues( + 'up', + 'instance', + ) + + var.query.withDatasource( + type='prometheus', + uid='mimir-prod', + ) + + var.query.selectionOptions.withIncludeAll(); + + + g.dashboard.new('my dashboard') + + g.dashboard.withVariables([ + customVar, + queryVar, + ]) + ``` + |||, + ), + + local generalOptions = { + generalOptions+: + { + + '#withName': var['#withName'], + withName: var.withName, + '#withLabel': var['#withLabel'], + withLabel: var.withLabel, + '#withDescription': var['#withDescription'], + withDescription: var.withDescription, + + showOnDashboard: { + '#withLabelAndValue':: d.func.new(''), + withLabelAndValue(): var.withHide(0), + '#withValueOnly':: d.func.new(''), + withValueOnly(): var.withHide(1), + '#withNothing':: d.func.new(''), + withNothing(): var.withHide(2), + }, + }, + }, + + local selectionOptions = + { + selectionOptions: + { + '#withMulti':: d.func.new( + 'Enable selecting multiple values.', + args=[ + d.arg('value', d.T.boolean, default=true), + ] + ), + withMulti(value=true): { + multi: value, + }, + + '#withIncludeAll':: d.func.new( + ||| + `withIncludeAll` enables an option to include all variables. + + Optionally you can set a `customAllValue`. + |||, + args=[ + d.arg('value', d.T.boolean, default=true), + d.arg('customAllValue', d.T.boolean, default=null), + ] + ), + withIncludeAll(value=true, customAllValue=null): { + includeAll: value, + [if customAllValue != null then 'allValue']: customAllValue, + }, + }, + }, + + query: + generalOptions + + selectionOptions + + { + '#new':: d.func.new( + ||| + Create a query template variable. + + `query` argument is optional, this can also be set with `query.queryTypes`. + |||, + args=[ + d.arg('name', d.T.string), + d.arg('query', d.T.string, default=''), + ] + ), + new(name, query=''): + var.withName(name) + + var.withType('query') + + var.withQuery(query), + + '#withDatasource':: d.func.new( + 'Select a datasource for the variable template query.', + args=[ + d.arg('type', d.T.string), + d.arg('uid', d.T.string), + ] + ), + withDatasource(type, uid): + var.datasource.withType(type) + + var.datasource.withUid(uid), + + '#withDatasourceFromVariable':: d.func.new( + 'Select the datasource from another template variable.', + args=[ + d.arg('variable', d.T.object), + ] + ), + withDatasourceFromVariable(variable): + if variable.type == 'datasource' + then self.withDatasource(variable.query, '${%s}' % variable.name) + else error "`variable` not of type 'datasource'", + + '#withRegex':: d.func.new( + ||| + `withRegex` can extract part of a series name or metric node segment. Named + capture groups can be used to separate the display text and value + ([see examples](https://grafana.com/docs/grafana/latest/variables/filter-variables-with-regex#filter-and-modify-using-named-text-and-value-capture-groups)). + |||, + args=[ + d.arg('value', d.T.string), + ] + ), + withRegex(value): { + regex: value, + }, + + '#withSort':: d.func.new( + ||| + Choose how to sort the values in the dropdown. + + This can be called as `withSort() to use the integer values for each + option. If `i==0` then it will be ignored and the other arguments will take + precedence. + + The numerical values are: + + - 1 - Alphabetical (asc) + - 2 - Alphabetical (desc) + - 3 - Numerical (asc) + - 4 - Numerical (desc) + - 5 - Alphabetical (case-insensitive, asc) + - 6 - Alphabetical (case-insensitive, desc) + |||, + args=[ + d.arg('i', d.T.number, default=0), + d.arg('type', d.T.string, default='alphabetical'), + d.arg('asc', d.T.boolean, default=true), + d.arg('caseInsensitive', d.T.boolean, default=false), + ], + ), + withSort(i=0, type='alphabetical', asc=true, caseInsensitive=false): + if i != 0 // provide fallback to numerical value + then { sort: i } + else + { + local mapping = { + alphabetical: + if !caseInsensitive + then + if asc + then 1 + else 2 + else + if asc + then 5 + else 6, + numerical: + if asc + then 3 + else 4, + }, + sort: mapping[type], + }, + + // TODO: Expand with Query types to match GUI + queryTypes: { + '#withLabelValues':: d.func.new( + 'Construct a Prometheus template variable using `label_values()`.', + args=[ + d.arg('label', d.T.string), + d.arg('metric', d.T.string, default=''), + ] + ), + withLabelValues(label, metric=''): + if metric == '' + then var.withQuery('label_values(%s)' % label) + else var.withQuery('label_values(%s, %s)' % [metric, label]), + }, + + // Deliberately undocumented, use `refresh` below + withRefresh(value): { + // 1 - On dashboard load + // 2 - On time range chagne + refresh: value, + }, + + local withRefresh = self.withRefresh, + refresh+: { + '#onLoad':: d.func.new( + 'Refresh label values on dashboard load.' + ), + onLoad(): withRefresh(1), + + '#onTime':: d.func.new( + 'Refresh label values on time range change.' + ), + onTime(): withRefresh(2), + }, + }, + + custom: + generalOptions + + selectionOptions + + { + '#new':: d.func.new( + ||| + `new` creates a custom template variable. + + The `values` array accepts an object with key/value keys, if it's not an object + then it will be added as a string. + + Example: + ``` + [ + { key: 'mykey', value: 'myvalue' }, + 'myvalue', + 12, + ] + |||, + args=[ + d.arg('name', d.T.string), + d.arg('values', d.T.array), + ] + ), + new(name, values): + var.withName(name) + + var.withType('custom') + + { + // Make values array available in jsonnet + values:: [ + if !std.isObject(item) + then { + key: std.toString(item), + value: std.toString(item), + } + else item + for item in values + ], + + // Render query from values array + query: + std.join(',', [ + std.join(' : ', [item.key, item.value]) + for item in self.values + ]), + + // Set current/options + current: util.dashboard.getCurrentFromValues(self.values), + options: util.dashboard.getOptionsFromValues(self.values), + }, + + withQuery(query): { + values:: util.dashboard.parseCustomQuery(query), + query: query, + }, + }, + + textbox: + generalOptions + { + '#new':: d.func.new( + '`new` creates a textbox template variable.', + args=[ + d.arg('name', d.T.string), + d.arg('default', d.T.string, default=''), + ] + ), + new(name, default=''): + var.withName(name) + + var.withType('textbox') + + { + local this = self, + default:: default, + query: self.default, + + // Set current/options + keyvaluedict:: [{ key: this.query, value: this.query }], + current: util.dashboard.getCurrentFromValues(self.keyvaluedict), + options: util.dashboard.getOptionsFromValues(self.keyvaluedict), + }, + }, + + constant: + generalOptions + { + '#new':: d.func.new( + '`new` creates a hidden constant template variable.', + args=[ + d.arg('name', d.T.string), + d.arg('value', d.T.string), + ] + ), + new(name, value=''): + var.withName(name) + + var.withType('constant') + + var.withHide(2) + + var.withQuery(value), + }, + + datasource: + generalOptions + + selectionOptions + + { + '#new':: d.func.new( + '`new` creates a datasource template variable.', + args=[ + d.arg('name', d.T.string), + d.arg('type', d.T.string), + ] + ), + new(name, type): + var.withName(name) + + var.withType('datasource') + + var.withQuery(type), + + '#withRegex':: d.func.new( + ||| + `withRegex` filter for which data source instances to choose from in the + variable value list. Example: `/^prod/` + |||, + args=[ + d.arg('value', d.T.string), + ] + ), + withRegex(value): { + regex: value, + }, + }, + + interval: + generalOptions + { + '#new':: d.func.new( + '`new` creates an interval template variable.', + args=[ + d.arg('name', d.T.string), + d.arg('values', d.T.array), + ] + ), + new(name, values): + var.withName(name) + + var.withType('interval') + + { + // Make values array available in jsonnet + values:: values, + // Render query from values array + query: std.join(',', self.values), + + // Set current/options + keyvaluedict:: [ + { + key: item, + value: item, + } + for item in values + ], + current: util.dashboard.getCurrentFromValues(self.keyvaluedict), + options: util.dashboard.getOptionsFromValues(self.keyvaluedict), + }, + + + '#withAutoOption':: d.func.new( + ||| + `withAutoOption` adds an options to dynamically calculate interval by dividing + time range by the count specified. + + `minInterval' has to be either unit-less or end with one of the following units: + "y, M, w, d, h, m, s, ms". + |||, + args=[ + d.arg('count', d.T.number), + d.arg('minInterval', d.T.string), + ] + ), + withAutoOption(count=30, minInterval='10s'): { + local this = self, + + auto: true, + auto_count: count, + auto_min: minInterval, + + // Add auto item to current/options + keyvaluedict:: + [{ key: 'auto', value: '$__auto_interval_' + this.name }] + + super.keyvaluedict, + }, + }, + + adhoc: + generalOptions + { + '#new':: d.func.new( + '`new` creates an adhoc template variable for datasource with `type` and `uid`.', + args=[ + d.arg('name', d.T.string), + d.arg('type', d.T.string), + d.arg('uid', d.T.string), + ] + ), + new(name, type, uid): + var.withName(name) + + var.withType('adhoc') + + var.datasource.withType(type) + + var.datasource.withUid(uid), + + '#newFromVariable':: d.func.new( + 'Same as `new` but selecting the datasource from another template variable.', + args=[ + d.arg('name', d.T.string), + d.arg('variable', d.T.object), + ] + ), + newFromDatasourceVariable(name, variable): + if variable.type == 'datasource' + then self.new(name, variable.query, '${%s}' % variable.name) + else error "`variable` not of type 'datasource'", + + }, + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet new file mode 100644 index 0000000..0e7cf08 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet @@ -0,0 +1,125 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +// match name/title to reduce diff in docs +local panelNames = { + alertgroups: 'alertGroups', + annolist: 'annotationsList', + barchart: 'barChart', + bargauge: 'barGauge', + dashlist: 'dashboardList', + nodeGraph: 'nodeGraph', + piechart: 'pieChart', + 'state-timeline': 'stateTimeline', + 'status-history': 'statusHistory', + timeseries: 'timeSeries', + xychart: 'xyChart', +}; + +local getPanelName(type) = + std.get(panelNames, type, type); + +{ + '#new':: d.func.new( + 'Creates a new %s panel with a title.' % getPanelName(self.panelOptions.withType().type), + args=[d.arg('title', d.T.string)] + ), + new(title): + self.panelOptions.withTitle(title) + + self.panelOptions.withType() + + self.panelOptions.withPluginVersion() + // Default to Mixed datasource so panels can be datasource agnostic, this + // requires query targets to explicitly set datasource, which is a lot more + // interesting from a reusability standpoint. + + self.datasource.withType('datasource') + + self.datasource.withUid('-- Mixed --'), + + link+: { '#':: d.package.newSub('link', '') }, + thresholdStep+: { '#':: d.package.newSub('thresholdStep', '') }, + transformation+: { '#':: d.package.newSub('transformation', '') }, + valueMapping+: { '#':: d.package.newSub('valueMapping', '') }, + + panelOptions+: { + '#withPluginVersion': {}, + }, + + local overrides = super.fieldOverride, + local commonOverrideFunctions = { + '#new':: d.fn( + '`new` creates a new override of type `%s`.' % self.type, + args=[ + d.arg('value', d.T.string), + ] + ), + new(value): + overrides.matcher.withId(self.type) + + overrides.matcher.withOptions(value), + + '#withProperty':: d.fn( + ||| + `withProperty` adds a property that needs to be overridden. This function can + be called multiple time, adding more properties. + |||, + args=[ + d.arg('id', d.T.string), + d.arg('value', d.T.any), + ] + ), + withProperty(id, value): + overrides.withPropertiesMixin([ + overrides.properties.withId(id) + + overrides.properties.withValue(value), + ]), + + '#withPropertiesFromOptions':: d.fn( + ||| + `withPropertiesFromOptions` takes an object with properties that need to be + overridden. See example code above. + |||, + args=[ + d.arg('options', d.T.object), + ] + ), + withPropertiesFromOptions(options): + local infunc(input, path=[]) = + std.foldl( + function(acc, p) + acc + ( + if std.isObject(input[p]) + then infunc(input[p], path=path + [p]) + else + overrides.withPropertiesMixin([ + overrides.properties.withId(std.join('.', path + [p])) + + overrides.properties.withValue(input[p]), + ]) + ), + std.objectFields(input), + {} + ); + infunc(options.fieldConfig.defaults), + }, + fieldOverride: + { + '#':: d.package.newSub( + 'fieldOverride', + ||| + Overrides allow you to customize visualization settings for specific fields or + series. This is accomplished by adding an override rule that targets + a particular set of fields and that can each define multiple options. + + ```jsonnet + fieldOverride.byType.new('number') + + fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') + ) + ``` + ||| + ), + byName: commonOverrideFunctions { type:: 'byName' }, + byRegexp: commonOverrideFunctions { type:: 'byRegexp' }, + byType: commonOverrideFunctions { type:: 'byType' }, + byQuery: commonOverrideFunctions { type:: 'byQuery' }, + // TODO: byValue takes more complex `options` than string + byValue: commonOverrideFunctions { type:: 'byValue' }, + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet new file mode 100644 index 0000000..9c19f83 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet @@ -0,0 +1,27 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#new':: d.func.new( + 'Creates a new loki query target for panels.', + args=[ + d.arg('datasource', d.T.string), + d.arg('expr', d.T.string), + ] + ), + new(datasource, expr): + self.withDatasource(datasource) + + self.withExpr(expr), + + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(value): { + datasource+: { + type: 'loki', + uid: value, + }, + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet new file mode 100644 index 0000000..3abe221 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet @@ -0,0 +1,47 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#new':: d.func.new( + 'Creates a new prometheus query target for panels.', + args=[ + d.arg('datasource', d.T.string), + d.arg('expr', d.T.string), + ] + ), + new(datasource, expr): + self.withDatasource(datasource) + + self.withExpr(expr), + + '#withIntervalFactor':: d.func.new( + 'Set the interval factor for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withIntervalFactor(value): { + intervalFactor: value, + }, + + '#withLegendFormat':: d.func.new( + 'Set the legend format for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withLegendFormat(value): { + legendFormat: value, + }, + + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(value): { + datasource+: { + type: 'prometheus', + uid: value, + }, + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet new file mode 100644 index 0000000..debcb73 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet @@ -0,0 +1,29 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#new':: d.func.new( + 'Creates a new tempo query target for panels.', + args=[ + d.arg('datasource', d.T.string), + d.arg('query', d.T.string), + d.arg('filters', d.T.array), + ] + ), + new(datasource, query, filters): + self.withDatasource(datasource) + + self.withQuery(query) + + self.withFilters(filters), + + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(value): { + datasource+: { + type: 'tempo', + uid: value, + }, + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet new file mode 100644 index 0000000..cf0b333 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet @@ -0,0 +1,11 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#new':: d.func.new( + 'Creates a new row panel with a title.', + args=[d.arg('title', d.T.string)] + ), + new(title): + self.withTitle(title) + + self.withType(), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet new file mode 100644 index 0000000..74d17d4 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet @@ -0,0 +1,55 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; +local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; + +{ + local root = self, + + '#getOptionsForCustomQuery':: d.func.new( + ||| + `getOptionsForCustomQuery` provides values for the `options` and `current` fields. + These are required for template variables of type 'custom'but do not automatically + get populated by Grafana when importing a dashboard from JSON. + + This is a bit of a hack and should always be called on functions that set `type` on + a template variable. Ideally Grafana populates these fields from the `query` value + but this provides a backwards compatible solution. + |||, + args=[d.arg('query', d.T.string)], + ), + getOptionsForCustomQuery(query): { + local values = root.parseCustomQuery(query), + current: root.getCurrentFromValues(values), + options: root.getOptionsFromValues(values), + }, + + getCurrentFromValues(values): { + selected: false, + text: values[0].key, + value: values[0].value, + }, + + getOptionsFromValues(values): + std.mapWithIndex( + function(i, item) { + selected: i == 0, + text: item.key, + value: item.value, + }, + values + ), + + parseCustomQuery(query): + std.map( + function(v) + // Split items into key:value pairs + local split = std.splitLimit(v, ' : ', 1); + { + key: std.stripChars(split[0], ' '), + value: + if std.length(split) == 2 + then std.stripChars(split[1], ' ') + else self.key, + }, + xtd.string.splitEscape(query, ',') // Split query by comma, unless the comma is escaped + ), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet new file mode 100644 index 0000000..6ee05ce --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet @@ -0,0 +1,134 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + local root = self, + + local rowPanelHeight = 1, + local gridWidth = 24, + + // Calculates the number of rows for a set of panels. + countRows(panels, panelWidth): + std.ceil(std.length(panels) / std.floor(gridWidth / panelWidth)), + + // Calculates gridPos for a panel based on its index, width and height. + gridPosForIndex(index, panelWidth, panelHeight, startY): { + local panelsPerRow = std.floor(gridWidth / panelWidth), + local row = std.floor(index / panelsPerRow), + local col = std.mod(index, panelsPerRow), + gridPos: { + w: panelWidth, + h: panelHeight, + x: panelWidth * col, + y: startY + (panelHeight * row) + row, + }, + }, + + // Configures gridPos for each panel in a grid with equal width and equal height. + makePanelGrid(panels, panelWidth, panelHeight, startY): + std.mapWithIndex( + function(i, panel) + panel + root.gridPosForIndex(i, panelWidth, panelHeight, startY), + panels + ), + + '#makeGrid':: d.func.new( + ||| + `makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` + and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, + then all panels below it will be folded into the row. + + This function will use the full grid of 24 columns, setting `panelWidth` to a value + that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) + Other value for `panelWidth` will leave a gap on the far right. + |||, + args=[ + d.arg('panels', d.T.array), + d.arg('panelWidth', d.T.number), + d.arg('panelHeight', d.T.number), + ], + ), + makeGrid(panels, panelWidth=8, panelHeight=8): + // Get indexes for all Row panels + local rowIndexes = [ + i + for i in std.range(0, std.length(panels) - 1) + if panels[i].type == 'row' + ]; + + // Group panels below each Row panel + local rowGroups = + std.mapWithIndex( + function(i, r) { + header: + { + // Set initial values to ensure a value is set + // may be overridden at per Row panel + collapsed: false, + panels: [], + } + + panels[r], + panels: + self.header.panels // prepend panels that are part of the Row panel + + (if i == std.length(rowIndexes) - 1 // last rowIndex + then panels[r + 1:] + else panels[r + 1:rowIndexes[i + 1]]), + rows: root.countRows(self.panels, panelWidth), + }, + rowIndexes + ); + + // Loop over rowGroups + std.foldl( + function(acc, rowGroup) acc { + local y = acc.nexty, + nexty: y // previous y + + (rowGroup.rows * panelHeight) // height of all rows + + rowGroup.rows // plus 1 for each row + + acc.lastRowPanelHeight, + + lastRowPanelHeight: rowPanelHeight, // set height for next round + + // Create a grid per group + local panels = root.makePanelGrid(rowGroup.panels, panelWidth, panelHeight, y + 1), + + panels+: + [ + // Add row header aka the Row panel + rowGroup.header { + gridPos: { + w: gridWidth, // always full length + h: rowPanelHeight, // always 1 height + x: 0, // always at beginning + y: y, + }, + panels: + // If row is collapsed, then store panels inside Row panel + if rowGroup.header.collapsed + then panels + else [], + }, + ] + + ( + // If row is not collapsed, then expose panels directly + if !rowGroup.header.collapsed + then panels + else [] + ), + }, + rowGroups, + { + // Get panels that come before the rowGroups + local panelsBeforeRowGroups = + if std.length(rowIndexes) != 0 + then panels[0:rowIndexes[0]] + else panels, // matches all panels if no Row panels found + local rows = root.countRows(panelsBeforeRowGroups, panelWidth), + nexty: (rows * panelHeight) + rows, + + lastRowPanelHeight: 0, // starts without a row panel + + // Create a grid for the panels that come before the rowGroups + panels: root.makePanelGrid(panelsBeforeRowGroups, panelWidth, panelHeight, 0), + } + ).panels, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet new file mode 100644 index 0000000..78fe95f --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet @@ -0,0 +1,9 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#': d.package.newSub('util', 'Helper functions that work well with Grafonnet.'), + dashboard: (import './dashboard.libsonnet'), + grid: (import './grid.libsonnet'), + panel: (import './panel.libsonnet'), + string: (import './string.libsonnet'), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet new file mode 100644 index 0000000..f985360 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet @@ -0,0 +1,51 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + local this = self, + + '#setPanelIDs':: d.func.new( + ||| + `setPanelIDs` ensures that all `panels` have a unique ID, this functions is used in + `dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent + experience. + + used in ../dashboard.libsonnet + |||, + args=[ + d.arg('panels', d.T.array), + ] + ), + setPanelIDs(panels): + local infunc(panels, start=1) = + std.foldl( + function(acc, panel) + acc { + index: // Track the index to ensure no duplicates exist. + acc.index + + 1 + + (if panel.type == 'row' + && 'panels' in panel + then std.length(panel.panels) + else 0), + + panels+: [ + panel { id: acc.index } + + ( + if panel.type == 'row' + && 'panels' in panel + then { + panels: + infunc( + panel.panels, + acc.index + 1 + ), + } + else {} + ), + ], + }, + panels, + { index: start, panels: [] } + ).panels; + infunc(panels), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet new file mode 100644 index 0000000..ec5a66e --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet @@ -0,0 +1,27 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; +local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; + +{ + '#slugify':: d.func.new( + ||| + `slugify` will create a simple slug from `string`, keeping only alphanumeric + characters and replacing spaces with dashes. + |||, + args=[d.arg('string', d.T.string)] + ), + slugify(string): + std.strReplace( + std.asciiLower( + std.join('', [ + string[i] + for i in std.range(0, std.length(string) - 1) + if xtd.ascii.isUpper(string[i]) + || xtd.ascii.isLower(string[i]) + || xtd.ascii.isNumber(string[i]) + || string[i] == ' ' + ]) + ), + ' ', + '-', + ), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md new file mode 100644 index 0000000..de1f82e --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md @@ -0,0 +1,29 @@ +# grafonnet + +Jsonnet library for rendering Grafana resources + +## Install + +``` +jb install github.com/grafana/grafonnet/gen/grafonnet-v10.0.0@main +``` + +## Usage + +```jsonnet +local grafonnet = import "github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet" +``` + +## Subpackages + +* [dashboard](grafonnet/dashboard/index.md) +* [librarypanel](grafonnet/librarypanel.md) +* [panel](grafonnet/panel/index.md) +* [playlist](grafonnet/playlist.md) +* [preferences](grafonnet/preferences.md) +* [publicdashboard](grafonnet/publicdashboard.md) +* [query](grafonnet/query/index.md) +* [serviceaccount](grafonnet/serviceaccount.md) +* [team](grafonnet/team.md) +* [util](grafonnet/util.md) + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/annotation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/annotation.md new file mode 100644 index 0000000..5e6d82d --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/annotation.md @@ -0,0 +1,217 @@ +# annotation + + + +## Index + +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withEnable(value=true)`](#fn-withenable) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withIconColor(value)`](#fn-withiconcolor) +* [`fn withName(value)`](#fn-withname) +* [`fn withTarget(value)`](#fn-withtarget) +* [`fn withTargetMixin(value)`](#fn-withtargetmixin) +* [`fn withType(value)`](#fn-withtype) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj filter`](#obj-filter) + * [`fn withExclude(value=true)`](#fn-filterwithexclude) + * [`fn withIds(value)`](#fn-filterwithids) + * [`fn withIdsMixin(value)`](#fn-filterwithidsmixin) +* [`obj target`](#obj-target) + * [`fn withLimit(value)`](#fn-targetwithlimit) + * [`fn withMatchAny(value=true)`](#fn-targetwithmatchany) + * [`fn withTags(value)`](#fn-targetwithtags) + * [`fn withTagsMixin(value)`](#fn-targetwithtagsmixin) + * [`fn withType(value)`](#fn-targetwithtype) + +## Fields + +### fn withDatasource + +```ts +withDatasource(value) +``` + +TODO: Should be DataSourceRef + +### fn withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +TODO: Should be DataSourceRef + +### fn withEnable + +```ts +withEnable(value=true) +``` + +When enabled the annotation query is issued with every dashboard refresh + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withHide + +```ts +withHide(value=true) +``` + +Annotation queries can be toggled on or off at the top of the dashboard. +When hide is true, the toggle is not shown in the dashboard. + +### fn withIconColor + +```ts +withIconColor(value) +``` + +Color to use for the annotation event markers + +### fn withName + +```ts +withName(value) +``` + +Name of annotation. + +### fn withTarget + +```ts +withTarget(value) +``` + +TODO: this should be a regular DataQuery that depends on the selected dashboard +these match the properties of the "grafana" datasouce that is default in most dashboards + +### fn withTargetMixin + +```ts +withTargetMixin(value) +``` + +TODO: this should be a regular DataQuery that depends on the selected dashboard +these match the properties of the "grafana" datasouce that is default in most dashboards + +### fn withType + +```ts +withType(value) +``` + +TODO -- this should not exist here, it is based on the --grafana-- datasource + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj filter + + +#### fn filter.withExclude + +```ts +withExclude(value=true) +``` + +Should the specified panels be included or excluded + +#### fn filter.withIds + +```ts +withIds(value) +``` + +Panel IDs that should be included or excluded + +#### fn filter.withIdsMixin + +```ts +withIdsMixin(value) +``` + +Panel IDs that should be included or excluded + +### obj target + + +#### fn target.withLimit + +```ts +withLimit(value) +``` + +Only required/valid for the grafana datasource... +but code+tests is already depending on it so hard to change + +#### fn target.withMatchAny + +```ts +withMatchAny(value=true) +``` + +Only required/valid for the grafana datasource... +but code+tests is already depending on it so hard to change + +#### fn target.withTags + +```ts +withTags(value) +``` + +Only required/valid for the grafana datasource... +but code+tests is already depending on it so hard to change + +#### fn target.withTagsMixin + +```ts +withTagsMixin(value) +``` + +Only required/valid for the grafana datasource... +but code+tests is already depending on it so hard to change + +#### fn target.withType + +```ts +withType(value) +``` + +Only required/valid for the grafana datasource... +but code+tests is already depending on it so hard to change diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/index.md new file mode 100644 index 0000000..2c9fdca --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/index.md @@ -0,0 +1,400 @@ +# dashboard + +grafonnet.dashboard + +## Subpackages + +* [annotation](annotation.md) +* [link](link.md) +* [variable](variable.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`fn withAnnotations(value)`](#fn-withannotations) +* [`fn withAnnotationsMixin(value)`](#fn-withannotationsmixin) +* [`fn withDescription(value)`](#fn-withdescription) +* [`fn withEditable(value=true)`](#fn-witheditable) +* [`fn withFiscalYearStartMonth(value=0)`](#fn-withfiscalyearstartmonth) +* [`fn withLinks(value)`](#fn-withlinks) +* [`fn withLinksMixin(value)`](#fn-withlinksmixin) +* [`fn withLiveNow(value=true)`](#fn-withlivenow) +* [`fn withPanels(value)`](#fn-withpanels) +* [`fn withPanelsMixin(value)`](#fn-withpanelsmixin) +* [`fn withRefresh(value)`](#fn-withrefresh) +* [`fn withRefreshMixin(value)`](#fn-withrefreshmixin) +* [`fn withSchemaVersion(value=36)`](#fn-withschemaversion) +* [`fn withStyle(value="dark")`](#fn-withstyle) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTemplating(value)`](#fn-withtemplating) +* [`fn withTemplatingMixin(value)`](#fn-withtemplatingmixin) +* [`fn withTimezone(value="browser")`](#fn-withtimezone) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withUid(value)`](#fn-withuid) +* [`fn withVariables(value)`](#fn-withvariables) +* [`fn withVariablesMixin(value)`](#fn-withvariablesmixin) +* [`fn withWeekStart(value)`](#fn-withweekstart) +* [`obj graphTooltip`](#obj-graphtooltip) + * [`fn withSharedCrosshair()`](#fn-graphtooltipwithsharedcrosshair) + * [`fn withSharedTooltip()`](#fn-graphtooltipwithsharedtooltip) +* [`obj time`](#obj-time) + * [`fn withFrom(value="now-6h")`](#fn-timewithfrom) + * [`fn withTo(value="now")`](#fn-timewithto) +* [`obj timepicker`](#obj-timepicker) + * [`fn withCollapse(value=true)`](#fn-timepickerwithcollapse) + * [`fn withEnable(value=true)`](#fn-timepickerwithenable) + * [`fn withHidden(value=true)`](#fn-timepickerwithhidden) + * [`fn withRefreshIntervals(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"])`](#fn-timepickerwithrefreshintervals) + * [`fn withRefreshIntervalsMixin(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"])`](#fn-timepickerwithrefreshintervalsmixin) + * [`fn withTimeOptions(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"])`](#fn-timepickerwithtimeoptions) + * [`fn withTimeOptionsMixin(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"])`](#fn-timepickerwithtimeoptionsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new dashboard with a title. + +### fn withAnnotations + +```ts +withAnnotations(value) +``` + +`withAnnotations` adds an array of annotations to a dashboard. + +This function appends passed data to existing values + + +### fn withAnnotationsMixin + +```ts +withAnnotationsMixin(value) +``` + +`withAnnotationsMixin` adds an array of annotations to a dashboard. + +This function appends passed data to existing values + + +### fn withDescription + +```ts +withDescription(value) +``` + +Description of dashboard. + +### fn withEditable + +```ts +withEditable(value=true) +``` + +Whether a dashboard is editable or not. + +### fn withFiscalYearStartMonth + +```ts +withFiscalYearStartMonth(value=0) +``` + +The month that the fiscal year starts on. 0 = January, 11 = December + +### fn withLinks + +```ts +withLinks(value) +``` + +Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. + +`withLinks` takes an array of [link objects](./link.md). + +The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. + +Example: + +```jsonnet +local g = import 'g.libsonnet'; +local link = g.dashboard.link; + +g.dashboard.new('Title dashboard') ++ g.dashboard.withLinks([ + link.link.new('My title', 'https://wikipedia.org/'), +]) +``` + + +### fn withLinksMixin + +```ts +withLinksMixin(value) +``` + +Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. + +`withLinks` takes an array of [link objects](./link.md). + +The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. + +Example: + +```jsonnet +local g = import 'g.libsonnet'; +local link = g.dashboard.link; + +g.dashboard.new('Title dashboard') ++ g.dashboard.withLinks([ + link.link.new('My title', 'https://wikipedia.org/'), +]) +``` + + +### fn withLiveNow + +```ts +withLiveNow(value=true) +``` + +When set to true, the dashboard will redraw panels at an interval matching the pixel width. +This will keep data "moving left" regardless of the query refresh rate. This setting helps +avoid dashboards presenting stale live data + +### fn withPanels + +```ts +withPanels(value) +``` + + + +### fn withPanelsMixin + +```ts +withPanelsMixin(value) +``` + + + +### fn withRefresh + +```ts +withRefresh(value) +``` + +Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d". + +### fn withRefreshMixin + +```ts +withRefreshMixin(value) +``` + +Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d". + +### fn withSchemaVersion + +```ts +withSchemaVersion(value=36) +``` + +Version of the JSON schema, incremented each time a Grafana update brings +changes to said schema. +TODO this is the existing schema numbering system. It will be replaced by Thema's themaVersion + +### fn withStyle + +```ts +withStyle(value="dark") +``` + +Theme of dashboard. + +Accepted values for `value` are "dark", "light" + +### fn withTags + +```ts +withTags(value) +``` + +Tags associated with dashboard. + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + +Tags associated with dashboard. + +### fn withTemplating + +```ts +withTemplating(value) +``` + +TODO docs + +### fn withTemplatingMixin + +```ts +withTemplatingMixin(value) +``` + +TODO docs + +### fn withTimezone + +```ts +withTimezone(value="browser") +``` + +Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc". + +### fn withTitle + +```ts +withTitle(value) +``` + +Title of dashboard. + +### fn withUid + +```ts +withUid(value) +``` + +Unique dashboard identifier that can be generated by anyone. string (8-40) + +### fn withVariables + +```ts +withVariables(value) +``` + +`withVariables` adds an array of variables to a dashboard + + +### fn withVariablesMixin + +```ts +withVariablesMixin(value) +``` + +`withVariablesMixin` adds an array of variables to a dashboard. + +This function appends passed data to existing values + + +### fn withWeekStart + +```ts +withWeekStart(value) +``` + +TODO docs + +### obj graphTooltip + + +#### fn graphTooltip.withSharedCrosshair + +```ts +withSharedCrosshair() +``` + +Share crosshair on all panels. + +#### fn graphTooltip.withSharedTooltip + +```ts +withSharedTooltip() +``` + +Share crosshair and tooltip on all panels. + +### obj time + + +#### fn time.withFrom + +```ts +withFrom(value="now-6h") +``` + + + +#### fn time.withTo + +```ts +withTo(value="now") +``` + + + +### obj timepicker + + +#### fn timepicker.withCollapse + +```ts +withCollapse(value=true) +``` + +Whether timepicker is collapsed or not. + +#### fn timepicker.withEnable + +```ts +withEnable(value=true) +``` + +Whether timepicker is enabled or not. + +#### fn timepicker.withHidden + +```ts +withHidden(value=true) +``` + +Whether timepicker is visible or not. + +#### fn timepicker.withRefreshIntervals + +```ts +withRefreshIntervals(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) +``` + +Selectable intervals for auto-refresh. + +#### fn timepicker.withRefreshIntervalsMixin + +```ts +withRefreshIntervalsMixin(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) +``` + +Selectable intervals for auto-refresh. + +#### fn timepicker.withTimeOptions + +```ts +withTimeOptions(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) +``` + +TODO docs + +#### fn timepicker.withTimeOptionsMixin + +```ts +withTimeOptionsMixin(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) +``` + +TODO docs diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/link.md new file mode 100644 index 0000000..6cb376b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/link.md @@ -0,0 +1,149 @@ +# link + +Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. + +The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. + +Example: + +```jsonnet +local g = import 'g.libsonnet'; +local link = g.dashboard.link; + +g.dashboard.new('Title dashboard') ++ g.dashboard.withLinks([ + link.link.new('My title', 'https://wikipedia.org/'), +]) +``` + + +## Index + +* [`obj dashboards`](#obj-dashboards) + * [`fn new(title, tags)`](#fn-dashboardsnew) + * [`obj options`](#obj-dashboardsoptions) + * [`fn withAsDropdown(value=true)`](#fn-dashboardsoptionswithasdropdown) + * [`fn withIncludeVars(value=true)`](#fn-dashboardsoptionswithincludevars) + * [`fn withKeepTime(value=true)`](#fn-dashboardsoptionswithkeeptime) + * [`fn withTargetBlank(value=true)`](#fn-dashboardsoptionswithtargetblank) +* [`obj link`](#obj-link) + * [`fn new(title, url)`](#fn-linknew) + * [`fn withIcon(value)`](#fn-linkwithicon) + * [`fn withTooltip(value)`](#fn-linkwithtooltip) + * [`obj options`](#obj-linkoptions) + * [`fn withAsDropdown(value=true)`](#fn-linkoptionswithasdropdown) + * [`fn withIncludeVars(value=true)`](#fn-linkoptionswithincludevars) + * [`fn withKeepTime(value=true)`](#fn-linkoptionswithkeeptime) + * [`fn withTargetBlank(value=true)`](#fn-linkoptionswithtargetblank) + +## Fields + +### obj dashboards + + +#### fn dashboards.new + +```ts +new(title, tags) +``` + +Create links to dashboards based on `tags`. + + +#### obj dashboards.options + + +##### fn dashboards.options.withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +##### fn dashboards.options.withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +##### fn dashboards.options.withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +##### fn dashboards.options.withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### obj link + + +#### fn link.new + +```ts +new(title, url) +``` + +Create link to an arbitrary URL. + + +#### fn link.withIcon + +```ts +withIcon(value) +``` + + + +#### fn link.withTooltip + +```ts +withTooltip(value) +``` + + + +#### obj link.options + + +##### fn link.options.withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +##### fn link.options.withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +##### fn link.options.withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +##### fn link.options.withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/variable.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/variable.md new file mode 100644 index 0000000..ff1c292 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/variable.md @@ -0,0 +1,780 @@ +# variable + +Example usage: + +```jsonnet +local g = import 'g.libsonnet'; +local var = g.dashboard.variable; + +local customVar = + var.custom.new( + 'myOptions', + values=['a', 'b', 'c', 'd'], + ) + + var.custom.generalOptions.withDescription( + 'This is a variable for my custom options.' + ) + + var.custom.selectionOptions.withMulti(); + +local queryVar = + var.query.new('queryOptions') + + var.query.queryTypes.withLabelValues( + 'up', + 'instance', + ) + + var.query.withDatasource( + type='prometheus', + uid='mimir-prod', + ) + + var.query.selectionOptions.withIncludeAll(); + + +g.dashboard.new('my dashboard') ++ g.dashboard.withVariables([ + customVar, + queryVar, +]) +``` + + +## Index + +* [`obj adhoc`](#obj-adhoc) + * [`fn new(name, type, uid)`](#fn-adhocnew) + * [`fn newFromVariable(name, variable)`](#fn-adhocnewfromvariable) + * [`obj generalOptions`](#obj-adhocgeneraloptions) + * [`fn withDescription(value)`](#fn-adhocgeneraloptionswithdescription) + * [`fn withLabel(value)`](#fn-adhocgeneraloptionswithlabel) + * [`fn withName(value)`](#fn-adhocgeneraloptionswithname) + * [`obj showOnDashboard`](#obj-adhocgeneraloptionsshowondashboard) + * [`fn withLabelAndValue()`](#fn-adhocgeneraloptionsshowondashboardwithlabelandvalue) + * [`fn withNothing()`](#fn-adhocgeneraloptionsshowondashboardwithnothing) + * [`fn withValueOnly()`](#fn-adhocgeneraloptionsshowondashboardwithvalueonly) +* [`obj constant`](#obj-constant) + * [`fn new(name, value)`](#fn-constantnew) + * [`obj generalOptions`](#obj-constantgeneraloptions) + * [`fn withDescription(value)`](#fn-constantgeneraloptionswithdescription) + * [`fn withLabel(value)`](#fn-constantgeneraloptionswithlabel) + * [`fn withName(value)`](#fn-constantgeneraloptionswithname) + * [`obj showOnDashboard`](#obj-constantgeneraloptionsshowondashboard) + * [`fn withLabelAndValue()`](#fn-constantgeneraloptionsshowondashboardwithlabelandvalue) + * [`fn withNothing()`](#fn-constantgeneraloptionsshowondashboardwithnothing) + * [`fn withValueOnly()`](#fn-constantgeneraloptionsshowondashboardwithvalueonly) +* [`obj custom`](#obj-custom) + * [`fn new(name, values)`](#fn-customnew) + * [`obj generalOptions`](#obj-customgeneraloptions) + * [`fn withDescription(value)`](#fn-customgeneraloptionswithdescription) + * [`fn withLabel(value)`](#fn-customgeneraloptionswithlabel) + * [`fn withName(value)`](#fn-customgeneraloptionswithname) + * [`obj showOnDashboard`](#obj-customgeneraloptionsshowondashboard) + * [`fn withLabelAndValue()`](#fn-customgeneraloptionsshowondashboardwithlabelandvalue) + * [`fn withNothing()`](#fn-customgeneraloptionsshowondashboardwithnothing) + * [`fn withValueOnly()`](#fn-customgeneraloptionsshowondashboardwithvalueonly) + * [`obj selectionOptions`](#obj-customselectionoptions) + * [`fn withIncludeAll(value=true, customAllValue)`](#fn-customselectionoptionswithincludeall) + * [`fn withMulti(value=true)`](#fn-customselectionoptionswithmulti) +* [`obj datasource`](#obj-datasource) + * [`fn new(name, type)`](#fn-datasourcenew) + * [`fn withRegex(value)`](#fn-datasourcewithregex) + * [`obj generalOptions`](#obj-datasourcegeneraloptions) + * [`fn withDescription(value)`](#fn-datasourcegeneraloptionswithdescription) + * [`fn withLabel(value)`](#fn-datasourcegeneraloptionswithlabel) + * [`fn withName(value)`](#fn-datasourcegeneraloptionswithname) + * [`obj showOnDashboard`](#obj-datasourcegeneraloptionsshowondashboard) + * [`fn withLabelAndValue()`](#fn-datasourcegeneraloptionsshowondashboardwithlabelandvalue) + * [`fn withNothing()`](#fn-datasourcegeneraloptionsshowondashboardwithnothing) + * [`fn withValueOnly()`](#fn-datasourcegeneraloptionsshowondashboardwithvalueonly) + * [`obj selectionOptions`](#obj-datasourceselectionoptions) + * [`fn withIncludeAll(value=true, customAllValue)`](#fn-datasourceselectionoptionswithincludeall) + * [`fn withMulti(value=true)`](#fn-datasourceselectionoptionswithmulti) +* [`obj interval`](#obj-interval) + * [`fn new(name, values)`](#fn-intervalnew) + * [`fn withAutoOption(count, minInterval)`](#fn-intervalwithautooption) + * [`obj generalOptions`](#obj-intervalgeneraloptions) + * [`fn withDescription(value)`](#fn-intervalgeneraloptionswithdescription) + * [`fn withLabel(value)`](#fn-intervalgeneraloptionswithlabel) + * [`fn withName(value)`](#fn-intervalgeneraloptionswithname) + * [`obj showOnDashboard`](#obj-intervalgeneraloptionsshowondashboard) + * [`fn withLabelAndValue()`](#fn-intervalgeneraloptionsshowondashboardwithlabelandvalue) + * [`fn withNothing()`](#fn-intervalgeneraloptionsshowondashboardwithnothing) + * [`fn withValueOnly()`](#fn-intervalgeneraloptionsshowondashboardwithvalueonly) +* [`obj query`](#obj-query) + * [`fn new(name, query="")`](#fn-querynew) + * [`fn withDatasource(type, uid)`](#fn-querywithdatasource) + * [`fn withDatasourceFromVariable(variable)`](#fn-querywithdatasourcefromvariable) + * [`fn withRegex(value)`](#fn-querywithregex) + * [`fn withSort(i=0, type="alphabetical", asc=true, caseInsensitive=false)`](#fn-querywithsort) + * [`obj generalOptions`](#obj-querygeneraloptions) + * [`fn withDescription(value)`](#fn-querygeneraloptionswithdescription) + * [`fn withLabel(value)`](#fn-querygeneraloptionswithlabel) + * [`fn withName(value)`](#fn-querygeneraloptionswithname) + * [`obj showOnDashboard`](#obj-querygeneraloptionsshowondashboard) + * [`fn withLabelAndValue()`](#fn-querygeneraloptionsshowondashboardwithlabelandvalue) + * [`fn withNothing()`](#fn-querygeneraloptionsshowondashboardwithnothing) + * [`fn withValueOnly()`](#fn-querygeneraloptionsshowondashboardwithvalueonly) + * [`obj queryTypes`](#obj-queryquerytypes) + * [`fn withLabelValues(label, metric="")`](#fn-queryquerytypeswithlabelvalues) + * [`obj refresh`](#obj-queryrefresh) + * [`fn onLoad()`](#fn-queryrefreshonload) + * [`fn onTime()`](#fn-queryrefreshontime) + * [`obj selectionOptions`](#obj-queryselectionoptions) + * [`fn withIncludeAll(value=true, customAllValue)`](#fn-queryselectionoptionswithincludeall) + * [`fn withMulti(value=true)`](#fn-queryselectionoptionswithmulti) +* [`obj textbox`](#obj-textbox) + * [`fn new(name, default="")`](#fn-textboxnew) + * [`obj generalOptions`](#obj-textboxgeneraloptions) + * [`fn withDescription(value)`](#fn-textboxgeneraloptionswithdescription) + * [`fn withLabel(value)`](#fn-textboxgeneraloptionswithlabel) + * [`fn withName(value)`](#fn-textboxgeneraloptionswithname) + * [`obj showOnDashboard`](#obj-textboxgeneraloptionsshowondashboard) + * [`fn withLabelAndValue()`](#fn-textboxgeneraloptionsshowondashboardwithlabelandvalue) + * [`fn withNothing()`](#fn-textboxgeneraloptionsshowondashboardwithnothing) + * [`fn withValueOnly()`](#fn-textboxgeneraloptionsshowondashboardwithvalueonly) + +## Fields + +### obj adhoc + + +#### fn adhoc.new + +```ts +new(name, type, uid) +``` + +`new` creates an adhoc template variable for datasource with `type` and `uid`. + +#### fn adhoc.newFromVariable + +```ts +newFromVariable(name, variable) +``` + +Same as `new` but selecting the datasource from another template variable. + +#### obj adhoc.generalOptions + + +##### fn adhoc.generalOptions.withDescription + +```ts +withDescription(value) +``` + + + +##### fn adhoc.generalOptions.withLabel + +```ts +withLabel(value) +``` + + + +##### fn adhoc.generalOptions.withName + +```ts +withName(value) +``` + + + +##### obj adhoc.generalOptions.showOnDashboard + + +###### fn adhoc.generalOptions.showOnDashboard.withLabelAndValue + +```ts +withLabelAndValue() +``` + + + +###### fn adhoc.generalOptions.showOnDashboard.withNothing + +```ts +withNothing() +``` + + + +###### fn adhoc.generalOptions.showOnDashboard.withValueOnly + +```ts +withValueOnly() +``` + + + +### obj constant + + +#### fn constant.new + +```ts +new(name, value) +``` + +`new` creates a hidden constant template variable. + +#### obj constant.generalOptions + + +##### fn constant.generalOptions.withDescription + +```ts +withDescription(value) +``` + + + +##### fn constant.generalOptions.withLabel + +```ts +withLabel(value) +``` + + + +##### fn constant.generalOptions.withName + +```ts +withName(value) +``` + + + +##### obj constant.generalOptions.showOnDashboard + + +###### fn constant.generalOptions.showOnDashboard.withLabelAndValue + +```ts +withLabelAndValue() +``` + + + +###### fn constant.generalOptions.showOnDashboard.withNothing + +```ts +withNothing() +``` + + + +###### fn constant.generalOptions.showOnDashboard.withValueOnly + +```ts +withValueOnly() +``` + + + +### obj custom + + +#### fn custom.new + +```ts +new(name, values) +``` + +`new` creates a custom template variable. + +The `values` array accepts an object with key/value keys, if it's not an object +then it will be added as a string. + +Example: +``` +[ + { key: 'mykey', value: 'myvalue' }, + 'myvalue', + 12, +] + + +#### obj custom.generalOptions + + +##### fn custom.generalOptions.withDescription + +```ts +withDescription(value) +``` + + + +##### fn custom.generalOptions.withLabel + +```ts +withLabel(value) +``` + + + +##### fn custom.generalOptions.withName + +```ts +withName(value) +``` + + + +##### obj custom.generalOptions.showOnDashboard + + +###### fn custom.generalOptions.showOnDashboard.withLabelAndValue + +```ts +withLabelAndValue() +``` + + + +###### fn custom.generalOptions.showOnDashboard.withNothing + +```ts +withNothing() +``` + + + +###### fn custom.generalOptions.showOnDashboard.withValueOnly + +```ts +withValueOnly() +``` + + + +#### obj custom.selectionOptions + + +##### fn custom.selectionOptions.withIncludeAll + +```ts +withIncludeAll(value=true, customAllValue) +``` + +`withIncludeAll` enables an option to include all variables. + +Optionally you can set a `customAllValue`. + + +##### fn custom.selectionOptions.withMulti + +```ts +withMulti(value=true) +``` + +Enable selecting multiple values. + +### obj datasource + + +#### fn datasource.new + +```ts +new(name, type) +``` + +`new` creates a datasource template variable. + +#### fn datasource.withRegex + +```ts +withRegex(value) +``` + +`withRegex` filter for which data source instances to choose from in the +variable value list. Example: `/^prod/` + + +#### obj datasource.generalOptions + + +##### fn datasource.generalOptions.withDescription + +```ts +withDescription(value) +``` + + + +##### fn datasource.generalOptions.withLabel + +```ts +withLabel(value) +``` + + + +##### fn datasource.generalOptions.withName + +```ts +withName(value) +``` + + + +##### obj datasource.generalOptions.showOnDashboard + + +###### fn datasource.generalOptions.showOnDashboard.withLabelAndValue + +```ts +withLabelAndValue() +``` + + + +###### fn datasource.generalOptions.showOnDashboard.withNothing + +```ts +withNothing() +``` + + + +###### fn datasource.generalOptions.showOnDashboard.withValueOnly + +```ts +withValueOnly() +``` + + + +#### obj datasource.selectionOptions + + +##### fn datasource.selectionOptions.withIncludeAll + +```ts +withIncludeAll(value=true, customAllValue) +``` + +`withIncludeAll` enables an option to include all variables. + +Optionally you can set a `customAllValue`. + + +##### fn datasource.selectionOptions.withMulti + +```ts +withMulti(value=true) +``` + +Enable selecting multiple values. + +### obj interval + + +#### fn interval.new + +```ts +new(name, values) +``` + +`new` creates an interval template variable. + +#### fn interval.withAutoOption + +```ts +withAutoOption(count, minInterval) +``` + +`withAutoOption` adds an options to dynamically calculate interval by dividing +time range by the count specified. + +`minInterval' has to be either unit-less or end with one of the following units: +"y, M, w, d, h, m, s, ms". + + +#### obj interval.generalOptions + + +##### fn interval.generalOptions.withDescription + +```ts +withDescription(value) +``` + + + +##### fn interval.generalOptions.withLabel + +```ts +withLabel(value) +``` + + + +##### fn interval.generalOptions.withName + +```ts +withName(value) +``` + + + +##### obj interval.generalOptions.showOnDashboard + + +###### fn interval.generalOptions.showOnDashboard.withLabelAndValue + +```ts +withLabelAndValue() +``` + + + +###### fn interval.generalOptions.showOnDashboard.withNothing + +```ts +withNothing() +``` + + + +###### fn interval.generalOptions.showOnDashboard.withValueOnly + +```ts +withValueOnly() +``` + + + +### obj query + + +#### fn query.new + +```ts +new(name, query="") +``` + +Create a query template variable. + +`query` argument is optional, this can also be set with `query.queryTypes`. + + +#### fn query.withDatasource + +```ts +withDatasource(type, uid) +``` + +Select a datasource for the variable template query. + +#### fn query.withDatasourceFromVariable + +```ts +withDatasourceFromVariable(variable) +``` + +Select the datasource from another template variable. + +#### fn query.withRegex + +```ts +withRegex(value) +``` + +`withRegex` can extract part of a series name or metric node segment. Named +capture groups can be used to separate the display text and value +([see examples](https://grafana.com/docs/grafana/latest/variables/filter-variables-with-regex#filter-and-modify-using-named-text-and-value-capture-groups)). + + +#### fn query.withSort + +```ts +withSort(i=0, type="alphabetical", asc=true, caseInsensitive=false) +``` + +Choose how to sort the values in the dropdown. + +This can be called as `withSort() to use the integer values for each +option. If `i==0` then it will be ignored and the other arguments will take +precedence. + +The numerical values are: + +- 1 - Alphabetical (asc) +- 2 - Alphabetical (desc) +- 3 - Numerical (asc) +- 4 - Numerical (desc) +- 5 - Alphabetical (case-insensitive, asc) +- 6 - Alphabetical (case-insensitive, desc) + + +#### obj query.generalOptions + + +##### fn query.generalOptions.withDescription + +```ts +withDescription(value) +``` + + + +##### fn query.generalOptions.withLabel + +```ts +withLabel(value) +``` + + + +##### fn query.generalOptions.withName + +```ts +withName(value) +``` + + + +##### obj query.generalOptions.showOnDashboard + + +###### fn query.generalOptions.showOnDashboard.withLabelAndValue + +```ts +withLabelAndValue() +``` + + + +###### fn query.generalOptions.showOnDashboard.withNothing + +```ts +withNothing() +``` + + + +###### fn query.generalOptions.showOnDashboard.withValueOnly + +```ts +withValueOnly() +``` + + + +#### obj query.queryTypes + + +##### fn query.queryTypes.withLabelValues + +```ts +withLabelValues(label, metric="") +``` + +Construct a Prometheus template variable using `label_values()`. + +#### obj query.refresh + + +##### fn query.refresh.onLoad + +```ts +onLoad() +``` + +Refresh label values on dashboard load. + +##### fn query.refresh.onTime + +```ts +onTime() +``` + +Refresh label values on time range change. + +#### obj query.selectionOptions + + +##### fn query.selectionOptions.withIncludeAll + +```ts +withIncludeAll(value=true, customAllValue) +``` + +`withIncludeAll` enables an option to include all variables. + +Optionally you can set a `customAllValue`. + + +##### fn query.selectionOptions.withMulti + +```ts +withMulti(value=true) +``` + +Enable selecting multiple values. + +### obj textbox + + +#### fn textbox.new + +```ts +new(name, default="") +``` + +`new` creates a textbox template variable. + +#### obj textbox.generalOptions + + +##### fn textbox.generalOptions.withDescription + +```ts +withDescription(value) +``` + + + +##### fn textbox.generalOptions.withLabel + +```ts +withLabel(value) +``` + + + +##### fn textbox.generalOptions.withName + +```ts +withName(value) +``` + + + +##### obj textbox.generalOptions.showOnDashboard + + +###### fn textbox.generalOptions.showOnDashboard.withLabelAndValue + +```ts +withLabelAndValue() +``` + + + +###### fn textbox.generalOptions.showOnDashboard.withNothing + +```ts +withNothing() +``` + + + +###### fn textbox.generalOptions.showOnDashboard.withValueOnly + +```ts +withValueOnly() +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/librarypanel.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/librarypanel.md new file mode 100644 index 0000000..3ae7e2d --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/librarypanel.md @@ -0,0 +1,256 @@ +# librarypanel + +grafonnet.librarypanel + +## Index + +* [`fn withDescription(value)`](#fn-withdescription) +* [`fn withFolderUid(value)`](#fn-withfolderuid) +* [`fn withMeta(value)`](#fn-withmeta) +* [`fn withMetaMixin(value)`](#fn-withmetamixin) +* [`fn withModel(value)`](#fn-withmodel) +* [`fn withModelMixin(value)`](#fn-withmodelmixin) +* [`fn withName(value)`](#fn-withname) +* [`fn withSchemaVersion(value)`](#fn-withschemaversion) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUid(value)`](#fn-withuid) +* [`fn withVersion(value)`](#fn-withversion) +* [`obj meta`](#obj-meta) + * [`fn withConnectedDashboards(value)`](#fn-metawithconnecteddashboards) + * [`fn withCreated(value)`](#fn-metawithcreated) + * [`fn withCreatedBy(value)`](#fn-metawithcreatedby) + * [`fn withCreatedByMixin(value)`](#fn-metawithcreatedbymixin) + * [`fn withFolderName(value)`](#fn-metawithfoldername) + * [`fn withFolderUid(value)`](#fn-metawithfolderuid) + * [`fn withUpdated(value)`](#fn-metawithupdated) + * [`fn withUpdatedBy(value)`](#fn-metawithupdatedby) + * [`fn withUpdatedByMixin(value)`](#fn-metawithupdatedbymixin) + * [`obj createdBy`](#obj-metacreatedby) + * [`fn withAvatarUrl(value)`](#fn-metacreatedbywithavatarurl) + * [`fn withId(value)`](#fn-metacreatedbywithid) + * [`fn withName(value)`](#fn-metacreatedbywithname) + * [`obj updatedBy`](#obj-metaupdatedby) + * [`fn withAvatarUrl(value)`](#fn-metaupdatedbywithavatarurl) + * [`fn withId(value)`](#fn-metaupdatedbywithid) + * [`fn withName(value)`](#fn-metaupdatedbywithname) + +## Fields + +### fn withDescription + +```ts +withDescription(value) +``` + +Panel description + +### fn withFolderUid + +```ts +withFolderUid(value) +``` + +Folder UID + +### fn withMeta + +```ts +withMeta(value) +``` + + + +### fn withMetaMixin + +```ts +withMetaMixin(value) +``` + + + +### fn withModel + +```ts +withModel(value) +``` + +TODO: should be the same panel schema defined in dashboard +Typescript: Omit; + +### fn withModelMixin + +```ts +withModelMixin(value) +``` + +TODO: should be the same panel schema defined in dashboard +Typescript: Omit; + +### fn withName + +```ts +withName(value) +``` + +Panel name (also saved in the model) + +### fn withSchemaVersion + +```ts +withSchemaVersion(value) +``` + +Dashboard version when this was saved (zero if unknown) + +### fn withType + +```ts +withType(value) +``` + +The panel type (from inside the model) + +### fn withUid + +```ts +withUid(value) +``` + +Library element UID + +### fn withVersion + +```ts +withVersion(value) +``` + +panel version, incremented each time the dashboard is updated. + +### obj meta + + +#### fn meta.withConnectedDashboards + +```ts +withConnectedDashboards(value) +``` + + + +#### fn meta.withCreated + +```ts +withCreated(value) +``` + + + +#### fn meta.withCreatedBy + +```ts +withCreatedBy(value) +``` + + + +#### fn meta.withCreatedByMixin + +```ts +withCreatedByMixin(value) +``` + + + +#### fn meta.withFolderName + +```ts +withFolderName(value) +``` + + + +#### fn meta.withFolderUid + +```ts +withFolderUid(value) +``` + + + +#### fn meta.withUpdated + +```ts +withUpdated(value) +``` + + + +#### fn meta.withUpdatedBy + +```ts +withUpdatedBy(value) +``` + + + +#### fn meta.withUpdatedByMixin + +```ts +withUpdatedByMixin(value) +``` + + + +#### obj meta.createdBy + + +##### fn meta.createdBy.withAvatarUrl + +```ts +withAvatarUrl(value) +``` + + + +##### fn meta.createdBy.withId + +```ts +withId(value) +``` + + + +##### fn meta.createdBy.withName + +```ts +withName(value) +``` + + + +#### obj meta.updatedBy + + +##### fn meta.updatedBy.withAvatarUrl + +```ts +withAvatarUrl(value) +``` + + + +##### fn meta.updatedBy.withId + +```ts +withId(value) +``` + + + +##### fn meta.updatedBy.withName + +```ts +withName(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/index.md new file mode 100644 index 0000000..57b7256 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/index.md @@ -0,0 +1,497 @@ +# alertGroups + +grafonnet.panel.alertGroups + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withAlertmanager(value)`](#fn-optionswithalertmanager) + * [`fn withExpandAll(value=true)`](#fn-optionswithexpandall) + * [`fn withLabels(value)`](#fn-optionswithlabels) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new alertGroups panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withAlertmanager + +```ts +withAlertmanager(value) +``` + +Name of the alertmanager used as a source for alerts + +#### fn options.withExpandAll + +```ts +withExpandAll(value=true) +``` + +Expand all alert groups by default + +#### fn options.withLabels + +```ts +withLabels(value) +``` + +Comma-separated list of values used to filter alert results + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/index.md new file mode 100644 index 0000000..2508c4b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/index.md @@ -0,0 +1,569 @@ +# annotationsList + +grafonnet.panel.annotationsList + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withLimit(value=10)`](#fn-optionswithlimit) + * [`fn withNavigateAfter(value="10m")`](#fn-optionswithnavigateafter) + * [`fn withNavigateBefore(value="10m")`](#fn-optionswithnavigatebefore) + * [`fn withNavigateToPanel(value=true)`](#fn-optionswithnavigatetopanel) + * [`fn withOnlyFromThisDashboard(value=true)`](#fn-optionswithonlyfromthisdashboard) + * [`fn withOnlyInTimeRange(value=true)`](#fn-optionswithonlyintimerange) + * [`fn withShowTags(value=true)`](#fn-optionswithshowtags) + * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) + * [`fn withShowUser(value=true)`](#fn-optionswithshowuser) + * [`fn withTags(value)`](#fn-optionswithtags) + * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new annotationsList panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withLimit + +```ts +withLimit(value=10) +``` + + + +#### fn options.withNavigateAfter + +```ts +withNavigateAfter(value="10m") +``` + + + +#### fn options.withNavigateBefore + +```ts +withNavigateBefore(value="10m") +``` + + + +#### fn options.withNavigateToPanel + +```ts +withNavigateToPanel(value=true) +``` + + + +#### fn options.withOnlyFromThisDashboard + +```ts +withOnlyFromThisDashboard(value=true) +``` + + + +#### fn options.withOnlyInTimeRange + +```ts +withOnlyInTimeRange(value=true) +``` + + + +#### fn options.withShowTags + +```ts +withShowTags(value=true) +``` + + + +#### fn options.withShowTime + +```ts +withShowTime(value=true) +``` + + + +#### fn options.withShowUser + +```ts +withShowUser(value=true) +``` + + + +#### fn options.withTags + +```ts +withTags(value) +``` + + + +#### fn options.withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/index.md new file mode 100644 index 0000000..25345d8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/index.md @@ -0,0 +1,1030 @@ +# barChart + +grafonnet.panel.barChart + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) + * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) + * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withBarRadius(value=0)`](#fn-optionswithbarradius) + * [`fn withBarWidth(value=0.97)`](#fn-optionswithbarwidth) + * [`fn withColorByField(value)`](#fn-optionswithcolorbyfield) + * [`fn withFullHighlight(value=true)`](#fn-optionswithfullhighlight) + * [`fn withGroupWidth(value=0.7)`](#fn-optionswithgroupwidth) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withShowValue(value)`](#fn-optionswithshowvalue) + * [`fn withStacking(value)`](#fn-optionswithstacking) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`fn withXField(value)`](#fn-optionswithxfield) + * [`fn withXTickLabelMaxLength(value)`](#fn-optionswithxticklabelmaxlength) + * [`fn withXTickLabelRotation(value=0)`](#fn-optionswithxticklabelrotation) + * [`fn withXTickLabelSpacing(value=0)`](#fn-optionswithxticklabelspacing) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new barChart panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```ts +withAxisCenteredZero(value=true) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```ts +withAxisColorMode(value) +``` + +TODO docs + +Accepted values for `value` are "text", "series" + +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```ts +withAxisGridShow(value=true) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```ts +withAxisLabel(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```ts +withAxisPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" + +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```ts +withAxisSoftMax(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```ts +withAxisSoftMin(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```ts +withAxisWidth(value) +``` + + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```ts +withFillOpacity(value=80) +``` + +Controls the fill opacity of the bars. + +###### fn fieldConfig.defaults.custom.withGradientMode + +```ts +withGradientMode(value) +``` + +Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. +Gradient appearance is influenced by the Fill opacity setting. + +###### fn fieldConfig.defaults.custom.withHideFrom + +```ts +withHideFrom(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```ts +withHideFromMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineWidth + +```ts +withLineWidth(value=1) +``` + +Controls line width of the bars. + +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```ts +withScaleDistribution(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```ts +withScaleDistributionMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withThresholdsStyle + +```ts +withThresholdsStyle(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin + +```ts +withThresholdsStyleMixin(value) +``` + +TODO docs + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```ts +withLegend(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```ts +withTooltip(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```ts +withViz(value=true) +``` + + + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```ts +withLinearThreshold(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```ts +withLog(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "log", "ordinal", "symlog" + +###### obj fieldConfig.defaults.custom.thresholdsStyle + + +####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "off", "line", "dashed", "area", "line+area", "dashed+area", "series" + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withBarRadius + +```ts +withBarRadius(value=0) +``` + +Controls the radius of each bar. + +#### fn options.withBarWidth + +```ts +withBarWidth(value=0.97) +``` + +Controls the width of bars. 1 = Max width, 0 = Min width. + +#### fn options.withColorByField + +```ts +withColorByField(value) +``` + +Use the color value for a sibling field to color each bar value. + +#### fn options.withFullHighlight + +```ts +withFullHighlight(value=true) +``` + +Enables mode which highlights the entire bar area and shows tooltip when cursor +hovers over highlighted area + +#### fn options.withGroupWidth + +```ts +withGroupWidth(value=0.7) +``` + +Controls the width of groups. 1 = max with, 0 = min width. + +#### fn options.withLegend + +```ts +withLegend(value) +``` + +TODO docs + +#### fn options.withLegendMixin + +```ts +withLegendMixin(value) +``` + +TODO docs + +#### fn options.withOrientation + +```ts +withOrientation(value) +``` + +Controls the orientation of the bar chart, either vertical or horizontal. + +#### fn options.withShowValue + +```ts +withShowValue(value) +``` + +This controls whether values are shown on top or to the left of bars. + +#### fn options.withStacking + +```ts +withStacking(value) +``` + +Controls whether bars are stacked or not, either normally or in percent mode. + +#### fn options.withText + +```ts +withText(value) +``` + +TODO docs + +#### fn options.withTextMixin + +```ts +withTextMixin(value) +``` + +TODO docs + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + +TODO docs + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + +TODO docs + +#### fn options.withXField + +```ts +withXField(value) +``` + +Manually select which field from the dataset to represent the x field. + +#### fn options.withXTickLabelMaxLength + +```ts +withXTickLabelMaxLength(value) +``` + +Sets the max length that a label can have before it is truncated. + +#### fn options.withXTickLabelRotation + +```ts +withXTickLabelRotation(value=0) +``` + +Controls the rotation of the x axis labels. + +#### fn options.withXTickLabelSpacing + +```ts +withXTickLabelSpacing(value=0) +``` + +Controls the spacing between x axis labels. +negative values indicate backwards skipping behavior + +#### obj options.legend + + +##### fn options.legend.withAsTable + +```ts +withAsTable(value=true) +``` + + + +##### fn options.legend.withCalcs + +```ts +withCalcs(value) +``` + + + +##### fn options.legend.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + + + +##### fn options.legend.withDisplayMode + +```ts +withDisplayMode(value) +``` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility + +Accepted values for `value` are "list", "table", "hidden" + +##### fn options.legend.withIsVisible + +```ts +withIsVisible(value=true) +``` + + + +##### fn options.legend.withPlacement + +```ts +withPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "bottom", "right" + +##### fn options.legend.withShowLegend + +```ts +withShowLegend(value=true) +``` + + + +##### fn options.legend.withSortBy + +```ts +withSortBy(value) +``` + + + +##### fn options.legend.withSortDesc + +```ts +withSortDesc(value=true) +``` + + + +##### fn options.legend.withWidth + +```ts +withWidth(value) +``` + + + +#### obj options.text + + +##### fn options.text.withTitleSize + +```ts +withTitleSize(value) +``` + +Explicit title text size + +##### fn options.text.withValueSize + +```ts +withValueSize(value) +``` + +Explicit value text size + +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "single", "multi", "none" + +##### fn options.tooltip.withSort + +```ts +withSort(value) +``` + +TODO docs + +Accepted values for `value` are "asc", "desc", "none" + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/index.md new file mode 100644 index 0000000..dba2c98 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/index.md @@ -0,0 +1,638 @@ +# barGauge + +grafonnet.panel.barGauge + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withDisplayMode(value)`](#fn-optionswithdisplaymode) + * [`fn withMinVizHeight(value=10)`](#fn-optionswithminvizheight) + * [`fn withMinVizWidth(value=0)`](#fn-optionswithminvizwidth) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) + * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) + * [`fn withShowUnfilled(value=true)`](#fn-optionswithshowunfilled) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`fn withValueMode(value)`](#fn-optionswithvaluemode) + * [`obj reduceOptions`](#obj-optionsreduceoptions) + * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) + * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) + * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) + * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new barGauge panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withDisplayMode + +```ts +withDisplayMode(value) +``` + +Enum expressing the possible display modes +for the bar gauge component of Grafana UI + +Accepted values for `value` are "basic", "lcd", "gradient" + +#### fn options.withMinVizHeight + +```ts +withMinVizHeight(value=10) +``` + + + +#### fn options.withMinVizWidth + +```ts +withMinVizWidth(value=0) +``` + + + +#### fn options.withOrientation + +```ts +withOrientation(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "vertical", "horizontal" + +#### fn options.withReduceOptions + +```ts +withReduceOptions(value) +``` + +TODO docs + +#### fn options.withReduceOptionsMixin + +```ts +withReduceOptionsMixin(value) +``` + +TODO docs + +#### fn options.withShowUnfilled + +```ts +withShowUnfilled(value=true) +``` + + + +#### fn options.withText + +```ts +withText(value) +``` + +TODO docs + +#### fn options.withTextMixin + +```ts +withTextMixin(value) +``` + +TODO docs + +#### fn options.withValueMode + +```ts +withValueMode(value) +``` + +Allows for the table cell gauge display type to set the gauge mode. + +Accepted values for `value` are "color", "text", "hidden" + +#### obj options.reduceOptions + + +##### fn options.reduceOptions.withCalcs + +```ts +withCalcs(value) +``` + +When !values, pick one value for the whole field + +##### fn options.reduceOptions.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + +When !values, pick one value for the whole field + +##### fn options.reduceOptions.withFields + +```ts +withFields(value) +``` + +Which fields to show. By default this is only numeric fields + +##### fn options.reduceOptions.withLimit + +```ts +withLimit(value) +``` + +if showing all values limit + +##### fn options.reduceOptions.withValues + +```ts +withValues(value=true) +``` + +If true show each row value + +#### obj options.text + + +##### fn options.text.withTitleSize + +```ts +withTitleSize(value) +``` + +Explicit title text size + +##### fn options.text.withValueSize + +```ts +withValueSize(value) +``` + +Explicit value text size + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/index.md new file mode 100644 index 0000000..1a26063 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/index.md @@ -0,0 +1,466 @@ +# candlestick + +grafonnet.panel.candlestick + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new candlestick panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/index.md new file mode 100644 index 0000000..8a61cc7 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/index.md @@ -0,0 +1,466 @@ +# canvas + +grafonnet.panel.canvas + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new canvas panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/index.md new file mode 100644 index 0000000..63b0fd6 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/index.md @@ -0,0 +1,569 @@ +# dashboardList + +grafonnet.panel.dashboardList + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withFolderId(value)`](#fn-optionswithfolderid) + * [`fn withIncludeVars(value=true)`](#fn-optionswithincludevars) + * [`fn withKeepTime(value=true)`](#fn-optionswithkeeptime) + * [`fn withMaxItems(value=10)`](#fn-optionswithmaxitems) + * [`fn withQuery(value="")`](#fn-optionswithquery) + * [`fn withShowHeadings(value=true)`](#fn-optionswithshowheadings) + * [`fn withShowRecentlyViewed(value=true)`](#fn-optionswithshowrecentlyviewed) + * [`fn withShowSearch(value=true)`](#fn-optionswithshowsearch) + * [`fn withShowStarred(value=true)`](#fn-optionswithshowstarred) + * [`fn withTags(value)`](#fn-optionswithtags) + * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new dashboardList panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withFolderId + +```ts +withFolderId(value) +``` + + + +#### fn options.withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +#### fn options.withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +#### fn options.withMaxItems + +```ts +withMaxItems(value=10) +``` + + + +#### fn options.withQuery + +```ts +withQuery(value="") +``` + + + +#### fn options.withShowHeadings + +```ts +withShowHeadings(value=true) +``` + + + +#### fn options.withShowRecentlyViewed + +```ts +withShowRecentlyViewed(value=true) +``` + + + +#### fn options.withShowSearch + +```ts +withShowSearch(value=true) +``` + + + +#### fn options.withShowStarred + +```ts +withShowStarred(value=true) +``` + + + +#### fn options.withTags + +```ts +withTags(value) +``` + + + +#### fn options.withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/index.md new file mode 100644 index 0000000..30aa0f9 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/index.md @@ -0,0 +1,479 @@ +# datagrid + +grafonnet.panel.datagrid + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withSelectedSeries(value=0)`](#fn-optionswithselectedseries) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new datagrid panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withSelectedSeries + +```ts +withSelectedSeries(value=0) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/index.md new file mode 100644 index 0000000..1a1ae73 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/index.md @@ -0,0 +1,530 @@ +# debug + +grafonnet.panel.debug + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withCounters(value)`](#fn-optionswithcounters) + * [`fn withCountersMixin(value)`](#fn-optionswithcountersmixin) + * [`fn withMode(value)`](#fn-optionswithmode) + * [`obj counters`](#obj-optionscounters) + * [`fn withDataChanged(value=true)`](#fn-optionscounterswithdatachanged) + * [`fn withRender(value=true)`](#fn-optionscounterswithrender) + * [`fn withSchemaChanged(value=true)`](#fn-optionscounterswithschemachanged) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new debug panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withCounters + +```ts +withCounters(value) +``` + + + +#### fn options.withCountersMixin + +```ts +withCountersMixin(value) +``` + + + +#### fn options.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "render", "events", "cursor", "State", "ThrowError" + +#### obj options.counters + + +##### fn options.counters.withDataChanged + +```ts +withDataChanged(value=true) +``` + + + +##### fn options.counters.withRender + +```ts +withRender(value=true) +``` + + + +##### fn options.counters.withSchemaChanged + +```ts +withSchemaChanged(value=true) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/index.md new file mode 100644 index 0000000..d2526a2 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/index.md @@ -0,0 +1,606 @@ +# gauge + +grafonnet.panel.gauge + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) + * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) + * [`fn withShowThresholdLabels(value=true)`](#fn-optionswithshowthresholdlabels) + * [`fn withShowThresholdMarkers(value=true)`](#fn-optionswithshowthresholdmarkers) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`obj reduceOptions`](#obj-optionsreduceoptions) + * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) + * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) + * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) + * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new gauge panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withOrientation + +```ts +withOrientation(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "vertical", "horizontal" + +#### fn options.withReduceOptions + +```ts +withReduceOptions(value) +``` + +TODO docs + +#### fn options.withReduceOptionsMixin + +```ts +withReduceOptionsMixin(value) +``` + +TODO docs + +#### fn options.withShowThresholdLabels + +```ts +withShowThresholdLabels(value=true) +``` + + + +#### fn options.withShowThresholdMarkers + +```ts +withShowThresholdMarkers(value=true) +``` + + + +#### fn options.withText + +```ts +withText(value) +``` + +TODO docs + +#### fn options.withTextMixin + +```ts +withTextMixin(value) +``` + +TODO docs + +#### obj options.reduceOptions + + +##### fn options.reduceOptions.withCalcs + +```ts +withCalcs(value) +``` + +When !values, pick one value for the whole field + +##### fn options.reduceOptions.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + +When !values, pick one value for the whole field + +##### fn options.reduceOptions.withFields + +```ts +withFields(value) +``` + +Which fields to show. By default this is only numeric fields + +##### fn options.reduceOptions.withLimit + +```ts +withLimit(value) +``` + +if showing all values limit + +##### fn options.reduceOptions.withValues + +```ts +withValues(value=true) +``` + +If true show each row value + +#### obj options.text + + +##### fn options.text.withTitleSize + +```ts +withTitleSize(value) +``` + +Explicit title text size + +##### fn options.text.withValueSize + +```ts +withValueSize(value) +``` + +Explicit value text size + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/index.md new file mode 100644 index 0000000..cdb26bb --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/index.md @@ -0,0 +1,1030 @@ +# geomap + +grafonnet.panel.geomap + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withBasemap(value)`](#fn-optionswithbasemap) + * [`fn withBasemapMixin(value)`](#fn-optionswithbasemapmixin) + * [`fn withControls(value)`](#fn-optionswithcontrols) + * [`fn withControlsMixin(value)`](#fn-optionswithcontrolsmixin) + * [`fn withLayers(value)`](#fn-optionswithlayers) + * [`fn withLayersMixin(value)`](#fn-optionswithlayersmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`fn withView(value)`](#fn-optionswithview) + * [`fn withViewMixin(value)`](#fn-optionswithviewmixin) + * [`obj basemap`](#obj-optionsbasemap) + * [`fn withConfig(value)`](#fn-optionsbasemapwithconfig) + * [`fn withFilterData(value)`](#fn-optionsbasemapwithfilterdata) + * [`fn withLocation(value)`](#fn-optionsbasemapwithlocation) + * [`fn withLocationMixin(value)`](#fn-optionsbasemapwithlocationmixin) + * [`fn withName(value)`](#fn-optionsbasemapwithname) + * [`fn withOpacity(value)`](#fn-optionsbasemapwithopacity) + * [`fn withTooltip(value=true)`](#fn-optionsbasemapwithtooltip) + * [`fn withType(value)`](#fn-optionsbasemapwithtype) + * [`obj location`](#obj-optionsbasemaplocation) + * [`fn withGazetteer(value)`](#fn-optionsbasemaplocationwithgazetteer) + * [`fn withGeohash(value)`](#fn-optionsbasemaplocationwithgeohash) + * [`fn withLatitude(value)`](#fn-optionsbasemaplocationwithlatitude) + * [`fn withLongitude(value)`](#fn-optionsbasemaplocationwithlongitude) + * [`fn withLookup(value)`](#fn-optionsbasemaplocationwithlookup) + * [`fn withMode(value)`](#fn-optionsbasemaplocationwithmode) + * [`fn withWkt(value)`](#fn-optionsbasemaplocationwithwkt) + * [`obj controls`](#obj-optionscontrols) + * [`fn withMouseWheelZoom(value=true)`](#fn-optionscontrolswithmousewheelzoom) + * [`fn withShowAttribution(value=true)`](#fn-optionscontrolswithshowattribution) + * [`fn withShowDebug(value=true)`](#fn-optionscontrolswithshowdebug) + * [`fn withShowMeasure(value=true)`](#fn-optionscontrolswithshowmeasure) + * [`fn withShowScale(value=true)`](#fn-optionscontrolswithshowscale) + * [`fn withShowZoom(value=true)`](#fn-optionscontrolswithshowzoom) + * [`obj layers`](#obj-optionslayers) + * [`fn withConfig(value)`](#fn-optionslayerswithconfig) + * [`fn withFilterData(value)`](#fn-optionslayerswithfilterdata) + * [`fn withLocation(value)`](#fn-optionslayerswithlocation) + * [`fn withLocationMixin(value)`](#fn-optionslayerswithlocationmixin) + * [`fn withName(value)`](#fn-optionslayerswithname) + * [`fn withOpacity(value)`](#fn-optionslayerswithopacity) + * [`fn withTooltip(value=true)`](#fn-optionslayerswithtooltip) + * [`fn withType(value)`](#fn-optionslayerswithtype) + * [`obj location`](#obj-optionslayerslocation) + * [`fn withGazetteer(value)`](#fn-optionslayerslocationwithgazetteer) + * [`fn withGeohash(value)`](#fn-optionslayerslocationwithgeohash) + * [`fn withLatitude(value)`](#fn-optionslayerslocationwithlatitude) + * [`fn withLongitude(value)`](#fn-optionslayerslocationwithlongitude) + * [`fn withLookup(value)`](#fn-optionslayerslocationwithlookup) + * [`fn withMode(value)`](#fn-optionslayerslocationwithmode) + * [`fn withWkt(value)`](#fn-optionslayerslocationwithwkt) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`obj view`](#obj-optionsview) + * [`fn withAllLayers(value=true)`](#fn-optionsviewwithalllayers) + * [`fn withId(value="zero")`](#fn-optionsviewwithid) + * [`fn withLastOnly(value=true)`](#fn-optionsviewwithlastonly) + * [`fn withLat(value=0)`](#fn-optionsviewwithlat) + * [`fn withLayer(value)`](#fn-optionsviewwithlayer) + * [`fn withLon(value=0)`](#fn-optionsviewwithlon) + * [`fn withMaxZoom(value)`](#fn-optionsviewwithmaxzoom) + * [`fn withMinZoom(value)`](#fn-optionsviewwithminzoom) + * [`fn withPadding(value)`](#fn-optionsviewwithpadding) + * [`fn withShared(value=true)`](#fn-optionsviewwithshared) + * [`fn withZoom(value=1)`](#fn-optionsviewwithzoom) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new geomap panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withBasemap + +```ts +withBasemap(value) +``` + + + +#### fn options.withBasemapMixin + +```ts +withBasemapMixin(value) +``` + + + +#### fn options.withControls + +```ts +withControls(value) +``` + + + +#### fn options.withControlsMixin + +```ts +withControlsMixin(value) +``` + + + +#### fn options.withLayers + +```ts +withLayers(value) +``` + + + +#### fn options.withLayersMixin + +```ts +withLayersMixin(value) +``` + + + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + + + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + + + +#### fn options.withView + +```ts +withView(value) +``` + + + +#### fn options.withViewMixin + +```ts +withViewMixin(value) +``` + + + +#### obj options.basemap + + +##### fn options.basemap.withConfig + +```ts +withConfig(value) +``` + +Custom options depending on the type + +##### fn options.basemap.withFilterData + +```ts +withFilterData(value) +``` + +Defines a frame MatcherConfig that may filter data for the given layer + +##### fn options.basemap.withLocation + +```ts +withLocation(value) +``` + + + +##### fn options.basemap.withLocationMixin + +```ts +withLocationMixin(value) +``` + + + +##### fn options.basemap.withName + +```ts +withName(value) +``` + +configured unique display name + +##### fn options.basemap.withOpacity + +```ts +withOpacity(value) +``` + +Common properties: +https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html +Layer opacity (0-1) + +##### fn options.basemap.withTooltip + +```ts +withTooltip(value=true) +``` + +Check tooltip (defaults to true) + +##### fn options.basemap.withType + +```ts +withType(value) +``` + + + +##### obj options.basemap.location + + +###### fn options.basemap.location.withGazetteer + +```ts +withGazetteer(value) +``` + +Path to Gazetteer + +###### fn options.basemap.location.withGeohash + +```ts +withGeohash(value) +``` + +Field mappings + +###### fn options.basemap.location.withLatitude + +```ts +withLatitude(value) +``` + + + +###### fn options.basemap.location.withLongitude + +```ts +withLongitude(value) +``` + + + +###### fn options.basemap.location.withLookup + +```ts +withLookup(value) +``` + + + +###### fn options.basemap.location.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "auto", "geohash", "coords", "lookup" + +###### fn options.basemap.location.withWkt + +```ts +withWkt(value) +``` + + + +#### obj options.controls + + +##### fn options.controls.withMouseWheelZoom + +```ts +withMouseWheelZoom(value=true) +``` + +let the mouse wheel zoom + +##### fn options.controls.withShowAttribution + +```ts +withShowAttribution(value=true) +``` + +Lower right + +##### fn options.controls.withShowDebug + +```ts +withShowDebug(value=true) +``` + +Show debug + +##### fn options.controls.withShowMeasure + +```ts +withShowMeasure(value=true) +``` + +Show measure + +##### fn options.controls.withShowScale + +```ts +withShowScale(value=true) +``` + +Scale options + +##### fn options.controls.withShowZoom + +```ts +withShowZoom(value=true) +``` + +Zoom (upper left) + +#### obj options.layers + + +##### fn options.layers.withConfig + +```ts +withConfig(value) +``` + +Custom options depending on the type + +##### fn options.layers.withFilterData + +```ts +withFilterData(value) +``` + +Defines a frame MatcherConfig that may filter data for the given layer + +##### fn options.layers.withLocation + +```ts +withLocation(value) +``` + + + +##### fn options.layers.withLocationMixin + +```ts +withLocationMixin(value) +``` + + + +##### fn options.layers.withName + +```ts +withName(value) +``` + +configured unique display name + +##### fn options.layers.withOpacity + +```ts +withOpacity(value) +``` + +Common properties: +https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html +Layer opacity (0-1) + +##### fn options.layers.withTooltip + +```ts +withTooltip(value=true) +``` + +Check tooltip (defaults to true) + +##### fn options.layers.withType + +```ts +withType(value) +``` + + + +##### obj options.layers.location + + +###### fn options.layers.location.withGazetteer + +```ts +withGazetteer(value) +``` + +Path to Gazetteer + +###### fn options.layers.location.withGeohash + +```ts +withGeohash(value) +``` + +Field mappings + +###### fn options.layers.location.withLatitude + +```ts +withLatitude(value) +``` + + + +###### fn options.layers.location.withLongitude + +```ts +withLongitude(value) +``` + + + +###### fn options.layers.location.withLookup + +```ts +withLookup(value) +``` + + + +###### fn options.layers.location.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "auto", "geohash", "coords", "lookup" + +###### fn options.layers.location.withWkt + +```ts +withWkt(value) +``` + + + +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "none", "details" + +#### obj options.view + + +##### fn options.view.withAllLayers + +```ts +withAllLayers(value=true) +``` + + + +##### fn options.view.withId + +```ts +withId(value="zero") +``` + + + +##### fn options.view.withLastOnly + +```ts +withLastOnly(value=true) +``` + + + +##### fn options.view.withLat + +```ts +withLat(value=0) +``` + + + +##### fn options.view.withLayer + +```ts +withLayer(value) +``` + + + +##### fn options.view.withLon + +```ts +withLon(value=0) +``` + + + +##### fn options.view.withMaxZoom + +```ts +withMaxZoom(value) +``` + + + +##### fn options.view.withMinZoom + +```ts +withMinZoom(value) +``` + + + +##### fn options.view.withPadding + +```ts +withPadding(value) +``` + + + +##### fn options.view.withShared + +```ts +withShared(value=true) +``` + + + +##### fn options.view.withZoom + +```ts +withZoom(value=1) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/index.md new file mode 100644 index 0000000..d05e6df --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/index.md @@ -0,0 +1,1420 @@ +# heatmap + +grafonnet.panel.heatmap + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withCalculate(value=true)`](#fn-optionswithcalculate) + * [`fn withCalculation(value)`](#fn-optionswithcalculation) + * [`fn withCalculationMixin(value)`](#fn-optionswithcalculationmixin) + * [`fn withCellGap(value=1)`](#fn-optionswithcellgap) + * [`fn withCellRadius(value)`](#fn-optionswithcellradius) + * [`fn withCellValues(value={})`](#fn-optionswithcellvalues) + * [`fn withCellValuesMixin(value={})`](#fn-optionswithcellvaluesmixin) + * [`fn withColor(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64})`](#fn-optionswithcolor) + * [`fn withColorMixin(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64})`](#fn-optionswithcolormixin) + * [`fn withExemplars(value)`](#fn-optionswithexemplars) + * [`fn withExemplarsMixin(value)`](#fn-optionswithexemplarsmixin) + * [`fn withFilterValues(value={"le": 0.000000001})`](#fn-optionswithfiltervalues) + * [`fn withFilterValuesMixin(value={"le": 0.000000001})`](#fn-optionswithfiltervaluesmixin) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withRowsFrame(value)`](#fn-optionswithrowsframe) + * [`fn withRowsFrameMixin(value)`](#fn-optionswithrowsframemixin) + * [`fn withShowValue(value)`](#fn-optionswithshowvalue) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`fn withYAxis(value)`](#fn-optionswithyaxis) + * [`fn withYAxisMixin(value)`](#fn-optionswithyaxismixin) + * [`obj calculation`](#obj-optionscalculation) + * [`fn withXBuckets(value)`](#fn-optionscalculationwithxbuckets) + * [`fn withXBucketsMixin(value)`](#fn-optionscalculationwithxbucketsmixin) + * [`fn withYBuckets(value)`](#fn-optionscalculationwithybuckets) + * [`fn withYBucketsMixin(value)`](#fn-optionscalculationwithybucketsmixin) + * [`obj xBuckets`](#obj-optionscalculationxbuckets) + * [`fn withMode(value)`](#fn-optionscalculationxbucketswithmode) + * [`fn withScale(value)`](#fn-optionscalculationxbucketswithscale) + * [`fn withScaleMixin(value)`](#fn-optionscalculationxbucketswithscalemixin) + * [`fn withValue(value)`](#fn-optionscalculationxbucketswithvalue) + * [`obj scale`](#obj-optionscalculationxbucketsscale) + * [`fn withLinearThreshold(value)`](#fn-optionscalculationxbucketsscalewithlinearthreshold) + * [`fn withLog(value)`](#fn-optionscalculationxbucketsscalewithlog) + * [`fn withType(value)`](#fn-optionscalculationxbucketsscalewithtype) + * [`obj yBuckets`](#obj-optionscalculationybuckets) + * [`fn withMode(value)`](#fn-optionscalculationybucketswithmode) + * [`fn withScale(value)`](#fn-optionscalculationybucketswithscale) + * [`fn withScaleMixin(value)`](#fn-optionscalculationybucketswithscalemixin) + * [`fn withValue(value)`](#fn-optionscalculationybucketswithvalue) + * [`obj scale`](#obj-optionscalculationybucketsscale) + * [`fn withLinearThreshold(value)`](#fn-optionscalculationybucketsscalewithlinearthreshold) + * [`fn withLog(value)`](#fn-optionscalculationybucketsscalewithlog) + * [`fn withType(value)`](#fn-optionscalculationybucketsscalewithtype) + * [`obj cellValues`](#obj-optionscellvalues) + * [`fn withCellValues(value)`](#fn-optionscellvalueswithcellvalues) + * [`fn withCellValuesMixin(value)`](#fn-optionscellvalueswithcellvaluesmixin) + * [`obj CellValues`](#obj-optionscellvaluescellvalues) + * [`fn withDecimals(value)`](#fn-optionscellvaluescellvalueswithdecimals) + * [`fn withUnit(value)`](#fn-optionscellvaluescellvalueswithunit) + * [`obj color`](#obj-optionscolor) + * [`fn withHeatmapColorOptions(value)`](#fn-optionscolorwithheatmapcoloroptions) + * [`fn withHeatmapColorOptionsMixin(value)`](#fn-optionscolorwithheatmapcoloroptionsmixin) + * [`obj HeatmapColorOptions`](#obj-optionscolorheatmapcoloroptions) + * [`fn withExponent(value)`](#fn-optionscolorheatmapcoloroptionswithexponent) + * [`fn withFill(value)`](#fn-optionscolorheatmapcoloroptionswithfill) + * [`fn withMax(value)`](#fn-optionscolorheatmapcoloroptionswithmax) + * [`fn withMin(value)`](#fn-optionscolorheatmapcoloroptionswithmin) + * [`fn withMode(value)`](#fn-optionscolorheatmapcoloroptionswithmode) + * [`fn withReverse(value=true)`](#fn-optionscolorheatmapcoloroptionswithreverse) + * [`fn withScale(value)`](#fn-optionscolorheatmapcoloroptionswithscale) + * [`fn withScheme(value)`](#fn-optionscolorheatmapcoloroptionswithscheme) + * [`fn withSteps(value)`](#fn-optionscolorheatmapcoloroptionswithsteps) + * [`obj exemplars`](#obj-optionsexemplars) + * [`fn withColor(value)`](#fn-optionsexemplarswithcolor) + * [`obj filterValues`](#obj-optionsfiltervalues) + * [`fn withFilterValueRange(value)`](#fn-optionsfiltervalueswithfiltervaluerange) + * [`fn withFilterValueRangeMixin(value)`](#fn-optionsfiltervalueswithfiltervaluerangemixin) + * [`obj FilterValueRange`](#obj-optionsfiltervaluesfiltervaluerange) + * [`fn withGe(value)`](#fn-optionsfiltervaluesfiltervaluerangewithge) + * [`fn withLe(value)`](#fn-optionsfiltervaluesfiltervaluerangewithle) + * [`obj legend`](#obj-optionslegend) + * [`fn withShow(value=true)`](#fn-optionslegendwithshow) + * [`obj rowsFrame`](#obj-optionsrowsframe) + * [`fn withLayout(value)`](#fn-optionsrowsframewithlayout) + * [`fn withValue(value)`](#fn-optionsrowsframewithvalue) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withShow(value=true)`](#fn-optionstooltipwithshow) + * [`fn withYHistogram(value=true)`](#fn-optionstooltipwithyhistogram) + * [`obj yAxis`](#obj-optionsyaxis) + * [`fn withAxisCenteredZero(value=true)`](#fn-optionsyaxiswithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-optionsyaxiswithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-optionsyaxiswithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-optionsyaxiswithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-optionsyaxiswithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-optionsyaxiswithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-optionsyaxiswithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-optionsyaxiswithaxiswidth) + * [`fn withDecimals(value)`](#fn-optionsyaxiswithdecimals) + * [`fn withMax(value)`](#fn-optionsyaxiswithmax) + * [`fn withMin(value)`](#fn-optionsyaxiswithmin) + * [`fn withReverse(value=true)`](#fn-optionsyaxiswithreverse) + * [`fn withScaleDistribution(value)`](#fn-optionsyaxiswithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-optionsyaxiswithscaledistributionmixin) + * [`fn withUnit(value)`](#fn-optionsyaxiswithunit) + * [`obj scaleDistribution`](#obj-optionsyaxisscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-optionsyaxisscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-optionsyaxisscaledistributionwithlog) + * [`fn withType(value)`](#fn-optionsyaxisscaledistributionwithtype) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new heatmap panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withHideFrom + +```ts +withHideFrom(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```ts +withHideFromMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```ts +withScaleDistribution(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```ts +withScaleDistributionMixin(value) +``` + +TODO docs + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```ts +withLegend(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```ts +withTooltip(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```ts +withViz(value=true) +``` + + + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```ts +withLinearThreshold(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```ts +withLog(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "log", "ordinal", "symlog" + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withCalculate + +```ts +withCalculate(value=true) +``` + +Controls if the heatmap should be calculated from data + +#### fn options.withCalculation + +```ts +withCalculation(value) +``` + + + +#### fn options.withCalculationMixin + +```ts +withCalculationMixin(value) +``` + + + +#### fn options.withCellGap + +```ts +withCellGap(value=1) +``` + +Controls gap between cells + +#### fn options.withCellRadius + +```ts +withCellRadius(value) +``` + +Controls cell radius + +#### fn options.withCellValues + +```ts +withCellValues(value={}) +``` + +Controls cell value unit + +#### fn options.withCellValuesMixin + +```ts +withCellValuesMixin(value={}) +``` + +Controls cell value unit + +#### fn options.withColor + +```ts +withColor(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}) +``` + +Controls the color options + +#### fn options.withColorMixin + +```ts +withColorMixin(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}) +``` + +Controls the color options + +#### fn options.withExemplars + +```ts +withExemplars(value) +``` + +Controls exemplar options + +#### fn options.withExemplarsMixin + +```ts +withExemplarsMixin(value) +``` + +Controls exemplar options + +#### fn options.withFilterValues + +```ts +withFilterValues(value={"le": 0.000000001}) +``` + +Filters values between a given range + +#### fn options.withFilterValuesMixin + +```ts +withFilterValuesMixin(value={"le": 0.000000001}) +``` + +Filters values between a given range + +#### fn options.withLegend + +```ts +withLegend(value) +``` + +Controls legend options + +#### fn options.withLegendMixin + +```ts +withLegendMixin(value) +``` + +Controls legend options + +#### fn options.withRowsFrame + +```ts +withRowsFrame(value) +``` + +Controls frame rows options + +#### fn options.withRowsFrameMixin + +```ts +withRowsFrameMixin(value) +``` + +Controls frame rows options + +#### fn options.withShowValue + +```ts +withShowValue(value) +``` + +| *{ + layout: ui.HeatmapCellLayout & "auto" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed +} +Controls the display of the value in the cell + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + +Controls tooltip options + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + +Controls tooltip options + +#### fn options.withYAxis + +```ts +withYAxis(value) +``` + +Configuration options for the yAxis + +#### fn options.withYAxisMixin + +```ts +withYAxisMixin(value) +``` + +Configuration options for the yAxis + +#### obj options.calculation + + +##### fn options.calculation.withXBuckets + +```ts +withXBuckets(value) +``` + + + +##### fn options.calculation.withXBucketsMixin + +```ts +withXBucketsMixin(value) +``` + + + +##### fn options.calculation.withYBuckets + +```ts +withYBuckets(value) +``` + + + +##### fn options.calculation.withYBucketsMixin + +```ts +withYBucketsMixin(value) +``` + + + +##### obj options.calculation.xBuckets + + +###### fn options.calculation.xBuckets.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "size", "count" + +###### fn options.calculation.xBuckets.withScale + +```ts +withScale(value) +``` + +TODO docs + +###### fn options.calculation.xBuckets.withScaleMixin + +```ts +withScaleMixin(value) +``` + +TODO docs + +###### fn options.calculation.xBuckets.withValue + +```ts +withValue(value) +``` + +The number of buckets to use for the axis in the heatmap + +###### obj options.calculation.xBuckets.scale + + +####### fn options.calculation.xBuckets.scale.withLinearThreshold + +```ts +withLinearThreshold(value) +``` + + + +####### fn options.calculation.xBuckets.scale.withLog + +```ts +withLog(value) +``` + + + +####### fn options.calculation.xBuckets.scale.withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "log", "ordinal", "symlog" + +##### obj options.calculation.yBuckets + + +###### fn options.calculation.yBuckets.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "size", "count" + +###### fn options.calculation.yBuckets.withScale + +```ts +withScale(value) +``` + +TODO docs + +###### fn options.calculation.yBuckets.withScaleMixin + +```ts +withScaleMixin(value) +``` + +TODO docs + +###### fn options.calculation.yBuckets.withValue + +```ts +withValue(value) +``` + +The number of buckets to use for the axis in the heatmap + +###### obj options.calculation.yBuckets.scale + + +####### fn options.calculation.yBuckets.scale.withLinearThreshold + +```ts +withLinearThreshold(value) +``` + + + +####### fn options.calculation.yBuckets.scale.withLog + +```ts +withLog(value) +``` + + + +####### fn options.calculation.yBuckets.scale.withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "log", "ordinal", "symlog" + +#### obj options.cellValues + + +##### fn options.cellValues.withCellValues + +```ts +withCellValues(value) +``` + +Controls cell value options + +##### fn options.cellValues.withCellValuesMixin + +```ts +withCellValuesMixin(value) +``` + +Controls cell value options + +##### obj options.cellValues.CellValues + + +###### fn options.cellValues.CellValues.withDecimals + +```ts +withDecimals(value) +``` + +Controls the number of decimals for cell values + +###### fn options.cellValues.CellValues.withUnit + +```ts +withUnit(value) +``` + +Controls the cell value unit + +#### obj options.color + + +##### fn options.color.withHeatmapColorOptions + +```ts +withHeatmapColorOptions(value) +``` + +Controls various color options + +##### fn options.color.withHeatmapColorOptionsMixin + +```ts +withHeatmapColorOptionsMixin(value) +``` + +Controls various color options + +##### obj options.color.HeatmapColorOptions + + +###### fn options.color.HeatmapColorOptions.withExponent + +```ts +withExponent(value) +``` + +Controls the exponent when scale is set to exponential + +###### fn options.color.HeatmapColorOptions.withFill + +```ts +withFill(value) +``` + +Controls the color fill when in opacity mode + +###### fn options.color.HeatmapColorOptions.withMax + +```ts +withMax(value) +``` + +Sets the maximum value for the color scale + +###### fn options.color.HeatmapColorOptions.withMin + +```ts +withMin(value) +``` + +Sets the minimum value for the color scale + +###### fn options.color.HeatmapColorOptions.withMode + +```ts +withMode(value) +``` + +Controls the color mode of the heatmap + +Accepted values for `value` are "opacity", "scheme" + +###### fn options.color.HeatmapColorOptions.withReverse + +```ts +withReverse(value=true) +``` + +Reverses the color scheme + +###### fn options.color.HeatmapColorOptions.withScale + +```ts +withScale(value) +``` + +Controls the color scale of the heatmap + +Accepted values for `value` are "linear", "exponential" + +###### fn options.color.HeatmapColorOptions.withScheme + +```ts +withScheme(value) +``` + +Controls the color scheme used + +###### fn options.color.HeatmapColorOptions.withSteps + +```ts +withSteps(value) +``` + +Controls the number of color steps + +#### obj options.exemplars + + +##### fn options.exemplars.withColor + +```ts +withColor(value) +``` + +Sets the color of the exemplar markers + +#### obj options.filterValues + + +##### fn options.filterValues.withFilterValueRange + +```ts +withFilterValueRange(value) +``` + +Controls the value filter range + +##### fn options.filterValues.withFilterValueRangeMixin + +```ts +withFilterValueRangeMixin(value) +``` + +Controls the value filter range + +##### obj options.filterValues.FilterValueRange + + +###### fn options.filterValues.FilterValueRange.withGe + +```ts +withGe(value) +``` + +Sets the filter range to values greater than or equal to the given value + +###### fn options.filterValues.FilterValueRange.withLe + +```ts +withLe(value) +``` + +Sets the filter range to values less than or equal to the given value + +#### obj options.legend + + +##### fn options.legend.withShow + +```ts +withShow(value=true) +``` + +Controls if the legend is shown + +#### obj options.rowsFrame + + +##### fn options.rowsFrame.withLayout + +```ts +withLayout(value) +``` + + + +Accepted values for `value` are "le", "ge", "unknown", "auto" + +##### fn options.rowsFrame.withValue + +```ts +withValue(value) +``` + +Sets the name of the cell when not calculating from data + +#### obj options.tooltip + + +##### fn options.tooltip.withShow + +```ts +withShow(value=true) +``` + +Controls if the tooltip is shown + +##### fn options.tooltip.withYHistogram + +```ts +withYHistogram(value=true) +``` + +Controls if the tooltip shows a histogram of the y-axis values + +#### obj options.yAxis + + +##### fn options.yAxis.withAxisCenteredZero + +```ts +withAxisCenteredZero(value=true) +``` + + + +##### fn options.yAxis.withAxisColorMode + +```ts +withAxisColorMode(value) +``` + +TODO docs + +Accepted values for `value` are "text", "series" + +##### fn options.yAxis.withAxisGridShow + +```ts +withAxisGridShow(value=true) +``` + + + +##### fn options.yAxis.withAxisLabel + +```ts +withAxisLabel(value) +``` + + + +##### fn options.yAxis.withAxisPlacement + +```ts +withAxisPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" + +##### fn options.yAxis.withAxisSoftMax + +```ts +withAxisSoftMax(value) +``` + + + +##### fn options.yAxis.withAxisSoftMin + +```ts +withAxisSoftMin(value) +``` + + + +##### fn options.yAxis.withAxisWidth + +```ts +withAxisWidth(value) +``` + + + +##### fn options.yAxis.withDecimals + +```ts +withDecimals(value) +``` + +Controls the number of decimals for yAxis values + +##### fn options.yAxis.withMax + +```ts +withMax(value) +``` + +Sets the maximum value for the yAxis + +##### fn options.yAxis.withMin + +```ts +withMin(value) +``` + +Sets the minimum value for the yAxis + +##### fn options.yAxis.withReverse + +```ts +withReverse(value=true) +``` + +Reverses the yAxis + +##### fn options.yAxis.withScaleDistribution + +```ts +withScaleDistribution(value) +``` + +TODO docs + +##### fn options.yAxis.withScaleDistributionMixin + +```ts +withScaleDistributionMixin(value) +``` + +TODO docs + +##### fn options.yAxis.withUnit + +```ts +withUnit(value) +``` + +Sets the yAxis unit + +##### obj options.yAxis.scaleDistribution + + +###### fn options.yAxis.scaleDistribution.withLinearThreshold + +```ts +withLinearThreshold(value) +``` + + + +###### fn options.yAxis.scaleDistribution.withLog + +```ts +withLog(value) +``` + + + +###### fn options.yAxis.scaleDistribution.withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "log", "ordinal", "symlog" + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/index.md new file mode 100644 index 0000000..aa80fc6 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/index.md @@ -0,0 +1,874 @@ +# histogram + +grafonnet.panel.histogram + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withBucketOffset(value=0)`](#fn-optionswithbucketoffset) + * [`fn withBucketSize(value)`](#fn-optionswithbucketsize) + * [`fn withCombine(value=true)`](#fn-optionswithcombine) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new histogram panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```ts +withAxisCenteredZero(value=true) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```ts +withAxisColorMode(value) +``` + +TODO docs + +Accepted values for `value` are "text", "series" + +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```ts +withAxisGridShow(value=true) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```ts +withAxisLabel(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```ts +withAxisPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" + +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```ts +withAxisSoftMax(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```ts +withAxisSoftMin(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```ts +withAxisWidth(value) +``` + + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```ts +withFillOpacity(value=80) +``` + +Controls the fill opacity of the bars. + +###### fn fieldConfig.defaults.custom.withGradientMode + +```ts +withGradientMode(value) +``` + +Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. +Gradient appearance is influenced by the Fill opacity setting. + +###### fn fieldConfig.defaults.custom.withHideFrom + +```ts +withHideFrom(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```ts +withHideFromMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineWidth + +```ts +withLineWidth(value=1) +``` + +Controls line width of the bars. + +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```ts +withScaleDistribution(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```ts +withScaleDistributionMixin(value) +``` + +TODO docs + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```ts +withLegend(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```ts +withTooltip(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```ts +withViz(value=true) +``` + + + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```ts +withLinearThreshold(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```ts +withLog(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "log", "ordinal", "symlog" + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withBucketOffset + +```ts +withBucketOffset(value=0) +``` + +Offset buckets by this amount + +#### fn options.withBucketSize + +```ts +withBucketSize(value) +``` + +Size of each bucket + +#### fn options.withCombine + +```ts +withCombine(value=true) +``` + +Combines multiple series into a single histogram + +#### fn options.withLegend + +```ts +withLegend(value) +``` + +TODO docs + +#### fn options.withLegendMixin + +```ts +withLegendMixin(value) +``` + +TODO docs + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + +TODO docs + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + +TODO docs + +#### obj options.legend + + +##### fn options.legend.withAsTable + +```ts +withAsTable(value=true) +``` + + + +##### fn options.legend.withCalcs + +```ts +withCalcs(value) +``` + + + +##### fn options.legend.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + + + +##### fn options.legend.withDisplayMode + +```ts +withDisplayMode(value) +``` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility + +Accepted values for `value` are "list", "table", "hidden" + +##### fn options.legend.withIsVisible + +```ts +withIsVisible(value=true) +``` + + + +##### fn options.legend.withPlacement + +```ts +withPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "bottom", "right" + +##### fn options.legend.withShowLegend + +```ts +withShowLegend(value=true) +``` + + + +##### fn options.legend.withSortBy + +```ts +withSortBy(value) +``` + + + +##### fn options.legend.withSortDesc + +```ts +withSortDesc(value=true) +``` + + + +##### fn options.legend.withWidth + +```ts +withWidth(value) +``` + + + +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "single", "multi", "none" + +##### fn options.tooltip.withSort + +```ts +withSort(value) +``` + +TODO docs + +Accepted values for `value` are "asc", "desc", "none" + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/index.md new file mode 100644 index 0000000..be9bac0 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/index.md @@ -0,0 +1,33 @@ +# panel + +grafonnet.panel + +## Subpackages + +* [alertGroups](alertGroups/index.md) +* [annotationsList](annotationsList/index.md) +* [barChart](barChart/index.md) +* [barGauge](barGauge/index.md) +* [candlestick](candlestick/index.md) +* [canvas](canvas/index.md) +* [dashboardList](dashboardList/index.md) +* [datagrid](datagrid/index.md) +* [debug](debug/index.md) +* [gauge](gauge/index.md) +* [geomap](geomap/index.md) +* [heatmap](heatmap/index.md) +* [histogram](histogram/index.md) +* [logs](logs/index.md) +* [news](news/index.md) +* [nodeGraph](nodeGraph/index.md) +* [pieChart](pieChart/index.md) +* [row](row.md) +* [stat](stat/index.md) +* [stateTimeline](stateTimeline/index.md) +* [statusHistory](statusHistory/index.md) +* [table](table/index.md) +* [text](text/index.md) +* [timeSeries](timeSeries/index.md) +* [trend](trend/index.md) +* [xyChart](xyChart/index.md) + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/index.md new file mode 100644 index 0000000..c1ba847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/index.md @@ -0,0 +1,546 @@ +# logs + +grafonnet.panel.logs + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withDedupStrategy(value)`](#fn-optionswithdedupstrategy) + * [`fn withEnableLogDetails(value=true)`](#fn-optionswithenablelogdetails) + * [`fn withPrettifyLogMessage(value=true)`](#fn-optionswithprettifylogmessage) + * [`fn withShowCommonLabels(value=true)`](#fn-optionswithshowcommonlabels) + * [`fn withShowLabels(value=true)`](#fn-optionswithshowlabels) + * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) + * [`fn withSortOrder(value)`](#fn-optionswithsortorder) + * [`fn withWrapLogMessage(value=true)`](#fn-optionswithwraplogmessage) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new logs panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withDedupStrategy + +```ts +withDedupStrategy(value) +``` + + + +Accepted values for `value` are "none", "exact", "numbers", "signature" + +#### fn options.withEnableLogDetails + +```ts +withEnableLogDetails(value=true) +``` + + + +#### fn options.withPrettifyLogMessage + +```ts +withPrettifyLogMessage(value=true) +``` + + + +#### fn options.withShowCommonLabels + +```ts +withShowCommonLabels(value=true) +``` + + + +#### fn options.withShowLabels + +```ts +withShowLabels(value=true) +``` + + + +#### fn options.withShowTime + +```ts +withShowTime(value=true) +``` + + + +#### fn options.withSortOrder + +```ts +withSortOrder(value) +``` + + + +Accepted values for `value` are "Descending", "Ascending" + +#### fn options.withWrapLogMessage + +```ts +withWrapLogMessage(value=true) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/index.md new file mode 100644 index 0000000..30ea93b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/index.md @@ -0,0 +1,488 @@ +# news + +grafonnet.panel.news + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withFeedUrl(value)`](#fn-optionswithfeedurl) + * [`fn withShowImage(value=true)`](#fn-optionswithshowimage) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new news panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withFeedUrl + +```ts +withFeedUrl(value) +``` + +empty/missing will default to grafana blog + +#### fn options.withShowImage + +```ts +withShowImage(value=true) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/index.md new file mode 100644 index 0000000..628eee2 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/index.md @@ -0,0 +1,590 @@ +# nodeGraph + +grafonnet.panel.nodeGraph + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withEdges(value)`](#fn-optionswithedges) + * [`fn withEdgesMixin(value)`](#fn-optionswithedgesmixin) + * [`fn withNodes(value)`](#fn-optionswithnodes) + * [`fn withNodesMixin(value)`](#fn-optionswithnodesmixin) + * [`obj edges`](#obj-optionsedges) + * [`fn withMainStatUnit(value)`](#fn-optionsedgeswithmainstatunit) + * [`fn withSecondaryStatUnit(value)`](#fn-optionsedgeswithsecondarystatunit) + * [`obj nodes`](#obj-optionsnodes) + * [`fn withArcs(value)`](#fn-optionsnodeswitharcs) + * [`fn withArcsMixin(value)`](#fn-optionsnodeswitharcsmixin) + * [`fn withMainStatUnit(value)`](#fn-optionsnodeswithmainstatunit) + * [`fn withSecondaryStatUnit(value)`](#fn-optionsnodeswithsecondarystatunit) + * [`obj arcs`](#obj-optionsnodesarcs) + * [`fn withColor(value)`](#fn-optionsnodesarcswithcolor) + * [`fn withField(value)`](#fn-optionsnodesarcswithfield) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new nodeGraph panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withEdges + +```ts +withEdges(value) +``` + + + +#### fn options.withEdgesMixin + +```ts +withEdgesMixin(value) +``` + + + +#### fn options.withNodes + +```ts +withNodes(value) +``` + + + +#### fn options.withNodesMixin + +```ts +withNodesMixin(value) +``` + + + +#### obj options.edges + + +##### fn options.edges.withMainStatUnit + +```ts +withMainStatUnit(value) +``` + +Unit for the main stat to override what ever is set in the data frame. + +##### fn options.edges.withSecondaryStatUnit + +```ts +withSecondaryStatUnit(value) +``` + +Unit for the secondary stat to override what ever is set in the data frame. + +#### obj options.nodes + + +##### fn options.nodes.withArcs + +```ts +withArcs(value) +``` + +Define which fields are shown as part of the node arc (colored circle around the node). + +##### fn options.nodes.withArcsMixin + +```ts +withArcsMixin(value) +``` + +Define which fields are shown as part of the node arc (colored circle around the node). + +##### fn options.nodes.withMainStatUnit + +```ts +withMainStatUnit(value) +``` + +Unit for the main stat to override what ever is set in the data frame. + +##### fn options.nodes.withSecondaryStatUnit + +```ts +withSecondaryStatUnit(value) +``` + +Unit for the secondary stat to override what ever is set in the data frame. + +##### obj options.nodes.arcs + + +###### fn options.nodes.arcs.withColor + +```ts +withColor(value) +``` + +The color of the arc. + +###### fn options.nodes.arcs.withField + +```ts +withField(value) +``` + +Field from which to get the value. Values should be less than 1, representing fraction of a circle. + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/index.md new file mode 100644 index 0000000..f8c8211 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/index.md @@ -0,0 +1,857 @@ +# pieChart + +grafonnet.panel.pieChart + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withDisplayLabels(value)`](#fn-optionswithdisplaylabels) + * [`fn withDisplayLabelsMixin(value)`](#fn-optionswithdisplaylabelsmixin) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withPieType(value)`](#fn-optionswithpietype) + * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) + * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withValues(value)`](#fn-optionslegendwithvalues) + * [`fn withValuesMixin(value)`](#fn-optionslegendwithvaluesmixin) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj reduceOptions`](#obj-optionsreduceoptions) + * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) + * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) + * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) + * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new pieChart panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withHideFrom + +```ts +withHideFrom(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```ts +withHideFromMixin(value) +``` + +TODO docs + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```ts +withLegend(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```ts +withTooltip(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```ts +withViz(value=true) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withDisplayLabels + +```ts +withDisplayLabels(value) +``` + + + +#### fn options.withDisplayLabelsMixin + +```ts +withDisplayLabelsMixin(value) +``` + + + +#### fn options.withLegend + +```ts +withLegend(value) +``` + + + +#### fn options.withLegendMixin + +```ts +withLegendMixin(value) +``` + + + +#### fn options.withOrientation + +```ts +withOrientation(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "vertical", "horizontal" + +#### fn options.withPieType + +```ts +withPieType(value) +``` + +Select the pie chart display style. + +Accepted values for `value` are "pie", "donut" + +#### fn options.withReduceOptions + +```ts +withReduceOptions(value) +``` + +TODO docs + +#### fn options.withReduceOptionsMixin + +```ts +withReduceOptionsMixin(value) +``` + +TODO docs + +#### fn options.withText + +```ts +withText(value) +``` + +TODO docs + +#### fn options.withTextMixin + +```ts +withTextMixin(value) +``` + +TODO docs + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + +TODO docs + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + +TODO docs + +#### obj options.legend + + +##### fn options.legend.withAsTable + +```ts +withAsTable(value=true) +``` + + + +##### fn options.legend.withCalcs + +```ts +withCalcs(value) +``` + + + +##### fn options.legend.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + + + +##### fn options.legend.withDisplayMode + +```ts +withDisplayMode(value) +``` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility + +Accepted values for `value` are "list", "table", "hidden" + +##### fn options.legend.withIsVisible + +```ts +withIsVisible(value=true) +``` + + + +##### fn options.legend.withPlacement + +```ts +withPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "bottom", "right" + +##### fn options.legend.withShowLegend + +```ts +withShowLegend(value=true) +``` + + + +##### fn options.legend.withSortBy + +```ts +withSortBy(value) +``` + + + +##### fn options.legend.withSortDesc + +```ts +withSortDesc(value=true) +``` + + + +##### fn options.legend.withValues + +```ts +withValues(value) +``` + + + +##### fn options.legend.withValuesMixin + +```ts +withValuesMixin(value) +``` + + + +##### fn options.legend.withWidth + +```ts +withWidth(value) +``` + + + +#### obj options.reduceOptions + + +##### fn options.reduceOptions.withCalcs + +```ts +withCalcs(value) +``` + +When !values, pick one value for the whole field + +##### fn options.reduceOptions.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + +When !values, pick one value for the whole field + +##### fn options.reduceOptions.withFields + +```ts +withFields(value) +``` + +Which fields to show. By default this is only numeric fields + +##### fn options.reduceOptions.withLimit + +```ts +withLimit(value) +``` + +if showing all values limit + +##### fn options.reduceOptions.withValues + +```ts +withValues(value=true) +``` + +If true show each row value + +#### obj options.text + + +##### fn options.text.withTitleSize + +```ts +withTitleSize(value) +``` + +Explicit title text size + +##### fn options.text.withValueSize + +```ts +withValueSize(value) +``` + +Explicit value text size + +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "single", "multi", "none" + +##### fn options.tooltip.withSort + +```ts +withSort(value) +``` + +TODO docs + +Accepted values for `value` are "asc", "desc", "none" + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/row.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/row.md new file mode 100644 index 0000000..27e9188 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/row.md @@ -0,0 +1,187 @@ +# row + +grafonnet.panel.row + +## Index + +* [`fn new(title)`](#fn-new) +* [`fn withCollapsed(value=true)`](#fn-withcollapsed) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withGridPos(value)`](#fn-withgridpos) +* [`fn withGridPosMixin(value)`](#fn-withgridposmixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withPanels(value)`](#fn-withpanels) +* [`fn withPanelsMixin(value)`](#fn-withpanelsmixin) +* [`fn withRepeat(value)`](#fn-withrepeat) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withType()`](#fn-withtype) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new row panel with a title. + +### fn withCollapsed + +```ts +withCollapsed(value=true) +``` + + + +### fn withDatasource + +```ts +withDatasource(value) +``` + +Name of default datasource. + +### fn withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +Name of default datasource. + +### fn withGridPos + +```ts +withGridPos(value) +``` + + + +### fn withGridPosMixin + +```ts +withGridPosMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + + + +### fn withPanels + +```ts +withPanels(value) +``` + + + +### fn withPanelsMixin + +```ts +withPanelsMixin(value) +``` + + + +### fn withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withType + +```ts +withType() +``` + + + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/index.md new file mode 100644 index 0000000..d9759dc --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/index.md @@ -0,0 +1,632 @@ +# stat + +grafonnet.panel.stat + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withColorMode(value)`](#fn-optionswithcolormode) + * [`fn withGraphMode(value)`](#fn-optionswithgraphmode) + * [`fn withJustifyMode(value)`](#fn-optionswithjustifymode) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) + * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`fn withTextMode(value)`](#fn-optionswithtextmode) + * [`obj reduceOptions`](#obj-optionsreduceoptions) + * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) + * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) + * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) + * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new stat panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withColorMode + +```ts +withColorMode(value) +``` + +TODO docs + +Accepted values for `value` are "value", "background", "background_solid", "none" + +#### fn options.withGraphMode + +```ts +withGraphMode(value) +``` + +TODO docs + +Accepted values for `value` are "none", "line", "area" + +#### fn options.withJustifyMode + +```ts +withJustifyMode(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "center" + +#### fn options.withOrientation + +```ts +withOrientation(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "vertical", "horizontal" + +#### fn options.withReduceOptions + +```ts +withReduceOptions(value) +``` + +TODO docs + +#### fn options.withReduceOptionsMixin + +```ts +withReduceOptionsMixin(value) +``` + +TODO docs + +#### fn options.withText + +```ts +withText(value) +``` + +TODO docs + +#### fn options.withTextMixin + +```ts +withTextMixin(value) +``` + +TODO docs + +#### fn options.withTextMode + +```ts +withTextMode(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "value", "value_and_name", "name", "none" + +#### obj options.reduceOptions + + +##### fn options.reduceOptions.withCalcs + +```ts +withCalcs(value) +``` + +When !values, pick one value for the whole field + +##### fn options.reduceOptions.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + +When !values, pick one value for the whole field + +##### fn options.reduceOptions.withFields + +```ts +withFields(value) +``` + +Which fields to show. By default this is only numeric fields + +##### fn options.reduceOptions.withLimit + +```ts +withLimit(value) +``` + +if showing all values limit + +##### fn options.reduceOptions.withValues + +```ts +withValues(value=true) +``` + +If true show each row value + +#### obj options.text + + +##### fn options.text.withTitleSize + +```ts +withTitleSize(value) +``` + +Explicit title text size + +##### fn options.text.withValueSize + +```ts +withValueSize(value) +``` + +Explicit value text size + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/index.md new file mode 100644 index 0000000..b26903c --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/index.md @@ -0,0 +1,764 @@ +# stateTimeline + +grafonnet.panel.stateTimeline + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineWidth(value=0)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withAlignValue(value)`](#fn-optionswithalignvalue) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withMergeValues(value=true)`](#fn-optionswithmergevalues) + * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) + * [`fn withShowValue(value)`](#fn-optionswithshowvalue) + * [`fn withTimezone(value)`](#fn-optionswithtimezone) + * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new stateTimeline panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```ts +withFillOpacity(value=70) +``` + + + +###### fn fieldConfig.defaults.custom.withHideFrom + +```ts +withHideFrom(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```ts +withHideFromMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineWidth + +```ts +withLineWidth(value=0) +``` + + + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```ts +withLegend(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```ts +withTooltip(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```ts +withViz(value=true) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withAlignValue + +```ts +withAlignValue(value) +``` + +Controls value alignment on the timelines + +#### fn options.withLegend + +```ts +withLegend(value) +``` + +TODO docs + +#### fn options.withLegendMixin + +```ts +withLegendMixin(value) +``` + +TODO docs + +#### fn options.withMergeValues + +```ts +withMergeValues(value=true) +``` + +Merge equal consecutive values + +#### fn options.withRowHeight + +```ts +withRowHeight(value=0.9) +``` + +Controls the row height + +#### fn options.withShowValue + +```ts +withShowValue(value) +``` + +Show timeline values on chart + +#### fn options.withTimezone + +```ts +withTimezone(value) +``` + + + +#### fn options.withTimezoneMixin + +```ts +withTimezoneMixin(value) +``` + + + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + +TODO docs + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + +TODO docs + +#### obj options.legend + + +##### fn options.legend.withAsTable + +```ts +withAsTable(value=true) +``` + + + +##### fn options.legend.withCalcs + +```ts +withCalcs(value) +``` + + + +##### fn options.legend.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + + + +##### fn options.legend.withDisplayMode + +```ts +withDisplayMode(value) +``` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility + +Accepted values for `value` are "list", "table", "hidden" + +##### fn options.legend.withIsVisible + +```ts +withIsVisible(value=true) +``` + + + +##### fn options.legend.withPlacement + +```ts +withPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "bottom", "right" + +##### fn options.legend.withShowLegend + +```ts +withShowLegend(value=true) +``` + + + +##### fn options.legend.withSortBy + +```ts +withSortBy(value) +``` + + + +##### fn options.legend.withSortDesc + +```ts +withSortDesc(value=true) +``` + + + +##### fn options.legend.withWidth + +```ts +withWidth(value) +``` + + + +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "single", "multi", "none" + +##### fn options.tooltip.withSort + +```ts +withSort(value) +``` + +TODO docs + +Accepted values for `value` are "asc", "desc", "none" + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/index.md new file mode 100644 index 0000000..296caa8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/index.md @@ -0,0 +1,755 @@ +# statusHistory + +grafonnet.panel.statusHistory + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withColWidth(value=0.9)`](#fn-optionswithcolwidth) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) + * [`fn withShowValue(value)`](#fn-optionswithshowvalue) + * [`fn withTimezone(value)`](#fn-optionswithtimezone) + * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new statusHistory panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```ts +withFillOpacity(value=70) +``` + + + +###### fn fieldConfig.defaults.custom.withHideFrom + +```ts +withHideFrom(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```ts +withHideFromMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineWidth + +```ts +withLineWidth(value=1) +``` + + + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```ts +withLegend(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```ts +withTooltip(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```ts +withViz(value=true) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withColWidth + +```ts +withColWidth(value=0.9) +``` + +Controls the column width + +#### fn options.withLegend + +```ts +withLegend(value) +``` + +TODO docs + +#### fn options.withLegendMixin + +```ts +withLegendMixin(value) +``` + +TODO docs + +#### fn options.withRowHeight + +```ts +withRowHeight(value=0.9) +``` + +Set the height of the rows + +#### fn options.withShowValue + +```ts +withShowValue(value) +``` + +Show values on the columns + +#### fn options.withTimezone + +```ts +withTimezone(value) +``` + + + +#### fn options.withTimezoneMixin + +```ts +withTimezoneMixin(value) +``` + + + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + +TODO docs + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + +TODO docs + +#### obj options.legend + + +##### fn options.legend.withAsTable + +```ts +withAsTable(value=true) +``` + + + +##### fn options.legend.withCalcs + +```ts +withCalcs(value) +``` + + + +##### fn options.legend.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + + + +##### fn options.legend.withDisplayMode + +```ts +withDisplayMode(value) +``` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility + +Accepted values for `value` are "list", "table", "hidden" + +##### fn options.legend.withIsVisible + +```ts +withIsVisible(value=true) +``` + + + +##### fn options.legend.withPlacement + +```ts +withPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "bottom", "right" + +##### fn options.legend.withShowLegend + +```ts +withShowLegend(value=true) +``` + + + +##### fn options.legend.withSortBy + +```ts +withSortBy(value) +``` + + + +##### fn options.legend.withSortDesc + +```ts +withSortDesc(value=true) +``` + + + +##### fn options.legend.withWidth + +```ts +withWidth(value) +``` + + + +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "single", "multi", "none" + +##### fn options.tooltip.withSort + +```ts +withSort(value) +``` + +TODO docs + +Accepted values for `value` are "asc", "desc", "none" + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/index.md new file mode 100644 index 0000000..1ec2b22 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/index.md @@ -0,0 +1,653 @@ +# table + +grafonnet.panel.table + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withCellHeight(value)`](#fn-optionswithcellheight) + * [`fn withFooter(value={"countRows": false,"reducer": [],"show": false})`](#fn-optionswithfooter) + * [`fn withFooterMixin(value={"countRows": false,"reducer": [],"show": false})`](#fn-optionswithfootermixin) + * [`fn withFrameIndex(value=0)`](#fn-optionswithframeindex) + * [`fn withShowHeader(value=true)`](#fn-optionswithshowheader) + * [`fn withShowTypeIcons(value=true)`](#fn-optionswithshowtypeicons) + * [`fn withSortBy(value)`](#fn-optionswithsortby) + * [`fn withSortByMixin(value)`](#fn-optionswithsortbymixin) + * [`obj footer`](#obj-optionsfooter) + * [`fn withTableFooterOptions(value)`](#fn-optionsfooterwithtablefooteroptions) + * [`fn withTableFooterOptionsMixin(value)`](#fn-optionsfooterwithtablefooteroptionsmixin) + * [`obj TableFooterOptions`](#obj-optionsfootertablefooteroptions) + * [`fn withCountRows(value=true)`](#fn-optionsfootertablefooteroptionswithcountrows) + * [`fn withEnablePagination(value=true)`](#fn-optionsfootertablefooteroptionswithenablepagination) + * [`fn withFields(value)`](#fn-optionsfootertablefooteroptionswithfields) + * [`fn withFieldsMixin(value)`](#fn-optionsfootertablefooteroptionswithfieldsmixin) + * [`fn withReducer(value)`](#fn-optionsfootertablefooteroptionswithreducer) + * [`fn withReducerMixin(value)`](#fn-optionsfootertablefooteroptionswithreducermixin) + * [`fn withShow(value=true)`](#fn-optionsfootertablefooteroptionswithshow) + * [`obj sortBy`](#obj-optionssortby) + * [`fn withDesc(value=true)`](#fn-optionssortbywithdesc) + * [`fn withDisplayName(value)`](#fn-optionssortbywithdisplayname) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new table panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withCellHeight + +```ts +withCellHeight(value) +``` + +Controls the height of the rows + +#### fn options.withFooter + +```ts +withFooter(value={"countRows": false,"reducer": [],"show": false}) +``` + +Controls footer options + +#### fn options.withFooterMixin + +```ts +withFooterMixin(value={"countRows": false,"reducer": [],"show": false}) +``` + +Controls footer options + +#### fn options.withFrameIndex + +```ts +withFrameIndex(value=0) +``` + +Represents the index of the selected frame + +#### fn options.withShowHeader + +```ts +withShowHeader(value=true) +``` + +Controls whether the panel should show the header + +#### fn options.withShowTypeIcons + +```ts +withShowTypeIcons(value=true) +``` + +Controls whether the header should show icons for the column types + +#### fn options.withSortBy + +```ts +withSortBy(value) +``` + +Used to control row sorting + +#### fn options.withSortByMixin + +```ts +withSortByMixin(value) +``` + +Used to control row sorting + +#### obj options.footer + + +##### fn options.footer.withTableFooterOptions + +```ts +withTableFooterOptions(value) +``` + +Footer options + +##### fn options.footer.withTableFooterOptionsMixin + +```ts +withTableFooterOptionsMixin(value) +``` + +Footer options + +##### obj options.footer.TableFooterOptions + + +###### fn options.footer.TableFooterOptions.withCountRows + +```ts +withCountRows(value=true) +``` + + + +###### fn options.footer.TableFooterOptions.withEnablePagination + +```ts +withEnablePagination(value=true) +``` + + + +###### fn options.footer.TableFooterOptions.withFields + +```ts +withFields(value) +``` + + + +###### fn options.footer.TableFooterOptions.withFieldsMixin + +```ts +withFieldsMixin(value) +``` + + + +###### fn options.footer.TableFooterOptions.withReducer + +```ts +withReducer(value) +``` + + + +###### fn options.footer.TableFooterOptions.withReducerMixin + +```ts +withReducerMixin(value) +``` + + + +###### fn options.footer.TableFooterOptions.withShow + +```ts +withShow(value=true) +``` + + + +#### obj options.sortBy + + +##### fn options.sortBy.withDesc + +```ts +withDesc(value=true) +``` + +Flag used to indicate descending sort order + +##### fn options.sortBy.withDisplayName + +```ts +withDisplayName(value) +``` + +Sets the display name of the field to sort by + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/index.md new file mode 100644 index 0000000..0c98f46 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/index.md @@ -0,0 +1,541 @@ +# text + +grafonnet.panel.text + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withCode(value)`](#fn-optionswithcode) + * [`fn withCodeMixin(value)`](#fn-optionswithcodemixin) + * [`fn withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)")`](#fn-optionswithcontent) + * [`fn withMode(value)`](#fn-optionswithmode) + * [`obj code`](#obj-optionscode) + * [`fn withLanguage(value="plaintext")`](#fn-optionscodewithlanguage) + * [`fn withShowLineNumbers(value=true)`](#fn-optionscodewithshowlinenumbers) + * [`fn withShowMiniMap(value=true)`](#fn-optionscodewithshowminimap) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new text panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withCode + +```ts +withCode(value) +``` + + + +#### fn options.withCodeMixin + +```ts +withCodeMixin(value) +``` + + + +#### fn options.withContent + +```ts +withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)") +``` + + + +#### fn options.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "html", "markdown", "code" + +#### obj options.code + + +##### fn options.code.withLanguage + +```ts +withLanguage(value="plaintext") +``` + + + +Accepted values for `value` are "plaintext", "yaml", "xml", "typescript", "sql", "go", "markdown", "html", "json" + +##### fn options.code.withShowLineNumbers + +```ts +withShowLineNumbers(value=true) +``` + + + +##### fn options.code.withShowMiniMap + +```ts +withShowMiniMap(value=true) +``` + + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/index.md new file mode 100644 index 0000000..9f9d02e --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/index.md @@ -0,0 +1,1141 @@ +# timeSeries + +grafonnet.panel.timeSeries + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) + * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) + * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) + * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) + * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) + * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) + * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) + * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) + * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) + * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) + * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) + * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) + * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) + * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) + * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) + * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) + * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) + * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) + * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) + * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) + * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) + * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) + * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) + * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) + * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) + * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withTimezone(value)`](#fn-optionswithtimezone) + * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new timeSeries panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```ts +withAxisCenteredZero(value=true) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```ts +withAxisColorMode(value) +``` + +TODO docs + +Accepted values for `value` are "text", "series" + +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```ts +withAxisGridShow(value=true) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```ts +withAxisLabel(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```ts +withAxisPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" + +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```ts +withAxisSoftMax(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```ts +withAxisSoftMin(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```ts +withAxisWidth(value) +``` + + + +###### fn fieldConfig.defaults.custom.withBarAlignment + +```ts +withBarAlignment(value) +``` + +TODO docs + +Accepted values for `value` are -1, 0, 1 + +###### fn fieldConfig.defaults.custom.withBarMaxWidth + +```ts +withBarMaxWidth(value) +``` + + + +###### fn fieldConfig.defaults.custom.withBarWidthFactor + +```ts +withBarWidthFactor(value) +``` + + + +###### fn fieldConfig.defaults.custom.withDrawStyle + +```ts +withDrawStyle(value) +``` + +TODO docs + +Accepted values for `value` are "line", "bars", "points" + +###### fn fieldConfig.defaults.custom.withFillBelowTo + +```ts +withFillBelowTo(value) +``` + + + +###### fn fieldConfig.defaults.custom.withFillColor + +```ts +withFillColor(value) +``` + + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```ts +withFillOpacity(value) +``` + + + +###### fn fieldConfig.defaults.custom.withGradientMode + +```ts +withGradientMode(value) +``` + +TODO docs + +Accepted values for `value` are "none", "opacity", "hue", "scheme" + +###### fn fieldConfig.defaults.custom.withHideFrom + +```ts +withHideFrom(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```ts +withHideFromMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineColor + +```ts +withLineColor(value) +``` + + + +###### fn fieldConfig.defaults.custom.withLineInterpolation + +```ts +withLineInterpolation(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "smooth", "stepBefore", "stepAfter" + +###### fn fieldConfig.defaults.custom.withLineStyle + +```ts +withLineStyle(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineStyleMixin + +```ts +withLineStyleMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineWidth + +```ts +withLineWidth(value) +``` + + + +###### fn fieldConfig.defaults.custom.withPointColor + +```ts +withPointColor(value) +``` + + + +###### fn fieldConfig.defaults.custom.withPointSize + +```ts +withPointSize(value) +``` + + + +###### fn fieldConfig.defaults.custom.withPointSymbol + +```ts +withPointSymbol(value) +``` + + + +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```ts +withScaleDistribution(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```ts +withScaleDistributionMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withShowPoints + +```ts +withShowPoints(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "never", "always" + +###### fn fieldConfig.defaults.custom.withSpanNulls + +```ts +withSpanNulls(value) +``` + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds + +###### fn fieldConfig.defaults.custom.withSpanNullsMixin + +```ts +withSpanNullsMixin(value) +``` + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds + +###### fn fieldConfig.defaults.custom.withStacking + +```ts +withStacking(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withStackingMixin + +```ts +withStackingMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withThresholdsStyle + +```ts +withThresholdsStyle(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin + +```ts +withThresholdsStyleMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withTransform + +```ts +withTransform(value) +``` + +TODO docs + +Accepted values for `value` are "constant", "negative-Y" + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```ts +withLegend(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```ts +withTooltip(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```ts +withViz(value=true) +``` + + + +###### obj fieldConfig.defaults.custom.lineStyle + + +####### fn fieldConfig.defaults.custom.lineStyle.withDash + +```ts +withDash(value) +``` + + + +####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin + +```ts +withDashMixin(value) +``` + + + +####### fn fieldConfig.defaults.custom.lineStyle.withFill + +```ts +withFill(value) +``` + + + +Accepted values for `value` are "solid", "dash", "dot", "square" + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```ts +withLinearThreshold(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```ts +withLog(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "log", "ordinal", "symlog" + +###### obj fieldConfig.defaults.custom.stacking + + +####### fn fieldConfig.defaults.custom.stacking.withGroup + +```ts +withGroup(value) +``` + + + +####### fn fieldConfig.defaults.custom.stacking.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "none", "normal", "percent" + +###### obj fieldConfig.defaults.custom.thresholdsStyle + + +####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "off", "line", "dashed", "area", "line+area", "dashed+area", "series" + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withLegend + +```ts +withLegend(value) +``` + +TODO docs + +#### fn options.withLegendMixin + +```ts +withLegendMixin(value) +``` + +TODO docs + +#### fn options.withTimezone + +```ts +withTimezone(value) +``` + + + +#### fn options.withTimezoneMixin + +```ts +withTimezoneMixin(value) +``` + + + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + +TODO docs + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + +TODO docs + +#### obj options.legend + + +##### fn options.legend.withAsTable + +```ts +withAsTable(value=true) +``` + + + +##### fn options.legend.withCalcs + +```ts +withCalcs(value) +``` + + + +##### fn options.legend.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + + + +##### fn options.legend.withDisplayMode + +```ts +withDisplayMode(value) +``` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility + +Accepted values for `value` are "list", "table", "hidden" + +##### fn options.legend.withIsVisible + +```ts +withIsVisible(value=true) +``` + + + +##### fn options.legend.withPlacement + +```ts +withPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "bottom", "right" + +##### fn options.legend.withShowLegend + +```ts +withShowLegend(value=true) +``` + + + +##### fn options.legend.withSortBy + +```ts +withSortBy(value) +``` + + + +##### fn options.legend.withSortDesc + +```ts +withSortDesc(value=true) +``` + + + +##### fn options.legend.withWidth + +```ts +withWidth(value) +``` + + + +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "single", "multi", "none" + +##### fn options.tooltip.withSort + +```ts +withSort(value) +``` + +TODO docs + +Accepted values for `value` are "asc", "desc", "none" + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/index.md new file mode 100644 index 0000000..a47c1ed --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/index.md @@ -0,0 +1,1132 @@ +# trend + +grafonnet.panel.trend + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) + * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) + * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) + * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) + * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) + * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) + * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) + * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) + * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) + * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) + * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) + * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) + * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) + * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) + * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) + * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) + * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) + * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) + * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) + * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) + * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) + * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) + * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) + * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) + * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) + * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`fn withXField(value)`](#fn-optionswithxfield) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new trend panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```ts +withAxisCenteredZero(value=true) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```ts +withAxisColorMode(value) +``` + +TODO docs + +Accepted values for `value` are "text", "series" + +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```ts +withAxisGridShow(value=true) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```ts +withAxisLabel(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```ts +withAxisPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" + +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```ts +withAxisSoftMax(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```ts +withAxisSoftMin(value) +``` + + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```ts +withAxisWidth(value) +``` + + + +###### fn fieldConfig.defaults.custom.withBarAlignment + +```ts +withBarAlignment(value) +``` + +TODO docs + +Accepted values for `value` are -1, 0, 1 + +###### fn fieldConfig.defaults.custom.withBarMaxWidth + +```ts +withBarMaxWidth(value) +``` + + + +###### fn fieldConfig.defaults.custom.withBarWidthFactor + +```ts +withBarWidthFactor(value) +``` + + + +###### fn fieldConfig.defaults.custom.withDrawStyle + +```ts +withDrawStyle(value) +``` + +TODO docs + +Accepted values for `value` are "line", "bars", "points" + +###### fn fieldConfig.defaults.custom.withFillBelowTo + +```ts +withFillBelowTo(value) +``` + + + +###### fn fieldConfig.defaults.custom.withFillColor + +```ts +withFillColor(value) +``` + + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```ts +withFillOpacity(value) +``` + + + +###### fn fieldConfig.defaults.custom.withGradientMode + +```ts +withGradientMode(value) +``` + +TODO docs + +Accepted values for `value` are "none", "opacity", "hue", "scheme" + +###### fn fieldConfig.defaults.custom.withHideFrom + +```ts +withHideFrom(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```ts +withHideFromMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineColor + +```ts +withLineColor(value) +``` + + + +###### fn fieldConfig.defaults.custom.withLineInterpolation + +```ts +withLineInterpolation(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "smooth", "stepBefore", "stepAfter" + +###### fn fieldConfig.defaults.custom.withLineStyle + +```ts +withLineStyle(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineStyleMixin + +```ts +withLineStyleMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withLineWidth + +```ts +withLineWidth(value) +``` + + + +###### fn fieldConfig.defaults.custom.withPointColor + +```ts +withPointColor(value) +``` + + + +###### fn fieldConfig.defaults.custom.withPointSize + +```ts +withPointSize(value) +``` + + + +###### fn fieldConfig.defaults.custom.withPointSymbol + +```ts +withPointSymbol(value) +``` + + + +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```ts +withScaleDistribution(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```ts +withScaleDistributionMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withShowPoints + +```ts +withShowPoints(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "never", "always" + +###### fn fieldConfig.defaults.custom.withSpanNulls + +```ts +withSpanNulls(value) +``` + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds + +###### fn fieldConfig.defaults.custom.withSpanNullsMixin + +```ts +withSpanNullsMixin(value) +``` + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds + +###### fn fieldConfig.defaults.custom.withStacking + +```ts +withStacking(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withStackingMixin + +```ts +withStackingMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withThresholdsStyle + +```ts +withThresholdsStyle(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin + +```ts +withThresholdsStyleMixin(value) +``` + +TODO docs + +###### fn fieldConfig.defaults.custom.withTransform + +```ts +withTransform(value) +``` + +TODO docs + +Accepted values for `value` are "constant", "negative-Y" + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```ts +withLegend(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```ts +withTooltip(value=true) +``` + + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```ts +withViz(value=true) +``` + + + +###### obj fieldConfig.defaults.custom.lineStyle + + +####### fn fieldConfig.defaults.custom.lineStyle.withDash + +```ts +withDash(value) +``` + + + +####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin + +```ts +withDashMixin(value) +``` + + + +####### fn fieldConfig.defaults.custom.lineStyle.withFill + +```ts +withFill(value) +``` + + + +Accepted values for `value` are "solid", "dash", "dot", "square" + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```ts +withLinearThreshold(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```ts +withLog(value) +``` + + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "log", "ordinal", "symlog" + +###### obj fieldConfig.defaults.custom.stacking + + +####### fn fieldConfig.defaults.custom.stacking.withGroup + +```ts +withGroup(value) +``` + + + +####### fn fieldConfig.defaults.custom.stacking.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "none", "normal", "percent" + +###### obj fieldConfig.defaults.custom.thresholdsStyle + + +####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "off", "line", "dashed", "area", "line+area", "dashed+area", "series" + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withLegend + +```ts +withLegend(value) +``` + +TODO docs + +#### fn options.withLegendMixin + +```ts +withLegendMixin(value) +``` + +TODO docs + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + +TODO docs + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + +TODO docs + +#### fn options.withXField + +```ts +withXField(value) +``` + +Name of the x field to use (defaults to first number) + +#### obj options.legend + + +##### fn options.legend.withAsTable + +```ts +withAsTable(value=true) +``` + + + +##### fn options.legend.withCalcs + +```ts +withCalcs(value) +``` + + + +##### fn options.legend.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + + + +##### fn options.legend.withDisplayMode + +```ts +withDisplayMode(value) +``` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility + +Accepted values for `value` are "list", "table", "hidden" + +##### fn options.legend.withIsVisible + +```ts +withIsVisible(value=true) +``` + + + +##### fn options.legend.withPlacement + +```ts +withPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "bottom", "right" + +##### fn options.legend.withShowLegend + +```ts +withShowLegend(value=true) +``` + + + +##### fn options.legend.withSortBy + +```ts +withSortBy(value) +``` + + + +##### fn options.legend.withSortDesc + +```ts +withSortDesc(value=true) +``` + + + +##### fn options.legend.withWidth + +```ts +withWidth(value) +``` + + + +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "single", "multi", "none" + +##### fn options.tooltip.withSort + +```ts +withSort(value) +``` + +TODO docs + +Accepted values for `value` are "asc", "desc", "none" + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/fieldOverride.md new file mode 100644 index 0000000..3e2667b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/fieldOverride.md @@ -0,0 +1,194 @@ +# fieldOverride + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +fieldOverride.byType.new('number') ++ fieldOverride.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```ts +new(value) +``` + +`new` creates a new override of type `byName`. + +#### fn byName.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byName.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byQuery + + +#### fn byQuery.new + +```ts +new(value) +``` + +`new` creates a new override of type `byQuery`. + +#### fn byQuery.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byQuery.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byRegexp + + +#### fn byRegexp.new + +```ts +new(value) +``` + +`new` creates a new override of type `byRegexp`. + +#### fn byRegexp.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byRegexp.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byType + + +#### fn byType.new + +```ts +new(value) +``` + +`new` creates a new override of type `byType`. + +#### fn byType.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byType.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + + +### obj byValue + + +#### fn byValue.new + +```ts +new(value) +``` + +`new` creates a new override of type `byValue`. + +#### fn byValue.withPropertiesFromOptions + +```ts +withPropertiesFromOptions(options) +``` + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + + +#### fn byValue.withProperty + +```ts +withProperty(id, value) +``` + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/index.md new file mode 100644 index 0000000..6c37d74 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/index.md @@ -0,0 +1,1207 @@ +# xyChart + +grafonnet.panel.xyChart + +## Subpackages + +* [fieldOverride](fieldOverride.md) +* [link](link.md) +* [thresholdStep](thresholdStep.md) +* [transformation](transformation.md) +* [valueMapping](valueMapping.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj gridPos`](#obj-gridpos) + * [`fn withH(value=9)`](#fn-gridposwithh) + * [`fn withStatic(value=true)`](#fn-gridposwithstatic) + * [`fn withW(value=12)`](#fn-gridposwithw) + * [`fn withX(value=0)`](#fn-gridposwithx) + * [`fn withY(value=0)`](#fn-gridposwithy) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withDims(value)`](#fn-optionswithdims) + * [`fn withDimsMixin(value)`](#fn-optionswithdimsmixin) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withSeries(value)`](#fn-optionswithseries) + * [`fn withSeriesMapping(value)`](#fn-optionswithseriesmapping) + * [`fn withSeriesMixin(value)`](#fn-optionswithseriesmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj dims`](#obj-optionsdims) + * [`fn withExclude(value)`](#fn-optionsdimswithexclude) + * [`fn withExcludeMixin(value)`](#fn-optionsdimswithexcludemixin) + * [`fn withFrame(value)`](#fn-optionsdimswithframe) + * [`fn withX(value)`](#fn-optionsdimswithx) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj series`](#obj-optionsseries) + * [`fn withAxisCenteredZero(value=true)`](#fn-optionsserieswithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-optionsserieswithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-optionsserieswithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-optionsserieswithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-optionsserieswithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-optionsserieswithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-optionsserieswithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-optionsserieswithaxiswidth) + * [`fn withHideFrom(value)`](#fn-optionsserieswithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-optionsserieswithhidefrommixin) + * [`fn withLabel(value)`](#fn-optionsserieswithlabel) + * [`fn withLabelValue(value)`](#fn-optionsserieswithlabelvalue) + * [`fn withLabelValueMixin(value)`](#fn-optionsserieswithlabelvaluemixin) + * [`fn withLineColor(value)`](#fn-optionsserieswithlinecolor) + * [`fn withLineColorMixin(value)`](#fn-optionsserieswithlinecolormixin) + * [`fn withLineStyle(value)`](#fn-optionsserieswithlinestyle) + * [`fn withLineStyleMixin(value)`](#fn-optionsserieswithlinestylemixin) + * [`fn withLineWidth(value)`](#fn-optionsserieswithlinewidth) + * [`fn withName(value)`](#fn-optionsserieswithname) + * [`fn withPointColor(value)`](#fn-optionsserieswithpointcolor) + * [`fn withPointColorMixin(value)`](#fn-optionsserieswithpointcolormixin) + * [`fn withPointSize(value)`](#fn-optionsserieswithpointsize) + * [`fn withPointSizeMixin(value)`](#fn-optionsserieswithpointsizemixin) + * [`fn withScaleDistribution(value)`](#fn-optionsserieswithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-optionsserieswithscaledistributionmixin) + * [`fn withShow(value)`](#fn-optionsserieswithshow) + * [`fn withX(value)`](#fn-optionsserieswithx) + * [`fn withY(value)`](#fn-optionsserieswithy) + * [`obj hideFrom`](#obj-optionsserieshidefrom) + * [`fn withLegend(value=true)`](#fn-optionsserieshidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-optionsserieshidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-optionsserieshidefromwithviz) + * [`obj labelValue`](#obj-optionsserieslabelvalue) + * [`fn withField(value)`](#fn-optionsserieslabelvaluewithfield) + * [`fn withFixed(value)`](#fn-optionsserieslabelvaluewithfixed) + * [`fn withMode(value)`](#fn-optionsserieslabelvaluewithmode) + * [`obj lineColor`](#obj-optionsserieslinecolor) + * [`fn withField(value)`](#fn-optionsserieslinecolorwithfield) + * [`fn withFixed(value)`](#fn-optionsserieslinecolorwithfixed) + * [`obj lineStyle`](#obj-optionsserieslinestyle) + * [`fn withDash(value)`](#fn-optionsserieslinestylewithdash) + * [`fn withDashMixin(value)`](#fn-optionsserieslinestylewithdashmixin) + * [`fn withFill(value)`](#fn-optionsserieslinestylewithfill) + * [`obj pointColor`](#obj-optionsseriespointcolor) + * [`fn withField(value)`](#fn-optionsseriespointcolorwithfield) + * [`fn withFixed(value)`](#fn-optionsseriespointcolorwithfixed) + * [`obj pointSize`](#obj-optionsseriespointsize) + * [`fn withField(value)`](#fn-optionsseriespointsizewithfield) + * [`fn withFixed(value)`](#fn-optionsseriespointsizewithfixed) + * [`fn withMax(value)`](#fn-optionsseriespointsizewithmax) + * [`fn withMin(value)`](#fn-optionsseriespointsizewithmin) + * [`fn withMode(value)`](#fn-optionsseriespointsizewithmode) + * [`obj scaleDistribution`](#obj-optionsseriesscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-optionsseriesscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-optionsseriesscaledistributionwithlog) + * [`fn withType(value)`](#fn-optionsseriesscaledistributionwithtype) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```ts +new(title) +``` + +Creates a new xyChart panel with a title. + +### obj datasource + + +#### fn datasource.withType + +```ts +withType(value) +``` + + + +#### fn datasource.withUid + +```ts +withUid(value) +``` + + + +### obj gridPos + + +#### fn gridPos.withH + +```ts +withH(value=9) +``` + +Panel + +#### fn gridPos.withStatic + +```ts +withStatic(value=true) +``` + +true if fixed + +#### fn gridPos.withW + +```ts +withW(value=12) +``` + +Panel + +#### fn gridPos.withX + +```ts +withX(value=0) +``` + +Panel x + +#### fn gridPos.withY + +```ts +withY(value=0) +``` + +Panel y + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```ts +withName(value) +``` + + + +#### fn libraryPanel.withUid + +```ts +withUid(value) +``` + + + +### obj options + + +#### fn options.withDims + +```ts +withDims(value) +``` + + + +#### fn options.withDimsMixin + +```ts +withDimsMixin(value) +``` + + + +#### fn options.withLegend + +```ts +withLegend(value) +``` + +TODO docs + +#### fn options.withLegendMixin + +```ts +withLegendMixin(value) +``` + +TODO docs + +#### fn options.withSeries + +```ts +withSeries(value) +``` + + + +#### fn options.withSeriesMapping + +```ts +withSeriesMapping(value) +``` + + + +Accepted values for `value` are "auto", "manual" + +#### fn options.withSeriesMixin + +```ts +withSeriesMixin(value) +``` + + + +#### fn options.withTooltip + +```ts +withTooltip(value) +``` + +TODO docs + +#### fn options.withTooltipMixin + +```ts +withTooltipMixin(value) +``` + +TODO docs + +#### obj options.dims + + +##### fn options.dims.withExclude + +```ts +withExclude(value) +``` + + + +##### fn options.dims.withExcludeMixin + +```ts +withExcludeMixin(value) +``` + + + +##### fn options.dims.withFrame + +```ts +withFrame(value) +``` + + + +##### fn options.dims.withX + +```ts +withX(value) +``` + + + +#### obj options.legend + + +##### fn options.legend.withAsTable + +```ts +withAsTable(value=true) +``` + + + +##### fn options.legend.withCalcs + +```ts +withCalcs(value) +``` + + + +##### fn options.legend.withCalcsMixin + +```ts +withCalcsMixin(value) +``` + + + +##### fn options.legend.withDisplayMode + +```ts +withDisplayMode(value) +``` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility + +Accepted values for `value` are "list", "table", "hidden" + +##### fn options.legend.withIsVisible + +```ts +withIsVisible(value=true) +``` + + + +##### fn options.legend.withPlacement + +```ts +withPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "bottom", "right" + +##### fn options.legend.withShowLegend + +```ts +withShowLegend(value=true) +``` + + + +##### fn options.legend.withSortBy + +```ts +withSortBy(value) +``` + + + +##### fn options.legend.withSortDesc + +```ts +withSortDesc(value=true) +``` + + + +##### fn options.legend.withWidth + +```ts +withWidth(value) +``` + + + +#### obj options.series + + +##### fn options.series.withAxisCenteredZero + +```ts +withAxisCenteredZero(value=true) +``` + + + +##### fn options.series.withAxisColorMode + +```ts +withAxisColorMode(value) +``` + +TODO docs + +Accepted values for `value` are "text", "series" + +##### fn options.series.withAxisGridShow + +```ts +withAxisGridShow(value=true) +``` + + + +##### fn options.series.withAxisLabel + +```ts +withAxisLabel(value) +``` + + + +##### fn options.series.withAxisPlacement + +```ts +withAxisPlacement(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" + +##### fn options.series.withAxisSoftMax + +```ts +withAxisSoftMax(value) +``` + + + +##### fn options.series.withAxisSoftMin + +```ts +withAxisSoftMin(value) +``` + + + +##### fn options.series.withAxisWidth + +```ts +withAxisWidth(value) +``` + + + +##### fn options.series.withHideFrom + +```ts +withHideFrom(value) +``` + +TODO docs + +##### fn options.series.withHideFromMixin + +```ts +withHideFromMixin(value) +``` + +TODO docs + +##### fn options.series.withLabel + +```ts +withLabel(value) +``` + +TODO docs + +Accepted values for `value` are "auto", "never", "always" + +##### fn options.series.withLabelValue + +```ts +withLabelValue(value) +``` + + + +##### fn options.series.withLabelValueMixin + +```ts +withLabelValueMixin(value) +``` + + + +##### fn options.series.withLineColor + +```ts +withLineColor(value) +``` + + + +##### fn options.series.withLineColorMixin + +```ts +withLineColorMixin(value) +``` + + + +##### fn options.series.withLineStyle + +```ts +withLineStyle(value) +``` + +TODO docs + +##### fn options.series.withLineStyleMixin + +```ts +withLineStyleMixin(value) +``` + +TODO docs + +##### fn options.series.withLineWidth + +```ts +withLineWidth(value) +``` + + + +##### fn options.series.withName + +```ts +withName(value) +``` + + + +##### fn options.series.withPointColor + +```ts +withPointColor(value) +``` + + + +##### fn options.series.withPointColorMixin + +```ts +withPointColorMixin(value) +``` + + + +##### fn options.series.withPointSize + +```ts +withPointSize(value) +``` + + + +##### fn options.series.withPointSizeMixin + +```ts +withPointSizeMixin(value) +``` + + + +##### fn options.series.withScaleDistribution + +```ts +withScaleDistribution(value) +``` + +TODO docs + +##### fn options.series.withScaleDistributionMixin + +```ts +withScaleDistributionMixin(value) +``` + +TODO docs + +##### fn options.series.withShow + +```ts +withShow(value) +``` + + + +Accepted values for `value` are "points", "lines", "points+lines" + +##### fn options.series.withX + +```ts +withX(value) +``` + + + +##### fn options.series.withY + +```ts +withY(value) +``` + + + +##### obj options.series.hideFrom + + +###### fn options.series.hideFrom.withLegend + +```ts +withLegend(value=true) +``` + + + +###### fn options.series.hideFrom.withTooltip + +```ts +withTooltip(value=true) +``` + + + +###### fn options.series.hideFrom.withViz + +```ts +withViz(value=true) +``` + + + +##### obj options.series.labelValue + + +###### fn options.series.labelValue.withField + +```ts +withField(value) +``` + +fixed: T -- will be added by each element + +###### fn options.series.labelValue.withFixed + +```ts +withFixed(value) +``` + + + +###### fn options.series.labelValue.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "fixed", "field", "template" + +##### obj options.series.lineColor + + +###### fn options.series.lineColor.withField + +```ts +withField(value) +``` + +fixed: T -- will be added by each element + +###### fn options.series.lineColor.withFixed + +```ts +withFixed(value) +``` + + + +##### obj options.series.lineStyle + + +###### fn options.series.lineStyle.withDash + +```ts +withDash(value) +``` + + + +###### fn options.series.lineStyle.withDashMixin + +```ts +withDashMixin(value) +``` + + + +###### fn options.series.lineStyle.withFill + +```ts +withFill(value) +``` + + + +Accepted values for `value` are "solid", "dash", "dot", "square" + +##### obj options.series.pointColor + + +###### fn options.series.pointColor.withField + +```ts +withField(value) +``` + +fixed: T -- will be added by each element + +###### fn options.series.pointColor.withFixed + +```ts +withFixed(value) +``` + + + +##### obj options.series.pointSize + + +###### fn options.series.pointSize.withField + +```ts +withField(value) +``` + +fixed: T -- will be added by each element + +###### fn options.series.pointSize.withFixed + +```ts +withFixed(value) +``` + + + +###### fn options.series.pointSize.withMax + +```ts +withMax(value) +``` + + + +###### fn options.series.pointSize.withMin + +```ts +withMin(value) +``` + + + +###### fn options.series.pointSize.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "linear", "quad" + +##### obj options.series.scaleDistribution + + +###### fn options.series.scaleDistribution.withLinearThreshold + +```ts +withLinearThreshold(value) +``` + + + +###### fn options.series.scaleDistribution.withLog + +```ts +withLog(value) +``` + + + +###### fn options.series.scaleDistribution.withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "linear", "log", "ordinal", "symlog" + +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```ts +withMode(value) +``` + +TODO docs + +Accepted values for `value` are "single", "multi", "none" + +##### fn options.tooltip.withSort + +```ts +withSort(value) +``` + +TODO docs + +Accepted values for `value` are "asc", "desc", "none" + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```ts +withDescription(value) +``` + +Description. + +#### fn panelOptions.withLinks + +```ts +withLinks(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +Panel links. +TODO fill this out - seems there are a couple variants? + +#### fn panelOptions.withRepeat + +```ts +withRepeat(value) +``` + +Name of template variable to repeat for. + +#### fn panelOptions.withRepeatDirection + +```ts +withRepeatDirection(value="h") +``` + +Direction to repeat in if 'repeat' is set. +"h" for horizontal, "v" for vertical. +TODO this is probably optional + +Accepted values for `value` are "h", "v" + +#### fn panelOptions.withTitle + +```ts +withTitle(value) +``` + +Panel title. + +#### fn panelOptions.withTransparent + +```ts +withTransparent(value=true) +``` + +Whether to display the panel without a background. + +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```ts +withDatasource(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withDatasourceMixin + +```ts +withDatasourceMixin(value) +``` + +The datasource used in all targets. + +#### fn queryOptions.withInterval + +```ts +withInterval(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withMaxDataPoints + +```ts +withMaxDataPoints(value) +``` + +TODO docs + +#### fn queryOptions.withTargets + +```ts +withTargets(value) +``` + +TODO docs + +#### fn queryOptions.withTargetsMixin + +```ts +withTargetsMixin(value) +``` + +TODO docs + +#### fn queryOptions.withTimeFrom + +```ts +withTimeFrom(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTimeShift + +```ts +withTimeShift(value) +``` + +TODO docs +TODO tighter constraint + +#### fn queryOptions.withTransformations + +```ts +withTransformations(value) +``` + + + +#### fn queryOptions.withTransformationsMixin + +```ts +withTransformationsMixin(value) +``` + + + +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```ts +withDecimals(value) +``` + +Significant digits (for display) + +#### fn standardOptions.withDisplayName + +```ts +withDisplayName(value) +``` + +The display value for this field. This supports template variables blank is auto + +#### fn standardOptions.withLinks + +```ts +withLinks(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withLinksMixin + +```ts +withLinksMixin(value) +``` + +The behavior when clicking on a result + +#### fn standardOptions.withMappings + +```ts +withMappings(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMappingsMixin + +```ts +withMappingsMixin(value) +``` + +Convert input values into a display string + +#### fn standardOptions.withMax + +```ts +withMax(value) +``` + + + +#### fn standardOptions.withMin + +```ts +withMin(value) +``` + + + +#### fn standardOptions.withNoValue + +```ts +withNoValue(value) +``` + +Alternative to empty string + +#### fn standardOptions.withOverrides + +```ts +withOverrides(value) +``` + + + +#### fn standardOptions.withOverridesMixin + +```ts +withOverridesMixin(value) +``` + + + +#### fn standardOptions.withUnit + +```ts +withUnit(value) +``` + +Numeric Options + +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```ts +withFixedColor(value) +``` + +Stores the fixed color value if mode is fixed + +##### fn standardOptions.color.withMode + +```ts +withMode(value) +``` + +The main color scheme mode + +##### fn standardOptions.color.withSeriesBy + +```ts +withSeriesBy(value) +``` + +TODO docs + +Accepted values for `value` are "min", "max", "last" + +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```ts +withMode(value) +``` + + + +Accepted values for `value` are "absolute", "percentage" + +##### fn standardOptions.thresholds.withSteps + +```ts +withSteps(value) +``` + +Must be sorted by 'value', first value is always -Infinity + +##### fn standardOptions.thresholds.withStepsMixin + +```ts +withStepsMixin(value) +``` + +Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/link.md new file mode 100644 index 0000000..b2f02b8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/link.md @@ -0,0 +1,109 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```ts +withAsDropdown(value=true) +``` + + + +### fn withIcon + +```ts +withIcon(value) +``` + + + +### fn withIncludeVars + +```ts +withIncludeVars(value=true) +``` + + + +### fn withKeepTime + +```ts +withKeepTime(value=true) +``` + + + +### fn withTags + +```ts +withTags(value) +``` + + + +### fn withTagsMixin + +```ts +withTagsMixin(value) +``` + + + +### fn withTargetBlank + +```ts +withTargetBlank(value=true) +``` + + + +### fn withTitle + +```ts +withTitle(value) +``` + + + +### fn withTooltip + +```ts +withTooltip(value) +``` + + + +### fn withType + +```ts +withType(value) +``` + +TODO docs + +Accepted values for `value` are "link", "dashboards" + +### fn withUrl + +```ts +withUrl(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/thresholdStep.md new file mode 100644 index 0000000..9d6af42 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/thresholdStep.md @@ -0,0 +1,47 @@ +# thresholdStep + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withIndex(value)`](#fn-withindex) +* [`fn withState(value)`](#fn-withstate) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```ts +withColor(value) +``` + +TODO docs + +### fn withIndex + +```ts +withIndex(value) +``` + +Threshold index, an old property that is not needed an should only appear in older dashboards + +### fn withState + +```ts +withState(value) +``` + +TODO docs +TODO are the values here enumerable into a disjunction? +Some seem to be listed in typescript comment + +### fn withValue + +```ts +withValue(value) +``` + +TODO docs +FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/transformation.md new file mode 100644 index 0000000..f1cc847 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/transformation.md @@ -0,0 +1,76 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + +## Fields + +### fn withDisabled + +```ts +withDisabled(value=true) +``` + +Disabled transformations are skipped + +### fn withFilter + +```ts +withFilter(value) +``` + + + +### fn withFilterMixin + +```ts +withFilterMixin(value) +``` + + + +### fn withId + +```ts +withId(value) +``` + +Unique identifier of transformer + +### fn withOptions + +```ts +withOptions(value) +``` + +Options to be passed to the transformer +Valid options depend on the transformer id + +### obj filter + + +#### fn filter.withId + +```ts +withId(value="") +``` + + + +#### fn filter.withOptions + +```ts +withOptions(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/valueMapping.md new file mode 100644 index 0000000..a6bbdb3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/valueMapping.md @@ -0,0 +1,365 @@ +# valueMapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType(value)`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType(value)`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType(value)`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType(value)`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RangeMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RangeMap.withType + +```ts +withType(value) +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```ts +withFrom(value) +``` + +to and from are `number | null` in current ts, really not sure what to do + +##### fn RangeMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RangeMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### fn RangeMap.options.withTo + +```ts +withTo(value) +``` + + + +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RangeMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RangeMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RangeMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj RegexMap + + +#### fn RegexMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn RegexMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn RegexMap.withType + +```ts +withType(value) +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn RegexMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn RegexMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn RegexMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn RegexMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn RegexMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn SpecialValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn SpecialValueMap.withType + +```ts +withType(value) +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```ts +withMatch(value) +``` + + + +Accepted values for `value` are "true", "false" + +##### fn SpecialValueMap.options.withPattern + +```ts +withPattern(value) +``` + + + +##### fn SpecialValueMap.options.withResult + +```ts +withResult(value) +``` + +TODO docs + +##### fn SpecialValueMap.options.withResultMixin + +```ts +withResultMixin(value) +``` + +TODO docs + +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```ts +withColor(value) +``` + + + +###### fn SpecialValueMap.options.result.withIcon + +```ts +withIcon(value) +``` + + + +###### fn SpecialValueMap.options.result.withIndex + +```ts +withIndex(value) +``` + + + +###### fn SpecialValueMap.options.result.withText + +```ts +withText(value) +``` + + + +### obj ValueMap + + +#### fn ValueMap.withOptions + +```ts +withOptions(value) +``` + + + +#### fn ValueMap.withOptionsMixin + +```ts +withOptionsMixin(value) +``` + + + +#### fn ValueMap.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/playlist.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/playlist.md new file mode 100644 index 0000000..f4b3dba --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/playlist.md @@ -0,0 +1,97 @@ +# playlist + +grafonnet.playlist + +## Index + +* [`fn withInterval(value="5m")`](#fn-withinterval) +* [`fn withItems(value)`](#fn-withitems) +* [`fn withItemsMixin(value)`](#fn-withitemsmixin) +* [`fn withName(value)`](#fn-withname) +* [`fn withUid(value)`](#fn-withuid) +* [`obj items`](#obj-items) + * [`fn withTitle(value)`](#fn-itemswithtitle) + * [`fn withType(value)`](#fn-itemswithtype) + * [`fn withValue(value)`](#fn-itemswithvalue) + +## Fields + +### fn withInterval + +```ts +withInterval(value="5m") +``` + +Interval sets the time between switching views in a playlist. +FIXME: Is this based on a standardized format or what options are available? Can datemath be used? + +### fn withItems + +```ts +withItems(value) +``` + +The ordered list of items that the playlist will iterate over. +FIXME! This should not be optional, but changing it makes the godegen awkward + +### fn withItemsMixin + +```ts +withItemsMixin(value) +``` + +The ordered list of items that the playlist will iterate over. +FIXME! This should not be optional, but changing it makes the godegen awkward + +### fn withName + +```ts +withName(value) +``` + +Name of the playlist. + +### fn withUid + +```ts +withUid(value) +``` + +Unique playlist identifier. Generated on creation, either by the +creator of the playlist of by the application. + +### obj items + + +#### fn items.withTitle + +```ts +withTitle(value) +``` + +Title is an unused property -- it will be removed in the future + +#### fn items.withType + +```ts +withType(value) +``` + +Type of the item. + +Accepted values for `value` are "dashboard_by_uid", "dashboard_by_id", "dashboard_by_tag" + +#### fn items.withValue + +```ts +withValue(value) +``` + +Value depends on type and describes the playlist item. + + - dashboard_by_id: The value is an internal numerical identifier set by Grafana. This + is not portable as the numerical identifier is non-deterministic between different instances. + Will be replaced by dashboard_by_uid in the future. (deprecated) + - dashboard_by_tag: The value is a tag which is set on any number of dashboards. All + dashboards behind the tag will be added to the playlist. + - dashboard_by_uid: The value is the dashboard UID diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/preferences.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/preferences.md new file mode 100644 index 0000000..b1f8ca7 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/preferences.md @@ -0,0 +1,85 @@ +# preferences + +grafonnet.preferences + +## Index + +* [`fn withHomeDashboardUID(value)`](#fn-withhomedashboarduid) +* [`fn withLanguage(value)`](#fn-withlanguage) +* [`fn withQueryHistory(value)`](#fn-withqueryhistory) +* [`fn withQueryHistoryMixin(value)`](#fn-withqueryhistorymixin) +* [`fn withTheme(value)`](#fn-withtheme) +* [`fn withTimezone(value)`](#fn-withtimezone) +* [`fn withWeekStart(value)`](#fn-withweekstart) +* [`obj queryHistory`](#obj-queryhistory) + * [`fn withHomeTab(value)`](#fn-queryhistorywithhometab) + +## Fields + +### fn withHomeDashboardUID + +```ts +withHomeDashboardUID(value) +``` + +UID for the home dashboard + +### fn withLanguage + +```ts +withLanguage(value) +``` + +Selected language (beta) + +### fn withQueryHistory + +```ts +withQueryHistory(value) +``` + + + +### fn withQueryHistoryMixin + +```ts +withQueryHistoryMixin(value) +``` + + + +### fn withTheme + +```ts +withTheme(value) +``` + +light, dark, empty is default + +### fn withTimezone + +```ts +withTimezone(value) +``` + +The timezone selection +TODO: this should use the timezone defined in common + +### fn withWeekStart + +```ts +withWeekStart(value) +``` + +day of the week (sunday, monday, etc) + +### obj queryHistory + + +#### fn queryHistory.withHomeTab + +```ts +withHomeTab(value) +``` + +one of: '' | 'query' | 'starred'; diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/publicdashboard.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/publicdashboard.md new file mode 100644 index 0000000..2356173 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/publicdashboard.md @@ -0,0 +1,62 @@ +# publicdashboard + +grafonnet.publicdashboard + +## Index + +* [`fn withAccessToken(value)`](#fn-withaccesstoken) +* [`fn withAnnotationsEnabled(value=true)`](#fn-withannotationsenabled) +* [`fn withDashboardUid(value)`](#fn-withdashboarduid) +* [`fn withIsEnabled(value=true)`](#fn-withisenabled) +* [`fn withTimeSelectionEnabled(value=true)`](#fn-withtimeselectionenabled) +* [`fn withUid(value)`](#fn-withuid) + +## Fields + +### fn withAccessToken + +```ts +withAccessToken(value) +``` + +Unique public access token + +### fn withAnnotationsEnabled + +```ts +withAnnotationsEnabled(value=true) +``` + +Flag that indicates if annotations are enabled + +### fn withDashboardUid + +```ts +withDashboardUid(value) +``` + +Dashboard unique identifier referenced by this public dashboard + +### fn withIsEnabled + +```ts +withIsEnabled(value=true) +``` + +Flag that indicates if the public dashboard is enabled + +### fn withTimeSelectionEnabled + +```ts +withTimeSelectionEnabled(value=true) +``` + +Flag that indicates if the time range picker is enabled + +### fn withUid + +```ts +withUid(value) +``` + +Unique public dashboard identifier diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/azureMonitor.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/azureMonitor.md new file mode 100644 index 0000000..a65c6d3 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/azureMonitor.md @@ -0,0 +1,1294 @@ +# azureMonitor + +grafonnet.query.azureMonitor + +## Index + +* [`fn withAzureLogAnalytics(value)`](#fn-withazureloganalytics) +* [`fn withAzureLogAnalyticsMixin(value)`](#fn-withazureloganalyticsmixin) +* [`fn withAzureMonitor(value)`](#fn-withazuremonitor) +* [`fn withAzureMonitorMixin(value)`](#fn-withazuremonitormixin) +* [`fn withAzureResourceGraph(value)`](#fn-withazureresourcegraph) +* [`fn withAzureResourceGraphMixin(value)`](#fn-withazureresourcegraphmixin) +* [`fn withAzureTraces(value)`](#fn-withazuretraces) +* [`fn withAzureTracesMixin(value)`](#fn-withazuretracesmixin) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withGrafanaTemplateVariableFn(value)`](#fn-withgrafanatemplatevariablefn) +* [`fn withGrafanaTemplateVariableFnMixin(value)`](#fn-withgrafanatemplatevariablefnmixin) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withNamespace(value)`](#fn-withnamespace) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withRegion(value)`](#fn-withregion) +* [`fn withResource(value)`](#fn-withresource) +* [`fn withResourceGroup(value)`](#fn-withresourcegroup) +* [`fn withSubscription(value)`](#fn-withsubscription) +* [`fn withSubscriptions(value)`](#fn-withsubscriptions) +* [`fn withSubscriptionsMixin(value)`](#fn-withsubscriptionsmixin) +* [`obj azureLogAnalytics`](#obj-azureloganalytics) + * [`fn withQuery(value)`](#fn-azureloganalyticswithquery) + * [`fn withResource(value)`](#fn-azureloganalyticswithresource) + * [`fn withResources(value)`](#fn-azureloganalyticswithresources) + * [`fn withResourcesMixin(value)`](#fn-azureloganalyticswithresourcesmixin) + * [`fn withResultFormat(value)`](#fn-azureloganalyticswithresultformat) + * [`fn withWorkspace(value)`](#fn-azureloganalyticswithworkspace) +* [`obj azureMonitor`](#obj-azuremonitor) + * [`fn withAggregation(value)`](#fn-azuremonitorwithaggregation) + * [`fn withAlias(value)`](#fn-azuremonitorwithalias) + * [`fn withAllowedTimeGrainsMs(value)`](#fn-azuremonitorwithallowedtimegrainsms) + * [`fn withAllowedTimeGrainsMsMixin(value)`](#fn-azuremonitorwithallowedtimegrainsmsmixin) + * [`fn withCustomNamespace(value)`](#fn-azuremonitorwithcustomnamespace) + * [`fn withDimension(value)`](#fn-azuremonitorwithdimension) + * [`fn withDimensionFilter(value)`](#fn-azuremonitorwithdimensionfilter) + * [`fn withDimensionFilters(value)`](#fn-azuremonitorwithdimensionfilters) + * [`fn withDimensionFiltersMixin(value)`](#fn-azuremonitorwithdimensionfiltersmixin) + * [`fn withMetricDefinition(value)`](#fn-azuremonitorwithmetricdefinition) + * [`fn withMetricName(value)`](#fn-azuremonitorwithmetricname) + * [`fn withMetricNamespace(value)`](#fn-azuremonitorwithmetricnamespace) + * [`fn withRegion(value)`](#fn-azuremonitorwithregion) + * [`fn withResourceGroup(value)`](#fn-azuremonitorwithresourcegroup) + * [`fn withResourceName(value)`](#fn-azuremonitorwithresourcename) + * [`fn withResourceUri(value)`](#fn-azuremonitorwithresourceuri) + * [`fn withResources(value)`](#fn-azuremonitorwithresources) + * [`fn withResourcesMixin(value)`](#fn-azuremonitorwithresourcesmixin) + * [`fn withTimeGrain(value)`](#fn-azuremonitorwithtimegrain) + * [`fn withTimeGrainUnit(value)`](#fn-azuremonitorwithtimegrainunit) + * [`fn withTop(value)`](#fn-azuremonitorwithtop) + * [`obj dimensionFilters`](#obj-azuremonitordimensionfilters) + * [`fn withDimension(value)`](#fn-azuremonitordimensionfilterswithdimension) + * [`fn withFilter(value)`](#fn-azuremonitordimensionfilterswithfilter) + * [`fn withFilters(value)`](#fn-azuremonitordimensionfilterswithfilters) + * [`fn withFiltersMixin(value)`](#fn-azuremonitordimensionfilterswithfiltersmixin) + * [`fn withOperator(value)`](#fn-azuremonitordimensionfilterswithoperator) + * [`obj resources`](#obj-azuremonitorresources) + * [`fn withMetricNamespace(value)`](#fn-azuremonitorresourceswithmetricnamespace) + * [`fn withRegion(value)`](#fn-azuremonitorresourceswithregion) + * [`fn withResourceGroup(value)`](#fn-azuremonitorresourceswithresourcegroup) + * [`fn withResourceName(value)`](#fn-azuremonitorresourceswithresourcename) + * [`fn withSubscription(value)`](#fn-azuremonitorresourceswithsubscription) +* [`obj azureResourceGraph`](#obj-azureresourcegraph) + * [`fn withQuery(value)`](#fn-azureresourcegraphwithquery) + * [`fn withResultFormat(value)`](#fn-azureresourcegraphwithresultformat) +* [`obj azureTraces`](#obj-azuretraces) + * [`fn withFilters(value)`](#fn-azuretraceswithfilters) + * [`fn withFiltersMixin(value)`](#fn-azuretraceswithfiltersmixin) + * [`fn withOperationId(value)`](#fn-azuretraceswithoperationid) + * [`fn withQuery(value)`](#fn-azuretraceswithquery) + * [`fn withResources(value)`](#fn-azuretraceswithresources) + * [`fn withResourcesMixin(value)`](#fn-azuretraceswithresourcesmixin) + * [`fn withResultFormat(value)`](#fn-azuretraceswithresultformat) + * [`fn withTraceTypes(value)`](#fn-azuretraceswithtracetypes) + * [`fn withTraceTypesMixin(value)`](#fn-azuretraceswithtracetypesmixin) + * [`obj filters`](#obj-azuretracesfilters) + * [`fn withFilters(value)`](#fn-azuretracesfilterswithfilters) + * [`fn withFiltersMixin(value)`](#fn-azuretracesfilterswithfiltersmixin) + * [`fn withOperation(value)`](#fn-azuretracesfilterswithoperation) + * [`fn withProperty(value)`](#fn-azuretracesfilterswithproperty) +* [`obj grafanaTemplateVariableFn`](#obj-grafanatemplatevariablefn) + * [`fn withAppInsightsGroupByQuery(value)`](#fn-grafanatemplatevariablefnwithappinsightsgroupbyquery) + * [`fn withAppInsightsGroupByQueryMixin(value)`](#fn-grafanatemplatevariablefnwithappinsightsgroupbyquerymixin) + * [`fn withAppInsightsMetricNameQuery(value)`](#fn-grafanatemplatevariablefnwithappinsightsmetricnamequery) + * [`fn withAppInsightsMetricNameQueryMixin(value)`](#fn-grafanatemplatevariablefnwithappinsightsmetricnamequerymixin) + * [`fn withMetricDefinitionsQuery(value)`](#fn-grafanatemplatevariablefnwithmetricdefinitionsquery) + * [`fn withMetricDefinitionsQueryMixin(value)`](#fn-grafanatemplatevariablefnwithmetricdefinitionsquerymixin) + * [`fn withMetricNamesQuery(value)`](#fn-grafanatemplatevariablefnwithmetricnamesquery) + * [`fn withMetricNamesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithmetricnamesquerymixin) + * [`fn withMetricNamespaceQuery(value)`](#fn-grafanatemplatevariablefnwithmetricnamespacequery) + * [`fn withMetricNamespaceQueryMixin(value)`](#fn-grafanatemplatevariablefnwithmetricnamespacequerymixin) + * [`fn withResourceGroupsQuery(value)`](#fn-grafanatemplatevariablefnwithresourcegroupsquery) + * [`fn withResourceGroupsQueryMixin(value)`](#fn-grafanatemplatevariablefnwithresourcegroupsquerymixin) + * [`fn withResourceNamesQuery(value)`](#fn-grafanatemplatevariablefnwithresourcenamesquery) + * [`fn withResourceNamesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithresourcenamesquerymixin) + * [`fn withSubscriptionsQuery(value)`](#fn-grafanatemplatevariablefnwithsubscriptionsquery) + * [`fn withSubscriptionsQueryMixin(value)`](#fn-grafanatemplatevariablefnwithsubscriptionsquerymixin) + * [`fn withUnknownQuery(value)`](#fn-grafanatemplatevariablefnwithunknownquery) + * [`fn withUnknownQueryMixin(value)`](#fn-grafanatemplatevariablefnwithunknownquerymixin) + * [`fn withWorkspacesQuery(value)`](#fn-grafanatemplatevariablefnwithworkspacesquery) + * [`fn withWorkspacesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithworkspacesquerymixin) + * [`obj AppInsightsGroupByQuery`](#obj-grafanatemplatevariablefnappinsightsgroupbyquery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithkind) + * [`fn withMetricName(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithmetricname) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithrawquery) + * [`obj AppInsightsMetricNameQuery`](#obj-grafanatemplatevariablefnappinsightsmetricnamequery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnappinsightsmetricnamequerywithkind) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnappinsightsmetricnamequerywithrawquery) + * [`obj MetricDefinitionsQuery`](#obj-grafanatemplatevariablefnmetricdefinitionsquery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithkind) + * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithmetricnamespace) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithrawquery) + * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithresourcegroup) + * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithresourcename) + * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithsubscription) + * [`obj MetricNamesQuery`](#obj-grafanatemplatevariablefnmetricnamesquery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithkind) + * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithmetricnamespace) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithrawquery) + * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithresourcegroup) + * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithresourcename) + * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithsubscription) + * [`obj MetricNamespaceQuery`](#obj-grafanatemplatevariablefnmetricnamespacequery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithkind) + * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithmetricnamespace) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithrawquery) + * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithresourcegroup) + * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithresourcename) + * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithsubscription) + * [`obj ResourceGroupsQuery`](#obj-grafanatemplatevariablefnresourcegroupsquery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithkind) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithrawquery) + * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithsubscription) + * [`obj ResourceNamesQuery`](#obj-grafanatemplatevariablefnresourcenamesquery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithkind) + * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithmetricnamespace) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithrawquery) + * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithresourcegroup) + * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithsubscription) + * [`obj SubscriptionsQuery`](#obj-grafanatemplatevariablefnsubscriptionsquery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnsubscriptionsquerywithkind) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnsubscriptionsquerywithrawquery) + * [`obj UnknownQuery`](#obj-grafanatemplatevariablefnunknownquery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnunknownquerywithkind) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnunknownquerywithrawquery) + * [`obj WorkspacesQuery`](#obj-grafanatemplatevariablefnworkspacesquery) + * [`fn withKind(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithkind) + * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithrawquery) + * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithsubscription) + +## Fields + +### fn withAzureLogAnalytics + +```ts +withAzureLogAnalytics(value) +``` + +Azure Monitor Logs sub-query properties + +### fn withAzureLogAnalyticsMixin + +```ts +withAzureLogAnalyticsMixin(value) +``` + +Azure Monitor Logs sub-query properties + +### fn withAzureMonitor + +```ts +withAzureMonitor(value) +``` + + + +### fn withAzureMonitorMixin + +```ts +withAzureMonitorMixin(value) +``` + + + +### fn withAzureResourceGraph + +```ts +withAzureResourceGraph(value) +``` + + + +### fn withAzureResourceGraphMixin + +```ts +withAzureResourceGraphMixin(value) +``` + + + +### fn withAzureTraces + +```ts +withAzureTraces(value) +``` + +Application Insights Traces sub-query properties + +### fn withAzureTracesMixin + +```ts +withAzureTracesMixin(value) +``` + +Application Insights Traces sub-query properties + +### fn withDatasource + +```ts +withDatasource(value) +``` + +For mixed data sources the selected datasource is on the query level. +For non mixed scenarios this is undefined. +TODO find a better way to do this ^ that's friendly to schema +TODO this shouldn't be unknown but DataSourceRef | null + +### fn withGrafanaTemplateVariableFn + +```ts +withGrafanaTemplateVariableFn(value) +``` + + + +### fn withGrafanaTemplateVariableFnMixin + +```ts +withGrafanaTemplateVariableFnMixin(value) +``` + + + +### fn withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +### fn withNamespace + +```ts +withNamespace(value) +``` + + + +### fn withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +### fn withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. + +### fn withRegion + +```ts +withRegion(value) +``` + +Azure Monitor query type. +queryType: #AzureQueryType + +### fn withResource + +```ts +withResource(value) +``` + + + +### fn withResourceGroup + +```ts +withResourceGroup(value) +``` + +Template variables params. These exist for backwards compatiblity with legacy template variables. + +### fn withSubscription + +```ts +withSubscription(value) +``` + +Azure subscription containing the resource(s) to be queried. + +### fn withSubscriptions + +```ts +withSubscriptions(value) +``` + +Subscriptions to be queried via Azure Resource Graph. + +### fn withSubscriptionsMixin + +```ts +withSubscriptionsMixin(value) +``` + +Subscriptions to be queried via Azure Resource Graph. + +### obj azureLogAnalytics + + +#### fn azureLogAnalytics.withQuery + +```ts +withQuery(value) +``` + +KQL query to be executed. + +#### fn azureLogAnalytics.withResource + +```ts +withResource(value) +``` + +@deprecated Use resources instead + +#### fn azureLogAnalytics.withResources + +```ts +withResources(value) +``` + +Array of resource URIs to be queried. + +#### fn azureLogAnalytics.withResourcesMixin + +```ts +withResourcesMixin(value) +``` + +Array of resource URIs to be queried. + +#### fn azureLogAnalytics.withResultFormat + +```ts +withResultFormat(value) +``` + + + +Accepted values for `value` are "table", "time_series", "trace" + +#### fn azureLogAnalytics.withWorkspace + +```ts +withWorkspace(value) +``` + +Workspace ID. This was removed in Grafana 8, but remains for backwards compat + +### obj azureMonitor + + +#### fn azureMonitor.withAggregation + +```ts +withAggregation(value) +``` + +The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric. + +#### fn azureMonitor.withAlias + +```ts +withAlias(value) +``` + +Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail. + +#### fn azureMonitor.withAllowedTimeGrainsMs + +```ts +withAllowedTimeGrainsMs(value) +``` + +Time grains that are supported by the metric. + +#### fn azureMonitor.withAllowedTimeGrainsMsMixin + +```ts +withAllowedTimeGrainsMsMixin(value) +``` + +Time grains that are supported by the metric. + +#### fn azureMonitor.withCustomNamespace + +```ts +withCustomNamespace(value) +``` + +Used as the value for the metricNamespace property when it's different from the resource namespace. + +#### fn azureMonitor.withDimension + +```ts +withDimension(value) +``` + +@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration + +#### fn azureMonitor.withDimensionFilter + +```ts +withDimensionFilter(value) +``` + +@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration + +#### fn azureMonitor.withDimensionFilters + +```ts +withDimensionFilters(value) +``` + +Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. + +#### fn azureMonitor.withDimensionFiltersMixin + +```ts +withDimensionFiltersMixin(value) +``` + +Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. + +#### fn azureMonitor.withMetricDefinition + +```ts +withMetricDefinition(value) +``` + +@deprecated Use metricNamespace instead + +#### fn azureMonitor.withMetricName + +```ts +withMetricName(value) +``` + +The metric to query data for within the specified metricNamespace. e.g. UsedCapacity + +#### fn azureMonitor.withMetricNamespace + +```ts +withMetricNamespace(value) +``` + +metricNamespace is used as the resource type (or resource namespace). +It's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts +Kept the name of the variable as metricNamespace to avoid backward incompatibility issues. + +#### fn azureMonitor.withRegion + +```ts +withRegion(value) +``` + +The Azure region containing the resource(s). + +#### fn azureMonitor.withResourceGroup + +```ts +withResourceGroup(value) +``` + +@deprecated Use resources instead + +#### fn azureMonitor.withResourceName + +```ts +withResourceName(value) +``` + +@deprecated Use resources instead + +#### fn azureMonitor.withResourceUri + +```ts +withResourceUri(value) +``` + +@deprecated Use resourceGroup, resourceName and metricNamespace instead + +#### fn azureMonitor.withResources + +```ts +withResources(value) +``` + +Array of resource URIs to be queried. + +#### fn azureMonitor.withResourcesMixin + +```ts +withResourcesMixin(value) +``` + +Array of resource URIs to be queried. + +#### fn azureMonitor.withTimeGrain + +```ts +withTimeGrain(value) +``` + +The granularity of data points to be queried. Defaults to auto. + +#### fn azureMonitor.withTimeGrainUnit + +```ts +withTimeGrainUnit(value) +``` + +@deprecated + +#### fn azureMonitor.withTop + +```ts +withTop(value) +``` + +Maximum number of records to return. Defaults to 10. + +#### obj azureMonitor.dimensionFilters + + +##### fn azureMonitor.dimensionFilters.withDimension + +```ts +withDimension(value) +``` + +Name of Dimension to be filtered on. + +##### fn azureMonitor.dimensionFilters.withFilter + +```ts +withFilter(value) +``` + +@deprecated filter is deprecated in favour of filters to support multiselect. + +##### fn azureMonitor.dimensionFilters.withFilters + +```ts +withFilters(value) +``` + +Values to match with the filter. + +##### fn azureMonitor.dimensionFilters.withFiltersMixin + +```ts +withFiltersMixin(value) +``` + +Values to match with the filter. + +##### fn azureMonitor.dimensionFilters.withOperator + +```ts +withOperator(value) +``` + +String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators. + +#### obj azureMonitor.resources + + +##### fn azureMonitor.resources.withMetricNamespace + +```ts +withMetricNamespace(value) +``` + + + +##### fn azureMonitor.resources.withRegion + +```ts +withRegion(value) +``` + + + +##### fn azureMonitor.resources.withResourceGroup + +```ts +withResourceGroup(value) +``` + + + +##### fn azureMonitor.resources.withResourceName + +```ts +withResourceName(value) +``` + + + +##### fn azureMonitor.resources.withSubscription + +```ts +withSubscription(value) +``` + + + +### obj azureResourceGraph + + +#### fn azureResourceGraph.withQuery + +```ts +withQuery(value) +``` + +Azure Resource Graph KQL query to be executed. + +#### fn azureResourceGraph.withResultFormat + +```ts +withResultFormat(value) +``` + +Specifies the format results should be returned as. Defaults to table. + +### obj azureTraces + + +#### fn azureTraces.withFilters + +```ts +withFilters(value) +``` + +Filters for property values. + +#### fn azureTraces.withFiltersMixin + +```ts +withFiltersMixin(value) +``` + +Filters for property values. + +#### fn azureTraces.withOperationId + +```ts +withOperationId(value) +``` + +Operation ID. Used only for Traces queries. + +#### fn azureTraces.withQuery + +```ts +withQuery(value) +``` + +KQL query to be executed. + +#### fn azureTraces.withResources + +```ts +withResources(value) +``` + +Array of resource URIs to be queried. + +#### fn azureTraces.withResourcesMixin + +```ts +withResourcesMixin(value) +``` + +Array of resource URIs to be queried. + +#### fn azureTraces.withResultFormat + +```ts +withResultFormat(value) +``` + + + +Accepted values for `value` are "table", "time_series", "trace" + +#### fn azureTraces.withTraceTypes + +```ts +withTraceTypes(value) +``` + +Types of events to filter by. + +#### fn azureTraces.withTraceTypesMixin + +```ts +withTraceTypesMixin(value) +``` + +Types of events to filter by. + +#### obj azureTraces.filters + + +##### fn azureTraces.filters.withFilters + +```ts +withFilters(value) +``` + +Values to filter by. + +##### fn azureTraces.filters.withFiltersMixin + +```ts +withFiltersMixin(value) +``` + +Values to filter by. + +##### fn azureTraces.filters.withOperation + +```ts +withOperation(value) +``` + +Comparison operator to use. Either equals or not equals. + +##### fn azureTraces.filters.withProperty + +```ts +withProperty(value) +``` + +Property name, auto-populated based on available traces. + +### obj grafanaTemplateVariableFn + + +#### fn grafanaTemplateVariableFn.withAppInsightsGroupByQuery + +```ts +withAppInsightsGroupByQuery(value) +``` + + + +#### fn grafanaTemplateVariableFn.withAppInsightsGroupByQueryMixin + +```ts +withAppInsightsGroupByQueryMixin(value) +``` + + + +#### fn grafanaTemplateVariableFn.withAppInsightsMetricNameQuery + +```ts +withAppInsightsMetricNameQuery(value) +``` + + + +#### fn grafanaTemplateVariableFn.withAppInsightsMetricNameQueryMixin + +```ts +withAppInsightsMetricNameQueryMixin(value) +``` + + + +#### fn grafanaTemplateVariableFn.withMetricDefinitionsQuery + +```ts +withMetricDefinitionsQuery(value) +``` + +@deprecated Use MetricNamespaceQuery instead + +#### fn grafanaTemplateVariableFn.withMetricDefinitionsQueryMixin + +```ts +withMetricDefinitionsQueryMixin(value) +``` + +@deprecated Use MetricNamespaceQuery instead + +#### fn grafanaTemplateVariableFn.withMetricNamesQuery + +```ts +withMetricNamesQuery(value) +``` + + + +#### fn grafanaTemplateVariableFn.withMetricNamesQueryMixin + +```ts +withMetricNamesQueryMixin(value) +``` + + + +#### fn grafanaTemplateVariableFn.withMetricNamespaceQuery + +```ts +withMetricNamespaceQuery(value) +``` + + + +#### fn grafanaTemplateVariableFn.withMetricNamespaceQueryMixin + +```ts +withMetricNamespaceQueryMixin(value) +``` + + + +#### fn grafanaTemplateVariableFn.withResourceGroupsQuery + +```ts +withResourceGroupsQuery(value) +``` + + + +#### fn grafanaTemplateVariableFn.withResourceGroupsQueryMixin + +```ts +withResourceGroupsQueryMixin(value) +``` + + + +#### fn grafanaTemplateVariableFn.withResourceNamesQuery + +```ts +withResourceNamesQuery(value) +``` + + + +#### fn grafanaTemplateVariableFn.withResourceNamesQueryMixin + +```ts +withResourceNamesQueryMixin(value) +``` + + + +#### fn grafanaTemplateVariableFn.withSubscriptionsQuery + +```ts +withSubscriptionsQuery(value) +``` + + + +#### fn grafanaTemplateVariableFn.withSubscriptionsQueryMixin + +```ts +withSubscriptionsQueryMixin(value) +``` + + + +#### fn grafanaTemplateVariableFn.withUnknownQuery + +```ts +withUnknownQuery(value) +``` + + + +#### fn grafanaTemplateVariableFn.withUnknownQueryMixin + +```ts +withUnknownQueryMixin(value) +``` + + + +#### fn grafanaTemplateVariableFn.withWorkspacesQuery + +```ts +withWorkspacesQuery(value) +``` + + + +#### fn grafanaTemplateVariableFn.withWorkspacesQueryMixin + +```ts +withWorkspacesQueryMixin(value) +``` + + + +#### obj grafanaTemplateVariableFn.AppInsightsGroupByQuery + + +##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "AppInsightsGroupByQuery" + +##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withMetricName + +```ts +withMetricName(value) +``` + + + +##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +#### obj grafanaTemplateVariableFn.AppInsightsMetricNameQuery + + +##### fn grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "AppInsightsMetricNameQuery" + +##### fn grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +#### obj grafanaTemplateVariableFn.MetricDefinitionsQuery + + +##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "MetricDefinitionsQuery" + +##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withMetricNamespace + +```ts +withMetricNamespace(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceGroup + +```ts +withResourceGroup(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceName + +```ts +withResourceName(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withSubscription + +```ts +withSubscription(value) +``` + + + +#### obj grafanaTemplateVariableFn.MetricNamesQuery + + +##### fn grafanaTemplateVariableFn.MetricNamesQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "MetricNamesQuery" + +##### fn grafanaTemplateVariableFn.MetricNamesQuery.withMetricNamespace + +```ts +withMetricNamespace(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricNamesQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricNamesQuery.withResourceGroup + +```ts +withResourceGroup(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricNamesQuery.withResourceName + +```ts +withResourceName(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricNamesQuery.withSubscription + +```ts +withSubscription(value) +``` + + + +#### obj grafanaTemplateVariableFn.MetricNamespaceQuery + + +##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "MetricNamespaceQuery" + +##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withMetricNamespace + +```ts +withMetricNamespace(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceGroup + +```ts +withResourceGroup(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceName + +```ts +withResourceName(value) +``` + + + +##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withSubscription + +```ts +withSubscription(value) +``` + + + +#### obj grafanaTemplateVariableFn.ResourceGroupsQuery + + +##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "ResourceGroupsQuery" + +##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withSubscription + +```ts +withSubscription(value) +``` + + + +#### obj grafanaTemplateVariableFn.ResourceNamesQuery + + +##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "ResourceNamesQuery" + +##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withMetricNamespace + +```ts +withMetricNamespace(value) +``` + + + +##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withResourceGroup + +```ts +withResourceGroup(value) +``` + + + +##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withSubscription + +```ts +withSubscription(value) +``` + + + +#### obj grafanaTemplateVariableFn.SubscriptionsQuery + + +##### fn grafanaTemplateVariableFn.SubscriptionsQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "SubscriptionsQuery" + +##### fn grafanaTemplateVariableFn.SubscriptionsQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +#### obj grafanaTemplateVariableFn.UnknownQuery + + +##### fn grafanaTemplateVariableFn.UnknownQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "UnknownQuery" + +##### fn grafanaTemplateVariableFn.UnknownQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +#### obj grafanaTemplateVariableFn.WorkspacesQuery + + +##### fn grafanaTemplateVariableFn.WorkspacesQuery.withKind + +```ts +withKind(value) +``` + + + +Accepted values for `value` are "WorkspacesQuery" + +##### fn grafanaTemplateVariableFn.WorkspacesQuery.withRawQuery + +```ts +withRawQuery(value) +``` + + + +##### fn grafanaTemplateVariableFn.WorkspacesQuery.withSubscription + +```ts +withSubscription(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/cloudWatch.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/cloudWatch.md new file mode 100644 index 0000000..563cc1a --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/cloudWatch.md @@ -0,0 +1,1082 @@ +# cloudWatch + +grafonnet.query.cloudWatch + +## Index + +* [`obj CloudWatchAnnotationQuery`](#obj-cloudwatchannotationquery) + * [`fn withAccountId(value)`](#fn-cloudwatchannotationquerywithaccountid) + * [`fn withActionPrefix(value)`](#fn-cloudwatchannotationquerywithactionprefix) + * [`fn withAlarmNamePrefix(value)`](#fn-cloudwatchannotationquerywithalarmnameprefix) + * [`fn withDatasource(value)`](#fn-cloudwatchannotationquerywithdatasource) + * [`fn withDimensions(value)`](#fn-cloudwatchannotationquerywithdimensions) + * [`fn withDimensionsMixin(value)`](#fn-cloudwatchannotationquerywithdimensionsmixin) + * [`fn withHide(value=true)`](#fn-cloudwatchannotationquerywithhide) + * [`fn withMatchExact(value=true)`](#fn-cloudwatchannotationquerywithmatchexact) + * [`fn withMetricName(value)`](#fn-cloudwatchannotationquerywithmetricname) + * [`fn withNamespace(value)`](#fn-cloudwatchannotationquerywithnamespace) + * [`fn withPeriod(value)`](#fn-cloudwatchannotationquerywithperiod) + * [`fn withPrefixMatching(value=true)`](#fn-cloudwatchannotationquerywithprefixmatching) + * [`fn withQueryMode(value)`](#fn-cloudwatchannotationquerywithquerymode) + * [`fn withQueryType(value)`](#fn-cloudwatchannotationquerywithquerytype) + * [`fn withRefId(value)`](#fn-cloudwatchannotationquerywithrefid) + * [`fn withRegion(value)`](#fn-cloudwatchannotationquerywithregion) + * [`fn withStatistic(value)`](#fn-cloudwatchannotationquerywithstatistic) + * [`fn withStatistics(value)`](#fn-cloudwatchannotationquerywithstatistics) + * [`fn withStatisticsMixin(value)`](#fn-cloudwatchannotationquerywithstatisticsmixin) +* [`obj CloudWatchLogsQuery`](#obj-cloudwatchlogsquery) + * [`fn withDatasource(value)`](#fn-cloudwatchlogsquerywithdatasource) + * [`fn withExpression(value)`](#fn-cloudwatchlogsquerywithexpression) + * [`fn withHide(value=true)`](#fn-cloudwatchlogsquerywithhide) + * [`fn withId(value)`](#fn-cloudwatchlogsquerywithid) + * [`fn withLogGroupNames(value)`](#fn-cloudwatchlogsquerywithloggroupnames) + * [`fn withLogGroupNamesMixin(value)`](#fn-cloudwatchlogsquerywithloggroupnamesmixin) + * [`fn withLogGroups(value)`](#fn-cloudwatchlogsquerywithloggroups) + * [`fn withLogGroupsMixin(value)`](#fn-cloudwatchlogsquerywithloggroupsmixin) + * [`fn withQueryMode(value)`](#fn-cloudwatchlogsquerywithquerymode) + * [`fn withQueryType(value)`](#fn-cloudwatchlogsquerywithquerytype) + * [`fn withRefId(value)`](#fn-cloudwatchlogsquerywithrefid) + * [`fn withRegion(value)`](#fn-cloudwatchlogsquerywithregion) + * [`fn withStatsGroups(value)`](#fn-cloudwatchlogsquerywithstatsgroups) + * [`fn withStatsGroupsMixin(value)`](#fn-cloudwatchlogsquerywithstatsgroupsmixin) + * [`obj logGroups`](#obj-cloudwatchlogsqueryloggroups) + * [`fn withAccountId(value)`](#fn-cloudwatchlogsqueryloggroupswithaccountid) + * [`fn withAccountLabel(value)`](#fn-cloudwatchlogsqueryloggroupswithaccountlabel) + * [`fn withArn(value)`](#fn-cloudwatchlogsqueryloggroupswitharn) + * [`fn withName(value)`](#fn-cloudwatchlogsqueryloggroupswithname) +* [`obj CloudWatchMetricsQuery`](#obj-cloudwatchmetricsquery) + * [`fn withAccountId(value)`](#fn-cloudwatchmetricsquerywithaccountid) + * [`fn withAlias(value)`](#fn-cloudwatchmetricsquerywithalias) + * [`fn withDatasource(value)`](#fn-cloudwatchmetricsquerywithdatasource) + * [`fn withDimensions(value)`](#fn-cloudwatchmetricsquerywithdimensions) + * [`fn withDimensionsMixin(value)`](#fn-cloudwatchmetricsquerywithdimensionsmixin) + * [`fn withExpression(value)`](#fn-cloudwatchmetricsquerywithexpression) + * [`fn withHide(value=true)`](#fn-cloudwatchmetricsquerywithhide) + * [`fn withId(value)`](#fn-cloudwatchmetricsquerywithid) + * [`fn withLabel(value)`](#fn-cloudwatchmetricsquerywithlabel) + * [`fn withMatchExact(value=true)`](#fn-cloudwatchmetricsquerywithmatchexact) + * [`fn withMetricEditorMode(value)`](#fn-cloudwatchmetricsquerywithmetriceditormode) + * [`fn withMetricName(value)`](#fn-cloudwatchmetricsquerywithmetricname) + * [`fn withMetricQueryType(value)`](#fn-cloudwatchmetricsquerywithmetricquerytype) + * [`fn withNamespace(value)`](#fn-cloudwatchmetricsquerywithnamespace) + * [`fn withPeriod(value)`](#fn-cloudwatchmetricsquerywithperiod) + * [`fn withQueryMode(value)`](#fn-cloudwatchmetricsquerywithquerymode) + * [`fn withQueryType(value)`](#fn-cloudwatchmetricsquerywithquerytype) + * [`fn withRefId(value)`](#fn-cloudwatchmetricsquerywithrefid) + * [`fn withRegion(value)`](#fn-cloudwatchmetricsquerywithregion) + * [`fn withSql(value)`](#fn-cloudwatchmetricsquerywithsql) + * [`fn withSqlExpression(value)`](#fn-cloudwatchmetricsquerywithsqlexpression) + * [`fn withSqlMixin(value)`](#fn-cloudwatchmetricsquerywithsqlmixin) + * [`fn withStatistic(value)`](#fn-cloudwatchmetricsquerywithstatistic) + * [`fn withStatistics(value)`](#fn-cloudwatchmetricsquerywithstatistics) + * [`fn withStatisticsMixin(value)`](#fn-cloudwatchmetricsquerywithstatisticsmixin) + * [`obj sql`](#obj-cloudwatchmetricsquerysql) + * [`fn withFrom(value)`](#fn-cloudwatchmetricsquerysqlwithfrom) + * [`fn withFromMixin(value)`](#fn-cloudwatchmetricsquerysqlwithfrommixin) + * [`fn withGroupBy(value)`](#fn-cloudwatchmetricsquerysqlwithgroupby) + * [`fn withGroupByMixin(value)`](#fn-cloudwatchmetricsquerysqlwithgroupbymixin) + * [`fn withLimit(value)`](#fn-cloudwatchmetricsquerysqlwithlimit) + * [`fn withOrderBy(value)`](#fn-cloudwatchmetricsquerysqlwithorderby) + * [`fn withOrderByDirection(value)`](#fn-cloudwatchmetricsquerysqlwithorderbydirection) + * [`fn withOrderByMixin(value)`](#fn-cloudwatchmetricsquerysqlwithorderbymixin) + * [`fn withSelect(value)`](#fn-cloudwatchmetricsquerysqlwithselect) + * [`fn withSelectMixin(value)`](#fn-cloudwatchmetricsquerysqlwithselectmixin) + * [`fn withWhere(value)`](#fn-cloudwatchmetricsquerysqlwithwhere) + * [`fn withWhereMixin(value)`](#fn-cloudwatchmetricsquerysqlwithwheremixin) + * [`obj from`](#obj-cloudwatchmetricsquerysqlfrom) + * [`fn withQueryEditorFunctionExpression(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorfunctionexpression) + * [`fn withQueryEditorFunctionExpressionMixin(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorfunctionexpressionmixin) + * [`fn withQueryEditorPropertyExpression(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorpropertyexpression) + * [`fn withQueryEditorPropertyExpressionMixin(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorpropertyexpressionmixin) + * [`obj QueryEditorFunctionExpression`](#obj-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpression) + * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithname) + * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithparameters) + * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithparametersmixin) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithtype) + * [`obj parameters`](#obj-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionparameters) + * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionparameterswithname) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionparameterswithtype) + * [`obj QueryEditorPropertyExpression`](#obj-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpression) + * [`fn withProperty(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithproperty) + * [`fn withPropertyMixin(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithpropertymixin) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithtype) + * [`obj property`](#obj-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionproperty) + * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionpropertywithname) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionpropertywithtype) + * [`obj groupBy`](#obj-cloudwatchmetricsquerysqlgroupby) + * [`fn withExpressions(value)`](#fn-cloudwatchmetricsquerysqlgroupbywithexpressions) + * [`fn withExpressionsMixin(value)`](#fn-cloudwatchmetricsquerysqlgroupbywithexpressionsmixin) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlgroupbywithtype) + * [`obj orderBy`](#obj-cloudwatchmetricsquerysqlorderby) + * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlorderbywithname) + * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlorderbywithparameters) + * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlorderbywithparametersmixin) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlorderbywithtype) + * [`obj parameters`](#obj-cloudwatchmetricsquerysqlorderbyparameters) + * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlorderbyparameterswithname) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlorderbyparameterswithtype) + * [`obj select`](#obj-cloudwatchmetricsquerysqlselect) + * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlselectwithname) + * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlselectwithparameters) + * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlselectwithparametersmixin) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlselectwithtype) + * [`obj parameters`](#obj-cloudwatchmetricsquerysqlselectparameters) + * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlselectparameterswithname) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlselectparameterswithtype) + * [`obj where`](#obj-cloudwatchmetricsquerysqlwhere) + * [`fn withExpressions(value)`](#fn-cloudwatchmetricsquerysqlwherewithexpressions) + * [`fn withExpressionsMixin(value)`](#fn-cloudwatchmetricsquerysqlwherewithexpressionsmixin) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlwherewithtype) + +## Fields + +### obj CloudWatchAnnotationQuery + + +#### fn CloudWatchAnnotationQuery.withAccountId + +```ts +withAccountId(value) +``` + +The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. + +#### fn CloudWatchAnnotationQuery.withActionPrefix + +```ts +withActionPrefix(value) +``` + +Use this parameter to filter the results of the operation to only those alarms +that use a certain alarm action. For example, you could specify the ARN of +an SNS topic to find all alarms that send notifications to that topic. +e.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action` +but not match `arn:aws:sns:us-east-1:123456789012:your-app-action` + +#### fn CloudWatchAnnotationQuery.withAlarmNamePrefix + +```ts +withAlarmNamePrefix(value) +``` + +An alarm name prefix. If you specify this parameter, you receive information +about all alarms that have names that start with this prefix. +e.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu` + +#### fn CloudWatchAnnotationQuery.withDatasource + +```ts +withDatasource(value) +``` + +For mixed data sources the selected datasource is on the query level. +For non mixed scenarios this is undefined. +TODO find a better way to do this ^ that's friendly to schema +TODO this shouldn't be unknown but DataSourceRef | null + +#### fn CloudWatchAnnotationQuery.withDimensions + +```ts +withDimensions(value) +``` + +A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. + +#### fn CloudWatchAnnotationQuery.withDimensionsMixin + +```ts +withDimensionsMixin(value) +``` + +A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. + +#### fn CloudWatchAnnotationQuery.withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +#### fn CloudWatchAnnotationQuery.withMatchExact + +```ts +withMatchExact(value=true) +``` + +Only show metrics that exactly match all defined dimension names. + +#### fn CloudWatchAnnotationQuery.withMetricName + +```ts +withMetricName(value) +``` + +Name of the metric + +#### fn CloudWatchAnnotationQuery.withNamespace + +```ts +withNamespace(value) +``` + +A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. + +#### fn CloudWatchAnnotationQuery.withPeriod + +```ts +withPeriod(value) +``` + +The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes + +#### fn CloudWatchAnnotationQuery.withPrefixMatching + +```ts +withPrefixMatching(value=true) +``` + +Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix + +#### fn CloudWatchAnnotationQuery.withQueryMode + +```ts +withQueryMode(value) +``` + + + +Accepted values for `value` are "Metrics", "Logs", "Annotations" + +#### fn CloudWatchAnnotationQuery.withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +#### fn CloudWatchAnnotationQuery.withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. + +#### fn CloudWatchAnnotationQuery.withRegion + +```ts +withRegion(value) +``` + +AWS region to query for the metric + +#### fn CloudWatchAnnotationQuery.withStatistic + +```ts +withStatistic(value) +``` + +Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. + +#### fn CloudWatchAnnotationQuery.withStatistics + +```ts +withStatistics(value) +``` + +@deprecated use statistic + +#### fn CloudWatchAnnotationQuery.withStatisticsMixin + +```ts +withStatisticsMixin(value) +``` + +@deprecated use statistic + +### obj CloudWatchLogsQuery + + +#### fn CloudWatchLogsQuery.withDatasource + +```ts +withDatasource(value) +``` + +For mixed data sources the selected datasource is on the query level. +For non mixed scenarios this is undefined. +TODO find a better way to do this ^ that's friendly to schema +TODO this shouldn't be unknown but DataSourceRef | null + +#### fn CloudWatchLogsQuery.withExpression + +```ts +withExpression(value) +``` + +The CloudWatch Logs Insights query to execute + +#### fn CloudWatchLogsQuery.withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +#### fn CloudWatchLogsQuery.withId + +```ts +withId(value) +``` + + + +#### fn CloudWatchLogsQuery.withLogGroupNames + +```ts +withLogGroupNames(value) +``` + +@deprecated use logGroups + +#### fn CloudWatchLogsQuery.withLogGroupNamesMixin + +```ts +withLogGroupNamesMixin(value) +``` + +@deprecated use logGroups + +#### fn CloudWatchLogsQuery.withLogGroups + +```ts +withLogGroups(value) +``` + +Log groups to query + +#### fn CloudWatchLogsQuery.withLogGroupsMixin + +```ts +withLogGroupsMixin(value) +``` + +Log groups to query + +#### fn CloudWatchLogsQuery.withQueryMode + +```ts +withQueryMode(value) +``` + + + +Accepted values for `value` are "Metrics", "Logs", "Annotations" + +#### fn CloudWatchLogsQuery.withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +#### fn CloudWatchLogsQuery.withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. + +#### fn CloudWatchLogsQuery.withRegion + +```ts +withRegion(value) +``` + +AWS region to query for the logs + +#### fn CloudWatchLogsQuery.withStatsGroups + +```ts +withStatsGroups(value) +``` + +Fields to group the results by, this field is automatically populated whenever the query is updated + +#### fn CloudWatchLogsQuery.withStatsGroupsMixin + +```ts +withStatsGroupsMixin(value) +``` + +Fields to group the results by, this field is automatically populated whenever the query is updated + +#### obj CloudWatchLogsQuery.logGroups + + +##### fn CloudWatchLogsQuery.logGroups.withAccountId + +```ts +withAccountId(value) +``` + +AccountId of the log group + +##### fn CloudWatchLogsQuery.logGroups.withAccountLabel + +```ts +withAccountLabel(value) +``` + +Label of the log group + +##### fn CloudWatchLogsQuery.logGroups.withArn + +```ts +withArn(value) +``` + +ARN of the log group + +##### fn CloudWatchLogsQuery.logGroups.withName + +```ts +withName(value) +``` + +Name of the log group + +### obj CloudWatchMetricsQuery + + +#### fn CloudWatchMetricsQuery.withAccountId + +```ts +withAccountId(value) +``` + +The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. + +#### fn CloudWatchMetricsQuery.withAlias + +```ts +withAlias(value) +``` + +Deprecated: use label +@deprecated use label + +#### fn CloudWatchMetricsQuery.withDatasource + +```ts +withDatasource(value) +``` + +For mixed data sources the selected datasource is on the query level. +For non mixed scenarios this is undefined. +TODO find a better way to do this ^ that's friendly to schema +TODO this shouldn't be unknown but DataSourceRef | null + +#### fn CloudWatchMetricsQuery.withDimensions + +```ts +withDimensions(value) +``` + +A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. + +#### fn CloudWatchMetricsQuery.withDimensionsMixin + +```ts +withDimensionsMixin(value) +``` + +A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. + +#### fn CloudWatchMetricsQuery.withExpression + +```ts +withExpression(value) +``` + +Math expression query + +#### fn CloudWatchMetricsQuery.withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +#### fn CloudWatchMetricsQuery.withId + +```ts +withId(value) +``` + +ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter. + +#### fn CloudWatchMetricsQuery.withLabel + +```ts +withLabel(value) +``` + +Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details. + +#### fn CloudWatchMetricsQuery.withMatchExact + +```ts +withMatchExact(value=true) +``` + +Only show metrics that exactly match all defined dimension names. + +#### fn CloudWatchMetricsQuery.withMetricEditorMode + +```ts +withMetricEditorMode(value) +``` + + + +Accepted values for `value` are 0, 1 + +#### fn CloudWatchMetricsQuery.withMetricName + +```ts +withMetricName(value) +``` + +Name of the metric + +#### fn CloudWatchMetricsQuery.withMetricQueryType + +```ts +withMetricQueryType(value) +``` + + + +Accepted values for `value` are 0, 1 + +#### fn CloudWatchMetricsQuery.withNamespace + +```ts +withNamespace(value) +``` + +A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. + +#### fn CloudWatchMetricsQuery.withPeriod + +```ts +withPeriod(value) +``` + +The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes + +#### fn CloudWatchMetricsQuery.withQueryMode + +```ts +withQueryMode(value) +``` + + + +Accepted values for `value` are "Metrics", "Logs", "Annotations" + +#### fn CloudWatchMetricsQuery.withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +#### fn CloudWatchMetricsQuery.withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. + +#### fn CloudWatchMetricsQuery.withRegion + +```ts +withRegion(value) +``` + +AWS region to query for the metric + +#### fn CloudWatchMetricsQuery.withSql + +```ts +withSql(value) +``` + + + +#### fn CloudWatchMetricsQuery.withSqlExpression + +```ts +withSqlExpression(value) +``` + +When the metric query type is `metricQueryType` is set to `Query`, this field is used to specify the query string. + +#### fn CloudWatchMetricsQuery.withSqlMixin + +```ts +withSqlMixin(value) +``` + + + +#### fn CloudWatchMetricsQuery.withStatistic + +```ts +withStatistic(value) +``` + +Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. + +#### fn CloudWatchMetricsQuery.withStatistics + +```ts +withStatistics(value) +``` + +@deprecated use statistic + +#### fn CloudWatchMetricsQuery.withStatisticsMixin + +```ts +withStatisticsMixin(value) +``` + +@deprecated use statistic + +#### obj CloudWatchMetricsQuery.sql + + +##### fn CloudWatchMetricsQuery.sql.withFrom + +```ts +withFrom(value) +``` + +FROM part of the SQL expression + +##### fn CloudWatchMetricsQuery.sql.withFromMixin + +```ts +withFromMixin(value) +``` + +FROM part of the SQL expression + +##### fn CloudWatchMetricsQuery.sql.withGroupBy + +```ts +withGroupBy(value) +``` + + + +##### fn CloudWatchMetricsQuery.sql.withGroupByMixin + +```ts +withGroupByMixin(value) +``` + + + +##### fn CloudWatchMetricsQuery.sql.withLimit + +```ts +withLimit(value) +``` + +LIMIT part of the SQL expression + +##### fn CloudWatchMetricsQuery.sql.withOrderBy + +```ts +withOrderBy(value) +``` + + + +##### fn CloudWatchMetricsQuery.sql.withOrderByDirection + +```ts +withOrderByDirection(value) +``` + +The sort order of the SQL expression, `ASC` or `DESC` + +##### fn CloudWatchMetricsQuery.sql.withOrderByMixin + +```ts +withOrderByMixin(value) +``` + + + +##### fn CloudWatchMetricsQuery.sql.withSelect + +```ts +withSelect(value) +``` + + + +##### fn CloudWatchMetricsQuery.sql.withSelectMixin + +```ts +withSelectMixin(value) +``` + + + +##### fn CloudWatchMetricsQuery.sql.withWhere + +```ts +withWhere(value) +``` + + + +##### fn CloudWatchMetricsQuery.sql.withWhereMixin + +```ts +withWhereMixin(value) +``` + + + +##### obj CloudWatchMetricsQuery.sql.from + + +###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpression + +```ts +withQueryEditorFunctionExpression(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpressionMixin + +```ts +withQueryEditorFunctionExpressionMixin(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpression + +```ts +withQueryEditorPropertyExpression(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpressionMixin + +```ts +withQueryEditorPropertyExpressionMixin(value) +``` + + + +###### obj CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression + + +####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withName + +```ts +withName(value) +``` + + + +####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParameters + +```ts +withParameters(value) +``` + + + +####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParametersMixin + +```ts +withParametersMixin(value) +``` + + + +####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withType + +```ts +withType(value) +``` + + + +####### obj CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.parameters + + +######## fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.parameters.withName + +```ts +withName(value) +``` + + + +######## fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.parameters.withType + +```ts +withType(value) +``` + + + +###### obj CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression + + +####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withProperty + +```ts +withProperty(value) +``` + + + +####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withPropertyMixin + +```ts +withPropertyMixin(value) +``` + + + +####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withType + +```ts +withType(value) +``` + + + +####### obj CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property + + +######## fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withName + +```ts +withName(value) +``` + + + +######## fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withType + +```ts +withType(value) +``` + + + +Accepted values for `value` are "string" + +##### obj CloudWatchMetricsQuery.sql.groupBy + + +###### fn CloudWatchMetricsQuery.sql.groupBy.withExpressions + +```ts +withExpressions(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.groupBy.withExpressionsMixin + +```ts +withExpressionsMixin(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.groupBy.withType + +```ts +withType(value) +``` + + + +Accepted values for `value` are "and", "or" + +##### obj CloudWatchMetricsQuery.sql.orderBy + + +###### fn CloudWatchMetricsQuery.sql.orderBy.withName + +```ts +withName(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.orderBy.withParameters + +```ts +withParameters(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.orderBy.withParametersMixin + +```ts +withParametersMixin(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.orderBy.withType + +```ts +withType(value) +``` + + + +###### obj CloudWatchMetricsQuery.sql.orderBy.parameters + + +####### fn CloudWatchMetricsQuery.sql.orderBy.parameters.withName + +```ts +withName(value) +``` + + + +####### fn CloudWatchMetricsQuery.sql.orderBy.parameters.withType + +```ts +withType(value) +``` + + + +##### obj CloudWatchMetricsQuery.sql.select + + +###### fn CloudWatchMetricsQuery.sql.select.withName + +```ts +withName(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.select.withParameters + +```ts +withParameters(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.select.withParametersMixin + +```ts +withParametersMixin(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.select.withType + +```ts +withType(value) +``` + + + +###### obj CloudWatchMetricsQuery.sql.select.parameters + + +####### fn CloudWatchMetricsQuery.sql.select.parameters.withName + +```ts +withName(value) +``` + + + +####### fn CloudWatchMetricsQuery.sql.select.parameters.withType + +```ts +withType(value) +``` + + + +##### obj CloudWatchMetricsQuery.sql.where + + +###### fn CloudWatchMetricsQuery.sql.where.withExpressions + +```ts +withExpressions(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.where.withExpressionsMixin + +```ts +withExpressionsMixin(value) +``` + + + +###### fn CloudWatchMetricsQuery.sql.where.withType + +```ts +withType(value) +``` + + + +Accepted values for `value` are "and", "or" diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/elasticsearch.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/elasticsearch.md new file mode 100644 index 0000000..5122e70 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/elasticsearch.md @@ -0,0 +1,2620 @@ +# elasticsearch + +grafonnet.query.elasticsearch + +## Index + +* [`fn withAlias(value)`](#fn-withalias) +* [`fn withBucketAggs(value)`](#fn-withbucketaggs) +* [`fn withBucketAggsMixin(value)`](#fn-withbucketaggsmixin) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withMetrics(value)`](#fn-withmetrics) +* [`fn withMetricsMixin(value)`](#fn-withmetricsmixin) +* [`fn withQuery(value)`](#fn-withquery) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withTimeField(value)`](#fn-withtimefield) +* [`obj bucketAggs`](#obj-bucketaggs) + * [`obj DateHistogram`](#obj-bucketaggsdatehistogram) + * [`fn withField(value)`](#fn-bucketaggsdatehistogramwithfield) + * [`fn withId(value)`](#fn-bucketaggsdatehistogramwithid) + * [`fn withSettings(value)`](#fn-bucketaggsdatehistogramwithsettings) + * [`fn withSettingsMixin(value)`](#fn-bucketaggsdatehistogramwithsettingsmixin) + * [`fn withType(value)`](#fn-bucketaggsdatehistogramwithtype) + * [`obj settings`](#obj-bucketaggsdatehistogramsettings) + * [`fn withInterval(value)`](#fn-bucketaggsdatehistogramsettingswithinterval) + * [`fn withMinDocCount(value)`](#fn-bucketaggsdatehistogramsettingswithmindoccount) + * [`fn withOffset(value)`](#fn-bucketaggsdatehistogramsettingswithoffset) + * [`fn withTimeZone(value)`](#fn-bucketaggsdatehistogramsettingswithtimezone) + * [`fn withTrimEdges(value)`](#fn-bucketaggsdatehistogramsettingswithtrimedges) + * [`obj Filters`](#obj-bucketaggsfilters) + * [`fn withId(value)`](#fn-bucketaggsfilterswithid) + * [`fn withSettings(value)`](#fn-bucketaggsfilterswithsettings) + * [`fn withSettingsMixin(value)`](#fn-bucketaggsfilterswithsettingsmixin) + * [`fn withType(value)`](#fn-bucketaggsfilterswithtype) + * [`obj settings`](#obj-bucketaggsfilterssettings) + * [`fn withFilters(value)`](#fn-bucketaggsfilterssettingswithfilters) + * [`fn withFiltersMixin(value)`](#fn-bucketaggsfilterssettingswithfiltersmixin) + * [`obj filters`](#obj-bucketaggsfilterssettingsfilters) + * [`fn withLabel(value)`](#fn-bucketaggsfilterssettingsfilterswithlabel) + * [`fn withQuery(value)`](#fn-bucketaggsfilterssettingsfilterswithquery) + * [`obj GeoHashGrid`](#obj-bucketaggsgeohashgrid) + * [`fn withField(value)`](#fn-bucketaggsgeohashgridwithfield) + * [`fn withId(value)`](#fn-bucketaggsgeohashgridwithid) + * [`fn withSettings(value)`](#fn-bucketaggsgeohashgridwithsettings) + * [`fn withSettingsMixin(value)`](#fn-bucketaggsgeohashgridwithsettingsmixin) + * [`fn withType(value)`](#fn-bucketaggsgeohashgridwithtype) + * [`obj settings`](#obj-bucketaggsgeohashgridsettings) + * [`fn withPrecision(value)`](#fn-bucketaggsgeohashgridsettingswithprecision) + * [`obj Histogram`](#obj-bucketaggshistogram) + * [`fn withField(value)`](#fn-bucketaggshistogramwithfield) + * [`fn withId(value)`](#fn-bucketaggshistogramwithid) + * [`fn withSettings(value)`](#fn-bucketaggshistogramwithsettings) + * [`fn withSettingsMixin(value)`](#fn-bucketaggshistogramwithsettingsmixin) + * [`fn withType(value)`](#fn-bucketaggshistogramwithtype) + * [`obj settings`](#obj-bucketaggshistogramsettings) + * [`fn withInterval(value)`](#fn-bucketaggshistogramsettingswithinterval) + * [`fn withMinDocCount(value)`](#fn-bucketaggshistogramsettingswithmindoccount) + * [`obj Nested`](#obj-bucketaggsnested) + * [`fn withField(value)`](#fn-bucketaggsnestedwithfield) + * [`fn withId(value)`](#fn-bucketaggsnestedwithid) + * [`fn withSettings(value)`](#fn-bucketaggsnestedwithsettings) + * [`fn withSettingsMixin(value)`](#fn-bucketaggsnestedwithsettingsmixin) + * [`fn withType(value)`](#fn-bucketaggsnestedwithtype) + * [`obj Terms`](#obj-bucketaggsterms) + * [`fn withField(value)`](#fn-bucketaggstermswithfield) + * [`fn withId(value)`](#fn-bucketaggstermswithid) + * [`fn withSettings(value)`](#fn-bucketaggstermswithsettings) + * [`fn withSettingsMixin(value)`](#fn-bucketaggstermswithsettingsmixin) + * [`fn withType(value)`](#fn-bucketaggstermswithtype) + * [`obj settings`](#obj-bucketaggstermssettings) + * [`fn withMinDocCount(value)`](#fn-bucketaggstermssettingswithmindoccount) + * [`fn withMissing(value)`](#fn-bucketaggstermssettingswithmissing) + * [`fn withOrder(value)`](#fn-bucketaggstermssettingswithorder) + * [`fn withOrderBy(value)`](#fn-bucketaggstermssettingswithorderby) + * [`fn withSize(value)`](#fn-bucketaggstermssettingswithsize) +* [`obj metrics`](#obj-metrics) + * [`obj Count`](#obj-metricscount) + * [`fn withHide(value=true)`](#fn-metricscountwithhide) + * [`fn withId(value)`](#fn-metricscountwithid) + * [`fn withType(value)`](#fn-metricscountwithtype) + * [`obj MetricAggregationWithSettings`](#obj-metricsmetricaggregationwithsettings) + * [`obj Average`](#obj-metricsmetricaggregationwithsettingsaverage) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsaveragewithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsaveragesettings) + * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsaveragesettingswithmissing) + * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsaveragesettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsaveragesettingswithscriptmixin) + * [`obj script`](#obj-metricsmetricaggregationwithsettingsaveragesettingsscript) + * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsaveragesettingsscriptwithinline) + * [`obj BucketScript`](#obj-metricsmetricaggregationwithsettingsbucketscript) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithid) + * [`fn withPipelineVariables(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithpipelinevariables) + * [`fn withPipelineVariablesMixin(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithpipelinevariablesmixin) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithtype) + * [`obj pipelineVariables`](#obj-metricsmetricaggregationwithsettingsbucketscriptpipelinevariables) + * [`fn withName(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptpipelinevariableswithname) + * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptpipelinevariableswithpipelineagg) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsbucketscriptsettings) + * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptsettingswithscriptmixin) + * [`obj script`](#obj-metricsmetricaggregationwithsettingsbucketscriptsettingsscript) + * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptsettingsscriptwithinline) + * [`obj CumulativeSum`](#obj-metricsmetricaggregationwithsettingscumulativesum) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithid) + * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithpipelineagg) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingscumulativesumsettings) + * [`fn withFormat(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumsettingswithformat) + * [`obj Derivative`](#obj-metricsmetricaggregationwithsettingsderivative) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsderivativewithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithid) + * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithpipelineagg) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsderivativesettings) + * [`fn withUnit(value)`](#fn-metricsmetricaggregationwithsettingsderivativesettingswithunit) + * [`obj ExtendedStats`](#obj-metricsmetricaggregationwithsettingsextendedstats) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithid) + * [`fn withMeta(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithmeta) + * [`fn withMetaMixin(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithmetamixin) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsextendedstatssettings) + * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingswithmissing) + * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingswithscriptmixin) + * [`fn withSigma(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingswithsigma) + * [`obj script`](#obj-metricsmetricaggregationwithsettingsextendedstatssettingsscript) + * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingsscriptwithinline) + * [`obj Logs`](#obj-metricsmetricaggregationwithsettingslogs) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingslogswithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingslogswithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingslogswithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingslogswithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingslogswithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingslogssettings) + * [`fn withLimit(value)`](#fn-metricsmetricaggregationwithsettingslogssettingswithlimit) + * [`obj Max`](#obj-metricsmetricaggregationwithsettingsmax) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsmaxwithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsmaxsettings) + * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsmaxsettingswithmissing) + * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsmaxsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsmaxsettingswithscriptmixin) + * [`obj script`](#obj-metricsmetricaggregationwithsettingsmaxsettingsscript) + * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsmaxsettingsscriptwithinline) + * [`obj Min`](#obj-metricsmetricaggregationwithsettingsmin) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsminwithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsminwithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsminwithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsminwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsminwithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsminwithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsminsettings) + * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsminsettingswithmissing) + * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsminsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsminsettingswithscriptmixin) + * [`obj script`](#obj-metricsmetricaggregationwithsettingsminsettingsscript) + * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsminsettingsscriptwithinline) + * [`obj MovingAverage`](#obj-metricsmetricaggregationwithsettingsmovingaverage) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithid) + * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithpipelineagg) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithtype) + * [`obj MovingFunction`](#obj-metricsmetricaggregationwithsettingsmovingfunction) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithid) + * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithpipelineagg) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsmovingfunctionsettings) + * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingswithscriptmixin) + * [`fn withShift(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingswithshift) + * [`fn withWindow(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingswithwindow) + * [`obj script`](#obj-metricsmetricaggregationwithsettingsmovingfunctionsettingsscript) + * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingsscriptwithinline) + * [`obj Percentiles`](#obj-metricsmetricaggregationwithsettingspercentiles) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingspercentileswithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingspercentilessettings) + * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithmissing) + * [`fn withPercents(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithpercents) + * [`fn withPercentsMixin(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithpercentsmixin) + * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithscriptmixin) + * [`obj script`](#obj-metricsmetricaggregationwithsettingspercentilessettingsscript) + * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingsscriptwithinline) + * [`obj Rate`](#obj-metricsmetricaggregationwithsettingsrate) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsratewithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsratewithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsratewithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsratewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsratewithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsratewithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsratesettings) + * [`fn withMode(value)`](#fn-metricsmetricaggregationwithsettingsratesettingswithmode) + * [`fn withUnit(value)`](#fn-metricsmetricaggregationwithsettingsratesettingswithunit) + * [`obj RawData`](#obj-metricsmetricaggregationwithsettingsrawdata) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsrawdatawithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsrawdatawithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsrawdatawithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsrawdatawithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsrawdatawithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsrawdatasettings) + * [`fn withSize(value)`](#fn-metricsmetricaggregationwithsettingsrawdatasettingswithsize) + * [`obj RawDocument`](#obj-metricsmetricaggregationwithsettingsrawdocument) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsrawdocumentsettings) + * [`fn withSize(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentsettingswithsize) + * [`obj SerialDiff`](#obj-metricsmetricaggregationwithsettingsserialdiff) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithid) + * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithpipelineagg) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsserialdiffsettings) + * [`fn withLag(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffsettingswithlag) + * [`obj Sum`](#obj-metricsmetricaggregationwithsettingssum) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingssumwithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingssumwithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingssumwithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingssumwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingssumwithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingssumwithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingssumsettings) + * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingssumsettingswithmissing) + * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingssumsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingssumsettingswithscriptmixin) + * [`obj script`](#obj-metricsmetricaggregationwithsettingssumsettingsscript) + * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingssumsettingsscriptwithinline) + * [`obj TopMetrics`](#obj-metricsmetricaggregationwithsettingstopmetrics) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingstopmetricswithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingstopmetricswithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingstopmetricswithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingstopmetricswithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingstopmetricswithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingstopmetricssettings) + * [`fn withMetrics(value)`](#fn-metricsmetricaggregationwithsettingstopmetricssettingswithmetrics) + * [`fn withMetricsMixin(value)`](#fn-metricsmetricaggregationwithsettingstopmetricssettingswithmetricsmixin) + * [`fn withOrder(value)`](#fn-metricsmetricaggregationwithsettingstopmetricssettingswithorder) + * [`fn withOrderBy(value)`](#fn-metricsmetricaggregationwithsettingstopmetricssettingswithorderby) + * [`obj UniqueCount`](#obj-metricsmetricaggregationwithsettingsuniquecount) + * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithfield) + * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithhide) + * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithid) + * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithsettingsmixin) + * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithtype) + * [`obj settings`](#obj-metricsmetricaggregationwithsettingsuniquecountsettings) + * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountsettingswithmissing) + * [`fn withPrecisionThreshold(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountsettingswithprecisionthreshold) + * [`obj PipelineMetricAggregation`](#obj-metricspipelinemetricaggregation) + * [`obj BucketScript`](#obj-metricspipelinemetricaggregationbucketscript) + * [`fn withHide(value=true)`](#fn-metricspipelinemetricaggregationbucketscriptwithhide) + * [`fn withId(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithid) + * [`fn withPipelineVariables(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithpipelinevariables) + * [`fn withPipelineVariablesMixin(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithpipelinevariablesmixin) + * [`fn withSettings(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithsettingsmixin) + * [`fn withType(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithtype) + * [`obj pipelineVariables`](#obj-metricspipelinemetricaggregationbucketscriptpipelinevariables) + * [`fn withName(value)`](#fn-metricspipelinemetricaggregationbucketscriptpipelinevariableswithname) + * [`fn withPipelineAgg(value)`](#fn-metricspipelinemetricaggregationbucketscriptpipelinevariableswithpipelineagg) + * [`obj settings`](#obj-metricspipelinemetricaggregationbucketscriptsettings) + * [`fn withScript(value)`](#fn-metricspipelinemetricaggregationbucketscriptsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricspipelinemetricaggregationbucketscriptsettingswithscriptmixin) + * [`obj script`](#obj-metricspipelinemetricaggregationbucketscriptsettingsscript) + * [`fn withInline(value)`](#fn-metricspipelinemetricaggregationbucketscriptsettingsscriptwithinline) + * [`obj CumulativeSum`](#obj-metricspipelinemetricaggregationcumulativesum) + * [`fn withField(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithfield) + * [`fn withHide(value=true)`](#fn-metricspipelinemetricaggregationcumulativesumwithhide) + * [`fn withId(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithid) + * [`fn withPipelineAgg(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithpipelineagg) + * [`fn withSettings(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithsettingsmixin) + * [`fn withType(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithtype) + * [`obj settings`](#obj-metricspipelinemetricaggregationcumulativesumsettings) + * [`fn withFormat(value)`](#fn-metricspipelinemetricaggregationcumulativesumsettingswithformat) + * [`obj Derivative`](#obj-metricspipelinemetricaggregationderivative) + * [`fn withField(value)`](#fn-metricspipelinemetricaggregationderivativewithfield) + * [`fn withHide(value=true)`](#fn-metricspipelinemetricaggregationderivativewithhide) + * [`fn withId(value)`](#fn-metricspipelinemetricaggregationderivativewithid) + * [`fn withPipelineAgg(value)`](#fn-metricspipelinemetricaggregationderivativewithpipelineagg) + * [`fn withSettings(value)`](#fn-metricspipelinemetricaggregationderivativewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricspipelinemetricaggregationderivativewithsettingsmixin) + * [`fn withType(value)`](#fn-metricspipelinemetricaggregationderivativewithtype) + * [`obj settings`](#obj-metricspipelinemetricaggregationderivativesettings) + * [`fn withUnit(value)`](#fn-metricspipelinemetricaggregationderivativesettingswithunit) + * [`obj MovingAverage`](#obj-metricspipelinemetricaggregationmovingaverage) + * [`fn withField(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithfield) + * [`fn withHide(value=true)`](#fn-metricspipelinemetricaggregationmovingaveragewithhide) + * [`fn withId(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithid) + * [`fn withPipelineAgg(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithpipelineagg) + * [`fn withSettings(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithsettingsmixin) + * [`fn withType(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithtype) + +## Fields + +### fn withAlias + +```ts +withAlias(value) +``` + +Alias pattern + +### fn withBucketAggs + +```ts +withBucketAggs(value) +``` + +List of bucket aggregations + +### fn withBucketAggsMixin + +```ts +withBucketAggsMixin(value) +``` + +List of bucket aggregations + +### fn withDatasource + +```ts +withDatasource(value) +``` + +For mixed data sources the selected datasource is on the query level. +For non mixed scenarios this is undefined. +TODO find a better way to do this ^ that's friendly to schema +TODO this shouldn't be unknown but DataSourceRef | null + +### fn withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +### fn withMetrics + +```ts +withMetrics(value) +``` + +List of metric aggregations + +### fn withMetricsMixin + +```ts +withMetricsMixin(value) +``` + +List of metric aggregations + +### fn withQuery + +```ts +withQuery(value) +``` + +Lucene query + +### fn withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +### fn withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. + +### fn withTimeField + +```ts +withTimeField(value) +``` + +Name of time field + +### obj bucketAggs + + +#### obj bucketAggs.DateHistogram + + +##### fn bucketAggs.DateHistogram.withField + +```ts +withField(value) +``` + + + +##### fn bucketAggs.DateHistogram.withId + +```ts +withId(value) +``` + + + +##### fn bucketAggs.DateHistogram.withSettings + +```ts +withSettings(value) +``` + + + +##### fn bucketAggs.DateHistogram.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +##### fn bucketAggs.DateHistogram.withType + +```ts +withType(value) +``` + + + +##### obj bucketAggs.DateHistogram.settings + + +###### fn bucketAggs.DateHistogram.settings.withInterval + +```ts +withInterval(value) +``` + + + +###### fn bucketAggs.DateHistogram.settings.withMinDocCount + +```ts +withMinDocCount(value) +``` + + + +###### fn bucketAggs.DateHistogram.settings.withOffset + +```ts +withOffset(value) +``` + + + +###### fn bucketAggs.DateHistogram.settings.withTimeZone + +```ts +withTimeZone(value) +``` + + + +###### fn bucketAggs.DateHistogram.settings.withTrimEdges + +```ts +withTrimEdges(value) +``` + + + +#### obj bucketAggs.Filters + + +##### fn bucketAggs.Filters.withId + +```ts +withId(value) +``` + + + +##### fn bucketAggs.Filters.withSettings + +```ts +withSettings(value) +``` + + + +##### fn bucketAggs.Filters.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +##### fn bucketAggs.Filters.withType + +```ts +withType(value) +``` + + + +##### obj bucketAggs.Filters.settings + + +###### fn bucketAggs.Filters.settings.withFilters + +```ts +withFilters(value) +``` + + + +###### fn bucketAggs.Filters.settings.withFiltersMixin + +```ts +withFiltersMixin(value) +``` + + + +###### obj bucketAggs.Filters.settings.filters + + +####### fn bucketAggs.Filters.settings.filters.withLabel + +```ts +withLabel(value) +``` + + + +####### fn bucketAggs.Filters.settings.filters.withQuery + +```ts +withQuery(value) +``` + + + +#### obj bucketAggs.GeoHashGrid + + +##### fn bucketAggs.GeoHashGrid.withField + +```ts +withField(value) +``` + + + +##### fn bucketAggs.GeoHashGrid.withId + +```ts +withId(value) +``` + + + +##### fn bucketAggs.GeoHashGrid.withSettings + +```ts +withSettings(value) +``` + + + +##### fn bucketAggs.GeoHashGrid.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +##### fn bucketAggs.GeoHashGrid.withType + +```ts +withType(value) +``` + + + +##### obj bucketAggs.GeoHashGrid.settings + + +###### fn bucketAggs.GeoHashGrid.settings.withPrecision + +```ts +withPrecision(value) +``` + + + +#### obj bucketAggs.Histogram + + +##### fn bucketAggs.Histogram.withField + +```ts +withField(value) +``` + + + +##### fn bucketAggs.Histogram.withId + +```ts +withId(value) +``` + + + +##### fn bucketAggs.Histogram.withSettings + +```ts +withSettings(value) +``` + + + +##### fn bucketAggs.Histogram.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +##### fn bucketAggs.Histogram.withType + +```ts +withType(value) +``` + + + +##### obj bucketAggs.Histogram.settings + + +###### fn bucketAggs.Histogram.settings.withInterval + +```ts +withInterval(value) +``` + + + +###### fn bucketAggs.Histogram.settings.withMinDocCount + +```ts +withMinDocCount(value) +``` + + + +#### obj bucketAggs.Nested + + +##### fn bucketAggs.Nested.withField + +```ts +withField(value) +``` + + + +##### fn bucketAggs.Nested.withId + +```ts +withId(value) +``` + + + +##### fn bucketAggs.Nested.withSettings + +```ts +withSettings(value) +``` + + + +##### fn bucketAggs.Nested.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +##### fn bucketAggs.Nested.withType + +```ts +withType(value) +``` + + + +#### obj bucketAggs.Terms + + +##### fn bucketAggs.Terms.withField + +```ts +withField(value) +``` + + + +##### fn bucketAggs.Terms.withId + +```ts +withId(value) +``` + + + +##### fn bucketAggs.Terms.withSettings + +```ts +withSettings(value) +``` + + + +##### fn bucketAggs.Terms.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +##### fn bucketAggs.Terms.withType + +```ts +withType(value) +``` + + + +##### obj bucketAggs.Terms.settings + + +###### fn bucketAggs.Terms.settings.withMinDocCount + +```ts +withMinDocCount(value) +``` + + + +###### fn bucketAggs.Terms.settings.withMissing + +```ts +withMissing(value) +``` + + + +###### fn bucketAggs.Terms.settings.withOrder + +```ts +withOrder(value) +``` + + + +Accepted values for `value` are "desc", "asc" + +###### fn bucketAggs.Terms.settings.withOrderBy + +```ts +withOrderBy(value) +``` + + + +###### fn bucketAggs.Terms.settings.withSize + +```ts +withSize(value) +``` + + + +### obj metrics + + +#### obj metrics.Count + + +##### fn metrics.Count.withHide + +```ts +withHide(value=true) +``` + + + +##### fn metrics.Count.withId + +```ts +withId(value) +``` + + + +##### fn metrics.Count.withType + +```ts +withType(value) +``` + + + +#### obj metrics.MetricAggregationWithSettings + + +##### obj metrics.MetricAggregationWithSettings.Average + + +###### fn metrics.MetricAggregationWithSettings.Average.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Average.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Average.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Average.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Average.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Average.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.Average.settings + + +####### fn metrics.MetricAggregationWithSettings.Average.settings.withMissing + +```ts +withMissing(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Average.settings.withScript + +```ts +withScript(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Average.settings.withScriptMixin + +```ts +withScriptMixin(value) +``` + + + +####### obj metrics.MetricAggregationWithSettings.Average.settings.script + + +######## fn metrics.MetricAggregationWithSettings.Average.settings.script.withInline + +```ts +withInline(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.BucketScript + + +###### fn metrics.MetricAggregationWithSettings.BucketScript.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.BucketScript.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.BucketScript.withPipelineVariables + +```ts +withPipelineVariables(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.BucketScript.withPipelineVariablesMixin + +```ts +withPipelineVariablesMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.BucketScript.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.BucketScript.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.BucketScript.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.BucketScript.pipelineVariables + + +####### fn metrics.MetricAggregationWithSettings.BucketScript.pipelineVariables.withName + +```ts +withName(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.BucketScript.pipelineVariables.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.BucketScript.settings + + +####### fn metrics.MetricAggregationWithSettings.BucketScript.settings.withScript + +```ts +withScript(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.BucketScript.settings.withScriptMixin + +```ts +withScriptMixin(value) +``` + + + +####### obj metrics.MetricAggregationWithSettings.BucketScript.settings.script + + +######## fn metrics.MetricAggregationWithSettings.BucketScript.settings.script.withInline + +```ts +withInline(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.CumulativeSum + + +###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.CumulativeSum.settings + + +####### fn metrics.MetricAggregationWithSettings.CumulativeSum.settings.withFormat + +```ts +withFormat(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.Derivative + + +###### fn metrics.MetricAggregationWithSettings.Derivative.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Derivative.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Derivative.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Derivative.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Derivative.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Derivative.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Derivative.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.Derivative.settings + + +####### fn metrics.MetricAggregationWithSettings.Derivative.settings.withUnit + +```ts +withUnit(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.ExtendedStats + + +###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withMeta + +```ts +withMeta(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withMetaMixin + +```ts +withMetaMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.ExtendedStats.settings + + +####### fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.withMissing + +```ts +withMissing(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.withScript + +```ts +withScript(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.withScriptMixin + +```ts +withScriptMixin(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.withSigma + +```ts +withSigma(value) +``` + + + +####### obj metrics.MetricAggregationWithSettings.ExtendedStats.settings.script + + +######## fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.script.withInline + +```ts +withInline(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.Logs + + +###### fn metrics.MetricAggregationWithSettings.Logs.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Logs.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Logs.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Logs.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Logs.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.Logs.settings + + +####### fn metrics.MetricAggregationWithSettings.Logs.settings.withLimit + +```ts +withLimit(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.Max + + +###### fn metrics.MetricAggregationWithSettings.Max.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Max.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Max.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Max.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Max.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Max.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.Max.settings + + +####### fn metrics.MetricAggregationWithSettings.Max.settings.withMissing + +```ts +withMissing(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Max.settings.withScript + +```ts +withScript(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Max.settings.withScriptMixin + +```ts +withScriptMixin(value) +``` + + + +####### obj metrics.MetricAggregationWithSettings.Max.settings.script + + +######## fn metrics.MetricAggregationWithSettings.Max.settings.script.withInline + +```ts +withInline(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.Min + + +###### fn metrics.MetricAggregationWithSettings.Min.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Min.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Min.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Min.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Min.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Min.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.Min.settings + + +####### fn metrics.MetricAggregationWithSettings.Min.settings.withMissing + +```ts +withMissing(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Min.settings.withScript + +```ts +withScript(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Min.settings.withScriptMixin + +```ts +withScriptMixin(value) +``` + + + +####### obj metrics.MetricAggregationWithSettings.Min.settings.script + + +######## fn metrics.MetricAggregationWithSettings.Min.settings.script.withInline + +```ts +withInline(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.MovingAverage + + +###### fn metrics.MetricAggregationWithSettings.MovingAverage.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingAverage.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingAverage.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingAverage.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingAverage.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingAverage.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingAverage.withType + +```ts +withType(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.MovingFunction + + +###### fn metrics.MetricAggregationWithSettings.MovingFunction.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingFunction.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingFunction.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingFunction.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingFunction.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingFunction.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.MovingFunction.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.MovingFunction.settings + + +####### fn metrics.MetricAggregationWithSettings.MovingFunction.settings.withScript + +```ts +withScript(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.MovingFunction.settings.withScriptMixin + +```ts +withScriptMixin(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.MovingFunction.settings.withShift + +```ts +withShift(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.MovingFunction.settings.withWindow + +```ts +withWindow(value) +``` + + + +####### obj metrics.MetricAggregationWithSettings.MovingFunction.settings.script + + +######## fn metrics.MetricAggregationWithSettings.MovingFunction.settings.script.withInline + +```ts +withInline(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.Percentiles + + +###### fn metrics.MetricAggregationWithSettings.Percentiles.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Percentiles.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Percentiles.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Percentiles.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Percentiles.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Percentiles.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.Percentiles.settings + + +####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withMissing + +```ts +withMissing(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withPercents + +```ts +withPercents(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withPercentsMixin + +```ts +withPercentsMixin(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withScript + +```ts +withScript(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withScriptMixin + +```ts +withScriptMixin(value) +``` + + + +####### obj metrics.MetricAggregationWithSettings.Percentiles.settings.script + + +######## fn metrics.MetricAggregationWithSettings.Percentiles.settings.script.withInline + +```ts +withInline(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.Rate + + +###### fn metrics.MetricAggregationWithSettings.Rate.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Rate.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Rate.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Rate.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Rate.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Rate.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.Rate.settings + + +####### fn metrics.MetricAggregationWithSettings.Rate.settings.withMode + +```ts +withMode(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Rate.settings.withUnit + +```ts +withUnit(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.RawData + + +###### fn metrics.MetricAggregationWithSettings.RawData.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.RawData.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.RawData.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.RawData.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.RawData.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.RawData.settings + + +####### fn metrics.MetricAggregationWithSettings.RawData.settings.withSize + +```ts +withSize(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.RawDocument + + +###### fn metrics.MetricAggregationWithSettings.RawDocument.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.RawDocument.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.RawDocument.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.RawDocument.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.RawDocument.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.RawDocument.settings + + +####### fn metrics.MetricAggregationWithSettings.RawDocument.settings.withSize + +```ts +withSize(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.SerialDiff + + +###### fn metrics.MetricAggregationWithSettings.SerialDiff.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.SerialDiff.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.SerialDiff.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.SerialDiff.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.SerialDiff.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.SerialDiff.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.SerialDiff.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.SerialDiff.settings + + +####### fn metrics.MetricAggregationWithSettings.SerialDiff.settings.withLag + +```ts +withLag(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.Sum + + +###### fn metrics.MetricAggregationWithSettings.Sum.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Sum.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Sum.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Sum.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Sum.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.Sum.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.Sum.settings + + +####### fn metrics.MetricAggregationWithSettings.Sum.settings.withMissing + +```ts +withMissing(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Sum.settings.withScript + +```ts +withScript(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.Sum.settings.withScriptMixin + +```ts +withScriptMixin(value) +``` + + + +####### obj metrics.MetricAggregationWithSettings.Sum.settings.script + + +######## fn metrics.MetricAggregationWithSettings.Sum.settings.script.withInline + +```ts +withInline(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.TopMetrics + + +###### fn metrics.MetricAggregationWithSettings.TopMetrics.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.TopMetrics.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.TopMetrics.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.TopMetrics.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.TopMetrics.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.TopMetrics.settings + + +####### fn metrics.MetricAggregationWithSettings.TopMetrics.settings.withMetrics + +```ts +withMetrics(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.TopMetrics.settings.withMetricsMixin + +```ts +withMetricsMixin(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.TopMetrics.settings.withOrder + +```ts +withOrder(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.TopMetrics.settings.withOrderBy + +```ts +withOrderBy(value) +``` + + + +##### obj metrics.MetricAggregationWithSettings.UniqueCount + + +###### fn metrics.MetricAggregationWithSettings.UniqueCount.withField + +```ts +withField(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.UniqueCount.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.MetricAggregationWithSettings.UniqueCount.withId + +```ts +withId(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.UniqueCount.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.UniqueCount.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.MetricAggregationWithSettings.UniqueCount.withType + +```ts +withType(value) +``` + + + +###### obj metrics.MetricAggregationWithSettings.UniqueCount.settings + + +####### fn metrics.MetricAggregationWithSettings.UniqueCount.settings.withMissing + +```ts +withMissing(value) +``` + + + +####### fn metrics.MetricAggregationWithSettings.UniqueCount.settings.withPrecisionThreshold + +```ts +withPrecisionThreshold(value) +``` + + + +#### obj metrics.PipelineMetricAggregation + + +##### obj metrics.PipelineMetricAggregation.BucketScript + + +###### fn metrics.PipelineMetricAggregation.BucketScript.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.PipelineMetricAggregation.BucketScript.withId + +```ts +withId(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.BucketScript.withPipelineVariables + +```ts +withPipelineVariables(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.BucketScript.withPipelineVariablesMixin + +```ts +withPipelineVariablesMixin(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.BucketScript.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.BucketScript.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.BucketScript.withType + +```ts +withType(value) +``` + + + +###### obj metrics.PipelineMetricAggregation.BucketScript.pipelineVariables + + +####### fn metrics.PipelineMetricAggregation.BucketScript.pipelineVariables.withName + +```ts +withName(value) +``` + + + +####### fn metrics.PipelineMetricAggregation.BucketScript.pipelineVariables.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### obj metrics.PipelineMetricAggregation.BucketScript.settings + + +####### fn metrics.PipelineMetricAggregation.BucketScript.settings.withScript + +```ts +withScript(value) +``` + + + +####### fn metrics.PipelineMetricAggregation.BucketScript.settings.withScriptMixin + +```ts +withScriptMixin(value) +``` + + + +####### obj metrics.PipelineMetricAggregation.BucketScript.settings.script + + +######## fn metrics.PipelineMetricAggregation.BucketScript.settings.script.withInline + +```ts +withInline(value) +``` + + + +##### obj metrics.PipelineMetricAggregation.CumulativeSum + + +###### fn metrics.PipelineMetricAggregation.CumulativeSum.withField + +```ts +withField(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.CumulativeSum.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.PipelineMetricAggregation.CumulativeSum.withId + +```ts +withId(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.CumulativeSum.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.CumulativeSum.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.CumulativeSum.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.CumulativeSum.withType + +```ts +withType(value) +``` + + + +###### obj metrics.PipelineMetricAggregation.CumulativeSum.settings + + +####### fn metrics.PipelineMetricAggregation.CumulativeSum.settings.withFormat + +```ts +withFormat(value) +``` + + + +##### obj metrics.PipelineMetricAggregation.Derivative + + +###### fn metrics.PipelineMetricAggregation.Derivative.withField + +```ts +withField(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.Derivative.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.PipelineMetricAggregation.Derivative.withId + +```ts +withId(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.Derivative.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.Derivative.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.Derivative.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.Derivative.withType + +```ts +withType(value) +``` + + + +###### obj metrics.PipelineMetricAggregation.Derivative.settings + + +####### fn metrics.PipelineMetricAggregation.Derivative.settings.withUnit + +```ts +withUnit(value) +``` + + + +##### obj metrics.PipelineMetricAggregation.MovingAverage + + +###### fn metrics.PipelineMetricAggregation.MovingAverage.withField + +```ts +withField(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.MovingAverage.withHide + +```ts +withHide(value=true) +``` + + + +###### fn metrics.PipelineMetricAggregation.MovingAverage.withId + +```ts +withId(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.MovingAverage.withPipelineAgg + +```ts +withPipelineAgg(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.MovingAverage.withSettings + +```ts +withSettings(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.MovingAverage.withSettingsMixin + +```ts +withSettingsMixin(value) +``` + + + +###### fn metrics.PipelineMetricAggregation.MovingAverage.withType + +```ts +withType(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/grafanaPyroscope.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/grafanaPyroscope.md new file mode 100644 index 0000000..36e0fce --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/grafanaPyroscope.md @@ -0,0 +1,97 @@ +# grafanaPyroscope + +grafonnet.query.grafanaPyroscope + +## Index + +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withGroupBy(value)`](#fn-withgroupby) +* [`fn withGroupByMixin(value)`](#fn-withgroupbymixin) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withLabelSelector(value="{}")`](#fn-withlabelselector) +* [`fn withMaxNodes(value)`](#fn-withmaxnodes) +* [`fn withProfileTypeId(value)`](#fn-withprofiletypeid) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) + +## Fields + +### fn withDatasource + +```ts +withDatasource(value) +``` + +For mixed data sources the selected datasource is on the query level. +For non mixed scenarios this is undefined. +TODO find a better way to do this ^ that's friendly to schema +TODO this shouldn't be unknown but DataSourceRef | null + +### fn withGroupBy + +```ts +withGroupBy(value) +``` + +Allows to group the results. + +### fn withGroupByMixin + +```ts +withGroupByMixin(value) +``` + +Allows to group the results. + +### fn withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +### fn withLabelSelector + +```ts +withLabelSelector(value="{}") +``` + +Specifies the query label selectors. + +### fn withMaxNodes + +```ts +withMaxNodes(value) +``` + +Sets the maximum number of nodes in the flamegraph. + +### fn withProfileTypeId + +```ts +withProfileTypeId(value) +``` + +Specifies the type of profile to query. + +### fn withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +### fn withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/index.md new file mode 100644 index 0000000..1ad7c17 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/index.md @@ -0,0 +1,16 @@ +# query + +grafonnet.query + +## Subpackages + +* [azureMonitor](azureMonitor.md) +* [cloudWatch](cloudWatch.md) +* [elasticsearch](elasticsearch.md) +* [grafanaPyroscope](grafanaPyroscope.md) +* [loki](loki.md) +* [parca](parca.md) +* [prometheus](prometheus.md) +* [tempo](tempo.md) +* [testData](testData.md) + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/loki.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/loki.md new file mode 100644 index 0000000..27854ae --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/loki.md @@ -0,0 +1,123 @@ +# loki + +grafonnet.query.loki + +## Index + +* [`fn new(datasource, expr)`](#fn-new) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withEditorMode(value)`](#fn-witheditormode) +* [`fn withExpr(value)`](#fn-withexpr) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withInstant(value=true)`](#fn-withinstant) +* [`fn withLegendFormat(value)`](#fn-withlegendformat) +* [`fn withMaxLines(value)`](#fn-withmaxlines) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRange(value=true)`](#fn-withrange) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withResolution(value)`](#fn-withresolution) + +## Fields + +### fn new + +```ts +new(datasource, expr) +``` + +Creates a new loki query target for panels. + +### fn withDatasource + +```ts +withDatasource(value) +``` + +Set the datasource for this query. + +### fn withEditorMode + +```ts +withEditorMode(value) +``` + + + +Accepted values for `value` are "code", "builder" + +### fn withExpr + +```ts +withExpr(value) +``` + +The LogQL query. + +### fn withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +### fn withInstant + +```ts +withInstant(value=true) +``` + +@deprecated, now use queryType. + +### fn withLegendFormat + +```ts +withLegendFormat(value) +``` + +Used to override the name of the series. + +### fn withMaxLines + +```ts +withMaxLines(value) +``` + +Used to limit the number of log rows returned. + +### fn withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +### fn withRange + +```ts +withRange(value=true) +``` + +@deprecated, now use queryType. + +### fn withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. + +### fn withResolution + +```ts +withResolution(value) +``` + +Used to scale the interval value. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/parca.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/parca.md new file mode 100644 index 0000000..0c8f266 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/parca.md @@ -0,0 +1,70 @@ +# parca + +grafonnet.query.parca + +## Index + +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withLabelSelector(value="{}")`](#fn-withlabelselector) +* [`fn withProfileTypeId(value)`](#fn-withprofiletypeid) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) + +## Fields + +### fn withDatasource + +```ts +withDatasource(value) +``` + +For mixed data sources the selected datasource is on the query level. +For non mixed scenarios this is undefined. +TODO find a better way to do this ^ that's friendly to schema +TODO this shouldn't be unknown but DataSourceRef | null + +### fn withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +### fn withLabelSelector + +```ts +withLabelSelector(value="{}") +``` + +Specifies the query label selectors. + +### fn withProfileTypeId + +```ts +withProfileTypeId(value) +``` + +Specifies the type of profile to query. + +### fn withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +### fn withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/prometheus.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/prometheus.md new file mode 100644 index 0000000..2b76e8f --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/prometheus.md @@ -0,0 +1,134 @@ +# prometheus + +grafonnet.query.prometheus + +## Index + +* [`fn new(datasource, expr)`](#fn-new) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withEditorMode(value)`](#fn-witheditormode) +* [`fn withExemplar(value=true)`](#fn-withexemplar) +* [`fn withExpr(value)`](#fn-withexpr) +* [`fn withFormat(value)`](#fn-withformat) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withInstant(value=true)`](#fn-withinstant) +* [`fn withIntervalFactor(value)`](#fn-withintervalfactor) +* [`fn withLegendFormat(value)`](#fn-withlegendformat) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRange(value=true)`](#fn-withrange) +* [`fn withRefId(value)`](#fn-withrefid) + +## Fields + +### fn new + +```ts +new(datasource, expr) +``` + +Creates a new prometheus query target for panels. + +### fn withDatasource + +```ts +withDatasource(value) +``` + +Set the datasource for this query. + +### fn withEditorMode + +```ts +withEditorMode(value) +``` + + + +Accepted values for `value` are "code", "builder" + +### fn withExemplar + +```ts +withExemplar(value=true) +``` + +Execute an additional query to identify interesting raw samples relevant for the given expr + +### fn withExpr + +```ts +withExpr(value) +``` + +The actual expression/query that will be evaluated by Prometheus + +### fn withFormat + +```ts +withFormat(value) +``` + + + +Accepted values for `value` are "time_series", "table", "heatmap" + +### fn withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +### fn withInstant + +```ts +withInstant(value=true) +``` + +Returns only the latest value that Prometheus has scraped for the requested time series + +### fn withIntervalFactor + +```ts +withIntervalFactor(value) +``` + +Set the interval factor for this query. + +### fn withLegendFormat + +```ts +withLegendFormat(value) +``` + +Set the legend format for this query. + +### fn withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +### fn withRange + +```ts +withRange(value=true) +``` + +Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series + +### fn withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/tempo.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/tempo.md new file mode 100644 index 0000000..5ed6b39 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/tempo.md @@ -0,0 +1,217 @@ +# tempo + +grafonnet.query.tempo + +## Index + +* [`fn new(datasource, query, filters)`](#fn-new) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withFilters(value)`](#fn-withfilters) +* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withLimit(value)`](#fn-withlimit) +* [`fn withMaxDuration(value)`](#fn-withmaxduration) +* [`fn withMinDuration(value)`](#fn-withminduration) +* [`fn withQuery(value)`](#fn-withquery) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withSearch(value)`](#fn-withsearch) +* [`fn withServiceMapQuery(value)`](#fn-withservicemapquery) +* [`fn withServiceName(value)`](#fn-withservicename) +* [`fn withSpanName(value)`](#fn-withspanname) +* [`obj filters`](#obj-filters) + * [`fn withId(value)`](#fn-filterswithid) + * [`fn withOperator(value)`](#fn-filterswithoperator) + * [`fn withScope(value)`](#fn-filterswithscope) + * [`fn withTag(value)`](#fn-filterswithtag) + * [`fn withValue(value)`](#fn-filterswithvalue) + * [`fn withValueMixin(value)`](#fn-filterswithvaluemixin) + * [`fn withValueType(value)`](#fn-filterswithvaluetype) + +## Fields + +### fn new + +```ts +new(datasource, query, filters) +``` + +Creates a new tempo query target for panels. + +### fn withDatasource + +```ts +withDatasource(value) +``` + +Set the datasource for this query. + +### fn withFilters + +```ts +withFilters(value) +``` + + + +### fn withFiltersMixin + +```ts +withFiltersMixin(value) +``` + + + +### fn withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +### fn withLimit + +```ts +withLimit(value) +``` + +Defines the maximum number of traces that are returned from Tempo + +### fn withMaxDuration + +```ts +withMaxDuration(value) +``` + +Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms + +### fn withMinDuration + +```ts +withMinDuration(value) +``` + +Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms + +### fn withQuery + +```ts +withQuery(value) +``` + +TraceQL query or trace ID + +### fn withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +### fn withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. + +### fn withSearch + +```ts +withSearch(value) +``` + +Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true + +### fn withServiceMapQuery + +```ts +withServiceMapQuery(value) +``` + +Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"} + +### fn withServiceName + +```ts +withServiceName(value) +``` + +Query traces by service name + +### fn withSpanName + +```ts +withSpanName(value) +``` + +Query traces by span name + +### obj filters + + +#### fn filters.withId + +```ts +withId(value) +``` + +Uniquely identify the filter, will not be used in the query generation + +#### fn filters.withOperator + +```ts +withOperator(value) +``` + +The operator that connects the tag to the value, for example: =, >, !=, =~ + +#### fn filters.withScope + +```ts +withScope(value) +``` + +static fields are pre-set in the UI, dynamic fields are added by the user + +Accepted values for `value` are "unscoped", "resource", "span" + +#### fn filters.withTag + +```ts +withTag(value) +``` + +The tag for the search filter, for example: .http.status_code, .service.name, status + +#### fn filters.withValue + +```ts +withValue(value) +``` + +The value for the search filter + +#### fn filters.withValueMixin + +```ts +withValueMixin(value) +``` + +The value for the search filter + +#### fn filters.withValueType + +```ts +withValueType(value) +``` + +The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/testData.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/testData.md new file mode 100644 index 0000000..a160fee --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/testData.md @@ -0,0 +1,619 @@ +# testData + +grafonnet.query.testData + +## Index + +* [`fn withAlias(value)`](#fn-withalias) +* [`fn withChannel(value)`](#fn-withchannel) +* [`fn withCsvContent(value)`](#fn-withcsvcontent) +* [`fn withCsvFileName(value)`](#fn-withcsvfilename) +* [`fn withCsvWave(value)`](#fn-withcsvwave) +* [`fn withCsvWaveMixin(value)`](#fn-withcsvwavemixin) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withErrorType(value)`](#fn-witherrortype) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withLabels(value)`](#fn-withlabels) +* [`fn withLevelColumn(value=true)`](#fn-withlevelcolumn) +* [`fn withLines(value)`](#fn-withlines) +* [`fn withNodes(value)`](#fn-withnodes) +* [`fn withNodesMixin(value)`](#fn-withnodesmixin) +* [`fn withPoints(value)`](#fn-withpoints) +* [`fn withPointsMixin(value)`](#fn-withpointsmixin) +* [`fn withPulseWave(value)`](#fn-withpulsewave) +* [`fn withPulseWaveMixin(value)`](#fn-withpulsewavemixin) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRawFrameContent(value)`](#fn-withrawframecontent) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withScenarioId(value)`](#fn-withscenarioid) +* [`fn withSeriesCount(value)`](#fn-withseriescount) +* [`fn withSim(value)`](#fn-withsim) +* [`fn withSimMixin(value)`](#fn-withsimmixin) +* [`fn withSpanCount(value)`](#fn-withspancount) +* [`fn withStream(value)`](#fn-withstream) +* [`fn withStreamMixin(value)`](#fn-withstreammixin) +* [`fn withStringInput(value)`](#fn-withstringinput) +* [`fn withUsa(value)`](#fn-withusa) +* [`fn withUsaMixin(value)`](#fn-withusamixin) +* [`obj csvWave`](#obj-csvwave) + * [`fn withLabels(value)`](#fn-csvwavewithlabels) + * [`fn withName(value)`](#fn-csvwavewithname) + * [`fn withTimeStep(value)`](#fn-csvwavewithtimestep) + * [`fn withValuesCSV(value)`](#fn-csvwavewithvaluescsv) +* [`obj nodes`](#obj-nodes) + * [`fn withCount(value)`](#fn-nodeswithcount) + * [`fn withType(value)`](#fn-nodeswithtype) +* [`obj pulseWave`](#obj-pulsewave) + * [`fn withOffCount(value)`](#fn-pulsewavewithoffcount) + * [`fn withOffValue(value)`](#fn-pulsewavewithoffvalue) + * [`fn withOnCount(value)`](#fn-pulsewavewithoncount) + * [`fn withOnValue(value)`](#fn-pulsewavewithonvalue) + * [`fn withTimeStep(value)`](#fn-pulsewavewithtimestep) +* [`obj sim`](#obj-sim) + * [`fn withConfig(value)`](#fn-simwithconfig) + * [`fn withConfigMixin(value)`](#fn-simwithconfigmixin) + * [`fn withKey(value)`](#fn-simwithkey) + * [`fn withKeyMixin(value)`](#fn-simwithkeymixin) + * [`fn withLast(value=true)`](#fn-simwithlast) + * [`fn withStream(value=true)`](#fn-simwithstream) + * [`obj key`](#obj-simkey) + * [`fn withTick(value)`](#fn-simkeywithtick) + * [`fn withType(value)`](#fn-simkeywithtype) + * [`fn withUid(value)`](#fn-simkeywithuid) +* [`obj stream`](#obj-stream) + * [`fn withBands(value)`](#fn-streamwithbands) + * [`fn withNoise(value)`](#fn-streamwithnoise) + * [`fn withSpeed(value)`](#fn-streamwithspeed) + * [`fn withSpread(value)`](#fn-streamwithspread) + * [`fn withType(value)`](#fn-streamwithtype) + * [`fn withUrl(value)`](#fn-streamwithurl) +* [`obj usa`](#obj-usa) + * [`fn withFields(value)`](#fn-usawithfields) + * [`fn withFieldsMixin(value)`](#fn-usawithfieldsmixin) + * [`fn withMode(value)`](#fn-usawithmode) + * [`fn withPeriod(value)`](#fn-usawithperiod) + * [`fn withStates(value)`](#fn-usawithstates) + * [`fn withStatesMixin(value)`](#fn-usawithstatesmixin) + +## Fields + +### fn withAlias + +```ts +withAlias(value) +``` + + + +### fn withChannel + +```ts +withChannel(value) +``` + + + +### fn withCsvContent + +```ts +withCsvContent(value) +``` + + + +### fn withCsvFileName + +```ts +withCsvFileName(value) +``` + + + +### fn withCsvWave + +```ts +withCsvWave(value) +``` + + + +### fn withCsvWaveMixin + +```ts +withCsvWaveMixin(value) +``` + + + +### fn withDatasource + +```ts +withDatasource(value) +``` + +For mixed data sources the selected datasource is on the query level. +For non mixed scenarios this is undefined. +TODO find a better way to do this ^ that's friendly to schema +TODO this shouldn't be unknown but DataSourceRef | null + +### fn withErrorType + +```ts +withErrorType(value) +``` + + + +Accepted values for `value` are "server_panic", "frontend_exception", "frontend_observable" + +### fn withHide + +```ts +withHide(value=true) +``` + +true if query is disabled (ie should not be returned to the dashboard) +Note this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) + +### fn withLabels + +```ts +withLabels(value) +``` + + + +### fn withLevelColumn + +```ts +withLevelColumn(value=true) +``` + + + +### fn withLines + +```ts +withLines(value) +``` + + + +### fn withNodes + +```ts +withNodes(value) +``` + + + +### fn withNodesMixin + +```ts +withNodesMixin(value) +``` + + + +### fn withPoints + +```ts +withPoints(value) +``` + + + +### fn withPointsMixin + +```ts +withPointsMixin(value) +``` + + + +### fn withPulseWave + +```ts +withPulseWave(value) +``` + + + +### fn withPulseWaveMixin + +```ts +withPulseWaveMixin(value) +``` + + + +### fn withQueryType + +```ts +withQueryType(value) +``` + +Specify the query flavor +TODO make this required and give it a default + +### fn withRawFrameContent + +```ts +withRawFrameContent(value) +``` + + + +### fn withRefId + +```ts +withRefId(value) +``` + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. + +### fn withScenarioId + +```ts +withScenarioId(value) +``` + + + +Accepted values for `value` are "random_walk", "slow_query", "random_walk_with_error", "random_walk_table", "exponential_heatmap_bucket_data", "linear_heatmap_bucket_data", "no_data_points", "datapoints_outside_range", "csv_metric_values", "predictable_pulse", "predictable_csv_wave", "streaming_client", "simulation", "usa", "live", "grafana_api", "arrow", "annotations", "table_static", "server_error_500", "logs", "node_graph", "flame_graph", "raw_frame", "csv_file", "csv_content", "trace", "manual_entry", "variables-query" + +### fn withSeriesCount + +```ts +withSeriesCount(value) +``` + + + +### fn withSim + +```ts +withSim(value) +``` + + + +### fn withSimMixin + +```ts +withSimMixin(value) +``` + + + +### fn withSpanCount + +```ts +withSpanCount(value) +``` + + + +### fn withStream + +```ts +withStream(value) +``` + + + +### fn withStreamMixin + +```ts +withStreamMixin(value) +``` + + + +### fn withStringInput + +```ts +withStringInput(value) +``` + + + +### fn withUsa + +```ts +withUsa(value) +``` + + + +### fn withUsaMixin + +```ts +withUsaMixin(value) +``` + + + +### obj csvWave + + +#### fn csvWave.withLabels + +```ts +withLabels(value) +``` + + + +#### fn csvWave.withName + +```ts +withName(value) +``` + + + +#### fn csvWave.withTimeStep + +```ts +withTimeStep(value) +``` + + + +#### fn csvWave.withValuesCSV + +```ts +withValuesCSV(value) +``` + + + +### obj nodes + + +#### fn nodes.withCount + +```ts +withCount(value) +``` + + + +#### fn nodes.withType + +```ts +withType(value) +``` + + + +Accepted values for `value` are "random", "response", "random edges" + +### obj pulseWave + + +#### fn pulseWave.withOffCount + +```ts +withOffCount(value) +``` + + + +#### fn pulseWave.withOffValue + +```ts +withOffValue(value) +``` + + + +#### fn pulseWave.withOnCount + +```ts +withOnCount(value) +``` + + + +#### fn pulseWave.withOnValue + +```ts +withOnValue(value) +``` + + + +#### fn pulseWave.withTimeStep + +```ts +withTimeStep(value) +``` + + + +### obj sim + + +#### fn sim.withConfig + +```ts +withConfig(value) +``` + + + +#### fn sim.withConfigMixin + +```ts +withConfigMixin(value) +``` + + + +#### fn sim.withKey + +```ts +withKey(value) +``` + + + +#### fn sim.withKeyMixin + +```ts +withKeyMixin(value) +``` + + + +#### fn sim.withLast + +```ts +withLast(value=true) +``` + + + +#### fn sim.withStream + +```ts +withStream(value=true) +``` + + + +#### obj sim.key + + +##### fn sim.key.withTick + +```ts +withTick(value) +``` + + + +##### fn sim.key.withType + +```ts +withType(value) +``` + + + +##### fn sim.key.withUid + +```ts +withUid(value) +``` + + + +### obj stream + + +#### fn stream.withBands + +```ts +withBands(value) +``` + + + +#### fn stream.withNoise + +```ts +withNoise(value) +``` + + + +#### fn stream.withSpeed + +```ts +withSpeed(value) +``` + + + +#### fn stream.withSpread + +```ts +withSpread(value) +``` + + + +#### fn stream.withType + +```ts +withType(value) +``` + + + +Accepted values for `value` are "signal", "logs", "fetch" + +#### fn stream.withUrl + +```ts +withUrl(value) +``` + + + +### obj usa + + +#### fn usa.withFields + +```ts +withFields(value) +``` + + + +#### fn usa.withFieldsMixin + +```ts +withFieldsMixin(value) +``` + + + +#### fn usa.withMode + +```ts +withMode(value) +``` + + + +#### fn usa.withPeriod + +```ts +withPeriod(value) +``` + + + +#### fn usa.withStates + +```ts +withStates(value) +``` + + + +#### fn usa.withStatesMixin + +```ts +withStatesMixin(value) +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/serviceaccount.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/serviceaccount.md new file mode 100644 index 0000000..719227b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/serviceaccount.md @@ -0,0 +1,120 @@ +# serviceaccount + +grafonnet.serviceaccount + +## Index + +* [`fn withAccessControl(value)`](#fn-withaccesscontrol) +* [`fn withAccessControlMixin(value)`](#fn-withaccesscontrolmixin) +* [`fn withAvatarUrl(value)`](#fn-withavatarurl) +* [`fn withId(value)`](#fn-withid) +* [`fn withIsDisabled(value=true)`](#fn-withisdisabled) +* [`fn withLogin(value)`](#fn-withlogin) +* [`fn withName(value)`](#fn-withname) +* [`fn withOrgId(value)`](#fn-withorgid) +* [`fn withRole(value)`](#fn-withrole) +* [`fn withTeams(value)`](#fn-withteams) +* [`fn withTeamsMixin(value)`](#fn-withteamsmixin) +* [`fn withTokens(value)`](#fn-withtokens) + +## Fields + +### fn withAccessControl + +```ts +withAccessControl(value) +``` + +AccessControl metadata associated with a given resource. + +### fn withAccessControlMixin + +```ts +withAccessControlMixin(value) +``` + +AccessControl metadata associated with a given resource. + +### fn withAvatarUrl + +```ts +withAvatarUrl(value) +``` + +AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front +of the service account. + +### fn withId + +```ts +withId(value) +``` + +ID is the unique identifier of the service account in the database. + +### fn withIsDisabled + +```ts +withIsDisabled(value=true) +``` + +IsDisabled indicates if the service account is disabled. + +### fn withLogin + +```ts +withLogin(value) +``` + +Login of the service account. + +### fn withName + +```ts +withName(value) +``` + +Name of the service account. + +### fn withOrgId + +```ts +withOrgId(value) +``` + +OrgId is the ID of an organisation the service account belongs to. + +### fn withRole + +```ts +withRole(value) +``` + +OrgRole is a Grafana Organization Role which can be 'Viewer', 'Editor', 'Admin'. + +Accepted values for `value` are "Admin", "Editor", "Viewer" + +### fn withTeams + +```ts +withTeams(value) +``` + +Teams is a list of teams the service account belongs to. + +### fn withTeamsMixin + +```ts +withTeamsMixin(value) +``` + +Teams is a list of teams the service account belongs to. + +### fn withTokens + +```ts +withTokens(value) +``` + +Tokens is the number of active tokens for the service account. +Tokens are used to authenticate the service account against Grafana. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/team.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/team.md new file mode 100644 index 0000000..d9b935f --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/team.md @@ -0,0 +1,82 @@ +# team + +grafonnet.team + +## Index + +* [`fn withAccessControl(value)`](#fn-withaccesscontrol) +* [`fn withAccessControlMixin(value)`](#fn-withaccesscontrolmixin) +* [`fn withAvatarUrl(value)`](#fn-withavatarurl) +* [`fn withEmail(value)`](#fn-withemail) +* [`fn withMemberCount(value)`](#fn-withmembercount) +* [`fn withName(value)`](#fn-withname) +* [`fn withOrgId(value)`](#fn-withorgid) +* [`fn withPermission(value)`](#fn-withpermission) + +## Fields + +### fn withAccessControl + +```ts +withAccessControl(value) +``` + +AccessControl metadata associated with a given resource. + +### fn withAccessControlMixin + +```ts +withAccessControlMixin(value) +``` + +AccessControl metadata associated with a given resource. + +### fn withAvatarUrl + +```ts +withAvatarUrl(value) +``` + +AvatarUrl is the team's avatar URL. + +### fn withEmail + +```ts +withEmail(value) +``` + +Email of the team. + +### fn withMemberCount + +```ts +withMemberCount(value) +``` + +MemberCount is the number of the team members. + +### fn withName + +```ts +withName(value) +``` + +Name of the team. + +### fn withOrgId + +```ts +withOrgId(value) +``` + +OrgId is the ID of an organisation the team belongs to. + +### fn withPermission + +```ts +withPermission(value) +``` + + + +Accepted values for `value` are 0, 1, 2, 4 diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/util.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/util.md new file mode 100644 index 0000000..c4c31ef --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/util.md @@ -0,0 +1,81 @@ +# util + +Helper functions that work well with Grafonnet. + +## Index + +* [`obj dashboard`](#obj-dashboard) + * [`fn getOptionsForCustomQuery(query)`](#fn-dashboardgetoptionsforcustomquery) +* [`obj grid`](#obj-grid) + * [`fn makeGrid(panels, panelWidth, panelHeight)`](#fn-gridmakegrid) +* [`obj panel`](#obj-panel) + * [`fn setPanelIDs(panels)`](#fn-panelsetpanelids) +* [`obj string`](#obj-string) + * [`fn slugify(string)`](#fn-stringslugify) + +## Fields + +### obj dashboard + + +#### fn dashboard.getOptionsForCustomQuery + +```ts +getOptionsForCustomQuery(query) +``` + +`getOptionsForCustomQuery` provides values for the `options` and `current` fields. +These are required for template variables of type 'custom'but do not automatically +get populated by Grafana when importing a dashboard from JSON. + +This is a bit of a hack and should always be called on functions that set `type` on +a template variable. Ideally Grafana populates these fields from the `query` value +but this provides a backwards compatible solution. + + +### obj grid + + +#### fn grid.makeGrid + +```ts +makeGrid(panels, panelWidth, panelHeight) +``` + +`makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` +and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, +then all panels below it will be folded into the row. + +This function will use the full grid of 24 columns, setting `panelWidth` to a value +that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) +Other value for `panelWidth` will leave a gap on the far right. + + +### obj panel + + +#### fn panel.setPanelIDs + +```ts +setPanelIDs(panels) +``` + +`setPanelIDs` ensures that all `panels` have a unique ID, this functions is used in +`dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent +experience. + +used in ../dashboard.libsonnet + + +### obj string + + +#### fn string.slugify + +```ts +slugify(string) +``` + +`slugify` will create a simple slug from `string`, keeping only alphanumeric +characters and replacing spaces with dashes. + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json new file mode 100644 index 0000000..8479d5a --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json @@ -0,0 +1,24 @@ +{ + "dependencies": [ + { + "source": { + "git": { + "remote": "https://github.com/jsonnet-libs/docsonnet.git", + "subdir": "doc-util" + } + }, + "version": "master" + }, + { + "source": { + "git": { + "remote": "https://github.com/jsonnet-libs/xtd.git", + "subdir": "" + } + }, + "version": "master" + } + ], + "legacyImports": true, + "version": 1 +} \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet new file mode 100644 index 0000000..29cd9bc --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet @@ -0,0 +1,23 @@ +// This file is generated, do not manually edit. +{ + '#': { + filename: 'main.libsonnet', + help: 'Jsonnet library for rendering Grafana resources', + 'import': 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet', + installTemplate: 'jb install %(url)s@%(version)s', + name: 'grafonnet', + url: 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0', + usageTemplate: 'local %(name)s = import "%(import)s"', + version: 'main', + }, + dashboard: import 'clean/dashboard.libsonnet', + librarypanel: import 'raw/librarypanel.libsonnet', + playlist: import 'raw/playlist.libsonnet', + preferences: import 'raw/preferences.libsonnet', + publicdashboard: import 'raw/publicdashboard.libsonnet', + serviceaccount: import 'raw/serviceaccount.libsonnet', + team: import 'raw/team.libsonnet', + panel: import 'panel.libsonnet', + query: import 'query.libsonnet', + util: import 'custom/util/main.libsonnet', +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet new file mode 100644 index 0000000..d90e1b6 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet @@ -0,0 +1,30 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel', name: 'panel' }, + candlestick: import 'clean/panel/candlestick.libsonnet', + canvas: import 'clean/panel/canvas.libsonnet', + alertGroups: import 'clean/panel/alertGroups.libsonnet', + annotationsList: import 'clean/panel/annotationsList.libsonnet', + barChart: import 'clean/panel/barChart.libsonnet', + barGauge: import 'clean/panel/barGauge.libsonnet', + dashboardList: import 'clean/panel/dashboardList.libsonnet', + datagrid: import 'clean/panel/datagrid.libsonnet', + debug: import 'clean/panel/debug.libsonnet', + gauge: import 'clean/panel/gauge.libsonnet', + geomap: import 'clean/panel/geomap.libsonnet', + heatmap: import 'clean/panel/heatmap.libsonnet', + histogram: import 'clean/panel/histogram.libsonnet', + logs: import 'clean/panel/logs.libsonnet', + news: import 'clean/panel/news.libsonnet', + nodeGraph: import 'clean/panel/nodeGraph.libsonnet', + pieChart: import 'clean/panel/pieChart.libsonnet', + stat: import 'clean/panel/stat.libsonnet', + stateTimeline: import 'clean/panel/stateTimeline.libsonnet', + statusHistory: import 'clean/panel/statusHistory.libsonnet', + table: import 'clean/panel/table.libsonnet', + text: import 'clean/panel/text.libsonnet', + timeSeries: import 'clean/panel/timeSeries.libsonnet', + trend: import 'clean/panel/trend.libsonnet', + xyChart: import 'clean/panel/xyChart.libsonnet', + row: import 'raw/panel/row.libsonnet', +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet new file mode 100644 index 0000000..fbbe20c --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet @@ -0,0 +1,13 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query', name: 'query' }, + azureMonitor: import 'raw/query/azureMonitor.libsonnet', + cloudWatch: import 'raw/query/cloudWatch.libsonnet', + elasticsearch: import 'raw/query/elasticsearch.libsonnet', + loki: import 'clean/query/loki.libsonnet', + parca: import 'raw/query/parca.libsonnet', + grafanaPyroscope: import 'raw/query/grafanaPyroscope.libsonnet', + prometheus: import 'clean/query/prometheus.libsonnet', + tempo: import 'clean/query/tempo.libsonnet', + testData: import 'raw/query/testData.libsonnet', +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet new file mode 100644 index 0000000..0caa322 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet @@ -0,0 +1,296 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.dashboard', name: 'dashboard' }, + '#withAnnotations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO -- should not be a public interface on its own, but required for Veneer' } }, + withAnnotations(value): { annotations: value }, + '#withAnnotationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO -- should not be a public interface on its own, but required for Veneer' } }, + withAnnotationsMixin(value): { annotations+: value }, + annotations+: + { + '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withList(value): { annotations+: { list: (if std.isArray(value) + then value + else [value]) } }, + '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withListMixin(value): { annotations+: { list+: (if std.isArray(value) + then value + else [value]) } }, + list+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: Should be DataSourceRef' } }, + withDatasource(value): { datasource: value }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: Should be DataSourceRef' } }, + withDatasourceMixin(value): { datasource+: value }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { datasource+: { type: value } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUid(value): { datasource+: { uid: value } }, + }, + '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'When enabled the annotation query is issued with every dashboard refresh' } }, + withEnable(value=true): { enable: value }, + '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFilter(value): { filter: value }, + '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFilterMixin(value): { filter+: value }, + filter+: + { + '#withExclude': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Should the specified panels be included or excluded' } }, + withExclude(value=true): { filter+: { exclude: value } }, + '#withIds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel IDs that should be included or excluded' } }, + withIds(value): { filter+: { ids: (if std.isArray(value) + then value + else [value]) } }, + '#withIdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel IDs that should be included or excluded' } }, + withIdsMixin(value): { filter+: { ids+: (if std.isArray(value) + then value + else [value]) } }, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Annotation queries can be toggled on or off at the top of the dashboard.\nWhen hide is true, the toggle is not shown in the dashboard.' } }, + withHide(value=true): { hide: value }, + '#withIconColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Color to use for the annotation event markers' } }, + withIconColor(value): { iconColor: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of annotation.' } }, + withName(value): { name: value }, + '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, + withTarget(value): { target: value }, + '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, + withTargetMixin(value): { target+: value }, + target+: + { + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withLimit(value): { target+: { limit: value } }, + '#withMatchAny': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withMatchAny(value=true): { target+: { matchAny: value } }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withTags(value): { target+: { tags: (if std.isArray(value) + then value + else [value]) } }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withTagsMixin(value): { target+: { tags+: (if std.isArray(value) + then value + else [value]) } }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withType(value): { target+: { type: value } }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO -- this should not exist here, it is based on the --grafana-- datasource' } }, + withType(value): { type: value }, + }, + }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Description of dashboard.' } }, + withDescription(value): { description: value }, + '#withEditable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether a dashboard is editable or not.' } }, + withEditable(value=true): { editable: value }, + '#withFiscalYearStartMonth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'The month that the fiscal year starts on. 0 = January, 11 = December' } }, + withFiscalYearStartMonth(value=0): { fiscalYearStartMonth: value }, + '#withGnetId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'For dashboards imported from the https://grafana.com/grafana/dashboards/ portal' } }, + withGnetId(value): { gnetId: value }, + '#withGraphTooltip': { 'function': { args: [{ default: 0, enums: [0, 1, 2], name: 'value', type: 'integer' }], help: '0 for no shared crosshair or tooltip (default).\n1 for shared crosshair.\n2 for shared crosshair AND shared tooltip.' } }, + withGraphTooltip(value=0): { graphTooltip: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Unique numeric identifier for the dashboard.\nTODO must isolate or remove identifiers local to a Grafana instance...?' } }, + withId(value): { id: value }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withLinks(value): { links: (if std.isArray(value) + then value + else [value]) }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withLinksMixin(value): { links+: (if std.isArray(value) + then value + else [value]) }, + links+: + { + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsDropdown(value=true): { asDropdown: value }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { icon: value }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIncludeVars(value=true): { includeVars: value }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withKeepTime(value=true): { keepTime: value }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTags(value): { tags: (if std.isArray(value) + then value + else [value]) }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTagsMixin(value): { tags+: (if std.isArray(value) + then value + else [value]) }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTargetBlank(value=true): { targetBlank: value }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTitle(value): { title: value }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTooltip(value): { tooltip: value }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { type: value }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUrl(value): { url: value }, + }, + '#withLiveNow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'When set to true, the dashboard will redraw panels at an interval matching the pixel width.\nThis will keep data "moving left" regardless of the query refresh rate. This setting helps\navoid dashboards presenting stale live data' } }, + withLiveNow(value=true): { liveNow: value }, + '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPanels(value): { panels: (if std.isArray(value) + then value + else [value]) }, + '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPanelsMixin(value): { panels+: (if std.isArray(value) + then value + else [value]) }, + '#withRefresh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, + withRefresh(value): { refresh: value }, + '#withRefreshMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, + withRefreshMixin(value): { refresh+: value }, + '#withRevision': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'This property should only be used in dashboards defined by plugins. It is a quick check\nto see if the version has changed since the last time. Unclear why using the version property\nis insufficient.' } }, + withRevision(value): { revision: value }, + '#withSchemaVersion': { 'function': { args: [{ default: 36, enums: null, name: 'value', type: 'integer' }], help: "Version of the JSON schema, incremented each time a Grafana update brings\nchanges to said schema.\nTODO this is the existing schema numbering system. It will be replaced by Thema's themaVersion" } }, + withSchemaVersion(value=36): { schemaVersion: value }, + '#withSnapshot': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withSnapshot(value): { snapshot: value }, + '#withSnapshotMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withSnapshotMixin(value): { snapshot+: value }, + snapshot+: + { + '#withCreated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withCreated(value): { snapshot+: { created: value } }, + '#withExpires': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withExpires(value): { snapshot+: { expires: value } }, + '#withExternal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'TODO docs' } }, + withExternal(value=true): { snapshot+: { external: value } }, + '#withExternalUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withExternalUrl(value): { snapshot+: { externalUrl: value } }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'TODO docs' } }, + withId(value): { snapshot+: { id: value } }, + '#withKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withKey(value): { snapshot+: { key: value } }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withName(value): { snapshot+: { name: value } }, + '#withOrgId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'TODO docs' } }, + withOrgId(value): { snapshot+: { orgId: value } }, + '#withUpdated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withUpdated(value): { snapshot+: { updated: value } }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withUrl(value): { snapshot+: { url: value } }, + '#withUserId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'TODO docs' } }, + withUserId(value): { snapshot+: { userId: value } }, + }, + '#withStyle': { 'function': { args: [{ default: 'dark', enums: ['dark', 'light'], name: 'value', type: 'string' }], help: 'Theme of dashboard.' } }, + withStyle(value='dark'): { style: value }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Tags associated with dashboard.' } }, + withTags(value): { tags: (if std.isArray(value) + then value + else [value]) }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Tags associated with dashboard.' } }, + withTagsMixin(value): { tags+: (if std.isArray(value) + then value + else [value]) }, + '#withTemplating': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTemplating(value): { templating: value }, + '#withTemplatingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTemplatingMixin(value): { templating+: value }, + templating+: + { + '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withList(value): { templating+: { list: (if std.isArray(value) + then value + else [value]) } }, + '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withListMixin(value): { templating+: { list+: (if std.isArray(value) + then value + else [value]) } }, + list+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { datasource: value }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { datasource+: value }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The plugin type-id' } }, + withType(value): { datasource+: { type: value } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specific datasource instance' } }, + withUid(value): { datasource+: { uid: value } }, + }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withDescription(value): { description: value }, + '#withError': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withError(value): { 'error': value }, + '#withErrorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withErrorMixin(value): { 'error'+: value }, + '#withGlobal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withGlobal(value=true): { global: value }, + '#withHide': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: 'integer' }], help: '' } }, + withHide(value): { hide: value }, + '#withId': { 'function': { args: [{ default: '00000000-0000-0000-0000-000000000000', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value='00000000-0000-0000-0000-000000000000'): { id: value }, + '#withIndex': { 'function': { args: [{ default: -1, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withIndex(value=-1): { index: value }, + '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLabel(value): { label: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, + withQuery(value): { query: value }, + '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, + withQueryMixin(value): { query+: value }, + '#withRootStateKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRootStateKey(value): { rootStateKey: value }, + '#withSkipUrlSync': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSkipUrlSync(value=true): { skipUrlSync: value }, + '#withState': { 'function': { args: [{ default: null, enums: ['NotStarted', 'Loading', 'Streaming', 'Done', 'Error'], name: 'value', type: 'string' }], help: '' } }, + withState(value): { state: value }, + '#withType': { 'function': { args: [{ default: null, enums: ['query', 'adhoc', 'constant', 'datasource', 'interval', 'textbox', 'custom', 'system'], name: 'value', type: 'string' }], help: 'FROM: packages/grafana-data/src/types/templateVars.ts\nTODO docs\nTODO this implies some wider pattern/discriminated union, probably?' } }, + withType(value): { type: value }, + }, + }, + '#withTime': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Time range for dashboard, e.g. last 6 hours, last 7 days, etc' } }, + withTime(value): { time: value }, + '#withTimeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Time range for dashboard, e.g. last 6 hours, last 7 days, etc' } }, + withTimeMixin(value): { time+: value }, + time+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: 'string' }], help: '' } }, + withFrom(value='now-6h'): { time+: { from: value } }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: 'string' }], help: '' } }, + withTo(value='now'): { time+: { to: value } }, + }, + '#withTimepicker': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs\nTODO this appears to be spread all over in the frontend. Concepts will likely need tidying in tandem with schema changes' } }, + withTimepicker(value): { timepicker: value }, + '#withTimepickerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs\nTODO this appears to be spread all over in the frontend. Concepts will likely need tidying in tandem with schema changes' } }, + withTimepickerMixin(value): { timepicker+: value }, + timepicker+: + { + '#withCollapse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is collapsed or not.' } }, + withCollapse(value=true): { timepicker+: { collapse: value } }, + '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is enabled or not.' } }, + withEnable(value=true): { timepicker+: { enable: value } }, + '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is visible or not.' } }, + withHidden(value=true): { timepicker+: { hidden: value } }, + '#withRefreshIntervals': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: 'array' }], help: 'Selectable intervals for auto-refresh.' } }, + withRefreshIntervals(value): { timepicker+: { refresh_intervals: (if std.isArray(value) + then value + else [value]) } }, + '#withRefreshIntervalsMixin': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: 'array' }], help: 'Selectable intervals for auto-refresh.' } }, + withRefreshIntervalsMixin(value): { timepicker+: { refresh_intervals+: (if std.isArray(value) + then value + else [value]) } }, + '#withTimeOptions': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTimeOptions(value): { timepicker+: { time_options: (if std.isArray(value) + then value + else [value]) } }, + '#withTimeOptionsMixin': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTimeOptionsMixin(value): { timepicker+: { time_options+: (if std.isArray(value) + then value + else [value]) } }, + }, + '#withTimezone': { 'function': { args: [{ default: 'browser', enums: null, name: 'value', type: 'string' }], help: 'Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc".' } }, + withTimezone(value='browser'): { timezone: value }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Title of dashboard.' } }, + withTitle(value): { title: value }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique dashboard identifier that can be generated by anyone. string (8-40)' } }, + withUid(value): { uid: value }, + '#withVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Version of the dashboard, incremented each time the dashboard is updated.' } }, + withVersion(value): { version: value }, + '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withWeekStart(value): { weekStart: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet new file mode 100644 index 0000000..f3e4255 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet @@ -0,0 +1,65 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.librarypanel', name: 'librarypanel' }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Panel description' } }, + withDescription(value): { description: value }, + '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Folder UID' } }, + withFolderUid(value): { folderUid: value }, + '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMeta(value): { meta: value }, + '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMetaMixin(value): { meta+: value }, + meta+: + { + '#withConnectedDashboards': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withConnectedDashboards(value): { meta+: { connectedDashboards: value } }, + '#withCreated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withCreated(value): { meta+: { created: value } }, + '#withCreatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCreatedBy(value): { meta+: { createdBy: value } }, + '#withCreatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCreatedByMixin(value): { meta+: { createdBy+: value } }, + createdBy+: + { + '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAvatarUrl(value): { meta+: { createdBy+: { avatarUrl: value } } }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withId(value): { meta+: { createdBy+: { id: value } } }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { meta+: { createdBy+: { name: value } } }, + }, + '#withFolderName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFolderName(value): { meta+: { folderName: value } }, + '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFolderUid(value): { meta+: { folderUid: value } }, + '#withUpdated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUpdated(value): { meta+: { updated: value } }, + '#withUpdatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withUpdatedBy(value): { meta+: { updatedBy: value } }, + '#withUpdatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withUpdatedByMixin(value): { meta+: { updatedBy+: value } }, + updatedBy+: + { + '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAvatarUrl(value): { meta+: { updatedBy+: { avatarUrl: value } } }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withId(value): { meta+: { updatedBy+: { id: value } } }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { meta+: { updatedBy+: { name: value } } }, + }, + }, + '#withModel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: "TODO: should be the same panel schema defined in dashboard\nTypescript: Omit;" } }, + withModel(value): { model: value }, + '#withModelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: "TODO: should be the same panel schema defined in dashboard\nTypescript: Omit;" } }, + withModelMixin(value): { model+: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Panel name (also saved in the model)' } }, + withName(value): { name: value }, + '#withSchemaVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Dashboard version when this was saved (zero if unknown)' } }, + withSchemaVersion(value): { schemaVersion: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The panel type (from inside the model)' } }, + withType(value): { type: value }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Library element UID' } }, + withUid(value): { uid: value }, + '#withVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'panel version, incremented each time the dashboard is updated.' } }, + withVersion(value): { version: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet new file mode 100644 index 0000000..fd5cb72 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet @@ -0,0 +1,407 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel', name: 'panel' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'The datasource used in all targets.' } }, + withDatasource(value): { datasource: value }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'The datasource used in all targets.' } }, + withDatasourceMixin(value): { datasource+: value }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { datasource+: { type: value } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUid(value): { datasource+: { uid: value } }, + }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Description.' } }, + withDescription(value): { description: value }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfig(value): { fieldConfig: value }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfigMixin(value): { fieldConfig+: value }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaults(value): { fieldConfig+: { defaults: value } }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, + defaults+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withColor(value): { fieldConfig+: { defaults+: { color: value } } }, + '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withColorMixin(value): { fieldConfig+: { defaults+: { color+: value } } }, + color+: + { + '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Stores the fixed color value if mode is fixed' } }, + withFixedColor(value): { fieldConfig+: { defaults+: { color+: { fixedColor: value } } } }, + '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The main color scheme mode' } }, + withMode(value): { fieldConfig+: { defaults+: { color+: { mode: value } } } }, + '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSeriesBy(value): { fieldConfig+: { defaults+: { color+: { seriesBy: value } } } }, + }, + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'custom is specified by the PanelFieldConfig field\nin panel plugin schemas.' } }, + withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'custom is specified by the PanelFieldConfig field\nin panel plugin schemas.' } }, + withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Significant digits (for display)' } }, + withDecimals(value): { fieldConfig+: { defaults+: { decimals: value } } }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Human readable field metadata' } }, + withDescription(value): { fieldConfig+: { defaults+: { description: value } } }, + '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The display value for this field. This supports template variables blank is auto' } }, + withDisplayName(value): { fieldConfig+: { defaults+: { displayName: value } } }, + '#withDisplayNameFromDS': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'This can be used by data sources that return and explicit naming structure for values and labels\nWhen this property is configured, this value is used rather than the default naming strategy.' } }, + withDisplayNameFromDS(value): { fieldConfig+: { defaults+: { displayNameFromDS: value } } }, + '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'True if data source field supports ad-hoc filters' } }, + withFilterable(value=true): { fieldConfig+: { defaults+: { filterable: value } } }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The behavior when clicking on a result' } }, + withLinks(value): { fieldConfig+: { defaults+: { links: (if std.isArray(value) + then value + else [value]) } } }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The behavior when clicking on a result' } }, + withLinksMixin(value): { fieldConfig+: { defaults+: { links+: (if std.isArray(value) + then value + else [value]) } } }, + '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Convert input values into a display string' } }, + withMappings(value): { fieldConfig+: { defaults+: { mappings: (if std.isArray(value) + then value + else [value]) } } }, + '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Convert input values into a display string' } }, + withMappingsMixin(value): { fieldConfig+: { defaults+: { mappings+: (if std.isArray(value) + then value + else [value]) } } }, + mappings+: + { + ValueMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + RangeMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'to and from are `number | null` in current ts, really not sure what to do' } }, + withFrom(value): { options+: { from: value } }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResult(value): { options+: { result: value } }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResultMixin(value): { options+: { result+: value } }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withColor(value): { options+: { result+: { color: value } } }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { options+: { result+: { icon: value } } }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withIndex(value): { options+: { result+: { index: value } } }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withText(value): { options+: { result+: { text: value } } }, + }, + '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withTo(value): { options+: { to: value } }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + RegexMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPattern(value): { options+: { pattern: value } }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResult(value): { options+: { result: value } }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResultMixin(value): { options+: { result+: value } }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withColor(value): { options+: { result+: { color: value } } }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { options+: { result+: { icon: value } } }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withIndex(value): { options+: { result+: { index: value } } }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withText(value): { options+: { result+: { text: value } } }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + SpecialValueMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false'], name: 'value', type: 'string' }], help: '' } }, + withMatch(value): { options+: { match: value } }, + '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPattern(value): { options+: { pattern: value } }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResult(value): { options+: { result: value } }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withResultMixin(value): { options+: { result+: value } }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withColor(value): { options+: { result+: { color: value } } }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { options+: { result+: { icon: value } } }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withIndex(value): { options+: { result+: { index: value } } }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withText(value): { options+: { result+: { text: value } } }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMax(value): { fieldConfig+: { defaults+: { max: value } } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMin(value): { fieldConfig+: { defaults+: { min: value } } }, + '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Alternative to empty string' } }, + withNoValue(value): { fieldConfig+: { defaults+: { noValue: value } } }, + '#withPath': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'An explicit path to the field in the datasource. When the frame meta includes a path,\nThis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used to update the results' } }, + withPath(value): { fieldConfig+: { defaults+: { path: value } } }, + '#withThresholds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withThresholds(value): { fieldConfig+: { defaults+: { thresholds: value } } }, + '#withThresholdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withThresholdsMixin(value): { fieldConfig+: { defaults+: { thresholds+: value } } }, + thresholds+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { fieldConfig+: { defaults+: { thresholds+: { mode: value } } } }, + '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: "Must be sorted by 'value', first value is always -Infinity" } }, + withSteps(value): { fieldConfig+: { defaults+: { thresholds+: { steps: (if std.isArray(value) + then value + else [value]) } } } }, + '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: "Must be sorted by 'value', first value is always -Infinity" } }, + withStepsMixin(value): { fieldConfig+: { defaults+: { thresholds+: { steps+: (if std.isArray(value) + then value + else [value]) } } } }, + steps+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, + withColor(value): { color: value }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Threshold index, an old property that is not needed an should only appear in older dashboards' } }, + withIndex(value): { index: value }, + '#withState': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO are the values here enumerable into a disjunction?\nSome seem to be listed in typescript comment' } }, + withState(value): { state: value }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'TODO docs\nFIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON' } }, + withValue(value): { value: value }, + }, + }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Numeric Options' } }, + withUnit(value): { fieldConfig+: { defaults+: { unit: value } } }, + '#withWriteable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'True if data source can write a value to the path. Auth/authz are supported separately' } }, + withWriteable(value=true): { fieldConfig+: { defaults+: { writeable: value } } }, + }, + '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withOverrides(value): { fieldConfig+: { overrides: (if std.isArray(value) + then value + else [value]) } }, + '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withOverridesMixin(value): { fieldConfig+: { overrides+: (if std.isArray(value) + then value + else [value]) } }, + overrides+: + { + '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMatcher(value): { matcher: value }, + '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMatcherMixin(value): { matcher+: value }, + matcher+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value=''): { matcher+: { id: value } }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withOptions(value): { matcher+: { options: value } }, + }, + '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withProperties(value): { properties: (if std.isArray(value) + then value + else [value]) }, + '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPropertiesMixin(value): { properties+: (if std.isArray(value) + then value + else [value]) }, + properties+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value=''): { id: value }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withValue(value): { value: value }, + }, + }, + }, + '#withGridPos': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withGridPos(value): { gridPos: value }, + '#withGridPosMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withGridPosMixin(value): { gridPos+: value }, + gridPos+: + { + '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, + withH(value=9): { gridPos+: { h: value } }, + '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if fixed' } }, + withStatic(value=true): { gridPos+: { static: value } }, + '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, + withW(value=12): { gridPos+: { w: value } }, + '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel x' } }, + withX(value=0): { gridPos+: { x: value } }, + '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel y' } }, + withY(value=0): { gridPos+: { y: value } }, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'TODO docs' } }, + withId(value): { id: value }, + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, + withInterval(value): { interval: value }, + '#withLibraryPanel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLibraryPanel(value): { libraryPanel: value }, + '#withLibraryPanelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLibraryPanelMixin(value): { libraryPanel+: value }, + libraryPanel+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { libraryPanel+: { name: value } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUid(value): { libraryPanel+: { uid: value } }, + }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, + withLinks(value): { links: (if std.isArray(value) + then value + else [value]) }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, + withLinksMixin(value): { links+: (if std.isArray(value) + then value + else [value]) }, + links+: + { + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsDropdown(value=true): { asDropdown: value }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withIcon(value): { icon: value }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIncludeVars(value=true): { includeVars: value }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withKeepTime(value=true): { keepTime: value }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTags(value): { tags: (if std.isArray(value) + then value + else [value]) }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTagsMixin(value): { tags+: (if std.isArray(value) + then value + else [value]) }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTargetBlank(value=true): { targetBlank: value }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTitle(value): { title: value }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTooltip(value): { tooltip: value }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { type: value }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUrl(value): { url: value }, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'TODO docs' } }, + withMaxDataPoints(value): { maxDataPoints: value }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'options is specified by the PanelOptions field in panel\nplugin schemas.' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'options is specified by the PanelOptions field in panel\nplugin schemas.' } }, + withOptionsMixin(value): { options+: value }, + '#withPluginVersion': { 'function': { args: [], help: '' } }, + withPluginVersion(): { pluginVersion: 'v10.0.0' }, + '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of template variable to repeat for.' } }, + withRepeat(value): { repeat: value }, + '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: 'string' }], help: "Direction to repeat in if 'repeat' is set.\n\"h\" for horizontal, \"v\" for vertical.\nTODO this is probably optional" } }, + withRepeatDirection(value='h'): { repeatDirection: value }, + '#withRepeatPanelId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Id of the repeating panel.' } }, + withRepeatPanelId(value): { repeatPanelId: value }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTags(value): { tags: (if std.isArray(value) + then value + else [value]) }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTagsMixin(value): { tags+: (if std.isArray(value) + then value + else [value]) }, + '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTargets(value): { targets: (if std.isArray(value) + then value + else [value]) }, + '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTargetsMixin(value): { targets+: (if std.isArray(value) + then value + else [value]) }, + '#withThresholds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs - seems to be an old field from old dashboard alerts?' } }, + withThresholds(value): { thresholds: (if std.isArray(value) + then value + else [value]) }, + '#withThresholdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs - seems to be an old field from old dashboard alerts?' } }, + withThresholdsMixin(value): { thresholds+: (if std.isArray(value) + then value + else [value]) }, + '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, + withTimeFrom(value): { timeFrom: value }, + '#withTimeRegions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTimeRegions(value): { timeRegions: (if std.isArray(value) + then value + else [value]) }, + '#withTimeRegionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, + withTimeRegionsMixin(value): { timeRegions+: (if std.isArray(value) + then value + else [value]) }, + '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, + withTimeShift(value): { timeShift: value }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Panel title.' } }, + withTitle(value): { title: value }, + '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTransformations(value): { transformations: (if std.isArray(value) + then value + else [value]) }, + '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTransformationsMixin(value): { transformations+: (if std.isArray(value) + then value + else [value]) }, + transformations+: + { + '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Disabled transformations are skipped' } }, + withDisabled(value=true): { disabled: value }, + '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFilter(value): { filter: value }, + '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFilterMixin(value): { filter+: value }, + filter+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value=''): { filter+: { id: value } }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withOptions(value): { filter+: { options: value } }, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique identifier of transformer' } }, + withId(value): { id: value }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, + withOptions(value): { options: value }, + }, + '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether to display the panel without a background.' } }, + withTransparent(value=true): { transparent: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The panel plugin type id. May not be empty.' } }, + withType(value): { type: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet new file mode 100644 index 0000000..bbf840b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet @@ -0,0 +1,19 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.alertGroups', name: 'alertGroups' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withAlertmanager': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the alertmanager used as a source for alerts' } }, + withAlertmanager(value): { options+: { alertmanager: value } }, + '#withExpandAll': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Expand all alert groups by default' } }, + withExpandAll(value=true): { options+: { expandAll: value } }, + '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Comma-separated list of values used to filter alert results' } }, + withLabels(value): { options+: { labels: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'alertGroups' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet new file mode 100644 index 0000000..d88a367 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet @@ -0,0 +1,39 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.annotationsList', name: 'annotationsList' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withLimit': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLimit(value=10): { options+: { limit: value } }, + '#withNavigateAfter': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: 'string' }], help: '' } }, + withNavigateAfter(value='10m'): { options+: { navigateAfter: value } }, + '#withNavigateBefore': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: 'string' }], help: '' } }, + withNavigateBefore(value='10m'): { options+: { navigateBefore: value } }, + '#withNavigateToPanel': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withNavigateToPanel(value=true): { options+: { navigateToPanel: value } }, + '#withOnlyFromThisDashboard': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withOnlyFromThisDashboard(value=true): { options+: { onlyFromThisDashboard: value } }, + '#withOnlyInTimeRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withOnlyInTimeRange(value=true): { options+: { onlyInTimeRange: value } }, + '#withShowTags': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowTags(value=true): { options+: { showTags: value } }, + '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowTime(value=true): { options+: { showTime: value } }, + '#withShowUser': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowUser(value=true): { options+: { showUser: value } }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTags(value): { options+: { tags: (if std.isArray(value) + then value + else [value]) } }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTagsMixin(value): { options+: { tags+: (if std.isArray(value) + then value + else [value]) } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'annolist' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet new file mode 100644 index 0000000..5163d5f --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet @@ -0,0 +1,168 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.barChart', name: 'barChart' }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfig(value): { fieldConfig: value }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfigMixin(value): { fieldConfig+: value }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaults(value): { fieldConfig+: { defaults: value } }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, + defaults+: + { + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, + custom+: + { + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: 'integer' }], help: 'Controls the fill opacity of the bars.' } }, + withFillOpacity(value=80): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, + withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, + '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls line width of the bars.' } }, + withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, + }, + }, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withBarRadius': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'number' }], help: 'Controls the radius of each bar.' } }, + withBarRadius(value=0): { options+: { barRadius: value } }, + '#withBarWidth': { 'function': { args: [{ default: 0.96999999999999997, enums: null, name: 'value', type: 'number' }], help: 'Controls the width of bars. 1 = Max width, 0 = Min width.' } }, + withBarWidth(value=0.96999999999999997): { options+: { barWidth: value } }, + '#withColorByField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Use the color value for a sibling field to color each bar value.' } }, + withColorByField(value): { options+: { colorByField: value } }, + '#withFullHighlight': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Enables mode which highlights the entire bar area and shows tooltip when cursor\nhovers over highlighted area' } }, + withFullHighlight(value=true): { options+: { fullHighlight: value } }, + '#withGroupWidth': { 'function': { args: [{ default: 0.69999999999999996, enums: null, name: 'value', type: 'number' }], help: 'Controls the width of groups. 1 = max with, 0 = min width.' } }, + withGroupWidth(value=0.69999999999999996): { options+: { groupWidth: value } }, + '#withOrientation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the orientation of the bar chart, either vertical or horizontal.' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'This controls whether values are shown on top or to the left of bars.' } }, + withShowValue(value): { options+: { showValue: value } }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls whether bars are stacked or not, either normally or in percent mode.' } }, + withStacking(value): { options+: { stacking: value } }, + '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Manually select which field from the dataset to represent the x field.' } }, + withXField(value): { options+: { xField: value } }, + '#withXTickLabelMaxLength': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Sets the max length that a label can have before it is truncated.' } }, + withXTickLabelMaxLength(value): { options+: { xTickLabelMaxLength: value } }, + '#withXTickLabelRotation': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Controls the rotation of the x axis labels.' } }, + withXTickLabelRotation(value=0): { options+: { xTickLabelRotation: value } }, + '#withXTickLabelSpacing': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Controls the spacing between x axis labels.\nnegative values indicate backwards skipping behavior' } }, + withXTickLabelSpacing(value=0): { options+: { xTickLabelSpacing: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'barchart' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet new file mode 100644 index 0000000..094ec96 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet @@ -0,0 +1,57 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.barGauge', name: 'barGauge' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptions(value): { options+: { reduceOptions: value } }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { options+: { reduceOptions+: { fields: value } } }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, + withLimit(value): { options+: { reduceOptions+: { limit: value } } }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, + withValues(value=true): { options+: { reduceOptions+: { values: value } } }, + }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['basic', 'lcd', 'gradient'], name: 'value', type: 'string' }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, + withDisplayMode(value): { options+: { displayMode: value } }, + '#withMinVizHeight': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMinVizHeight(value=10): { options+: { minVizHeight: value } }, + '#withMinVizWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMinVizWidth(value=0): { options+: { minVizWidth: value } }, + '#withShowUnfilled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowUnfilled(value=true): { options+: { showUnfilled: value } }, + '#withValueMode': { 'function': { args: [{ default: null, enums: ['color', 'text', 'hidden'], name: 'value', type: 'string' }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, + withValueMode(value): { options+: { valueMode: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'bargauge' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet new file mode 100644 index 0000000..5a06bc0 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet @@ -0,0 +1,6 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.candlestick', name: 'candlestick' }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'candlestick' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet new file mode 100644 index 0000000..48e4eca --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet @@ -0,0 +1,6 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.canvas', name: 'canvas' }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'canvas' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet new file mode 100644 index 0000000..55afdd9 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet @@ -0,0 +1,39 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.dashboardList', name: 'dashboardList' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withFolderId(value): { options+: { folderId: value } }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIncludeVars(value=true): { options+: { includeVars: value } }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withKeepTime(value=true): { options+: { keepTime: value } }, + '#withMaxItems': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMaxItems(value=10): { options+: { maxItems: value } }, + '#withQuery': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, + withQuery(value=''): { options+: { query: value } }, + '#withShowHeadings': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowHeadings(value=true): { options+: { showHeadings: value } }, + '#withShowRecentlyViewed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowRecentlyViewed(value=true): { options+: { showRecentlyViewed: value } }, + '#withShowSearch': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowSearch(value=true): { options+: { showSearch: value } }, + '#withShowStarred': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowStarred(value=true): { options+: { showStarred: value } }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTags(value): { options+: { tags: (if std.isArray(value) + then value + else [value]) } }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTagsMixin(value): { options+: { tags+: (if std.isArray(value) + then value + else [value]) } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'dashlist' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet new file mode 100644 index 0000000..a7eeb44 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet @@ -0,0 +1,15 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.datagrid', name: 'datagrid' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withSelectedSeries': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withSelectedSeries(value=0): { options+: { selectedSeries: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'datagrid' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet new file mode 100644 index 0000000..b3f01fb --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet @@ -0,0 +1,43 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.debug', name: 'debug' }, + '#withDebugMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: 'string' }], help: '' } }, + withDebugMode(value): { DebugMode: value }, + '#withUpdateConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withUpdateConfig(value): { UpdateConfig: value }, + '#withUpdateConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withUpdateConfigMixin(value): { UpdateConfig+: value }, + UpdateConfig+: + { + '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withDataChanged(value=true): { UpdateConfig+: { dataChanged: value } }, + '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withRender(value=true): { UpdateConfig+: { render: value } }, + '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSchemaChanged(value=true): { UpdateConfig+: { schemaChanged: value } }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withCounters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCounters(value): { options+: { counters: value } }, + '#withCountersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCountersMixin(value): { options+: { counters+: value } }, + counters+: + { + '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withDataChanged(value=true): { options+: { counters+: { dataChanged: value } } }, + '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withRender(value=true): { options+: { counters+: { render: value } } }, + '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSchemaChanged(value=true): { options+: { counters+: { schemaChanged: value } } }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { mode: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'debug' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet new file mode 100644 index 0000000..8a5d39a --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet @@ -0,0 +1,51 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.gauge', name: 'gauge' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptions(value): { options+: { reduceOptions: value } }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { options+: { reduceOptions+: { fields: value } } }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, + withLimit(value): { options+: { reduceOptions+: { limit: value } } }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, + withValues(value=true): { options+: { reduceOptions+: { values: value } } }, + }, + '#withShowThresholdLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowThresholdLabels(value=true): { options+: { showThresholdLabels: value } }, + '#withShowThresholdMarkers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowThresholdMarkers(value=true): { options+: { showThresholdMarkers: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'gauge' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet new file mode 100644 index 0000000..838945e --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet @@ -0,0 +1,215 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.geomap', name: 'geomap' }, + '#withControlsOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withControlsOptions(value): { ControlsOptions: value }, + '#withControlsOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withControlsOptionsMixin(value): { ControlsOptions+: value }, + ControlsOptions+: + { + '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'let the mouse wheel zoom' } }, + withMouseWheelZoom(value=true): { ControlsOptions+: { mouseWheelZoom: value } }, + '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Lower right' } }, + withShowAttribution(value=true): { ControlsOptions+: { showAttribution: value } }, + '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show debug' } }, + withShowDebug(value=true): { ControlsOptions+: { showDebug: value } }, + '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show measure' } }, + withShowMeasure(value=true): { ControlsOptions+: { showMeasure: value } }, + '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Scale options' } }, + withShowScale(value=true): { ControlsOptions+: { showScale: value } }, + '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Zoom (upper left)' } }, + withShowZoom(value=true): { ControlsOptions+: { showZoom: value } }, + }, + '#withMapCenterID': { 'function': { args: [{ default: null, enums: ['zero', 'coords', 'fit'], name: 'value', type: 'string' }], help: '' } }, + withMapCenterID(value): { MapCenterID: value }, + '#withMapViewConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMapViewConfig(value): { MapViewConfig: value }, + '#withMapViewConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMapViewConfigMixin(value): { MapViewConfig+: value }, + MapViewConfig+: + { + '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAllLayers(value=true): { MapViewConfig+: { allLayers: value } }, + '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value='zero'): { MapViewConfig+: { id: value } }, + '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLastOnly(value=true): { MapViewConfig+: { lastOnly: value } }, + '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLat(value=0): { MapViewConfig+: { lat: value } }, + '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLayer(value): { MapViewConfig+: { layer: value } }, + '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLon(value=0): { MapViewConfig+: { lon: value } }, + '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMaxZoom(value): { MapViewConfig+: { maxZoom: value } }, + '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMinZoom(value): { MapViewConfig+: { minZoom: value } }, + '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withPadding(value): { MapViewConfig+: { padding: value } }, + '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShared(value=true): { MapViewConfig+: { shared: value } }, + '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withZoom(value=1): { MapViewConfig+: { zoom: value } }, + }, + '#withTooltipMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: 'string' }], help: '' } }, + withTooltipMode(value): { TooltipMode: value }, + '#withTooltipOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withTooltipOptions(value): { TooltipOptions: value }, + '#withTooltipOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withTooltipOptionsMixin(value): { TooltipOptions+: value }, + TooltipOptions+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { TooltipOptions+: { mode: value } }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withBasemap': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withBasemap(value): { options+: { basemap: value } }, + '#withBasemapMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withBasemapMixin(value): { options+: { basemap+: value } }, + basemap+: + { + '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Custom options depending on the type' } }, + withConfig(value): { options+: { basemap+: { config: value } } }, + '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, + withFilterData(value): { options+: { basemap+: { filterData: value } } }, + '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLocation(value): { options+: { basemap+: { location: value } } }, + '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLocationMixin(value): { options+: { basemap+: { location+: value } } }, + location+: + { + '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Path to Gazetteer' } }, + withGazetteer(value): { options+: { basemap+: { location+: { gazetteer: value } } } }, + '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field mappings' } }, + withGeohash(value): { options+: { basemap+: { location+: { geohash: value } } } }, + '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLatitude(value): { options+: { basemap+: { location+: { latitude: value } } } }, + '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLongitude(value): { options+: { basemap+: { location+: { longitude: value } } } }, + '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLookup(value): { options+: { basemap+: { location+: { lookup: value } } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { basemap+: { location+: { mode: value } } } }, + '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withWkt(value): { options+: { basemap+: { location+: { wkt: value } } } }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'configured unique display name' } }, + withName(value): { options+: { basemap+: { name: value } } }, + '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, + withOpacity(value): { options+: { basemap+: { opacity: value } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Check tooltip (defaults to true)' } }, + withTooltip(value=true): { options+: { basemap+: { tooltip: value } } }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { options+: { basemap+: { type: value } } }, + }, + '#withControls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withControls(value): { options+: { controls: value } }, + '#withControlsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withControlsMixin(value): { options+: { controls+: value } }, + controls+: + { + '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'let the mouse wheel zoom' } }, + withMouseWheelZoom(value=true): { options+: { controls+: { mouseWheelZoom: value } } }, + '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Lower right' } }, + withShowAttribution(value=true): { options+: { controls+: { showAttribution: value } } }, + '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show debug' } }, + withShowDebug(value=true): { options+: { controls+: { showDebug: value } } }, + '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show measure' } }, + withShowMeasure(value=true): { options+: { controls+: { showMeasure: value } } }, + '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Scale options' } }, + withShowScale(value=true): { options+: { controls+: { showScale: value } } }, + '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Zoom (upper left)' } }, + withShowZoom(value=true): { options+: { controls+: { showZoom: value } } }, + }, + '#withLayers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withLayers(value): { options+: { layers: (if std.isArray(value) + then value + else [value]) } }, + '#withLayersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withLayersMixin(value): { options+: { layers+: (if std.isArray(value) + then value + else [value]) } }, + layers+: + { + '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Custom options depending on the type' } }, + withConfig(value): { config: value }, + '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, + withFilterData(value): { filterData: value }, + '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLocation(value): { location: value }, + '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLocationMixin(value): { location+: value }, + location+: + { + '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Path to Gazetteer' } }, + withGazetteer(value): { location+: { gazetteer: value } }, + '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field mappings' } }, + withGeohash(value): { location+: { geohash: value } }, + '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLatitude(value): { location+: { latitude: value } }, + '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLongitude(value): { location+: { longitude: value } }, + '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLookup(value): { location+: { lookup: value } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { location+: { mode: value } }, + '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withWkt(value): { location+: { wkt: value } }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'configured unique display name' } }, + withName(value): { name: value }, + '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, + withOpacity(value): { opacity: value }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Check tooltip (defaults to true)' } }, + withTooltip(value=true): { tooltip: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + }, + '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withView(value): { options+: { view: value } }, + '#withViewMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withViewMixin(value): { options+: { view+: value } }, + view+: + { + '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAllLayers(value=true): { options+: { view+: { allLayers: value } } }, + '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value='zero'): { options+: { view+: { id: value } } }, + '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLastOnly(value=true): { options+: { view+: { lastOnly: value } } }, + '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLat(value=0): { options+: { view+: { lat: value } } }, + '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLayer(value): { options+: { view+: { layer: value } } }, + '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLon(value=0): { options+: { view+: { lon: value } } }, + '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMaxZoom(value): { options+: { view+: { maxZoom: value } } }, + '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withMinZoom(value): { options+: { view+: { minZoom: value } } }, + '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withPadding(value): { options+: { view+: { padding: value } } }, + '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShared(value=true): { options+: { view+: { shared: value } } }, + '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withZoom(value=1): { options+: { view+: { zoom: value } } }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'geomap' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet new file mode 100644 index 0000000..89dceaf --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet @@ -0,0 +1,414 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.heatmap', name: 'heatmap' }, + '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, + withCellValues(value): { CellValues: value }, + '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, + withCellValuesMixin(value): { CellValues+: value }, + CellValues+: + { + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for cell values' } }, + withDecimals(value): { CellValues+: { decimals: value } }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the cell value unit' } }, + withUnit(value): { CellValues+: { unit: value } }, + }, + '#withExemplarConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, + withExemplarConfig(value): { ExemplarConfig: value }, + '#withExemplarConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, + withExemplarConfigMixin(value): { ExemplarConfig+: value }, + ExemplarConfig+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the color of the exemplar markers' } }, + withColor(value): { ExemplarConfig+: { color: value } }, + }, + '#withFilterValueRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, + withFilterValueRange(value): { FilterValueRange: value }, + '#withFilterValueRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, + withFilterValueRangeMixin(value): { FilterValueRange+: value }, + FilterValueRange+: + { + '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values greater than or equal to the given value' } }, + withGe(value): { FilterValueRange+: { ge: value } }, + '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values less than or equal to the given value' } }, + withLe(value): { FilterValueRange+: { le: value } }, + }, + '#withHeatmapColorMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: 'string' }], help: 'Controls the color mode of the heatmap' } }, + withHeatmapColorMode(value): { HeatmapColorMode: value }, + '#withHeatmapColorOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, + withHeatmapColorOptions(value): { HeatmapColorOptions: value }, + '#withHeatmapColorOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, + withHeatmapColorOptionsMixin(value): { HeatmapColorOptions+: value }, + HeatmapColorOptions+: + { + '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the exponent when scale is set to exponential' } }, + withExponent(value): { HeatmapColorOptions+: { exponent: value } }, + '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color fill when in opacity mode' } }, + withFill(value): { HeatmapColorOptions+: { fill: value } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the color scale' } }, + withMax(value): { HeatmapColorOptions+: { max: value } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the color scale' } }, + withMin(value): { HeatmapColorOptions+: { min: value } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: 'string' }], help: 'Controls the color mode of the heatmap' } }, + withMode(value): { HeatmapColorOptions+: { mode: value } }, + '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the color scheme' } }, + withReverse(value=true): { HeatmapColorOptions+: { reverse: value } }, + '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: 'string' }], help: 'Controls the color scale of the heatmap' } }, + withScale(value): { HeatmapColorOptions+: { scale: value } }, + '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color scheme used' } }, + withScheme(value): { HeatmapColorOptions+: { scheme: value } }, + '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Controls the number of color steps' } }, + withSteps(value): { HeatmapColorOptions+: { steps: value } }, + }, + '#withHeatmapColorScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: 'string' }], help: 'Controls the color scale of the heatmap' } }, + withHeatmapColorScale(value): { HeatmapColorScale: value }, + '#withHeatmapLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, + withHeatmapLegend(value): { HeatmapLegend: value }, + '#withHeatmapLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, + withHeatmapLegendMixin(value): { HeatmapLegend+: value }, + HeatmapLegend+: + { + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the legend is shown' } }, + withShow(value=true): { HeatmapLegend+: { show: value } }, + }, + '#withHeatmapTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, + withHeatmapTooltip(value): { HeatmapTooltip: value }, + '#withHeatmapTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, + withHeatmapTooltipMixin(value): { HeatmapTooltip+: value }, + HeatmapTooltip+: + { + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip is shown' } }, + withShow(value=true): { HeatmapTooltip+: { show: value } }, + '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, + withYHistogram(value=true): { HeatmapTooltip+: { yHistogram: value } }, + }, + '#withRowsHeatmapOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, + withRowsHeatmapOptions(value): { RowsHeatmapOptions: value }, + '#withRowsHeatmapOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, + withRowsHeatmapOptionsMixin(value): { RowsHeatmapOptions+: value }, + RowsHeatmapOptions+: + { + '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: 'string' }], help: '' } }, + withLayout(value): { RowsHeatmapOptions+: { layout: value } }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the name of the cell when not calculating from data' } }, + withValue(value): { RowsHeatmapOptions+: { value: value } }, + }, + '#withYAxisConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, + withYAxisConfig(value): { YAxisConfig: value }, + '#withYAxisConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, + withYAxisConfigMixin(value): { YAxisConfig+: value }, + YAxisConfig+: + { + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { YAxisConfig+: { axisCenteredZero: value } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { YAxisConfig+: { axisColorMode: value } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { YAxisConfig+: { axisGridShow: value } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { YAxisConfig+: { axisLabel: value } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { YAxisConfig+: { axisPlacement: value } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { YAxisConfig+: { axisSoftMax: value } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { YAxisConfig+: { axisSoftMin: value } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { YAxisConfig+: { axisWidth: value } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { YAxisConfig+: { scaleDistribution: value } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { YAxisConfig+: { scaleDistribution+: value } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { YAxisConfig+: { scaleDistribution+: { linearThreshold: value } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { YAxisConfig+: { scaleDistribution+: { log: value } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { YAxisConfig+: { scaleDistribution+: { type: value } } }, + }, + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for yAxis values' } }, + withDecimals(value): { YAxisConfig+: { decimals: value } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the yAxis' } }, + withMax(value): { YAxisConfig+: { max: value } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the yAxis' } }, + withMin(value): { YAxisConfig+: { min: value } }, + '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the yAxis' } }, + withReverse(value=true): { YAxisConfig+: { reverse: value } }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the yAxis unit' } }, + withUnit(value): { YAxisConfig+: { unit: value } }, + }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfig(value): { fieldConfig: value }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfigMixin(value): { fieldConfig+: value }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaults(value): { fieldConfig+: { defaults: value } }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, + defaults+: + { + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + }, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withCalculate': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the heatmap should be calculated from data' } }, + withCalculate(value=true): { options+: { calculate: value } }, + '#withCalculation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCalculation(value): { options+: { calculation: value } }, + '#withCalculationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCalculationMixin(value): { options+: { calculation+: value } }, + calculation+: + { + '#withXBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withXBuckets(value): { options+: { calculation+: { xBuckets: value } } }, + '#withXBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withXBucketsMixin(value): { options+: { calculation+: { xBuckets+: value } } }, + xBuckets+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { calculation+: { xBuckets+: { mode: value } } } }, + '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScale(value): { options+: { calculation+: { xBuckets+: { scale: value } } } }, + '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleMixin(value): { options+: { calculation+: { xBuckets+: { scale+: value } } } }, + scale+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { options+: { calculation+: { xBuckets+: { scale+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { options+: { calculation+: { xBuckets+: { scale+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { options+: { calculation+: { xBuckets+: { scale+: { type: value } } } } }, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The number of buckets to use for the axis in the heatmap' } }, + withValue(value): { options+: { calculation+: { xBuckets+: { value: value } } } }, + }, + '#withYBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withYBuckets(value): { options+: { calculation+: { yBuckets: value } } }, + '#withYBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withYBucketsMixin(value): { options+: { calculation+: { yBuckets+: value } } }, + yBuckets+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { calculation+: { yBuckets+: { mode: value } } } }, + '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScale(value): { options+: { calculation+: { yBuckets+: { scale: value } } } }, + '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleMixin(value): { options+: { calculation+: { yBuckets+: { scale+: value } } } }, + scale+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { options+: { calculation+: { yBuckets+: { scale+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { options+: { calculation+: { yBuckets+: { scale+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { options+: { calculation+: { yBuckets+: { scale+: { type: value } } } } }, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The number of buckets to use for the axis in the heatmap' } }, + withValue(value): { options+: { calculation+: { yBuckets+: { value: value } } } }, + }, + }, + '#withCellGap': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls gap between cells' } }, + withCellGap(value=1): { options+: { cellGap: value } }, + '#withCellRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls cell radius' } }, + withCellRadius(value): { options+: { cellRadius: value } }, + '#withCellValues': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value unit' } }, + withCellValues(value={}): { options+: { cellValues: value } }, + '#withCellValuesMixin': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value unit' } }, + withCellValuesMixin(value): { options+: { cellValues+: value } }, + cellValues+: + { + '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, + withCellValues(value): { options+: { cellValues+: { CellValues: value } } }, + '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, + withCellValuesMixin(value): { options+: { cellValues+: { CellValues+: value } } }, + CellValues+: + { + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for cell values' } }, + withDecimals(value): { options+: { cellValues+: { decimals: value } } }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the cell value unit' } }, + withUnit(value): { options+: { cellValues+: { unit: value } } }, + }, + }, + '#withColor': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: 'object' }], help: 'Controls the color options' } }, + withColor(value={ exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }): { options+: { color: value } }, + '#withColorMixin': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: 'object' }], help: 'Controls the color options' } }, + withColorMixin(value): { options+: { color+: value } }, + color+: + { + '#withHeatmapColorOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, + withHeatmapColorOptions(value): { options+: { color+: { HeatmapColorOptions: value } } }, + '#withHeatmapColorOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, + withHeatmapColorOptionsMixin(value): { options+: { color+: { HeatmapColorOptions+: value } } }, + HeatmapColorOptions+: + { + '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the exponent when scale is set to exponential' } }, + withExponent(value): { options+: { color+: { exponent: value } } }, + '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color fill when in opacity mode' } }, + withFill(value): { options+: { color+: { fill: value } } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the color scale' } }, + withMax(value): { options+: { color+: { max: value } } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the color scale' } }, + withMin(value): { options+: { color+: { min: value } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: 'string' }], help: 'Controls the color mode of the heatmap' } }, + withMode(value): { options+: { color+: { mode: value } } }, + '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the color scheme' } }, + withReverse(value=true): { options+: { color+: { reverse: value } } }, + '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: 'string' }], help: 'Controls the color scale of the heatmap' } }, + withScale(value): { options+: { color+: { scale: value } } }, + '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color scheme used' } }, + withScheme(value): { options+: { color+: { scheme: value } } }, + '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Controls the number of color steps' } }, + withSteps(value): { options+: { color+: { steps: value } } }, + }, + }, + '#withExemplars': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, + withExemplars(value): { options+: { exemplars: value } }, + '#withExemplarsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, + withExemplarsMixin(value): { options+: { exemplars+: value } }, + exemplars+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the color of the exemplar markers' } }, + withColor(value): { options+: { exemplars+: { color: value } } }, + }, + '#withFilterValues': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: 'object' }], help: 'Filters values between a given range' } }, + withFilterValues(value={ le: 1.0000000000000001e-09 }): { options+: { filterValues: value } }, + '#withFilterValuesMixin': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: 'object' }], help: 'Filters values between a given range' } }, + withFilterValuesMixin(value): { options+: { filterValues+: value } }, + filterValues+: + { + '#withFilterValueRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, + withFilterValueRange(value): { options+: { filterValues+: { FilterValueRange: value } } }, + '#withFilterValueRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, + withFilterValueRangeMixin(value): { options+: { filterValues+: { FilterValueRange+: value } } }, + FilterValueRange+: + { + '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values greater than or equal to the given value' } }, + withGe(value): { options+: { filterValues+: { ge: value } } }, + '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values less than or equal to the given value' } }, + withLe(value): { options+: { filterValues+: { le: value } } }, + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the legend is shown' } }, + withShow(value=true): { options+: { legend+: { show: value } } }, + }, + '#withRowsFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, + withRowsFrame(value): { options+: { rowsFrame: value } }, + '#withRowsFrameMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, + withRowsFrameMixin(value): { options+: { rowsFrame+: value } }, + rowsFrame+: + { + '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: 'string' }], help: '' } }, + withLayout(value): { options+: { rowsFrame+: { layout: value } } }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the name of the cell when not calculating from data' } }, + withValue(value): { options+: { rowsFrame+: { value: value } } }, + }, + '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '| *{\n\tlayout: ui.HeatmapCellLayout & "auto" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\n}\nControls the display of the value in the cell' } }, + withShowValue(value): { options+: { showValue: value } }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip is shown' } }, + withShow(value=true): { options+: { tooltip+: { show: value } } }, + '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, + withYHistogram(value=true): { options+: { tooltip+: { yHistogram: value } } }, + }, + '#withYAxis': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, + withYAxis(value): { options+: { yAxis: value } }, + '#withYAxisMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, + withYAxisMixin(value): { options+: { yAxis+: value } }, + yAxis+: + { + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { options+: { yAxis+: { axisCenteredZero: value } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { options+: { yAxis+: { axisColorMode: value } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { options+: { yAxis+: { axisGridShow: value } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { options+: { yAxis+: { axisLabel: value } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { options+: { yAxis+: { axisPlacement: value } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { options+: { yAxis+: { axisSoftMax: value } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { options+: { yAxis+: { axisSoftMin: value } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { options+: { yAxis+: { axisWidth: value } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { options+: { yAxis+: { scaleDistribution: value } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { options+: { yAxis+: { scaleDistribution+: value } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { options+: { yAxis+: { scaleDistribution+: { linearThreshold: value } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { options+: { yAxis+: { scaleDistribution+: { log: value } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { options+: { yAxis+: { scaleDistribution+: { type: value } } } }, + }, + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for yAxis values' } }, + withDecimals(value): { options+: { yAxis+: { decimals: value } } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the yAxis' } }, + withMax(value): { options+: { yAxis+: { max: value } } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the yAxis' } }, + withMin(value): { options+: { yAxis+: { min: value } } }, + '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the yAxis' } }, + withReverse(value=true): { options+: { yAxis+: { reverse: value } } }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the yAxis unit' } }, + withUnit(value): { options+: { yAxis+: { unit: value } } }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'heatmap' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet new file mode 100644 index 0000000..42215d6 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet @@ -0,0 +1,130 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.histogram', name: 'histogram' }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfig(value): { fieldConfig: value }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfigMixin(value): { fieldConfig+: value }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaults(value): { fieldConfig+: { defaults: value } }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, + defaults+: + { + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, + custom+: + { + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: 'integer' }], help: 'Controls the fill opacity of the bars.' } }, + withFillOpacity(value=80): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, + withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, + '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls line width of the bars.' } }, + withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + }, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withBucketOffset': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Offset buckets by this amount' } }, + withBucketOffset(value=0): { options+: { bucketOffset: value } }, + '#withBucketSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Size of each bucket' } }, + withBucketSize(value): { options+: { bucketSize: value } }, + '#withCombine': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Combines multiple series into a single histogram' } }, + withCombine(value=true): { options+: { combine: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'histogram' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet new file mode 100644 index 0000000..e140795 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet @@ -0,0 +1,29 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.logs', name: 'logs' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withDedupStrategy': { 'function': { args: [{ default: null, enums: ['none', 'exact', 'numbers', 'signature'], name: 'value', type: 'string' }], help: '' } }, + withDedupStrategy(value): { options+: { dedupStrategy: value } }, + '#withEnableLogDetails': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withEnableLogDetails(value=true): { options+: { enableLogDetails: value } }, + '#withPrettifyLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withPrettifyLogMessage(value=true): { options+: { prettifyLogMessage: value } }, + '#withShowCommonLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowCommonLabels(value=true): { options+: { showCommonLabels: value } }, + '#withShowLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLabels(value=true): { options+: { showLabels: value } }, + '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowTime(value=true): { options+: { showTime: value } }, + '#withSortOrder': { 'function': { args: [{ default: null, enums: ['Descending', 'Ascending'], name: 'value', type: 'string' }], help: '' } }, + withSortOrder(value): { options+: { sortOrder: value } }, + '#withWrapLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withWrapLogMessage(value=true): { options+: { wrapLogMessage: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'logs' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet new file mode 100644 index 0000000..34e5618 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet @@ -0,0 +1,17 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.news', name: 'news' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withFeedUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'empty/missing will default to grafana blog' } }, + withFeedUrl(value): { options+: { feedUrl: value } }, + '#withShowImage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowImage(value=true): { options+: { showImage: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'news' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet new file mode 100644 index 0000000..402d35b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet @@ -0,0 +1,98 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.nodeGraph', name: 'nodeGraph' }, + '#withArcOption': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withArcOption(value): { ArcOption: value }, + '#withArcOptionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withArcOptionMixin(value): { ArcOption+: value }, + ArcOption+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The color of the arc.' } }, + withColor(value): { ArcOption+: { color: value } }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, + withField(value): { ArcOption+: { field: value } }, + }, + '#withEdgeOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withEdgeOptions(value): { EdgeOptions: value }, + '#withEdgeOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withEdgeOptionsMixin(value): { EdgeOptions+: value }, + EdgeOptions+: + { + '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, + withMainStatUnit(value): { EdgeOptions+: { mainStatUnit: value } }, + '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, + withSecondaryStatUnit(value): { EdgeOptions+: { secondaryStatUnit: value } }, + }, + '#withNodeOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withNodeOptions(value): { NodeOptions: value }, + '#withNodeOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withNodeOptionsMixin(value): { NodeOptions+: value }, + NodeOptions+: + { + '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, + withArcs(value): { NodeOptions+: { arcs: (if std.isArray(value) + then value + else [value]) } }, + '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, + withArcsMixin(value): { NodeOptions+: { arcs+: (if std.isArray(value) + then value + else [value]) } }, + arcs+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The color of the arc.' } }, + withColor(value): { color: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, + withField(value): { field: value }, + }, + '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, + withMainStatUnit(value): { NodeOptions+: { mainStatUnit: value } }, + '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, + withSecondaryStatUnit(value): { NodeOptions+: { secondaryStatUnit: value } }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withEdges(value): { options+: { edges: value } }, + '#withEdgesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withEdgesMixin(value): { options+: { edges+: value } }, + edges+: + { + '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, + withMainStatUnit(value): { options+: { edges+: { mainStatUnit: value } } }, + '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, + withSecondaryStatUnit(value): { options+: { edges+: { secondaryStatUnit: value } } }, + }, + '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withNodes(value): { options+: { nodes: value } }, + '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withNodesMixin(value): { options+: { nodes+: value } }, + nodes+: + { + '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, + withArcs(value): { options+: { nodes+: { arcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, + withArcsMixin(value): { options+: { nodes+: { arcs+: (if std.isArray(value) + then value + else [value]) } } }, + arcs+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The color of the arc.' } }, + withColor(value): { color: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, + withField(value): { field: value }, + }, + '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, + withMainStatUnit(value): { options+: { nodes+: { mainStatUnit: value } } }, + '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, + withSecondaryStatUnit(value): { options+: { nodes+: { secondaryStatUnit: value } } }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'nodeGraph' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet new file mode 100644 index 0000000..cb4be75 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet @@ -0,0 +1,186 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.pieChart', name: 'pieChart' }, + '#withPieChartLabels': { 'function': { args: [{ default: null, enums: ['name', 'value', 'percent'], name: 'value', type: 'string' }], help: 'Select labels to display on the pie chart.\n - Name - The series or field name.\n - Percent - The percentage of the whole.\n - Value - The raw numerical value.' } }, + withPieChartLabels(value): { PieChartLabels: value }, + '#withPieChartLegendOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPieChartLegendOptions(value): { PieChartLegendOptions: value }, + '#withPieChartLegendOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPieChartLegendOptionsMixin(value): { PieChartLegendOptions+: value }, + PieChartLegendOptions+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { PieChartLegendOptions+: { asTable: value } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { PieChartLegendOptions+: { calcs: (if std.isArray(value) + then value + else [value]) } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { PieChartLegendOptions+: { calcs+: (if std.isArray(value) + then value + else [value]) } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { PieChartLegendOptions+: { displayMode: value } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { PieChartLegendOptions+: { isVisible: value } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { PieChartLegendOptions+: { placement: value } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { PieChartLegendOptions+: { showLegend: value } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { PieChartLegendOptions+: { sortBy: value } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { PieChartLegendOptions+: { sortDesc: value } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { PieChartLegendOptions+: { width: value } }, + '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withValues(value): { PieChartLegendOptions+: { values: (if std.isArray(value) + then value + else [value]) } }, + '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withValuesMixin(value): { PieChartLegendOptions+: { values+: (if std.isArray(value) + then value + else [value]) } }, + }, + '#withPieChartLegendValues': { 'function': { args: [{ default: null, enums: ['value', 'percent'], name: 'value', type: 'string' }], help: 'Select values to display in the legend.\n - Percent: The percentage of the whole.\n - Value: The raw numerical value.' } }, + withPieChartLegendValues(value): { PieChartLegendValues: value }, + '#withPieChartType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: 'string' }], help: 'Select the pie chart display style.' } }, + withPieChartType(value): { PieChartType: value }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfig(value): { fieldConfig: value }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfigMixin(value): { fieldConfig+: value }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaults(value): { fieldConfig+: { defaults: value } }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, + defaults+: + { + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + }, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptions(value): { options+: { reduceOptions: value } }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { options+: { reduceOptions+: { fields: value } } }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, + withLimit(value): { options+: { reduceOptions+: { limit: value } } }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, + withValues(value=true): { options+: { reduceOptions+: { values: value } } }, + }, + '#withDisplayLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDisplayLabels(value): { options+: { displayLabels: (if std.isArray(value) + then value + else [value]) } }, + '#withDisplayLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDisplayLabelsMixin(value): { options+: { displayLabels+: (if std.isArray(value) + then value + else [value]) } }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withValues(value): { options+: { legend+: { values: (if std.isArray(value) + then value + else [value]) } } }, + '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withValuesMixin(value): { options+: { legend+: { values+: (if std.isArray(value) + then value + else [value]) } } }, + }, + '#withPieType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: 'string' }], help: 'Select the pie chart display style.' } }, + withPieType(value): { options+: { pieType: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'piechart' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet new file mode 100644 index 0000000..8855b79 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet @@ -0,0 +1,51 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.row', name: 'row' }, + '#withCollapsed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withCollapsed(value=true): { collapsed: value }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Name of default datasource.' } }, + withDatasource(value): { datasource: value }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Name of default datasource.' } }, + withDatasourceMixin(value): { datasource+: value }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { datasource+: { type: value } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUid(value): { datasource+: { uid: value } }, + }, + '#withGridPos': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withGridPos(value): { gridPos: value }, + '#withGridPosMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withGridPosMixin(value): { gridPos+: value }, + gridPos+: + { + '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, + withH(value=9): { gridPos+: { h: value } }, + '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if fixed' } }, + withStatic(value=true): { gridPos+: { static: value } }, + '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, + withW(value=12): { gridPos+: { w: value } }, + '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel x' } }, + withX(value=0): { gridPos+: { x: value } }, + '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel y' } }, + withY(value=0): { gridPos+: { y: value } }, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withId(value): { id: value }, + '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPanels(value): { panels: (if std.isArray(value) + then value + else [value]) }, + '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPanelsMixin(value): { panels+: (if std.isArray(value) + then value + else [value]) }, + '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of template variable to repeat for.' } }, + withRepeat(value): { repeat: value }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTitle(value): { title: value }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'row' }, +} ++ (import '../../custom/row.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet new file mode 100644 index 0000000..5011674 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet @@ -0,0 +1,55 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.stat', name: 'stat' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withText(value): { options+: { text: value } }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTextMixin(value): { options+: { text+: value } }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, + withTitleSize(value): { options+: { text+: { titleSize: value } } }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, + withValueSize(value): { options+: { text+: { valueSize: value } } }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withOrientation(value): { options+: { orientation: value } }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptions(value): { options+: { reduceOptions: value } }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { options+: { reduceOptions+: { fields: value } } }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, + withLimit(value): { options+: { reduceOptions+: { limit: value } } }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, + withValues(value=true): { options+: { reduceOptions+: { values: value } } }, + }, + '#withColorMode': { 'function': { args: [{ default: null, enums: ['value', 'background', 'background_solid', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withColorMode(value): { options+: { colorMode: value } }, + '#withGraphMode': { 'function': { args: [{ default: null, enums: ['none', 'line', 'area'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withGraphMode(value): { options+: { graphMode: value } }, + '#withJustifyMode': { 'function': { args: [{ default: null, enums: ['auto', 'center'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withJustifyMode(value): { options+: { justifyMode: value } }, + '#withTextMode': { 'function': { args: [{ default: null, enums: ['auto', 'value', 'value_and_name', 'name', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withTextMode(value): { options+: { textMode: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'stat' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet new file mode 100644 index 0000000..3fa3ca8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet @@ -0,0 +1,109 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.stateTimeline', name: 'stateTimeline' }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfig(value): { fieldConfig: value }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfigMixin(value): { fieldConfig+: value }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaults(value): { fieldConfig+: { defaults: value } }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, + defaults+: + { + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withFillOpacity(value=70): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withLineWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLineWidth(value=0): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + }, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezone(value): { options+: { timezone: (if std.isArray(value) + then value + else [value]) } }, + '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) + then value + else [value]) } }, + '#withAlignValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls value alignment on the timelines' } }, + withAlignValue(value): { options+: { alignValue: value } }, + '#withMergeValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Merge equal consecutive values' } }, + withMergeValues(value=true): { options+: { mergeValues: value } }, + '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Controls the row height' } }, + withRowHeight(value=0.90000000000000002): { options+: { rowHeight: value } }, + '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Show timeline values on chart' } }, + withShowValue(value): { options+: { showValue: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'state-timeline' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet new file mode 100644 index 0000000..2dbbf8a --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet @@ -0,0 +1,107 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.statusHistory', name: 'statusHistory' }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfig(value): { fieldConfig: value }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfigMixin(value): { fieldConfig+: value }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaults(value): { fieldConfig+: { defaults: value } }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, + defaults+: + { + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withFillOpacity(value=70): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + }, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezone(value): { options+: { timezone: (if std.isArray(value) + then value + else [value]) } }, + '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) + then value + else [value]) } }, + '#withColWidth': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Controls the column width' } }, + withColWidth(value=0.90000000000000002): { options+: { colWidth: value } }, + '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Set the height of the rows' } }, + withRowHeight(value=0.90000000000000002): { options+: { rowHeight: value } }, + '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Show values on the columns' } }, + withShowValue(value): { options+: { showValue: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'status-history' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet new file mode 100644 index 0000000..19b9a19 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet @@ -0,0 +1,72 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.table', name: 'table' }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withCellHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the height of the rows' } }, + withCellHeight(value): { options+: { cellHeight: value } }, + '#withFooter': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: 'object' }], help: 'Controls footer options' } }, + withFooter(value={ countRows: false, reducer: [], show: false }): { options+: { footer: value } }, + '#withFooterMixin': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: 'object' }], help: 'Controls footer options' } }, + withFooterMixin(value): { options+: { footer+: value } }, + footer+: + { + '#withTableFooterOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Footer options' } }, + withTableFooterOptions(value): { options+: { footer+: { TableFooterOptions: value } } }, + '#withTableFooterOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Footer options' } }, + withTableFooterOptionsMixin(value): { options+: { footer+: { TableFooterOptions+: value } } }, + TableFooterOptions+: + { + '#withCountRows': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withCountRows(value=true): { options+: { footer+: { countRows: value } } }, + '#withEnablePagination': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withEnablePagination(value=true): { options+: { footer+: { enablePagination: value } } }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFields(value): { options+: { footer+: { fields: (if std.isArray(value) + then value + else [value]) } } }, + '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFieldsMixin(value): { options+: { footer+: { fields+: (if std.isArray(value) + then value + else [value]) } } }, + '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withReducer(value): { options+: { footer+: { reducer: (if std.isArray(value) + then value + else [value]) } } }, + '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withReducerMixin(value): { options+: { footer+: { reducer+: (if std.isArray(value) + then value + else [value]) } } }, + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShow(value=true): { options+: { footer+: { show: value } } }, + }, + }, + '#withFrameIndex': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'number' }], help: 'Represents the index of the selected frame' } }, + withFrameIndex(value=0): { options+: { frameIndex: value } }, + '#withShowHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls whether the panel should show the header' } }, + withShowHeader(value=true): { options+: { showHeader: value } }, + '#withShowTypeIcons': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls whether the header should show icons for the column types' } }, + withShowTypeIcons(value=true): { options+: { showTypeIcons: value } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Used to control row sorting' } }, + withSortBy(value): { options+: { sortBy: (if std.isArray(value) + then value + else [value]) } }, + '#withSortByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Used to control row sorting' } }, + withSortByMixin(value): { options+: { sortBy+: (if std.isArray(value) + then value + else [value]) } }, + sortBy+: + { + '#withDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag used to indicate descending sort order' } }, + withDesc(value=true): { desc: value }, + '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the display name of the field to sort by' } }, + withDisplayName(value): { displayName: value }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'table' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet new file mode 100644 index 0000000..9e2dffb --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet @@ -0,0 +1,47 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.text', name: 'text' }, + '#withCodeLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: 'string' }], help: '' } }, + withCodeLanguage(value='plaintext'): { CodeLanguage: value }, + '#withCodeOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCodeOptions(value): { CodeOptions: value }, + '#withCodeOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCodeOptionsMixin(value): { CodeOptions+: value }, + CodeOptions+: + { + '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: 'string' }], help: '' } }, + withLanguage(value='plaintext'): { CodeOptions+: { language: value } }, + '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLineNumbers(value=true): { CodeOptions+: { showLineNumbers: value } }, + '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowMiniMap(value=true): { CodeOptions+: { showMiniMap: value } }, + }, + '#withTextMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: 'string' }], help: '' } }, + withTextMode(value): { TextMode: value }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withCode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCode(value): { options+: { code: value } }, + '#withCodeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withCodeMixin(value): { options+: { code+: value } }, + code+: + { + '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: 'string' }], help: '' } }, + withLanguage(value='plaintext'): { options+: { code+: { language: value } } }, + '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLineNumbers(value=true): { options+: { code+: { showLineNumbers: value } } }, + '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowMiniMap(value=true): { options+: { code+: { showMiniMap: value } } }, + }, + '#withContent': { 'function': { args: [{ default: '# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)', enums: null, name: 'value', type: 'string' }], help: '' } }, + withContent(value='# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)'): { options+: { content: value } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { options+: { mode: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'text' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet new file mode 100644 index 0000000..25f726b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet @@ -0,0 +1,199 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.timeSeries', name: 'timeSeries' }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfig(value): { fieldConfig: value }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfigMixin(value): { fieldConfig+: value }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaults(value): { fieldConfig+: { defaults: value } }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, + defaults+: + { + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, + custom+: + { + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLineColor(value): { fieldConfig+: { defaults+: { custom+: { lineColor: value } } } }, + '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withLineInterpolation(value): { fieldConfig+: { defaults+: { custom+: { lineInterpolation: value } } } }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyle(value): { fieldConfig+: { defaults+: { custom+: { lineStyle: value } } } }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: value } } } }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDash(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash: (if std.isArray(value) + then value + else [value]) } } } } }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDashMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash+: (if std.isArray(value) + then value + else [value]) } } } } }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, + withFill(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { fill: value } } } } }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLineWidth(value): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNulls(value): { fieldConfig+: { defaults+: { custom+: { spanNulls: value } } } }, + '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNullsMixin(value): { fieldConfig+: { defaults+: { custom+: { spanNulls+: value } } } }, + '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFillBelowTo(value): { fieldConfig+: { defaults+: { custom+: { fillBelowTo: value } } } }, + '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFillColor(value): { fieldConfig+: { defaults+: { custom+: { fillColor: value } } } }, + '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withFillOpacity(value): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPointColor(value): { fieldConfig+: { defaults+: { custom+: { pointColor: value } } } }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withPointSize(value): { fieldConfig+: { defaults+: { custom+: { pointSize: value } } } }, + '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPointSymbol(value): { fieldConfig+: { defaults+: { custom+: { pointSymbol: value } } } }, + '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withShowPoints(value): { fieldConfig+: { defaults+: { custom+: { showPoints: value } } } }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: 'integer' }], help: 'TODO docs' } }, + withBarAlignment(value): { fieldConfig+: { defaults+: { custom+: { barAlignment: value } } } }, + '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withBarMaxWidth(value): { fieldConfig+: { defaults+: { custom+: { barMaxWidth: value } } } }, + '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withBarWidthFactor(value): { fieldConfig+: { defaults+: { custom+: { barWidthFactor: value } } } }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withStacking(value): { fieldConfig+: { defaults+: { custom+: { stacking: value } } } }, + '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withStackingMixin(value): { fieldConfig+: { defaults+: { custom+: { stacking+: value } } } }, + stacking+: + { + '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withGroup(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { group: value } } } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { mode: value } } } } }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withDrawStyle(value): { fieldConfig+: { defaults+: { custom+: { drawStyle: value } } } }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, + }, + '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withTransform(value): { fieldConfig+: { defaults+: { custom+: { transform: value } } } }, + }, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezone(value): { options+: { timezone: (if std.isArray(value) + then value + else [value]) } }, + '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) + then value + else [value]) } }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'timeseries' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet new file mode 100644 index 0000000..d9c32f5 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet @@ -0,0 +1,193 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.trend', name: 'trend' }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfig(value): { fieldConfig: value }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withFieldConfigMixin(value): { fieldConfig+: value }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaults(value): { fieldConfig+: { defaults: value } }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, + defaults+: + { + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, + custom+: + { + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLineColor(value): { fieldConfig+: { defaults+: { custom+: { lineColor: value } } } }, + '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withLineInterpolation(value): { fieldConfig+: { defaults+: { custom+: { lineInterpolation: value } } } }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyle(value): { fieldConfig+: { defaults+: { custom+: { lineStyle: value } } } }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: value } } } }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDash(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash: (if std.isArray(value) + then value + else [value]) } } } } }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDashMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash+: (if std.isArray(value) + then value + else [value]) } } } } }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, + withFill(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { fill: value } } } } }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLineWidth(value): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, + '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNulls(value): { fieldConfig+: { defaults+: { custom+: { spanNulls: value } } } }, + '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNullsMixin(value): { fieldConfig+: { defaults+: { custom+: { spanNulls+: value } } } }, + '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFillBelowTo(value): { fieldConfig+: { defaults+: { custom+: { fillBelowTo: value } } } }, + '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFillColor(value): { fieldConfig+: { defaults+: { custom+: { fillColor: value } } } }, + '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withFillOpacity(value): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPointColor(value): { fieldConfig+: { defaults+: { custom+: { pointColor: value } } } }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withPointSize(value): { fieldConfig+: { defaults+: { custom+: { pointSize: value } } } }, + '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPointSymbol(value): { fieldConfig+: { defaults+: { custom+: { pointSymbol: value } } } }, + '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withShowPoints(value): { fieldConfig+: { defaults+: { custom+: { showPoints: value } } } }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, + }, + '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: 'integer' }], help: 'TODO docs' } }, + withBarAlignment(value): { fieldConfig+: { defaults+: { custom+: { barAlignment: value } } } }, + '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withBarMaxWidth(value): { fieldConfig+: { defaults+: { custom+: { barMaxWidth: value } } } }, + '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withBarWidthFactor(value): { fieldConfig+: { defaults+: { custom+: { barWidthFactor: value } } } }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withStacking(value): { fieldConfig+: { defaults+: { custom+: { stacking: value } } } }, + '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withStackingMixin(value): { fieldConfig+: { defaults+: { custom+: { stacking+: value } } } }, + stacking+: + { + '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withGroup(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { group: value } } } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { mode: value } } } } }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, + }, + '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withDrawStyle(value): { fieldConfig+: { defaults+: { custom+: { drawStyle: value } } } }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, + }, + '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withTransform(value): { fieldConfig+: { defaults+: { custom+: { transform: value } } } }, + }, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Identical to timeseries... except it does not have timezone settings' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Identical to timeseries... except it does not have timezone settings' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the x field to use (defaults to first number)' } }, + withXField(value): { options+: { xField: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'trend' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet new file mode 100644 index 0000000..98bfc58 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet @@ -0,0 +1,487 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.xyChart', name: 'xyChart' }, + '#withScatterFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withScatterFieldConfig(value): { ScatterFieldConfig: value }, + '#withScatterFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withScatterFieldConfigMixin(value): { ScatterFieldConfig+: value }, + ScatterFieldConfig+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { ScatterFieldConfig+: { hideFrom: value } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { ScatterFieldConfig+: { hideFrom+: value } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { ScatterFieldConfig+: { hideFrom+: { legend: value } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { ScatterFieldConfig+: { hideFrom+: { tooltip: value } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { ScatterFieldConfig+: { hideFrom+: { viz: value } } }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { ScatterFieldConfig+: { axisCenteredZero: value } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { ScatterFieldConfig+: { axisColorMode: value } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { ScatterFieldConfig+: { axisGridShow: value } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { ScatterFieldConfig+: { axisLabel: value } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { ScatterFieldConfig+: { axisPlacement: value } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { ScatterFieldConfig+: { axisSoftMax: value } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { ScatterFieldConfig+: { axisSoftMin: value } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { ScatterFieldConfig+: { axisWidth: value } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { ScatterFieldConfig+: { scaleDistribution: value } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { ScatterFieldConfig+: { scaleDistribution+: value } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { ScatterFieldConfig+: { scaleDistribution+: { linearThreshold: value } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { ScatterFieldConfig+: { scaleDistribution+: { log: value } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { ScatterFieldConfig+: { scaleDistribution+: { type: value } } }, + }, + '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withLabel(value): { ScatterFieldConfig+: { label: value } }, + '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLabelValue(value): { ScatterFieldConfig+: { labelValue: value } }, + '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLabelValueMixin(value): { ScatterFieldConfig+: { labelValue+: value } }, + labelValue+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { ScatterFieldConfig+: { labelValue+: { field: value } } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { ScatterFieldConfig+: { labelValue+: { fixed: value } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { ScatterFieldConfig+: { labelValue+: { mode: value } } }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLineColor(value): { ScatterFieldConfig+: { lineColor: value } }, + '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLineColorMixin(value): { ScatterFieldConfig+: { lineColor+: value } }, + lineColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { ScatterFieldConfig+: { lineColor+: { field: value } } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { ScatterFieldConfig+: { lineColor+: { fixed: value } } }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyle(value): { ScatterFieldConfig+: { lineStyle: value } }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyleMixin(value): { ScatterFieldConfig+: { lineStyle+: value } }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDash(value): { ScatterFieldConfig+: { lineStyle+: { dash: (if std.isArray(value) + then value + else [value]) } } }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDashMixin(value): { ScatterFieldConfig+: { lineStyle+: { dash+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, + withFill(value): { ScatterFieldConfig+: { lineStyle+: { fill: value } } }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLineWidth(value): { ScatterFieldConfig+: { lineWidth: value } }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointColor(value): { ScatterFieldConfig+: { pointColor: value } }, + '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointColorMixin(value): { ScatterFieldConfig+: { pointColor+: value } }, + pointColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { ScatterFieldConfig+: { pointColor+: { field: value } } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { ScatterFieldConfig+: { pointColor+: { fixed: value } } }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointSize(value): { ScatterFieldConfig+: { pointSize: value } }, + '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointSizeMixin(value): { ScatterFieldConfig+: { pointSize+: value } }, + pointSize+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { ScatterFieldConfig+: { pointSize+: { field: value } } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withFixed(value): { ScatterFieldConfig+: { pointSize+: { fixed: value } } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMax(value): { ScatterFieldConfig+: { pointSize+: { max: value } } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMin(value): { ScatterFieldConfig+: { pointSize+: { min: value } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { ScatterFieldConfig+: { pointSize+: { mode: value } } }, + }, + '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, + withShow(value): { ScatterFieldConfig+: { show: value } }, + }, + '#withScatterSeriesConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withScatterSeriesConfig(value): { ScatterSeriesConfig: value }, + '#withScatterSeriesConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withScatterSeriesConfigMixin(value): { ScatterSeriesConfig+: value }, + ScatterSeriesConfig+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { ScatterSeriesConfig+: { hideFrom: value } }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { ScatterSeriesConfig+: { hideFrom+: value } }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { ScatterSeriesConfig+: { hideFrom+: { legend: value } } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { ScatterSeriesConfig+: { hideFrom+: { tooltip: value } } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { ScatterSeriesConfig+: { hideFrom+: { viz: value } } }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { ScatterSeriesConfig+: { axisCenteredZero: value } }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { ScatterSeriesConfig+: { axisColorMode: value } }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { ScatterSeriesConfig+: { axisGridShow: value } }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { ScatterSeriesConfig+: { axisLabel: value } }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { ScatterSeriesConfig+: { axisPlacement: value } }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { ScatterSeriesConfig+: { axisSoftMax: value } }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { ScatterSeriesConfig+: { axisSoftMin: value } }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { ScatterSeriesConfig+: { axisWidth: value } }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { ScatterSeriesConfig+: { scaleDistribution: value } }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { ScatterSeriesConfig+: { scaleDistribution+: value } }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { ScatterSeriesConfig+: { scaleDistribution+: { linearThreshold: value } } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { ScatterSeriesConfig+: { scaleDistribution+: { log: value } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { ScatterSeriesConfig+: { scaleDistribution+: { type: value } } }, + }, + '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withLabel(value): { ScatterSeriesConfig+: { label: value } }, + '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLabelValue(value): { ScatterSeriesConfig+: { labelValue: value } }, + '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLabelValueMixin(value): { ScatterSeriesConfig+: { labelValue+: value } }, + labelValue+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { ScatterSeriesConfig+: { labelValue+: { field: value } } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { ScatterSeriesConfig+: { labelValue+: { fixed: value } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { ScatterSeriesConfig+: { labelValue+: { mode: value } } }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLineColor(value): { ScatterSeriesConfig+: { lineColor: value } }, + '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLineColorMixin(value): { ScatterSeriesConfig+: { lineColor+: value } }, + lineColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { ScatterSeriesConfig+: { lineColor+: { field: value } } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { ScatterSeriesConfig+: { lineColor+: { fixed: value } } }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyle(value): { ScatterSeriesConfig+: { lineStyle: value } }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyleMixin(value): { ScatterSeriesConfig+: { lineStyle+: value } }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDash(value): { ScatterSeriesConfig+: { lineStyle+: { dash: (if std.isArray(value) + then value + else [value]) } } }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDashMixin(value): { ScatterSeriesConfig+: { lineStyle+: { dash+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, + withFill(value): { ScatterSeriesConfig+: { lineStyle+: { fill: value } } }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLineWidth(value): { ScatterSeriesConfig+: { lineWidth: value } }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointColor(value): { ScatterSeriesConfig+: { pointColor: value } }, + '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointColorMixin(value): { ScatterSeriesConfig+: { pointColor+: value } }, + pointColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { ScatterSeriesConfig+: { pointColor+: { field: value } } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { ScatterSeriesConfig+: { pointColor+: { fixed: value } } }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointSize(value): { ScatterSeriesConfig+: { pointSize: value } }, + '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointSizeMixin(value): { ScatterSeriesConfig+: { pointSize+: value } }, + pointSize+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { ScatterSeriesConfig+: { pointSize+: { field: value } } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withFixed(value): { ScatterSeriesConfig+: { pointSize+: { fixed: value } } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMax(value): { ScatterSeriesConfig+: { pointSize+: { max: value } } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMin(value): { ScatterSeriesConfig+: { pointSize+: { min: value } } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { ScatterSeriesConfig+: { pointSize+: { mode: value } } }, + }, + '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, + withShow(value): { ScatterSeriesConfig+: { show: value } }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { ScatterSeriesConfig+: { name: value } }, + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withX(value): { ScatterSeriesConfig+: { x: value } }, + '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withY(value): { ScatterSeriesConfig+: { y: value } }, + }, + '#withScatterShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, + withScatterShow(value): { ScatterShow: value }, + '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: 'string' }], help: '' } }, + withSeriesMapping(value): { SeriesMapping: value }, + '#withXYDimensionConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withXYDimensionConfig(value): { XYDimensionConfig: value }, + '#withXYDimensionConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withXYDimensionConfigMixin(value): { XYDimensionConfig+: value }, + XYDimensionConfig+: + { + '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExclude(value): { XYDimensionConfig+: { exclude: (if std.isArray(value) + then value + else [value]) } }, + '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExcludeMixin(value): { XYDimensionConfig+: { exclude+: (if std.isArray(value) + then value + else [value]) } }, + '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withFrame(value): { XYDimensionConfig+: { frame: value } }, + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withX(value): { XYDimensionConfig+: { x: value } }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptions(value): { options: value }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOptionsMixin(value): { options+: value }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegend(value): { options+: { legend: value } }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLegendMixin(value): { options+: { legend+: value } }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAsTable(value=true): { options+: { legend+: { asTable: value } } }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) + then value + else [value]) } } }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) + then value + else [value]) } } }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withPlacement(value): { options+: { legend+: { placement: value } } }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSortBy(value): { options+: { legend+: { sortBy: value } } }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withWidth(value): { options+: { legend+: { width: value } } }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltip(value): { options+: { tooltip: value } }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withTooltipMixin(value): { options+: { tooltip+: value } }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withMode(value): { options+: { tooltip+: { mode: value } } }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withSort(value): { options+: { tooltip+: { sort: value } } }, + }, + '#withDims': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDims(value): { options+: { dims: value } }, + '#withDimsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withDimsMixin(value): { options+: { dims+: value } }, + dims+: + { + '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExclude(value): { options+: { dims+: { exclude: (if std.isArray(value) + then value + else [value]) } } }, + '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExcludeMixin(value): { options+: { dims+: { exclude+: (if std.isArray(value) + then value + else [value]) } } }, + '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withFrame(value): { options+: { dims+: { frame: value } } }, + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withX(value): { options+: { dims+: { x: value } } }, + }, + '#withSeries': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withSeries(value): { options+: { series: (if std.isArray(value) + then value + else [value]) } }, + '#withSeriesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withSeriesMixin(value): { options+: { series+: (if std.isArray(value) + then value + else [value]) } }, + series+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFrom(value): { hideFrom: value }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withHideFromMixin(value): { hideFrom+: value }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLegend(value=true): { hideFrom+: { legend: value } }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withTooltip(value=true): { hideFrom+: { tooltip: value } }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withViz(value=true): { hideFrom+: { viz: value } }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisCenteredZero(value=true): { axisCenteredZero: value }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisColorMode(value): { axisColorMode: value }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withAxisGridShow(value=true): { axisGridShow: value }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAxisLabel(value): { axisLabel: value }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withAxisPlacement(value): { axisPlacement: value }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMax(value): { axisSoftMax: value }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisSoftMin(value): { axisSoftMin: value }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withAxisWidth(value): { axisWidth: value }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistribution(value): { scaleDistribution: value }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { scaleDistribution+: value }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLinearThreshold(value): { scaleDistribution+: { linearThreshold: value } }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withLog(value): { scaleDistribution+: { log: value } }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withType(value): { scaleDistribution+: { type: value } }, + }, + '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, + withLabel(value): { label: value }, + '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLabelValue(value): { labelValue: value }, + '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLabelValueMixin(value): { labelValue+: value }, + labelValue+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { labelValue+: { field: value } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { labelValue+: { fixed: value } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { labelValue+: { mode: value } }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLineColor(value): { lineColor: value }, + '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withLineColorMixin(value): { lineColor+: value }, + lineColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { lineColor+: { field: value } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { lineColor+: { fixed: value } }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyle(value): { lineStyle: value }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, + withLineStyleMixin(value): { lineStyle+: value }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDash(value): { lineStyle+: { dash: (if std.isArray(value) + then value + else [value]) } }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withDashMixin(value): { lineStyle+: { dash+: (if std.isArray(value) + then value + else [value]) } }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, + withFill(value): { lineStyle+: { fill: value } }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLineWidth(value): { lineWidth: value }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointColor(value): { pointColor: value }, + '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointColorMixin(value): { pointColor+: value }, + pointColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { pointColor+: { field: value } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFixed(value): { pointColor+: { fixed: value } }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointSize(value): { pointSize: value }, + '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPointSizeMixin(value): { pointSize+: value }, + pointSize+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { pointSize+: { field: value } }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withFixed(value): { pointSize+: { fixed: value } }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMax(value): { pointSize+: { max: value } }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withMin(value): { pointSize+: { min: value } }, + '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: 'string' }], help: '' } }, + withMode(value): { pointSize+: { mode: value } }, + }, + '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, + withShow(value): { show: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withX(value): { x: value }, + '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withY(value): { y: value }, + }, + '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: 'string' }], help: '' } }, + withSeriesMapping(value): { options+: { seriesMapping: value } }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { type: 'xychart' }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet new file mode 100644 index 0000000..9baeece --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet @@ -0,0 +1,27 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.playlist', name: 'playlist' }, + '#withInterval': { 'function': { args: [{ default: '5m', enums: null, name: 'value', type: 'string' }], help: 'Interval sets the time between switching views in a playlist.\nFIXME: Is this based on a standardized format or what options are available? Can datemath be used?' } }, + withInterval(value='5m'): { interval: value }, + '#withItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The ordered list of items that the playlist will iterate over.\nFIXME! This should not be optional, but changing it makes the godegen awkward' } }, + withItems(value): { items: (if std.isArray(value) + then value + else [value]) }, + '#withItemsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The ordered list of items that the playlist will iterate over.\nFIXME! This should not be optional, but changing it makes the godegen awkward' } }, + withItemsMixin(value): { items+: (if std.isArray(value) + then value + else [value]) }, + items+: + { + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Title is an unused property -- it will be removed in the future' } }, + withTitle(value): { title: value }, + '#withType': { 'function': { args: [{ default: null, enums: ['dashboard_by_uid', 'dashboard_by_id', 'dashboard_by_tag'], name: 'value', type: 'string' }], help: 'Type of the item.' } }, + withType(value): { type: value }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Value depends on type and describes the playlist item.\n\n - dashboard_by_id: The value is an internal numerical identifier set by Grafana. This\n is not portable as the numerical identifier is non-deterministic between different instances.\n Will be replaced by dashboard_by_uid in the future. (deprecated)\n - dashboard_by_tag: The value is a tag which is set on any number of dashboards. All\n dashboards behind the tag will be added to the playlist.\n - dashboard_by_uid: The value is the dashboard UID' } }, + withValue(value): { value: value }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the playlist.' } }, + withName(value): { name: value }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique playlist identifier. Generated on creation, either by the\ncreator of the playlist of by the application.' } }, + withUid(value): { uid: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet new file mode 100644 index 0000000..5aeea39 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet @@ -0,0 +1,23 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.preferences', name: 'preferences' }, + '#withHomeDashboardUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'UID for the home dashboard' } }, + withHomeDashboardUID(value): { homeDashboardUID: value }, + '#withLanguage': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Selected language (beta)' } }, + withLanguage(value): { language: value }, + '#withQueryHistory': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withQueryHistory(value): { queryHistory: value }, + '#withQueryHistoryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withQueryHistoryMixin(value): { queryHistory+: value }, + queryHistory+: + { + '#withHomeTab': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "one of: '' | 'query' | 'starred';" } }, + withHomeTab(value): { queryHistory+: { homeTab: value } }, + }, + '#withTheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'light, dark, empty is default' } }, + withTheme(value): { theme: value }, + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The timezone selection\nTODO: this should use the timezone defined in common' } }, + withTimezone(value): { timezone: value }, + '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'day of the week (sunday, monday, etc)' } }, + withWeekStart(value): { weekStart: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet new file mode 100644 index 0000000..4e3e1b6 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet @@ -0,0 +1,16 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.publicdashboard', name: 'publicdashboard' }, + '#withAccessToken': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique public access token' } }, + withAccessToken(value): { accessToken: value }, + '#withAnnotationsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag that indicates if annotations are enabled' } }, + withAnnotationsEnabled(value=true): { annotationsEnabled: value }, + '#withDashboardUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Dashboard unique identifier referenced by this public dashboard' } }, + withDashboardUid(value): { dashboardUid: value }, + '#withIsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag that indicates if the public dashboard is enabled' } }, + withIsEnabled(value=true): { isEnabled: value }, + '#withTimeSelectionEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag that indicates if the time range picker is enabled' } }, + withTimeSelectionEnabled(value=true): { timeSelectionEnabled: value }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique public dashboard identifier' } }, + withUid(value): { uid: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet new file mode 100644 index 0000000..1c50962 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet @@ -0,0 +1,360 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.azureMonitor', name: 'azureMonitor' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withAzureLogAnalytics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Azure Monitor Logs sub-query properties' } }, + withAzureLogAnalytics(value): { azureLogAnalytics: value }, + '#withAzureLogAnalyticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Azure Monitor Logs sub-query properties' } }, + withAzureLogAnalyticsMixin(value): { azureLogAnalytics+: value }, + azureLogAnalytics+: + { + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'KQL query to be executed.' } }, + withQuery(value): { azureLogAnalytics+: { query: value } }, + '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use resources instead' } }, + withResource(value): { azureLogAnalytics+: { resource: value } }, + '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, + withResources(value): { azureLogAnalytics+: { resources: (if std.isArray(value) + then value + else [value]) } }, + '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, + withResourcesMixin(value): { azureLogAnalytics+: { resources+: (if std.isArray(value) + then value + else [value]) } }, + '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace'], name: 'value', type: 'string' }], help: '' } }, + withResultFormat(value): { azureLogAnalytics+: { resultFormat: value } }, + '#withWorkspace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Workspace ID. This was removed in Grafana 8, but remains for backwards compat' } }, + withWorkspace(value): { azureLogAnalytics+: { workspace: value } }, + }, + '#withAzureMonitor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withAzureMonitor(value): { azureMonitor: value }, + '#withAzureMonitorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withAzureMonitorMixin(value): { azureMonitor+: value }, + azureMonitor+: + { + '#withAggregation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric.' } }, + withAggregation(value): { azureMonitor+: { aggregation: value } }, + '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail.' } }, + withAlias(value): { azureMonitor+: { alias: value } }, + '#withAllowedTimeGrainsMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Time grains that are supported by the metric.' } }, + withAllowedTimeGrainsMs(value): { azureMonitor+: { allowedTimeGrainsMs: (if std.isArray(value) + then value + else [value]) } }, + '#withAllowedTimeGrainsMsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Time grains that are supported by the metric.' } }, + withAllowedTimeGrainsMsMixin(value): { azureMonitor+: { allowedTimeGrainsMs+: (if std.isArray(value) + then value + else [value]) } }, + '#withCustomNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "Used as the value for the metricNamespace property when it's different from the resource namespace." } }, + withCustomNamespace(value): { azureMonitor+: { customNamespace: value } }, + '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, + withDimension(value): { azureMonitor+: { dimension: value } }, + '#withDimensionFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, + withDimensionFilter(value): { azureMonitor+: { dimensionFilter: value } }, + '#withDimensionFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, + withDimensionFilters(value): { azureMonitor+: { dimensionFilters: (if std.isArray(value) + then value + else [value]) } }, + '#withDimensionFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, + withDimensionFiltersMixin(value): { azureMonitor+: { dimensionFilters+: (if std.isArray(value) + then value + else [value]) } }, + dimensionFilters+: + { + '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of Dimension to be filtered on.' } }, + withDimension(value): { dimension: value }, + '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated filter is deprecated in favour of filters to support multiselect.' } }, + withFilter(value): { filter: value }, + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Values to match with the filter.' } }, + withFilters(value): { filters: (if std.isArray(value) + then value + else [value]) }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Values to match with the filter.' } }, + withFiltersMixin(value): { filters+: (if std.isArray(value) + then value + else [value]) }, + '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators." } }, + withOperator(value): { operator: value }, + }, + '#withMetricDefinition': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use metricNamespace instead' } }, + withMetricDefinition(value): { azureMonitor+: { metricDefinition: value } }, + '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The metric to query data for within the specified metricNamespace. e.g. UsedCapacity' } }, + withMetricName(value): { azureMonitor+: { metricName: value } }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "metricNamespace is used as the resource type (or resource namespace).\nIt's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts\nKept the name of the variable as metricNamespace to avoid backward incompatibility issues." } }, + withMetricNamespace(value): { azureMonitor+: { metricNamespace: value } }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The Azure region containing the resource(s).' } }, + withRegion(value): { azureMonitor+: { region: value } }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use resources instead' } }, + withResourceGroup(value): { azureMonitor+: { resourceGroup: value } }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use resources instead' } }, + withResourceName(value): { azureMonitor+: { resourceName: value } }, + '#withResourceUri': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use resourceGroup, resourceName and metricNamespace instead' } }, + withResourceUri(value): { azureMonitor+: { resourceUri: value } }, + '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, + withResources(value): { azureMonitor+: { resources: (if std.isArray(value) + then value + else [value]) } }, + '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, + withResourcesMixin(value): { azureMonitor+: { resources+: (if std.isArray(value) + then value + else [value]) } }, + resources+: + { + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMetricNamespace(value): { metricNamespace: value }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRegion(value): { region: value }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResourceGroup(value): { resourceGroup: value }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResourceName(value): { resourceName: value }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSubscription(value): { subscription: value }, + }, + '#withTimeGrain': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The granularity of data points to be queried. Defaults to auto.' } }, + withTimeGrain(value): { azureMonitor+: { timeGrain: value } }, + '#withTimeGrainUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated' } }, + withTimeGrainUnit(value): { azureMonitor+: { timeGrainUnit: value } }, + '#withTop': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Maximum number of records to return. Defaults to 10.' } }, + withTop(value): { azureMonitor+: { top: value } }, + }, + '#withAzureResourceGraph': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withAzureResourceGraph(value): { azureResourceGraph: value }, + '#withAzureResourceGraphMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withAzureResourceGraphMixin(value): { azureResourceGraph+: value }, + azureResourceGraph+: + { + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Azure Resource Graph KQL query to be executed.' } }, + withQuery(value): { azureResourceGraph+: { query: value } }, + '#withResultFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specifies the format results should be returned as. Defaults to table.' } }, + withResultFormat(value): { azureResourceGraph+: { resultFormat: value } }, + }, + '#withAzureTraces': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Application Insights Traces sub-query properties' } }, + withAzureTraces(value): { azureTraces: value }, + '#withAzureTracesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Application Insights Traces sub-query properties' } }, + withAzureTracesMixin(value): { azureTraces+: value }, + azureTraces+: + { + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Filters for property values.' } }, + withFilters(value): { azureTraces+: { filters: (if std.isArray(value) + then value + else [value]) } }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Filters for property values.' } }, + withFiltersMixin(value): { azureTraces+: { filters+: (if std.isArray(value) + then value + else [value]) } }, + filters+: + { + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Values to filter by.' } }, + withFilters(value): { filters: (if std.isArray(value) + then value + else [value]) }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Values to filter by.' } }, + withFiltersMixin(value): { filters+: (if std.isArray(value) + then value + else [value]) }, + '#withOperation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Comparison operator to use. Either equals or not equals.' } }, + withOperation(value): { operation: value }, + '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Property name, auto-populated based on available traces.' } }, + withProperty(value): { property: value }, + }, + '#withOperationId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Operation ID. Used only for Traces queries.' } }, + withOperationId(value): { azureTraces+: { operationId: value } }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'KQL query to be executed.' } }, + withQuery(value): { azureTraces+: { query: value } }, + '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, + withResources(value): { azureTraces+: { resources: (if std.isArray(value) + then value + else [value]) } }, + '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, + withResourcesMixin(value): { azureTraces+: { resources+: (if std.isArray(value) + then value + else [value]) } }, + '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace'], name: 'value', type: 'string' }], help: '' } }, + withResultFormat(value): { azureTraces+: { resultFormat: value } }, + '#withTraceTypes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Types of events to filter by.' } }, + withTraceTypes(value): { azureTraces+: { traceTypes: (if std.isArray(value) + then value + else [value]) } }, + '#withTraceTypesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Types of events to filter by.' } }, + withTraceTypesMixin(value): { azureTraces+: { traceTypes+: (if std.isArray(value) + then value + else [value]) } }, + }, + '#withGrafanaTemplateVariableFn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withGrafanaTemplateVariableFn(value): { grafanaTemplateVariableFn: value }, + '#withGrafanaTemplateVariableFnMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withGrafanaTemplateVariableFnMixin(value): { grafanaTemplateVariableFn+: value }, + grafanaTemplateVariableFn+: + { + '#withAppInsightsMetricNameQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withAppInsightsMetricNameQuery(value): { grafanaTemplateVariableFn+: { AppInsightsMetricNameQuery: value } }, + '#withAppInsightsMetricNameQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withAppInsightsMetricNameQueryMixin(value): { grafanaTemplateVariableFn+: { AppInsightsMetricNameQuery+: value } }, + AppInsightsMetricNameQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['AppInsightsMetricNameQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + }, + '#withAppInsightsGroupByQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withAppInsightsGroupByQuery(value): { grafanaTemplateVariableFn+: { AppInsightsGroupByQuery: value } }, + '#withAppInsightsGroupByQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withAppInsightsGroupByQueryMixin(value): { grafanaTemplateVariableFn+: { AppInsightsGroupByQuery+: value } }, + AppInsightsGroupByQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['AppInsightsGroupByQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMetricName(value): { grafanaTemplateVariableFn+: { metricName: value } }, + }, + '#withSubscriptionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSubscriptionsQuery(value): { grafanaTemplateVariableFn+: { SubscriptionsQuery: value } }, + '#withSubscriptionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSubscriptionsQueryMixin(value): { grafanaTemplateVariableFn+: { SubscriptionsQuery+: value } }, + SubscriptionsQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['SubscriptionsQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + }, + '#withResourceGroupsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withResourceGroupsQuery(value): { grafanaTemplateVariableFn+: { ResourceGroupsQuery: value } }, + '#withResourceGroupsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withResourceGroupsQueryMixin(value): { grafanaTemplateVariableFn+: { ResourceGroupsQuery+: value } }, + ResourceGroupsQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['ResourceGroupsQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, + }, + '#withResourceNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withResourceNamesQuery(value): { grafanaTemplateVariableFn+: { ResourceNamesQuery: value } }, + '#withResourceNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withResourceNamesQueryMixin(value): { grafanaTemplateVariableFn+: { ResourceNamesQuery+: value } }, + ResourceNamesQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['ResourceNamesQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMetricNamespace(value): { grafanaTemplateVariableFn+: { metricNamespace: value } }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResourceGroup(value): { grafanaTemplateVariableFn+: { resourceGroup: value } }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, + }, + '#withMetricNamespaceQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMetricNamespaceQuery(value): { grafanaTemplateVariableFn+: { MetricNamespaceQuery: value } }, + '#withMetricNamespaceQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMetricNamespaceQueryMixin(value): { grafanaTemplateVariableFn+: { MetricNamespaceQuery+: value } }, + MetricNamespaceQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['MetricNamespaceQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMetricNamespace(value): { grafanaTemplateVariableFn+: { metricNamespace: value } }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResourceGroup(value): { grafanaTemplateVariableFn+: { resourceGroup: value } }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResourceName(value): { grafanaTemplateVariableFn+: { resourceName: value } }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, + }, + '#withMetricDefinitionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '@deprecated Use MetricNamespaceQuery instead' } }, + withMetricDefinitionsQuery(value): { grafanaTemplateVariableFn+: { MetricDefinitionsQuery: value } }, + '#withMetricDefinitionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '@deprecated Use MetricNamespaceQuery instead' } }, + withMetricDefinitionsQueryMixin(value): { grafanaTemplateVariableFn+: { MetricDefinitionsQuery+: value } }, + MetricDefinitionsQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['MetricDefinitionsQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMetricNamespace(value): { grafanaTemplateVariableFn+: { metricNamespace: value } }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResourceGroup(value): { grafanaTemplateVariableFn+: { resourceGroup: value } }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResourceName(value): { grafanaTemplateVariableFn+: { resourceName: value } }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, + }, + '#withMetricNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMetricNamesQuery(value): { grafanaTemplateVariableFn+: { MetricNamesQuery: value } }, + '#withMetricNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMetricNamesQueryMixin(value): { grafanaTemplateVariableFn+: { MetricNamesQuery+: value } }, + MetricNamesQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['MetricNamesQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMetricNamespace(value): { grafanaTemplateVariableFn+: { metricNamespace: value } }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResourceGroup(value): { grafanaTemplateVariableFn+: { resourceGroup: value } }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResourceName(value): { grafanaTemplateVariableFn+: { resourceName: value } }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, + }, + '#withWorkspacesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withWorkspacesQuery(value): { grafanaTemplateVariableFn+: { WorkspacesQuery: value } }, + '#withWorkspacesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withWorkspacesQueryMixin(value): { grafanaTemplateVariableFn+: { WorkspacesQuery+: value } }, + WorkspacesQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['WorkspacesQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, + }, + '#withUnknownQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withUnknownQuery(value): { grafanaTemplateVariableFn+: { UnknownQuery: value } }, + '#withUnknownQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withUnknownQueryMixin(value): { grafanaTemplateVariableFn+: { UnknownQuery+: value } }, + UnknownQuery+: + { + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, + '#withKind': { 'function': { args: [{ default: null, enums: ['UnknownQuery'], name: 'value', type: 'string' }], help: '' } }, + withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, + }, + }, + '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withNamespace(value): { namespace: value }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Azure Monitor query type.\nqueryType: #AzureQueryType' } }, + withRegion(value): { region: value }, + '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withResource(value): { resource: value }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Template variables params. These exist for backwards compatiblity with legacy template variables.' } }, + withResourceGroup(value): { resourceGroup: value }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Azure subscription containing the resource(s) to be queried.' } }, + withSubscription(value): { subscription: value }, + '#withSubscriptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, + withSubscriptions(value): { subscriptions: (if std.isArray(value) + then value + else [value]) }, + '#withSubscriptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, + withSubscriptionsMixin(value): { subscriptions+: (if std.isArray(value) + then value + else [value]) }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet new file mode 100644 index 0000000..3afc305 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet @@ -0,0 +1,306 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.cloudWatch', name: 'cloudWatch' }, + CloudWatchAnnotationQuery+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, + withAccountId(value): { accountId: value }, + '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, + withDimensions(value): { dimensions: value }, + '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, + withDimensionsMixin(value): { dimensions+: value }, + '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Only show metrics that exactly match all defined dimension names.' } }, + withMatchExact(value=true): { matchExact: value }, + '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the metric' } }, + withMetricName(value): { metricName: value }, + '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, + withNamespace(value): { namespace: value }, + '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, + withPeriod(value): { period: value }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'AWS region to query for the metric' } }, + withRegion(value): { region: value }, + '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, + withStatistic(value): { statistic: value }, + '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use statistic' } }, + withStatistics(value): { statistics: (if std.isArray(value) + then value + else [value]) }, + '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use statistic' } }, + withStatisticsMixin(value): { statistics+: (if std.isArray(value) + then value + else [value]) }, + '#withActionPrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Use this parameter to filter the results of the operation to only those alarms\nthat use a certain alarm action. For example, you could specify the ARN of\nan SNS topic to find all alarms that send notifications to that topic.\ne.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action`\nbut not match `arn:aws:sns:us-east-1:123456789012:your-app-action`' } }, + withActionPrefix(value): { actionPrefix: value }, + '#withAlarmNamePrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'An alarm name prefix. If you specify this parameter, you receive information\nabout all alarms that have names that start with this prefix.\ne.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu`' } }, + withAlarmNamePrefix(value): { alarmNamePrefix: value }, + '#withPrefixMatching': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix' } }, + withPrefixMatching(value=true): { prefixMatching: value }, + '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: 'string' }], help: '' } }, + withQueryMode(value): { queryMode: value }, + }, + CloudWatchLogsQuery+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The CloudWatch Logs Insights query to execute' } }, + withExpression(value): { expression: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withLogGroupNames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use logGroups' } }, + withLogGroupNames(value): { logGroupNames: (if std.isArray(value) + then value + else [value]) }, + '#withLogGroupNamesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use logGroups' } }, + withLogGroupNamesMixin(value): { logGroupNames+: (if std.isArray(value) + then value + else [value]) }, + '#withLogGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Log groups to query' } }, + withLogGroups(value): { logGroups: (if std.isArray(value) + then value + else [value]) }, + '#withLogGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Log groups to query' } }, + withLogGroupsMixin(value): { logGroups+: (if std.isArray(value) + then value + else [value]) }, + logGroups+: + { + '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'AccountId of the log group' } }, + withAccountId(value): { accountId: value }, + '#withAccountLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Label of the log group' } }, + withAccountLabel(value): { accountLabel: value }, + '#withArn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'ARN of the log group' } }, + withArn(value): { arn: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the log group' } }, + withName(value): { name: value }, + }, + '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: 'string' }], help: '' } }, + withQueryMode(value): { queryMode: value }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'AWS region to query for the logs' } }, + withRegion(value): { region: value }, + '#withStatsGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, + withStatsGroups(value): { statsGroups: (if std.isArray(value) + then value + else [value]) }, + '#withStatsGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, + withStatsGroupsMixin(value): { statsGroups+: (if std.isArray(value) + then value + else [value]) }, + }, + CloudWatchMetricsQuery+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, + withAccountId(value): { accountId: value }, + '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, + withDimensions(value): { dimensions: value }, + '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, + withDimensionsMixin(value): { dimensions+: value }, + '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Only show metrics that exactly match all defined dimension names.' } }, + withMatchExact(value=true): { matchExact: value }, + '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the metric' } }, + withMetricName(value): { metricName: value }, + '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, + withNamespace(value): { namespace: value }, + '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, + withPeriod(value): { period: value }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'AWS region to query for the metric' } }, + withRegion(value): { region: value }, + '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, + withStatistic(value): { statistic: value }, + '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use statistic' } }, + withStatistics(value): { statistics: (if std.isArray(value) + then value + else [value]) }, + '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use statistic' } }, + withStatisticsMixin(value): { statistics+: (if std.isArray(value) + then value + else [value]) }, + '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Deprecated: use label\n@deprecated use label' } }, + withAlias(value): { alias: value }, + '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Math expression query' } }, + withExpression(value): { expression: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter.' } }, + withId(value): { id: value }, + '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details.' } }, + withLabel(value): { label: value }, + '#withMetricEditorMode': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: 'integer' }], help: '' } }, + withMetricEditorMode(value): { metricEditorMode: value }, + '#withMetricQueryType': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: 'integer' }], help: '' } }, + withMetricQueryType(value): { metricQueryType: value }, + '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: 'string' }], help: '' } }, + withQueryMode(value): { queryMode: value }, + '#withSql': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSql(value): { sql: value }, + '#withSqlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSqlMixin(value): { sql+: value }, + sql+: + { + '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'FROM part of the SQL expression' } }, + withFrom(value): { sql+: { from: value } }, + '#withFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'FROM part of the SQL expression' } }, + withFromMixin(value): { sql+: { from+: value } }, + from+: + { + '#withQueryEditorPropertyExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withQueryEditorPropertyExpression(value): { sql+: { from+: { QueryEditorPropertyExpression: value } } }, + '#withQueryEditorPropertyExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withQueryEditorPropertyExpressionMixin(value): { sql+: { from+: { QueryEditorPropertyExpression+: value } } }, + QueryEditorPropertyExpression+: + { + '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withProperty(value): { sql+: { from+: { property: value } } }, + '#withPropertyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPropertyMixin(value): { sql+: { from+: { property+: value } } }, + property+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { sql+: { from+: { property+: { name: value } } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['string'], name: 'value', type: 'string' }], help: '' } }, + withType(value): { sql+: { from+: { property+: { type: value } } } }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { sql+: { from+: { type: value } } }, + }, + '#withQueryEditorFunctionExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withQueryEditorFunctionExpression(value): { sql+: { from+: { QueryEditorFunctionExpression: value } } }, + '#withQueryEditorFunctionExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withQueryEditorFunctionExpressionMixin(value): { sql+: { from+: { QueryEditorFunctionExpression+: value } } }, + QueryEditorFunctionExpression+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { sql+: { from+: { name: value } } }, + '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withParameters(value): { sql+: { from+: { parameters: (if std.isArray(value) + then value + else [value]) } } }, + '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withParametersMixin(value): { sql+: { from+: { parameters+: (if std.isArray(value) + then value + else [value]) } } }, + parameters+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { sql+: { from+: { type: value } } }, + }, + }, + '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withGroupBy(value): { sql+: { groupBy: value } }, + '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withGroupByMixin(value): { sql+: { groupBy+: value } }, + groupBy+: + { + '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExpressions(value): { sql+: { groupBy+: { expressions: (if std.isArray(value) + then value + else [value]) } } }, + '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExpressionsMixin(value): { sql+: { groupBy+: { expressions+: (if std.isArray(value) + then value + else [value]) } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: 'string' }], help: '' } }, + withType(value): { sql+: { groupBy+: { type: value } } }, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'LIMIT part of the SQL expression' } }, + withLimit(value): { sql+: { limit: value } }, + '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOrderBy(value): { sql+: { orderBy: value } }, + '#withOrderByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withOrderByMixin(value): { sql+: { orderBy+: value } }, + orderBy+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { sql+: { orderBy+: { name: value } } }, + '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withParameters(value): { sql+: { orderBy+: { parameters: (if std.isArray(value) + then value + else [value]) } } }, + '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withParametersMixin(value): { sql+: { orderBy+: { parameters+: (if std.isArray(value) + then value + else [value]) } } }, + parameters+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { sql+: { orderBy+: { type: value } } }, + }, + '#withOrderByDirection': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The sort order of the SQL expression, `ASC` or `DESC`' } }, + withOrderByDirection(value): { sql+: { orderByDirection: value } }, + '#withSelect': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSelect(value): { sql+: { select: value } }, + '#withSelectMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSelectMixin(value): { sql+: { select+: value } }, + select+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { sql+: { select+: { name: value } } }, + '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withParameters(value): { sql+: { select+: { parameters: (if std.isArray(value) + then value + else [value]) } } }, + '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withParametersMixin(value): { sql+: { select+: { parameters+: (if std.isArray(value) + then value + else [value]) } } }, + parameters+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { sql+: { select+: { type: value } } }, + }, + '#withWhere': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withWhere(value): { sql+: { where: value } }, + '#withWhereMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withWhereMixin(value): { sql+: { where+: value } }, + where+: + { + '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExpressions(value): { sql+: { where+: { expressions: (if std.isArray(value) + then value + else [value]) } } }, + '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withExpressionsMixin(value): { sql+: { where+: { expressions+: (if std.isArray(value) + then value + else [value]) } } }, + '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: 'string' }], help: '' } }, + withType(value): { sql+: { where+: { type: value } } }, + }, + }, + '#withSqlExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'When the metric query type is `metricQueryType` is set to `Query`, this field is used to specify the query string.' } }, + withSqlExpression(value): { sqlExpression: value }, + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet new file mode 100644 index 0000000..a18ae7c --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet @@ -0,0 +1,758 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.elasticsearch', name: 'elasticsearch' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Alias pattern' } }, + withAlias(value): { alias: value }, + '#withBucketAggs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'List of bucket aggregations' } }, + withBucketAggs(value): { bucketAggs: (if std.isArray(value) + then value + else [value]) }, + '#withBucketAggsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'List of bucket aggregations' } }, + withBucketAggsMixin(value): { bucketAggs+: (if std.isArray(value) + then value + else [value]) }, + bucketAggs+: + { + DateHistogram+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInterval(value): { settings+: { interval: value } }, + '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMinDocCount(value): { settings+: { min_doc_count: value } }, + '#withOffset': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withOffset(value): { settings+: { offset: value } }, + '#withTimeZone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTimeZone(value): { settings+: { timeZone: value } }, + '#withTrimEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withTrimEdges(value): { settings+: { trimEdges: value } }, + }, + }, + Histogram+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInterval(value): { settings+: { interval: value } }, + '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMinDocCount(value): { settings+: { min_doc_count: value } }, + }, + }, + Terms+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMinDocCount(value): { settings+: { min_doc_count: value } }, + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMissing(value): { settings+: { missing: value } }, + '#withOrder': { 'function': { args: [{ default: null, enums: ['desc', 'asc'], name: 'value', type: 'string' }], help: '' } }, + withOrder(value): { settings+: { order: value } }, + '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withOrderBy(value): { settings+: { orderBy: value } }, + '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSize(value): { settings+: { size: value } }, + }, + }, + Filters+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFilters(value): { settings+: { filters: (if std.isArray(value) + then value + else [value]) } }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFiltersMixin(value): { settings+: { filters+: (if std.isArray(value) + then value + else [value]) } }, + filters+: + { + '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLabel(value): { label: value }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withQuery(value): { query: value }, + }, + }, + }, + GeoHashGrid+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withPrecision': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPrecision(value): { settings+: { precision: value } }, + }, + }, + Nested+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + }, + }, + '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'List of metric aggregations' } }, + withMetrics(value): { metrics: (if std.isArray(value) + then value + else [value]) }, + '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'List of metric aggregations' } }, + withMetricsMixin(value): { metrics+: (if std.isArray(value) + then value + else [value]) }, + metrics+: + { + Count+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + }, + PipelineMetricAggregation+: + { + MovingAverage+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + }, + Derivative+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUnit(value): { settings+: { unit: value } }, + }, + }, + CumulativeSum+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFormat(value): { settings+: { format: value } }, + }, + }, + BucketScript+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPipelineVariables(value): { pipelineVariables: (if std.isArray(value) + then value + else [value]) }, + '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPipelineVariablesMixin(value): { pipelineVariables+: (if std.isArray(value) + then value + else [value]) }, + pipelineVariables+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScript(value): { settings+: { script: value } }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScriptMixin(value): { settings+: { script+: value } }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInline(value): { settings+: { script+: { inline: value } } }, + }, + }, + }, + }, + MetricAggregationWithSettings+: + { + BucketScript+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPipelineVariables(value): { pipelineVariables: (if std.isArray(value) + then value + else [value]) }, + '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPipelineVariablesMixin(value): { pipelineVariables+: (if std.isArray(value) + then value + else [value]) }, + pipelineVariables+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScript(value): { settings+: { script: value } }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScriptMixin(value): { settings+: { script+: value } }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInline(value): { settings+: { script+: { inline: value } } }, + }, + }, + }, + CumulativeSum+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withFormat(value): { settings+: { format: value } }, + }, + }, + Derivative+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUnit(value): { settings+: { unit: value } }, + }, + }, + SerialDiff+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withLag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLag(value): { settings+: { lag: value } }, + }, + }, + RawData+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSize(value): { settings+: { size: value } }, + }, + }, + RawDocument+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSize(value): { settings+: { size: value } }, + }, + }, + UniqueCount+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMissing(value): { settings+: { missing: value } }, + '#withPrecisionThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPrecisionThreshold(value): { settings+: { precision_threshold: value } }, + }, + }, + Percentiles+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScript(value): { settings+: { script: value } }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScriptMixin(value): { settings+: { script+: value } }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInline(value): { settings+: { script+: { inline: value } } }, + }, + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMissing(value): { settings+: { missing: value } }, + '#withPercents': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPercents(value): { settings+: { percents: (if std.isArray(value) + then value + else [value]) } }, + '#withPercentsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPercentsMixin(value): { settings+: { percents+: (if std.isArray(value) + then value + else [value]) } }, + }, + }, + ExtendedStats+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScript(value): { settings+: { script: value } }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScriptMixin(value): { settings+: { script+: value } }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInline(value): { settings+: { script+: { inline: value } } }, + }, + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMissing(value): { settings+: { missing: value } }, + '#withSigma': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withSigma(value): { settings+: { sigma: value } }, + }, + '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMeta(value): { meta: value }, + '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withMetaMixin(value): { meta+: value }, + }, + Min+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScript(value): { settings+: { script: value } }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScriptMixin(value): { settings+: { script+: value } }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInline(value): { settings+: { script+: { inline: value } } }, + }, + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMissing(value): { settings+: { missing: value } }, + }, + }, + Max+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScript(value): { settings+: { script: value } }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScriptMixin(value): { settings+: { script+: value } }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInline(value): { settings+: { script+: { inline: value } } }, + }, + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMissing(value): { settings+: { missing: value } }, + }, + }, + Sum+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScript(value): { settings+: { script: value } }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScriptMixin(value): { settings+: { script+: value } }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInline(value): { settings+: { script+: { inline: value } } }, + }, + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMissing(value): { settings+: { missing: value } }, + }, + }, + Average+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMissing(value): { settings+: { missing: value } }, + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScript(value): { settings+: { script: value } }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScriptMixin(value): { settings+: { script+: value } }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInline(value): { settings+: { script+: { inline: value } } }, + }, + }, + }, + MovingAverage+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + }, + MovingFunction+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPipelineAgg(value): { pipelineAgg: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScript(value): { settings+: { script: value } }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withScriptMixin(value): { settings+: { script+: value } }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withInline(value): { settings+: { script+: { inline: value } } }, + }, + '#withShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withShift(value): { settings+: { shift: value } }, + '#withWindow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withWindow(value): { settings+: { window: value } }, + }, + }, + Logs+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLimit(value): { settings+: { limit: value } }, + }, + }, + Rate+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withField(value): { field: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMode(value): { settings+: { mode: value } }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUnit(value): { settings+: { unit: value } }, + }, + }, + TopMetrics+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withHide(value=true): { hide: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withId(value): { id: value }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { type: value }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettings(value): { settings: value }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSettingsMixin(value): { settings+: value }, + settings+: + { + '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withMetrics(value): { settings+: { metrics: (if std.isArray(value) + then value + else [value]) } }, + '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withMetricsMixin(value): { settings+: { metrics+: (if std.isArray(value) + then value + else [value]) } }, + '#withOrder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withOrder(value): { settings+: { order: value } }, + '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withOrderBy(value): { settings+: { orderBy: value } }, + }, + }, + }, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Lucene query' } }, + withQuery(value): { query: value }, + '#withTimeField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of time field' } }, + withTimeField(value): { timeField: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet new file mode 100644 index 0000000..67fd282 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet @@ -0,0 +1,26 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.grafanaPyroscope', name: 'grafanaPyroscope' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Allows to group the results.' } }, + withGroupBy(value): { groupBy: (if std.isArray(value) + then value + else [value]) }, + '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Allows to group the results.' } }, + withGroupByMixin(value): { groupBy+: (if std.isArray(value) + then value + else [value]) }, + '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: 'string' }], help: 'Specifies the query label selectors.' } }, + withLabelSelector(value='{}'): { labelSelector: value }, + '#withMaxNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Sets the maximum number of nodes in the flamegraph.' } }, + withMaxNodes(value): { maxNodes: value }, + '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specifies the type of profile to query.' } }, + withProfileTypeId(value): { profileTypeId: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet new file mode 100644 index 0000000..b150002 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet @@ -0,0 +1,26 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.loki', name: 'loki' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: 'string' }], help: '' } }, + withEditorMode(value): { editorMode: value }, + '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The LogQL query.' } }, + withExpr(value): { expr: value }, + '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '@deprecated, now use queryType.' } }, + withInstant(value=true): { instant: value }, + '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Used to override the name of the series.' } }, + withLegendFormat(value): { legendFormat: value }, + '#withMaxLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Used to limit the number of log rows returned.' } }, + withMaxLines(value): { maxLines: value }, + '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '@deprecated, now use queryType.' } }, + withRange(value=true): { range: value }, + '#withResolution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Used to scale the interval value.' } }, + withResolution(value): { resolution: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet new file mode 100644 index 0000000..832453d --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet @@ -0,0 +1,16 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.parca', name: 'parca' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: 'string' }], help: 'Specifies the query label selectors.' } }, + withLabelSelector(value='{}'): { labelSelector: value }, + '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specifies the type of profile to query.' } }, + withProfileTypeId(value): { profileTypeId: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet new file mode 100644 index 0000000..71adff6 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet @@ -0,0 +1,28 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.prometheus', name: 'prometheus' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: 'string' }], help: '' } }, + withEditorMode(value): { editorMode: value }, + '#withExemplar': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Execute an additional query to identify interesting raw samples relevant for the given expr' } }, + withExemplar(value=true): { exemplar: value }, + '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The actual expression/query that will be evaluated by Prometheus' } }, + withExpr(value): { expr: value }, + '#withFormat': { 'function': { args: [{ default: null, enums: ['time_series', 'table', 'heatmap'], name: 'value', type: 'string' }], help: '' } }, + withFormat(value): { format: value }, + '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Returns only the latest value that Prometheus has scraped for the requested time series' } }, + withInstant(value=true): { instant: value }, + '#withIntervalFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '@deprecated Used to specify how many times to divide max data points by. We use max data points under query options\nSee https://github.com/grafana/grafana/issues/48081' } }, + withIntervalFactor(value): { intervalFactor: value }, + '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname' } }, + withLegendFormat(value): { legendFormat: value }, + '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series' } }, + withRange(value=true): { range: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet new file mode 100644 index 0000000..f93e7fe --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet @@ -0,0 +1,53 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.tempo', name: 'tempo' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFilters(value): { filters: (if std.isArray(value) + then value + else [value]) }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFiltersMixin(value): { filters+: (if std.isArray(value) + then value + else [value]) }, + filters+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, + withId(value): { id: value }, + '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, + withOperator(value): { operator: value }, + '#withScope': { 'function': { args: [{ default: null, enums: ['unscoped', 'resource', 'span'], name: 'value', type: 'string' }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, + withScope(value): { scope: value }, + '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, + withTag(value): { tag: value }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The value for the search filter' } }, + withValue(value): { value: value }, + '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The value for the search filter' } }, + withValueMixin(value): { value+: value }, + '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, + withValueType(value): { valueType: value }, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Defines the maximum number of traces that are returned from Tempo' } }, + withLimit(value): { limit: value }, + '#withMaxDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, + withMaxDuration(value): { maxDuration: value }, + '#withMinDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, + withMinDuration(value): { minDuration: value }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TraceQL query or trace ID' } }, + withQuery(value): { query: value }, + '#withSearch': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true' } }, + withSearch(value): { search: value }, + '#withServiceMapQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}' } }, + withServiceMapQuery(value): { serviceMapQuery: value }, + '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Query traces by service name' } }, + withServiceName(value): { serviceName: value }, + '#withSpanName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Query traces by span name' } }, + withSpanName(value): { spanName: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet new file mode 100644 index 0000000..0d78880 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet @@ -0,0 +1,167 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.testData', name: 'testData' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, + withDatasource(value): { datasource: value }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { hide: value }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { queryType: value }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { refId: value }, + '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withAlias(value): { alias: value }, + '#withChannel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withChannel(value): { channel: value }, + '#withCsvContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withCsvContent(value): { csvContent: value }, + '#withCsvFileName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withCsvFileName(value): { csvFileName: value }, + '#withCsvWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCsvWave(value): { csvWave: (if std.isArray(value) + then value + else [value]) }, + '#withCsvWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withCsvWaveMixin(value): { csvWave+: (if std.isArray(value) + then value + else [value]) }, + csvWave+: + { + '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLabels(value): { labels: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withName(value): { name: value }, + '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withTimeStep(value): { timeStep: value }, + '#withValuesCSV': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withValuesCSV(value): { valuesCSV: value }, + }, + '#withErrorType': { 'function': { args: [{ default: null, enums: ['server_panic', 'frontend_exception', 'frontend_observable'], name: 'value', type: 'string' }], help: '' } }, + withErrorType(value): { errorType: value }, + '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withLabels(value): { labels: value }, + '#withLevelColumn': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLevelColumn(value=true): { levelColumn: value }, + '#withLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withLines(value): { lines: value }, + '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withNodes(value): { nodes: value }, + '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withNodesMixin(value): { nodes+: value }, + nodes+: + { + '#withCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withCount(value): { nodes+: { count: value } }, + '#withType': { 'function': { args: [{ default: null, enums: ['random', 'response', 'random edges'], name: 'value', type: 'string' }], help: '' } }, + withType(value): { nodes+: { type: value } }, + }, + '#withPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPoints(value): { points: (if std.isArray(value) + then value + else [value]) }, + '#withPointsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withPointsMixin(value): { points+: (if std.isArray(value) + then value + else [value]) }, + '#withPulseWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPulseWave(value): { pulseWave: value }, + '#withPulseWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withPulseWaveMixin(value): { pulseWave+: value }, + pulseWave+: + { + '#withOffCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withOffCount(value): { pulseWave+: { offCount: value } }, + '#withOffValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withOffValue(value): { pulseWave+: { offValue: value } }, + '#withOnCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withOnCount(value): { pulseWave+: { onCount: value } }, + '#withOnValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withOnValue(value): { pulseWave+: { onValue: value } }, + '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withTimeStep(value): { pulseWave+: { timeStep: value } }, + }, + '#withRawFrameContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withRawFrameContent(value): { rawFrameContent: value }, + '#withScenarioId': { 'function': { args: [{ default: null, enums: ['random_walk', 'slow_query', 'random_walk_with_error', 'random_walk_table', 'exponential_heatmap_bucket_data', 'linear_heatmap_bucket_data', 'no_data_points', 'datapoints_outside_range', 'csv_metric_values', 'predictable_pulse', 'predictable_csv_wave', 'streaming_client', 'simulation', 'usa', 'live', 'grafana_api', 'arrow', 'annotations', 'table_static', 'server_error_500', 'logs', 'node_graph', 'flame_graph', 'raw_frame', 'csv_file', 'csv_content', 'trace', 'manual_entry', 'variables-query'], name: 'value', type: 'string' }], help: '' } }, + withScenarioId(value): { scenarioId: value }, + '#withSeriesCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withSeriesCount(value): { seriesCount: value }, + '#withSim': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSim(value): { sim: value }, + '#withSimMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withSimMixin(value): { sim+: value }, + sim+: + { + '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withConfig(value): { sim+: { config: value } }, + '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withConfigMixin(value): { sim+: { config+: value } }, + '#withKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withKey(value): { sim+: { key: value } }, + '#withKeyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withKeyMixin(value): { sim+: { key+: value } }, + key+: + { + '#withTick': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, + withTick(value): { sim+: { key+: { tick: value } } }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withType(value): { sim+: { key+: { type: value } } }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUid(value): { sim+: { key+: { uid: value } } }, + }, + '#withLast': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withLast(value=true): { sim+: { last: value } }, + '#withStream': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, + withStream(value=true): { sim+: { stream: value } }, + }, + '#withSpanCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withSpanCount(value): { spanCount: value }, + '#withStream': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withStream(value): { stream: value }, + '#withStreamMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withStreamMixin(value): { stream+: value }, + stream+: + { + '#withBands': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withBands(value): { stream+: { bands: value } }, + '#withNoise': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withNoise(value): { stream+: { noise: value } }, + '#withSpeed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withSpeed(value): { stream+: { speed: value } }, + '#withSpread': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, + withSpread(value): { stream+: { spread: value } }, + '#withType': { 'function': { args: [{ default: null, enums: ['signal', 'logs', 'fetch'], name: 'value', type: 'string' }], help: '' } }, + withType(value): { stream+: { type: value } }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withUrl(value): { stream+: { url: value } }, + }, + '#withStringInput': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withStringInput(value): { stringInput: value }, + '#withUsa': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withUsa(value): { usa: value }, + '#withUsaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, + withUsaMixin(value): { usa+: value }, + usa+: + { + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFields(value): { usa+: { fields: (if std.isArray(value) + then value + else [value]) } }, + '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withFieldsMixin(value): { usa+: { fields+: (if std.isArray(value) + then value + else [value]) } }, + '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withMode(value): { usa+: { mode: value } }, + '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, + withPeriod(value): { usa+: { period: value } }, + '#withStates': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withStates(value): { usa+: { states: (if std.isArray(value) + then value + else [value]) } }, + '#withStatesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, + withStatesMixin(value): { usa+: { states+: (if std.isArray(value) + then value + else [value]) } }, + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet new file mode 100644 index 0000000..d401e96 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet @@ -0,0 +1,32 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.serviceaccount', name: 'serviceaccount' }, + '#withAccessControl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'AccessControl metadata associated with a given resource.' } }, + withAccessControl(value): { accessControl: value }, + '#withAccessControlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'AccessControl metadata associated with a given resource.' } }, + withAccessControlMixin(value): { accessControl+: value }, + '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front\nof the service account." } }, + withAvatarUrl(value): { avatarUrl: value }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'ID is the unique identifier of the service account in the database.' } }, + withId(value): { id: value }, + '#withIsDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'IsDisabled indicates if the service account is disabled.' } }, + withIsDisabled(value=true): { isDisabled: value }, + '#withLogin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Login of the service account.' } }, + withLogin(value): { login: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the service account.' } }, + withName(value): { name: value }, + '#withOrgId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'OrgId is the ID of an organisation the service account belongs to.' } }, + withOrgId(value): { orgId: value }, + '#withRole': { 'function': { args: [{ default: null, enums: ['Admin', 'Editor', 'Viewer'], name: 'value', type: 'string' }], help: "OrgRole is a Grafana Organization Role which can be 'Viewer', 'Editor', 'Admin'." } }, + withRole(value): { role: value }, + '#withTeams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Teams is a list of teams the service account belongs to.' } }, + withTeams(value): { teams: (if std.isArray(value) + then value + else [value]) }, + '#withTeamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Teams is a list of teams the service account belongs to.' } }, + withTeamsMixin(value): { teams+: (if std.isArray(value) + then value + else [value]) }, + '#withTokens': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Tokens is the number of active tokens for the service account.\nTokens are used to authenticate the service account against Grafana.' } }, + withTokens(value): { tokens: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet new file mode 100644 index 0000000..c8f7ff7 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet @@ -0,0 +1,20 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.team', name: 'team' }, + '#withAccessControl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'AccessControl metadata associated with a given resource.' } }, + withAccessControl(value): { accessControl: value }, + '#withAccessControlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'AccessControl metadata associated with a given resource.' } }, + withAccessControlMixin(value): { accessControl+: value }, + '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "AvatarUrl is the team's avatar URL." } }, + withAvatarUrl(value): { avatarUrl: value }, + '#withEmail': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Email of the team.' } }, + withEmail(value): { email: value }, + '#withMemberCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'MemberCount is the number of the team members.' } }, + withMemberCount(value): { memberCount: value }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the team.' } }, + withName(value): { name: value }, + '#withOrgId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'OrgId is the ID of an organisation the team belongs to.' } }, + withOrgId(value): { orgId: value }, + '#withPermission': { 'function': { args: [{ default: null, enums: [0, 1, 2, 4], name: 'value', type: 'integer' }], help: '' } }, + withPermission(value): { permission: value }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md new file mode 100644 index 0000000..aa19a25 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md @@ -0,0 +1,231 @@ +# doc-util + +`doc-util` provides a Jsonnet interface for `docsonnet`, + a Jsonnet API doc generator that uses structured data instead of comments. + + +## Install + +``` +jb install github.com/jsonnet-libs/docsonnet/doc-util@master +``` + +## Usage + +```jsonnet +local d = import "github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet" +``` + +## Index + +* [`fn arg(name, type, default, enums)`](#fn-arg) +* [`fn fn(help, args)`](#fn-fn) +* [`fn obj(help, fields)`](#fn-obj) +* [`fn pkg(name, url, help, filename="", version="master")`](#fn-pkg) +* [`fn render(obj)`](#fn-render) +* [`fn val(type, help, default)`](#fn-val) +* [`obj argument`](#obj-argument) + * [`fn new(name, type, default, enums)`](#fn-argumentnew) +* [`obj func`](#obj-func) + * [`fn new(help, args)`](#fn-funcnew) + * [`fn withArgs(args)`](#fn-funcwithargs) + * [`fn withHelp(help)`](#fn-funcwithhelp) +* [`obj object`](#obj-object) + * [`fn new(help, fields)`](#fn-objectnew) + * [`fn withFields(fields)`](#fn-objectwithfields) +* [`obj value`](#obj-value) + * [`fn new(type, help, default)`](#fn-valuenew) +* [`obj T`](#obj-t) +* [`obj package`](#obj-package) + * [`fn new(name, url, help, filename="", version="master")`](#fn-packagenew) + * [`fn newSub(name, help)`](#fn-packagenewsub) + +## Fields + +### fn arg + +```ts +arg(name, type, default, enums) +``` + +`arg` is a shorthand for `argument.new` + +### fn fn + +```ts +fn(help, args) +``` + +`fn` is a shorthand for `func.new` + +### fn obj + +```ts +obj(help, fields) +``` + +`obj` is a shorthand for `object.new` + +### fn pkg + +```ts +pkg(name, url, help, filename="", version="master") +``` + +`new` is a shorthand for `package.new` + +### fn render + +```ts +render(obj) +``` + +`render` converts the docstrings to human readable Markdown files. + +Usage: + +```jsonnet +// docs.jsonnet +d.render(import 'main.libsonnet') +``` + +Call with: `jsonnet -S -c -m docs/ docs.jsonnet` + + +### fn val + +```ts +val(type, help, default) +``` + +`val` is a shorthand for `value.new` + +### obj argument + +Utilities for creating function arguments + +#### fn argument.new + +```ts +new(name, type, default, enums) +``` + +`new` creates a new function argument, taking the `name`, the `type`. Optionally it +can take a `default` value and `enum`-erate potential values. + +Examples: + +```jsonnet +[ + d.argument.new('foo', d.T.string), + d.argument.new('bar', d.T.string, default='loo'), + d.argument.new('baz', d.T.number, enums=[1,2,3]), +] +``` + + +### obj func + +Utilities for documenting Jsonnet methods (functions of objects) + +#### fn func.new + +```ts +new(help, args) +``` + +new creates a new function, optionally with description and arguments + +#### fn func.withArgs + +```ts +withArgs(args) +``` + +The `withArgs` modifier overrides the arguments of that function + +#### fn func.withHelp + +```ts +withHelp(help) +``` + +The `withHelp` modifier overrides the help text of that function + +### obj object + +Utilities for documenting Jsonnet objects (`{ }`). + +#### fn object.new + +```ts +new(help, fields) +``` + +new creates a new object, optionally with description and fields + +#### fn object.withFields + +```ts +withFields(fields) +``` + +The `withFields` modifier overrides the fields property of an already created object + +### obj value + +Utilities for documenting plain Jsonnet values (primitives) + +#### fn value.new + +```ts +new(type, help, default) +``` + +new creates a new object of given type, optionally with description and default value + +### obj T + + +* `T.any` (`string`): `"any"` - argument of type "any" +* `T.array` (`string`): `"array"` - argument of type "array" +* `T.boolean` (`string`): `"bool"` - argument of type "boolean" +* `T.func` (`string`): `"function"` - argument of type "func" +* `T.null` (`string`): `"null"` - argument of type "null" +* `T.number` (`string`): `"number"` - argument of type "number" +* `T.object` (`string`): `"object"` - argument of type "object" +* `T.string` (`string`): `"string"` - argument of type "string" + +### obj package + + +#### fn package.new + +```ts +new(name, url, help, filename="", version="master") +``` + +`new` creates a new package + +Arguments: + +* given `name` +* source `url` for jsonnet-bundler and the import +* `help` text +* `filename` for the import, defaults to blank for backward compatibility +* `version` for jsonnet-bundler install, defaults to `master` just like jsonnet-bundler + + +#### fn package.newSub + +```ts +newSub(name, help) +``` + +`newSub` creates a package without the preconfigured install/usage templates. + +Arguments: + +* given `name` +* `help` text + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet new file mode 100644 index 0000000..f47c83d --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet @@ -0,0 +1,218 @@ +{ + local d = self, + + '#': + d.pkg( + name='doc-util', + url='github.com/jsonnet-libs/docsonnet/doc-util', + help=||| + `doc-util` provides a Jsonnet interface for `docsonnet`, + a Jsonnet API doc generator that uses structured data instead of comments. + |||, + filename=std.thisFile, + ) + + d.package.withUsageTemplate( + 'local d = import "%(import)s"' + ), + + package:: { + '#new':: d.fn(||| + `new` creates a new package + + Arguments: + + * given `name` + * source `url` for jsonnet-bundler and the import + * `help` text + * `filename` for the import, defaults to blank for backward compatibility + * `version` for jsonnet-bundler install, defaults to `master` just like jsonnet-bundler + |||, [ + d.arg('name', d.T.string), + d.arg('url', d.T.string), + d.arg('help', d.T.string), + d.arg('filename', d.T.string, ''), + d.arg('version', d.T.string, 'master'), + ]), + new(name, url, help, filename='', version='master'):: + { + name: name, + help: help, + 'import': + if filename != '' + then url + '/' + filename + else url, + url: url, + filename: filename, + version: version, + + } + + self.withInstallTemplate( + 'jb install %(url)s@%(version)s' + ) + + self.withUsageTemplate( + 'local %(name)s = import "%(import)s"' + ), + + '#newSub':: d.fn(||| + `newSub` creates a package without the preconfigured install/usage templates. + + Arguments: + + * given `name` + * `help` text + |||, [ + d.arg('name', d.T.string), + d.arg('help', d.T.string), + ]), + newSub(name, help):: + { + name: name, + help: help, + }, + + withUsageTemplate(template):: { + usageTemplate: template, + }, + + withInstallTemplate(template):: { + installTemplate: template, + }, + }, + + '#pkg':: self.package['#new'] + d.func.withHelp('`new` is a shorthand for `package.new`'), + pkg:: self.package.new, + + '#object': d.obj('Utilities for documenting Jsonnet objects (`{ }`).'), + object:: { + '#new': d.fn('new creates a new object, optionally with description and fields', [d.arg('help', d.T.string), d.arg('fields', d.T.object)]), + new(help='', fields={}):: { object: { + help: help, + fields: fields, + } }, + + '#withFields': d.fn('The `withFields` modifier overrides the fields property of an already created object', [d.arg('fields', d.T.object)]), + withFields(fields):: { object+: { + fields: fields, + } }, + }, + + '#obj': self.object['#new'] + d.func.withHelp('`obj` is a shorthand for `object.new`'), + obj:: self.object.new, + + '#func': d.obj('Utilities for documenting Jsonnet methods (functions of objects)'), + func:: { + '#new': d.fn('new creates a new function, optionally with description and arguments', [d.arg('help', d.T.string), d.arg('args', d.T.array)]), + new(help='', args=[]):: { 'function': { + help: help, + args: args, + } }, + + '#withHelp': d.fn('The `withHelp` modifier overrides the help text of that function', [d.arg('help', d.T.string)]), + withHelp(help):: { 'function'+: { + help: help, + } }, + + '#withArgs': d.fn('The `withArgs` modifier overrides the arguments of that function', [d.arg('args', d.T.array)]), + withArgs(args):: { 'function'+: { + args: args, + } }, + }, + + '#fn': self.func['#new'] + d.func.withHelp('`fn` is a shorthand for `func.new`'), + fn:: self.func.new, + + '#argument': d.obj('Utilities for creating function arguments'), + argument:: { + '#new': d.fn(||| + `new` creates a new function argument, taking the `name`, the `type`. Optionally it + can take a `default` value and `enum`-erate potential values. + + Examples: + + ```jsonnet + [ + d.argument.new('foo', d.T.string), + d.argument.new('bar', d.T.string, default='loo'), + d.argument.new('baz', d.T.number, enums=[1,2,3]), + ] + ``` + |||, [ + d.arg('name', d.T.string), + d.arg('type', d.T.string), + d.arg('default', d.T.any), + d.arg('enums', d.T.array), + ]), + new(name, type, default=null, enums=null): { + name: name, + type: type, + default: default, + enums: enums, + }, + }, + '#arg': self.argument['#new'] + self.func.withHelp('`arg` is a shorthand for `argument.new`'), + arg:: self.argument.new, + + '#value': d.obj('Utilities for documenting plain Jsonnet values (primitives)'), + value:: { + '#new': d.fn('new creates a new object of given type, optionally with description and default value', [d.arg('type', d.T.string), d.arg('help', d.T.string), d.arg('default', d.T.any)]), + new(type, help='', default=null): { value: { + help: help, + type: type, + default: default, + } }, + }, + '#val': self.value['#new'] + self.func.withHelp('`val` is a shorthand for `value.new`'), + val:: self.value.new, + + // T contains constants for the Jsonnet types + T:: { + '#string': d.val(d.T.string, 'argument of type "string"'), + string: 'string', + + '#number': d.val(d.T.string, 'argument of type "number"'), + number: 'number', + int: self.number, + integer: self.number, + + '#boolean': d.val(d.T.string, 'argument of type "boolean"'), + boolean: 'bool', + bool: self.boolean, + + '#object': d.val(d.T.string, 'argument of type "object"'), + object: 'object', + + '#array': d.val(d.T.string, 'argument of type "array"'), + array: 'array', + + '#any': d.val(d.T.string, 'argument of type "any"'), + any: 'any', + + '#null': d.val(d.T.string, 'argument of type "null"'), + 'null': 'null', + nil: self['null'], + + '#func': d.val(d.T.string, 'argument of type "func"'), + func: 'function', + 'function': self.func, + }, + + '#render': d.fn( + ||| + `render` converts the docstrings to human readable Markdown files. + + Usage: + + ```jsonnet + // docs.jsonnet + d.render(import 'main.libsonnet') + ``` + + Call with: `jsonnet -S -c -m docs/ docs.jsonnet` + |||, + args=[ + d.arg('obj', d.T.object), + ] + ), + render:: (import './render.libsonnet').render, + +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet new file mode 100644 index 0000000..5b71419 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet @@ -0,0 +1,401 @@ +{ + local root = self, + + templates: { + package: ||| + # %(name)s + + %(content)s + |||, + + indexPage: ||| + # %(prefix)s%(name)s + + %(index)s + |||, + + index: ||| + ## Index + + %s + |||, + + sectionTitle: '%(abbr)s %(prefix)s%(name)s', + + sectionLink: '* [`%(abbr)s %(linkName)s`](#%(link)s)', + + value: '* `%(prefix)s%(name)s` (`%(type)s`): `"%(value)s"` - %(help)s', + + section: ||| + %(headerDepth)s %(title)s + + %(content)s + |||, + }, + + joinPathPrefixes(prefixes, sep='/'):: + std.join(sep, prefixes) + + (if std.length(prefixes) > 0 + then sep + else ''), + + joinPrefixes(prefixes, sep='.'):: + std.join(sep, prefixes) + + (if std.length(prefixes) > 0 + then sep + else ''), + + renderSectionTitle(section, prefixes):: + root.templates.sectionTitle % { + name: section.name, + abbr: section.type.abbr, + prefix: root.joinPrefixes(prefixes), + }, + + renderValues(values, prefixes=[]):: + if std.length(values) > 0 + then + std.join('\n', [ + root.templates.value + % value + { + prefix: root.joinPrefixes(prefixes), + } + for value in values + ]) + '\n' + else '', + + renderSections(sections, depth=0, prefixes=[]):: + if std.length(sections) > 0 + then + std.join('\n', [ + root.templates.section + % { + headerDepth: std.join('', [ + '#' + for d in std.range(0, depth + 2) + ]), + title: root.renderSectionTitle( + section, + prefixes, + ), + content: section.content, + } + + root.renderValues( + section.values, + prefixes + [section.name] + ) + + root.renderSections( + section.subSections, + depth + 1, + prefixes + [section.name] + ) + for section in sections + ]) + else '', + + renderPackage(package, path=''):: + (root.templates.package % package) + + ( + if std.length(package.subPackages) > 0 + then + '## Subpackages\n\n' + + std.join('\n', [ + '* [%(name)s](%(path)s)' % { + name: sub.name, + path: path + sub.name + + (if std.length(sub.subPackages) > 0 + then '/index.md' + else '.md'), + } + for sub in package.subPackages + ]) + '\n\n' + else '' + ) + + (if std.length(package.sections) > 0 + then (root.templates.index % root.index(package.sections)) + else '') + + (if std.length(package.values) > 0 + || std.length(package.sections) > 0 + then + '\n## Fields\n\n' + + root.renderValues(package.values) + + root.renderSections(package.sections) + else ''), + + index(sections, depth=0, prefixes=[]):: + std.join('\n', [ + std.join('', [ + ' ' + for d in std.range(0, (depth * 2) - 1) + ]) + + (root.templates.sectionLink % { + abbr: section.type.abbr, + linkName: section.linkName, + link: + std.asciiLower( + std.strReplace( + std.strReplace(root.renderSectionTitle(section, prefixes), '.', '') + , ' ', '-' + ) + ), + }) + + ( + if std.length(section.subSections) > 0 + then '\n' + root.index( + section.subSections, + depth + 1, + prefixes + [section.name] + ) + else '' + ) + for section in sections + ]), + + sections: { + base: { + subSections: [], + values: [], + }, + object(key, doc, obj, depth):: self.base { + name: std.strReplace(key, '#', ''), + + local processed = root.prepare(obj, depth=depth + 1), + + subSections: processed.sections, + + values: processed.values, + + type: { full: 'object', abbr: 'obj' }, + + abbr: self.type.abbr, + + doc: + if self.type.full in doc + then doc[self.type.full] + else { help: '' }, + + help: self.doc.help, + + linkName: self.name, + + content: + if self.help != '' + then self.help + '\n' + else '', + }, + + 'function'(key, doc):: self.base { + name: std.strReplace(key, '#', ''), + + type: { full: 'function', abbr: 'fn' }, + + abbr: self.type.abbr, + + doc: doc[self.type.full], + + help: self.doc.help, + + args: std.join(', ', [ + if arg.default != null + then std.join('=', [ + arg.name, + std.manifestJsonEx(arg.default, '', ''), + ]) + else arg.name + for arg in self.doc.args + ]), + + enums: std.join('', [ + if arg.enums != null + then '\n\nAccepted values for `%s` are ' % arg.name + + std.join(', ', [ + std.manifestJsonEx(item, '', '') + for item in arg.enums + ]) + else '' + for arg in self.doc.args + ]), + + linkName: '%(name)s(%(args)s)' % self, + + content: + (||| + ```ts + %(name)s(%(args)s) + ``` + + ||| % self) + + '%(help)s' % self + + '%(enums)s' % self, + // odd concatenation to prevent unintential newline changes + + }, + + value(key, doc, obj):: self.base { + name: std.strReplace(key, '#', ''), + type: doc.value.type, + help: doc.value.help, + value: obj, + }, + + package(doc, root):: { + name: doc.name, + content: + ||| + %(help)s + ||| % doc + + (if 'installTemplate' in doc + then ||| + + ## Install + + ``` + %(install)s + ``` + ||| % doc.installTemplate % doc + else '') + + (if 'usageTemplate' in doc + then ||| + + ## Usage + + ```jsonnet + %(usage)s + ``` + ||| % doc.usageTemplate % doc + else ''), + }, + }, + + prepare(obj, depth=0):: + std.foldl( + function(acc, key) + acc + + // Package definition + if key == '#' + then root.sections.package( + obj[key], + (depth == 0) + ) + + + // Field definition + else if std.startsWith(key, '#') + then ( + local realKey = key[1:]; + + if !std.isObject(obj[key]) + then + std.trace( + 'INFO: docstring "%s" cannot be parsed, ignored while rendering.' % key, + {} + ) + + else if 'value' in obj[key] + then { + values+: [root.sections.value( + key, + obj[key], + obj[realKey] + )], + } + else if 'function' in obj[key] + then { + functionSections+: [root.sections['function']( + key, + obj[key], + )], + } + else if 'object' in obj[key] + then { + objectSections+: [root.sections.object( + key, + obj[key], + obj[realKey], + depth + )], + } + else + std.trace( + 'INFO: docstring "%s" cannot be parsed, ignored while rendering.' % key, + {} + ) + ) + + // subPackage definition + else if std.isObject(obj[key]) && '#' in obj[key] + then { + subPackages+: [root.prepare(obj[key])], + } + + // undocumented object + else if std.isObject(obj[key]) && !('#' + key in obj) + then ( + local section = root.sections.object( + key, + {}, + obj[key], + depth + ); + // only add if has documented subSections or values + if std.length(section.subSections) > 0 + || std.length(section.values) > 0 + then { objectSections+: [section] } + else {} + ) + + else {}, + std.objectFieldsAll(obj), + { + functionSections: [], + objectSections: [], + + sections: + self.functionSections + + self.objectSections, + subPackages: [], + values: [], + } + ), + + renderIndexPage(package, prefixes):: + root.templates.indexPage % { + name: package.name, + prefix: root.joinPrefixes(prefixes), + index: std.join('\n', [ + '* [%(name)s](%(name)s.md)' % sub + for sub in package.subPackages + ]), + }, + + renderFiles(package, prefixes=[]): + local path = root.joinPathPrefixes(prefixes); + ( + if std.length(prefixes) == 0 + then { + [path + 'README.md']: root.renderPackage(package, package.name + '/'), + } + else if std.length(package.subPackages) > 0 + then { + [path + package.name + '/index.md']: root.renderPackage(package), + } + else { + [path + package.name + '.md']: root.renderPackage(package, package.name + '/'), + } + ) + + std.foldl( + function(acc, sub) + acc + sub, + [ + root.renderFiles( + sub, + prefixes=prefixes + [package.name] + ) + for sub in package.subPackages + ], + {} + ), + + render(obj): + self.renderFiles(self.prepare(obj)), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/.gitignore b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/.gitignore new file mode 100644 index 0000000..bb476a1 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/.gitignore @@ -0,0 +1,3 @@ +.jekyll-cache +jsonnetfile.lock.json +vendor diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/LICENSE b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/LICENSE new file mode 100644 index 0000000..0a39b25 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018 grafana, sh0rez + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/Makefile b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/Makefile new file mode 100644 index 0000000..7ffe3aa --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/Makefile @@ -0,0 +1,16 @@ +.PHONY: test +test: + @cd test/; \ + jb install; \ + RESULT=0; \ + for f in $$(find . -path './.git' -prune -o -name 'vendor' -prune -o -name '*_test.jsonnet' -print); do \ + echo "$$f"; \ + jsonnet -J vendor -J lib "$$f"; \ + RESULT=$$(($$RESULT + $$?)); \ + done; \ + exit $$RESULT + + +.PHONY: docs +docs: + docsonnet main.libsonnet diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/README.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/README.md new file mode 100644 index 0000000..a060428 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/README.md @@ -0,0 +1,19 @@ +# `xtd` + +`xtd` aims to collect useful functions not included in the Jsonnet standard library (`std`). + +## Install + +```console +jb install github.com/jsonnet-libs/xtd +``` + +## Usage + +```jsonnet +local xtd = import "github.com/jsonnet-libs/xtd/main.libsonnet" +``` + +## Docs + +[docs](docs/README.md) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet new file mode 100644 index 0000000..78d3c1c --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet @@ -0,0 +1,104 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + local this = self, + + '#': d.pkg( + name='aggregate', + url='github.com/jsonnet-libs/xtd/aggregate.libsonnet', + help=||| + `aggregate` implements helper functions to aggregate arrays of objects into objects with arrays. + + Example: + + ```jsonnet + local apps = [ + { + appid: 'id1', + name: 'yo', + id: i, + } + for i in std.range(0, 10) + ]; + + aggregate.byKeys(apps, ['appid', 'name']); + ``` + + Output: + + ```json + { + "id1": { + "yo": [ + { + "appid": "id1", + "id": 0, + "name": "yo" + }, + { + "appid": "id1", + "id": 1, + "name": "yo" + }, + ... + ] + } + } + ``` + |||, + ), + + '#byKey':: d.fn( + ||| + `byKey` aggregates an array by the value of `key` + |||, + [ + d.arg('arr', d.T.array), + d.arg('key', d.T.string), + ] + ), + byKey(arr, key): + // find all values of key + local values = std.set([ + item[key] + for item in arr + ]); + + // create the aggregate for the value of each key + { + [value]: [ + item + for item in std.filter( + function(x) + x[key] == value, + arr + ) + ] + for value in values + }, + + '#byKeys':: d.fn( + ||| + `byKey` aggregates an array by iterating over `keys`, each item in `keys` nests the + aggregate one layer deeper. + |||, + [ + d.arg('arr', d.T.array), + d.arg('keys', d.T.array), + ] + ), + byKeys(arr, keys): + local aggregate = self.byKey(arr, keys[0]); + // if last key in keys + if std.length(keys) == 1 + + // then return aggregate + then aggregate + + // else aggregate with remaining keys + else { + [k]: this.byKeys(aggregate[k], keys[1:]) + for k in std.objectFields(aggregate) + }, + +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/array.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/array.libsonnet new file mode 100644 index 0000000..f000c87 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/array.libsonnet @@ -0,0 +1,37 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='array', + url='github.com/jsonnet-libs/xtd/array.libsonnet', + help='`array` implements helper functions for processing arrays.', + ), + + '#slice':: d.fn( + '`slice` works the same as `std.slice` but with support for negative index/end.', + [ + d.arg('indexable', d.T.array), + d.arg('index', d.T.number), + d.arg('end', d.T.number, default='null'), + d.arg('step', d.T.number, default=1), + ] + ), + slice(indexable, index, end=null, step=1): + local invar = { + index: + if index != null + then + if index < 0 + then std.length(indexable) + index + else index + else 0, + end: + if end != null + then + if end < 0 + then std.length(indexable) + end + else end + else std.length(indexable), + }; + indexable[invar.index:invar.end:step], +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet new file mode 100644 index 0000000..28571ac --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet @@ -0,0 +1,39 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='ascii', + url='github.com/jsonnet-libs/xtd/ascii.libsonnet', + help='`ascii` implements helper functions for ascii characters', + ), + + local cp(c) = std.codepoint(c), + + '#isLower':: d.fn( + '`isLower` reports whether ASCII character `c` is a lower case letter', + [d.arg('c', d.T.string)] + ), + isLower(c): + if cp(c) >= 97 && cp(c) < 123 + then true + else false, + + '#isUpper':: d.fn( + '`isUpper` reports whether ASCII character `c` is a upper case letter', + [d.arg('c', d.T.string)] + ), + isUpper(c): + if cp(c) >= 65 && cp(c) < 91 + then true + else false, + + '#isNumber':: d.fn( + '`isNumber` reports whether character `c` is a number.', + [d.arg('c', d.T.string)] + ), + isNumber(c): + if std.isNumber(c) || (cp(c) >= 48 && cp(c) < 58) + then true + else false, + +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet new file mode 100644 index 0000000..06b519b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet @@ -0,0 +1,80 @@ +local xtd = import './main.libsonnet'; +local d = import 'doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='camelcase', + url='github.com/jsonnet-libs/xtd/camelcase.libsonnet', + help='`camelcase` can split camelCase words into an array of words.', + ), + + '#split':: d.fn( + ||| + `split` splits a camelcase word and returns an array of words. It also supports + digits. Both lower camel case and upper camel case are supported. It only supports + ASCII characters. + For more info please check: http://en.wikipedia.org/wiki/CamelCase + Based on https://github.com/fatih/camelcase/ + |||, + [d.arg('src', d.T.string)] + ), + split(src): + if src == '' + then [''] + else + local runes = std.foldl( + function(acc, r) + acc { + local class = + if xtd.ascii.isNumber(r) + then 1 + else if xtd.ascii.isLower(r) + then 2 + else if xtd.ascii.isUpper(r) + then 3 + else 4, + + lastClass:: class, + + runes: + if class == super.lastClass + then super.runes[:std.length(super.runes) - 1] + + [super.runes[std.length(super.runes) - 1] + r] + else super.runes + [r], + }, + [src[i] for i in std.range(0, std.length(src) - 1)], + { lastClass:: 0, runes: [] } + ).runes; + + local fixRunes = + std.foldl( + function(runes, i) + if xtd.ascii.isUpper(runes[i][0]) + && xtd.ascii.isLower(runes[i + 1][0]) + && !xtd.ascii.isNumber(runes[i + 1][0]) + && runes[i][0] != ' ' + && runes[i + 1][0] != ' ' + then + std.mapWithIndex( + function(index, r) + if index == i + 1 + then runes[i][std.length(runes[i]) - 1:] + r + else + if index == i + then r[:std.length(r) - 1] + else r + , runes + ) + else runes + , + [i for i in std.range(0, std.length(runes) - 2)], + runes + ); + + [ + r + for r in fixRunes + if r != '' + ], + +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/date.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/date.libsonnet new file mode 100644 index 0000000..e611ed4 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/date.libsonnet @@ -0,0 +1,58 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='date', + url='github.com/jsonnet-libs/xtd/date.libsonnet', + help='`time` provides various date related functions.', + ), + + // Lookup tables for calendar calculations + local commonYearMonthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], + local commonYearMonthOffset = [0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5], + local leapYearMonthOffset = [0, 3, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6], + + // monthOffset looks up the offset to apply in day of week calculations based on the year and month + local monthOffset(year, month) = + if self.isLeapYear(year) + then leapYearMonthOffset[month - 1] + else commonYearMonthOffset[month - 1], + + '#isLeapYear': d.fn( + '`isLeapYear` returns true if the given year is a leap year.', + [d.arg('year', d.T.number)], + ), + isLeapYear(year):: year % 4 == 0 && (year % 100 != 0 || year % 400 == 0), + + '#dayOfWeek': d.fn( + '`dayOfWeek` returns the day of the week for the given date. 0=Sunday, 1=Monday, etc.', + [ + d.arg('year', d.T.number), + d.arg('month', d.T.number), + d.arg('day', d.T.number), + ], + ), + dayOfWeek(year, month, day):: + (day + monthOffset(year, month) + 5 * ((year - 1) % 4) + 4 * ((year - 1) % 100) + 6 * ((year - 1) % 400)) % 7, + + '#dayOfYear': d.fn( + ||| + `dayOfYear` calculates the ordinal day of the year based on the given date. The range of outputs is 1-365 + for common years, and 1-366 for leap years. + |||, + [ + d.arg('year', d.T.number), + d.arg('month', d.T.number), + d.arg('day', d.T.number), + ], + ), + dayOfYear(year, month, day):: + std.foldl( + function(a, b) a + b, + std.slice(commonYearMonthLength, 0, month - 1, 1), + 0 + ) + day + + if month > 2 && self.isLeapYear(year) + then 1 + else 0, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore new file mode 100644 index 0000000..d7951d9 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore @@ -0,0 +1,2 @@ +Gemfile.lock +_site diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile new file mode 100644 index 0000000..75d9835 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile @@ -0,0 +1,2 @@ +source "https://rubygems.org" +gem "github-pages", group: :jekyll_plugins diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/README.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/README.md new file mode 100644 index 0000000..0fbf376 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/README.md @@ -0,0 +1,27 @@ +--- +permalink: / +--- + +# package xtd + +```jsonnet +local xtd = import "github.com/jsonnet-libs/xtd/main.libsonnet" +``` + +`xtd` aims to collect useful functions not included in the Jsonnet standard library (`std`). + +This package serves as a test field for functions intended to be contributed to `std` +in the future, but also provides a place for less general, yet useful utilities. + + +## Subpackages + +* [aggregate](aggregate.md) +* [array](array.md) +* [ascii](ascii.md) +* [camelcase](camelcase.md) +* [date](date.md) +* [inspect](inspect.md) +* [jsonpath](jsonpath.md) +* [string](string.md) +* [url](url.md) \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml new file mode 100644 index 0000000..d18a288 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml @@ -0,0 +1,2 @@ +theme: jekyll-theme-cayman +baseurl: /xtd diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md new file mode 100644 index 0000000..aba530d --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md @@ -0,0 +1,74 @@ +--- +permalink: /aggregate/ +--- + +# package aggregate + +```jsonnet +local aggregate = import "github.com/jsonnet-libs/xtd/aggregate.libsonnet" +``` + +`aggregate` implements helper functions to aggregate arrays of objects into objects with arrays. + +Example: + +```jsonnet +local apps = [ + { + appid: 'id1', + name: 'yo', + id: i, + } + for i in std.range(0, 10) +]; + +aggregate.byKeys(apps, ['appid', 'name']); +``` + +Output: + +```json +{ + "id1": { + "yo": [ + { + "appid": "id1", + "id": 0, + "name": "yo" + }, + { + "appid": "id1", + "id": 1, + "name": "yo" + }, + ... + ] + } +} +``` + + +## Index + +* [`fn byKey(arr, key)`](#fn-bykey) +* [`fn byKeys(arr, keys)`](#fn-bykeys) + +## Fields + +### fn byKey + +```ts +byKey(arr, key) +``` + +`byKey` aggregates an array by the value of `key` + + +### fn byKeys + +```ts +byKeys(arr, keys) +``` + +`byKey` aggregates an array by iterating over `keys`, each item in `keys` nests the +aggregate one layer deeper. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/array.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/array.md new file mode 100644 index 0000000..1d9e4a8 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/array.md @@ -0,0 +1,25 @@ +--- +permalink: /array/ +--- + +# package array + +```jsonnet +local array = import "github.com/jsonnet-libs/xtd/array.libsonnet" +``` + +`array` implements helper functions for processing arrays. + +## Index + +* [`fn slice(indexable, index, end='null', step=1)`](#fn-slice) + +## Fields + +### fn slice + +```ts +slice(indexable, index, end='null', step=1) +``` + +`slice` works the same as `std.slice` but with support for negative index/end. \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md new file mode 100644 index 0000000..37d7ed7 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md @@ -0,0 +1,43 @@ +--- +permalink: /ascii/ +--- + +# package ascii + +```jsonnet +local ascii = import "github.com/jsonnet-libs/xtd/ascii.libsonnet" +``` + +`ascii` implements helper functions for ascii characters + +## Index + +* [`fn isLower(c)`](#fn-islower) +* [`fn isNumber(c)`](#fn-isnumber) +* [`fn isUpper(c)`](#fn-isupper) + +## Fields + +### fn isLower + +```ts +isLower(c) +``` + +`isLower` reports whether ASCII character `c` is a lower case letter + +### fn isNumber + +```ts +isNumber(c) +``` + +`isNumber` reports whether character `c` is a number. + +### fn isUpper + +```ts +isUpper(c) +``` + +`isUpper` reports whether ASCII character `c` is a upper case letter \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md new file mode 100644 index 0000000..0634fa9 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md @@ -0,0 +1,29 @@ +--- +permalink: /camelcase/ +--- + +# package camelcase + +```jsonnet +local camelcase = import "github.com/jsonnet-libs/xtd/camelcase.libsonnet" +``` + +`camelcase` can split camelCase words into an array of words. + +## Index + +* [`fn split(src)`](#fn-split) + +## Fields + +### fn split + +```ts +split(src) +``` + +`split` splits a camelcase word and returns an array of words. It also supports +digits. Both lower camel case and upper camel case are supported. It only supports +ASCII characters. +For more info please check: http://en.wikipedia.org/wiki/CamelCase +Based on https://github.com/fatih/camelcase/ diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/date.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/date.md new file mode 100644 index 0000000..e2c9295 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/date.md @@ -0,0 +1,45 @@ +--- +permalink: /date/ +--- + +# package date + +```jsonnet +local date = import "github.com/jsonnet-libs/xtd/date.libsonnet" +``` + +`time` provides various date related functions. + +## Index + +* [`fn dayOfWeek(year, month, day)`](#fn-dayofweek) +* [`fn dayOfYear(year, month, day)`](#fn-dayofyear) +* [`fn isLeapYear(year)`](#fn-isleapyear) + +## Fields + +### fn dayOfWeek + +```ts +dayOfWeek(year, month, day) +``` + +`dayOfWeek` returns the day of the week for the given date. 0=Sunday, 1=Monday, etc. + +### fn dayOfYear + +```ts +dayOfYear(year, month, day) +``` + +`dayOfYear` calculates the ordinal day of the year based on the given date. The range of outputs is 1-365 +for common years, and 1-366 for leap years. + + +### fn isLeapYear + +```ts +isLeapYear(year) +``` + +`isLeapYear` returns true if the given year is a leap year. \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md new file mode 100644 index 0000000..726d330 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md @@ -0,0 +1,93 @@ +--- +permalink: /inspect/ +--- + +# package inspect + +```jsonnet +local inspect = import "github.com/jsonnet-libs/xtd/inspect.libsonnet" +``` + +`inspect` implements helper functions for inspecting Jsonnet + +## Index + +* [`fn diff(input1, input2)`](#fn-diff) +* [`fn filterKubernetesObjects(object, kind='')`](#fn-filterkubernetesobjects) +* [`fn filterObjects(filter_func, x)`](#fn-filterobjects) +* [`fn inspect(object, maxDepth)`](#fn-inspect) + +## Fields + +### fn diff + +```ts +diff(input1, input2) +``` + +`diff` returns a JSON object describing the differences between two inputs. It +attemps to show diffs in nested objects and arrays too. + +Simple example: + +```jsonnet +local input1 = { + same: 'same', + change: 'this', + remove: 'removed', +}; + +local input2 = { + same: 'same', + change: 'changed', + add: 'added', +}; + +diff(input1, input2), +``` + +Output: +```json +{ + "add +": "added", + "change ~": "~[ this , changed ]", + "remove -": "removed" +} +``` + + +### fn filterKubernetesObjects + +```ts +filterKubernetesObjects(object, kind='') +``` + +`filterKubernetesObjects` implements `filterObjects` to return all Kubernetes objects in +an array, assuming that Kubernetes object are characterized by having an +`apiVersion` and `kind` field. + +The `object` argument can either be an object or an array, other types will be +ignored. The `kind` allows to filter out a specific kind, if unset all kinds will +be returned. + + +### fn filterObjects + +```ts +filterObjects(filter_func, x) +``` + +`filterObjects` walks a JSON tree returning all matching objects in an array. + +The `x` argument can either be an object or an array, other types will be +ignored. + + +### fn inspect + +```ts +inspect(object, maxDepth) +``` + +`inspect` reports the structure of a Jsonnet object with a recursion depth of +`maxDepth` (default maxDepth=10). diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md new file mode 100644 index 0000000..8b0e30d --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md @@ -0,0 +1,53 @@ +--- +permalink: /jsonpath/ +--- + +# package jsonpath + +```jsonnet +local jsonpath = import "github.com/jsonnet-libs/xtd/jsonpath.libsonnet" +``` + +`jsonpath` implements helper functions to use JSONPath expressions. + +## Index + +* [`fn convertBracketToDot(path)`](#fn-convertbrackettodot) +* [`fn getJSONPath(source, path, default='null')`](#fn-getjsonpath) +* [`fn parseFilterExpr(path)`](#fn-parsefilterexpr) + +## Fields + +### fn convertBracketToDot + +```ts +convertBracketToDot(path) +``` + +`convertBracketToDot` converts the bracket notation to dot notation. + +This function does not support escaping brackets/quotes in path keys. + + +### fn getJSONPath + +```ts +getJSONPath(source, path, default='null') +``` + +`getJSONPath` gets the value at `path` from `source` where path is a JSONPath. + +This is a rudimentary implementation supporting the slice operator `[0:3:2]` and +partially supporting filter expressions `?(@.attr==value)`. + + +### fn parseFilterExpr + +```ts +parseFilterExpr(path) +``` + +`parseFilterExpr` returns a filter function `f(x)` for a filter expression `expr`. + + It supports comparisons (<, <=, >, >=) and equality checks (==, !=). If it doesn't + have an operator, it will check if the `expr` value exists. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/string.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/string.md new file mode 100644 index 0000000..17b75b5 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/string.md @@ -0,0 +1,26 @@ +--- +permalink: /string/ +--- + +# package string + +```jsonnet +local string = import "github.com/jsonnet-libs/xtd/string.libsonnet" +``` + +`string` implements helper functions for processing strings. + +## Index + +* [`fn splitEscape(str, c, escape='\\')`](#fn-splitescape) + +## Fields + +### fn splitEscape + +```ts +splitEscape(str, c, escape='\\') +``` + +`split` works the same as `std.split` but with support for escaping the dividing +string `c`. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/url.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/url.md new file mode 100644 index 0000000..728957d --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/url.md @@ -0,0 +1,56 @@ +--- +permalink: /url/ +--- + +# package url + +```jsonnet +local url = import "github.com/jsonnet-libs/xtd/url.libsonnet" +``` + +`url` provides functions to deal with URLs + +## Index + +* [`fn encodeQuery(params)`](#fn-encodequery) +* [`fn escapeString(str, excludedChars=[])`](#fn-escapestring) +* [`fn join(splitObj)`](#fn-join) +* [`fn parse(url)`](#fn-parse) + +## Fields + +### fn encodeQuery + +```ts +encodeQuery(params) +``` + +`encodeQuery` takes an object of query parameters and returns them as an escaped `key=value` string + +### fn escapeString + +```ts +escapeString(str, excludedChars=[]) +``` + +`escapeString` escapes the given string so it can be safely placed inside an URL, replacing special characters with `%XX` sequences + +### fn join + +```ts +join(splitObj) +``` + +`join` joins URLs from the object generated from `parse` + +### fn parse + +```ts +parse(url) +``` + +`parse` parses absolute and relative URLs. + +:///;parameters?# + +Inspired by Python's urllib.urlparse, following several RFC specifications. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet new file mode 100644 index 0000000..2ee7159 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet @@ -0,0 +1,209 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + local this = self, + + '#': d.pkg( + name='inspect', + url='github.com/jsonnet-libs/xtd/inspect.libsonnet', + help='`inspect` implements helper functions for inspecting Jsonnet', + ), + + '#inspect':: d.fn( + ||| + `inspect` reports the structure of a Jsonnet object with a recursion depth of + `maxDepth` (default maxDepth=10). + |||, + [ + d.arg('object', d.T.object), + d.arg('maxDepth', d.T.number), + //d.arg('depth', d.T.number), // used for recursion, not exposing in docs + ] + ), + inspect(object, maxDepth=10, depth=0): + std.foldl( + function(acc, p) + acc + ( + if std.isObject(object[p]) + && depth != maxDepth + then { [p]+: + this.inspect( + object[p], + maxDepth, + depth + 1 + ) } + else { + [ + (if !std.objectHas(object, p) + then 'hidden_' + else '') + + (if std.isFunction(object[p]) + then 'functions' + else 'fields') + ]+: [p], + } + ), + std.objectFieldsAll(object), + {} + ), + + '#diff':: d.fn( + ||| + `diff` returns a JSON object describing the differences between two inputs. It + attemps to show diffs in nested objects and arrays too. + + Simple example: + + ```jsonnet + local input1 = { + same: 'same', + change: 'this', + remove: 'removed', + }; + + local input2 = { + same: 'same', + change: 'changed', + add: 'added', + }; + + diff(input1, input2), + ``` + + Output: + ```json + { + "add +": "added", + "change ~": "~[ this , changed ]", + "remove -": "removed" + } + ``` + |||, + [ + d.arg('input1', d.T.any), + d.arg('input2', d.T.any), + ] + ), + diff(input1, input2):: + if input1 == input2 + then '' + else if std.isArray(input1) && std.isArray(input2) + then + [ + if input1[i] != input2[i] + then + this.diff( + input1[i], + input2[i] + ) + else input2[i] + for i in std.range(0, std.length(input2) - 1) + if std.length(input1) > i + ] + + (if std.length(input1) < std.length(input2) + then [ + '+ ' + input2[i] + for i in std.range(std.length(input1), std.length(input2) - 1) + ] + else []) + + (if std.length(input1) > std.length(input2) + then [ + '- ' + input1[i] + for i in std.range(std.length(input2), std.length(input1) - 1) + ] + else []) + + else if std.isObject(input1) && std.isObject(input2) + then std.foldl( + function(acc, k) + acc + ( + if k in input1 && input1[k] != input2[k] + then { + [k + ' ~']: + this.diff( + input1[k], + input2[k] + ), + } + else if !(k in input1) + then { + [k + ' +']: input2[k], + } + else {} + ), + std.objectFields(input2), + {}, + ) + + { + [l + ' -']: input1[l] + for l in std.objectFields(input1) + if !(l in input2) + } + + else '~[ %s ]' % std.join(' , ', [std.toString(input1), std.toString(input2)]), + + '#filterObjects':: d.fn( + ||| + `filterObjects` walks a JSON tree returning all matching objects in an array. + + The `x` argument can either be an object or an array, other types will be + ignored. + |||, + args=[ + d.arg('filter_func', d.T.func), + d.arg('x', d.T.any), + ] + ), + filterObjects(filter_func, x): + if std.isObject(x) + then + if filter_func(x) + then x + else + std.foldl( + function(acc, o) + acc + self.filterObjects(x[o], filter_func), + std.objectFields(x), + [] + ) + else if std.isArray(x) + then + std.flattenArrays( + std.map( + function(obj) + self.filterObjects(obj, filter_func), + x + ) + ) + else [], + + '#filterKubernetesObjects':: d.fn( + ||| + `filterKubernetesObjects` implements `filterObjects` to return all Kubernetes objects in + an array, assuming that Kubernetes object are characterized by having an + `apiVersion` and `kind` field. + + The `object` argument can either be an object or an array, other types will be + ignored. The `kind` allows to filter out a specific kind, if unset all kinds will + be returned. + |||, + args=[ + d.arg('object', d.T.any), + d.arg('kind', d.T.string, default=''), + ] + ), + filterKubernetesObjects(object, kind=''): + local objects = self.filterObjects( + function(object) + std.objectHas(object, 'apiVersion') + && std.objectHas(object, 'kind'), + object, + ); + if kind == '' + then objects + else + std.filter( + function(o) o.kind == kind, + objects + ), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet new file mode 100644 index 0000000..7722d64 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet @@ -0,0 +1,142 @@ +local xtd = import './main.libsonnet'; +local d = import 'doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='jsonpath', + url='github.com/jsonnet-libs/xtd/jsonpath.libsonnet', + help='`jsonpath` implements helper functions to use JSONPath expressions.', + ), + + + '#getJSONPath':: d.fn( + ||| + `getJSONPath` gets the value at `path` from `source` where path is a JSONPath. + + This is a rudimentary implementation supporting the slice operator `[0:3:2]` and + partially supporting filter expressions `?(@.attr==value)`. + |||, + [ + d.arg('source', d.T.any), + d.arg('path', d.T.string,), + d.arg('default', d.T.any, default='null'), + ] + ), + getJSONPath(source, path, default=null): + local _path = self.convertBracketToDot(path); + std.foldl( + function(acc, key) + if acc == null + then acc + else get(acc, key, default), + xtd.string.splitEscape(_path, '.'), + source, + ), + + '#convertBracketToDot':: d.fn( + ||| + `convertBracketToDot` converts the bracket notation to dot notation. + + This function does not support escaping brackets/quotes in path keys. + |||, + [ + d.arg('path', d.T.string,), + ] + ), + convertBracketToDot(path): + if std.length(std.findSubstr('[', path)) > 0 + then + local split = std.split(path, '['); + std.join('.', [ + local a = std.stripChars(i, "[]'"); + std.strReplace(a, '@.', '@\\.') + for i in split + ]) + else path, + + local get(source, key, default) = + if key == '' + || key == '$' + || key == '*' + then source + else if std.isArray(source) + then getFromArray(source, key) + else std.get(source, key, default), + + local getFromArray(arr, key) = + if std.startsWith(key, '?(@\\.') + then + std.filter( + self.parseFilterExpr(std.stripChars(key, '?(@\\.)')), + arr + ) + else if std.length(std.findSubstr(':', key)) >= 1 + then + local split = std.splitLimit(key, ':', 2); + local step = + if std.length(split) < 3 + then 1 + else parseIntOrNull(split[2]); + xtd.array.slice( + arr, + parseIntOrNull(split[0]), + parseIntOrNull(split[1]), + step, + ) + else + arr[std.parseInt(key)], + + local parseIntOrNull(str) = + if str == '' + then null + else std.parseInt(str), + + '#parseFilterExpr':: d.fn( + ||| + `parseFilterExpr` returns a filter function `f(x)` for a filter expression `expr`. + + It supports comparisons (<, <=, >, >=) and equality checks (==, !=). If it doesn't + have an operator, it will check if the `expr` value exists. + |||, + [ + d.arg('path', d.T.string,), + ] + ), + parseFilterExpr(expr): + local operandFunctions = { + '=='(a, b): a == b, + '!='(a, b): a != b, + '<='(a, b): a <= b, + '>='(a, b): a >= b, + '<'(a, b): a < b, + '>'(a, b): a > b, + }; + + local findOperands = std.filter( + function(op) std.length(std.findSubstr(op, expr)) > 0, + std.reverse( // reverse to match '<=' before '<' + std.objectFields(operandFunctions) + ) + ); + + if std.length(findOperands) > 0 + then + local op = findOperands[0]; + local s = [ + std.stripChars(i, ' ') + for i in std.splitLimit(expr, op, 1) + ]; + function(x) + if s[0] in x + then + local left = x[s[0]]; + local right = + if std.isNumber(left) + then std.parseInt(s[1]) // Only parse if comparing numbers + else s[1]; + operandFunctions[op](left, right) + else false + else + // Default to key matching + function(x) (expr in x), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/main.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/main.libsonnet new file mode 100644 index 0000000..59c4034 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/main.libsonnet @@ -0,0 +1,24 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='xtd', + url='github.com/jsonnet-libs/xtd/main.libsonnet', + help=||| + `xtd` aims to collect useful functions not included in the Jsonnet standard library (`std`). + + This package serves as a test field for functions intended to be contributed to `std` + in the future, but also provides a place for less general, yet useful utilities. + |||, + ), + + aggregate: (import './aggregate.libsonnet'), + array: (import './array.libsonnet'), + ascii: (import './ascii.libsonnet'), + camelcase: (import './camelcase.libsonnet'), + date: (import './date.libsonnet'), + inspect: (import './inspect.libsonnet'), + jsonpath: (import './jsonpath.libsonnet'), + string: (import './string.libsonnet'), + url: (import './url.libsonnet'), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/string.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/string.libsonnet new file mode 100644 index 0000000..5514cde --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/string.libsonnet @@ -0,0 +1,35 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='string', + url='github.com/jsonnet-libs/xtd/string.libsonnet', + help='`string` implements helper functions for processing strings.', + ), + + // BelRune is a string of the Ascii character BEL which made computers ring in ancient times. + // We use it as "magic" char to temporarily replace an escaped string as it is a non printable + // character and thereby will unlikely be in a valid key by accident. Only when we include it. + local BelRune = std.char(7), + + '#splitEscape':: d.fn( + ||| + `split` works the same as `std.split` but with support for escaping the dividing + string `c`. + |||, + [ + d.arg('str', d.T.string), + d.arg('c', d.T.string), + d.arg('escape', d.T.string, default='\\'), + ] + ), + splitEscape(str, c, escape='\\'): + std.map( + function(i) + std.strReplace(i, BelRune, escape + c), + std.split( + std.strReplace(str, escape + c, BelRune), + c, + ) + ), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet new file mode 100644 index 0000000..65aef8a --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet @@ -0,0 +1,83 @@ +local array = import '../array.libsonnet'; +local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; + +local arr = std.range(0, 10); + +test.new(std.thisFile) + ++ test.case.new( + name='first two', + test=test.expect.eq( + actual=array.slice( + arr, + index=0, + end=2, + ), + expected=[0, 1], + ) +) ++ test.case.new( + name='last two', + test=test.expect.eq( + actual=array.slice( + arr, + index=1, + end=3, + ), + expected=[1, 2], + ) +) ++ test.case.new( + name='until end', + test=test.expect.eq( + actual=array.slice( + arr, + index=1 + ), + expected=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + ) +) ++ test.case.new( + name='from beginning', + test=test.expect.eq( + actual=array.slice( + arr, + index=0, + end=2 + ), + expected=[0, 1], + ) +) ++ test.case.new( + name='negative start', + test=test.expect.eq( + actual=array.slice( + arr, + index=-2 + ), + expected=[9, 10], + ) +) ++ test.case.new( + name='negative end', + test=test.expect.eq( + actual=array.slice( + arr, + index=0, + end=-1 + ), + expected=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], + ) +) ++ test.case.new( + name='step', + test=test.expect.eq( + actual=array.slice( + arr, + index=0, + end=5, + step=2 + ), + expected=[0, 2, 4], + ) +) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet new file mode 100644 index 0000000..b171c64 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet @@ -0,0 +1,137 @@ +local xtd = import '../main.libsonnet'; +local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; + +test.new(std.thisFile) + ++ test.case.new( + name='nostring', + test=test.expect.eq( + actual=xtd.camelcase.split(''), + expected=[''], + ) +) ++ test.case.new( + name='lowercase', + test=test.expect.eq( + actual=xtd.camelcase.split('lowercase'), + expected=['lowercase'], + ) +) ++ test.case.new( + name='Class', + test=test.expect.eq( + actual=xtd.camelcase.split('Class'), + expected=['Class'], + ) +) ++ test.case.new( + name='MyClass', + test=test.expect.eq( + actual=xtd.camelcase.split('MyClass'), + expected=['My', 'Class'], + ) +) ++ test.case.new( + name='MyC', + test=test.expect.eq( + actual=xtd.camelcase.split('MyC'), + expected=['My', 'C'], + ) +) ++ test.case.new( + name='HTML', + test=test.expect.eq( + actual=xtd.camelcase.split('HTML'), + expected=['HTML'], + ) +) ++ test.case.new( + name='PDFLoader', + test=test.expect.eq( + actual=xtd.camelcase.split('PDFLoader'), + expected=['PDF', 'Loader'], + ) +) ++ test.case.new( + name='AString', + test=test.expect.eq( + actual=xtd.camelcase.split('AString'), + expected=['A', 'String'], + ) +) ++ test.case.new( + name='SimpleXMLParser', + test=test.expect.eq( + actual=xtd.camelcase.split('SimpleXMLParser'), + expected=['Simple', 'XML', 'Parser'], + ) +) ++ test.case.new( + name='vimRPCPlugin', + test=test.expect.eq( + actual=xtd.camelcase.split('vimRPCPlugin'), + expected=['vim', 'RPC', 'Plugin'], + ) +) ++ test.case.new( + name='GL11Version', + test=test.expect.eq( + actual=xtd.camelcase.split('GL11Version'), + expected=['GL', '11', 'Version'], + ) +) ++ test.case.new( + name='99Bottles', + test=test.expect.eq( + actual=xtd.camelcase.split('99Bottles'), + expected=['99', 'Bottles'], + ) +) ++ test.case.new( + name='May5', + test=test.expect.eq( + actual=xtd.camelcase.split('May5'), + expected=['May', '5'], + ) +) ++ test.case.new( + name='BFG9000', + test=test.expect.eq( + actual=xtd.camelcase.split('BFG9000'), + expected=['BFG', '9000'], + ) +) ++ test.case.new( + name='Two spaces', + test=test.expect.eq( + actual=xtd.camelcase.split('Two spaces'), + expected=['Two', ' ', 'spaces'], + ) +) ++ test.case.new( + name='Multiple Random spaces', + test=test.expect.eq( + actual=xtd.camelcase.split('Multiple Random spaces'), + expected=['Multiple', ' ', 'Random', ' ', 'spaces'], + ) +) + +// TODO: find or create is(Upper|Lower) for non-ascii characters +// Something like this for Jsonnet: +// https://cs.opensource.google/go/go/+/refs/tags/go1.17.3:src/unicode/tables.go +//+ test.case.new( +// name='BöseÜberraschung', +// test=test.expect.eq( +// actual=xtd.camelcase.split('BöseÜberraschung'), +// expected=['Böse', 'Überraschung'], +// ) +//) + +// This doesn't even render in Jsonnet +//+ test.case.new( +// name="BadUTF8\xe2\xe2\xa1", +// test=test.expect.eq( +// actual=xtd.camelcase.split("BadUTF8\xe2\xe2\xa1"), +// expected=["BadUTF8\xe2\xe2\xa1"], +// ) +//) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet new file mode 100644 index 0000000..c0ebe77 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet @@ -0,0 +1,131 @@ +local xtd = import '../main.libsonnet'; +local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; + +test.new(std.thisFile) + ++ test.case.new( + name='Leap Year commonYear', + test=test.expect.eq( + actual=xtd.date.isLeapYear(1995), + expected=false, + ) +) + ++ test.case.new( + name='Leap Year fourYearCycle', + test=test.expect.eq( + actual=xtd.date.isLeapYear(1996), + expected=true, + ) +) + ++ test.case.new( + name='Leap Year fourHundredYearCycle', + test=test.expect.eq( + actual=xtd.date.isLeapYear(2000), + expected=true, + ) +) + ++ test.case.new( + name='Leap Year hundredYearCycle', + test=test.expect.eq( + actual=xtd.date.isLeapYear(2100), + expected=false, + ) +) + ++ test.case.new( + name='Day Of Week leapYearStart', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2000, 1, 1), + expected=6, + ) +) + ++ test.case.new( + name='Day Of Week leapYearEnd', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2000, 12, 31), + expected=0, + ) +) + ++ test.case.new( + name='Day Of Week commonYearStart', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(1995, 1, 1), + expected=0, + ) +) + ++ test.case.new( + name='Day Of Week commonYearEnd', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2003, 12, 31), + expected=3, + ) +) + ++ test.case.new( + name='Day Of Week leapYearMid', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2024, 7, 19), + expected=5, + ) +) + ++ test.case.new( + name='Day Of Week commonYearMid', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2023, 6, 15), + expected=4, + ) +) ++ test.case.new( + name='Day Of Year leapYearStart', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2000, 1, 1), + expected=1, + ) +) + ++ test.case.new( + name='Day Of Year leapYearEnd', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2000, 12, 31), + expected=366, + ) +) + ++ test.case.new( + name='Day Of Year commonYearStart', + test=test.expect.eq( + actual=xtd.date.dayOfYear(1995, 1, 1), + expected=1, + ) +) + ++ test.case.new( + name='Day Of Year commonYearEnd', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2003, 12, 31), + expected=365, + ) +) + ++ test.case.new( + name='Day Of Year leapYearMid', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2024, 7, 19), + expected=201, + ) +) + ++ test.case.new( + name='Day Of Year commonYearMid', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2023, 6, 15), + expected=166, + ) +) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet new file mode 100644 index 0000000..54510ea --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet @@ -0,0 +1,152 @@ +local xtd = import '../main.libsonnet'; +local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; + +test.new(std.thisFile) + ++ test.case.new( + name='emptyobject', + test=test.expect.eq( + actual=xtd.inspect.inspect({}), + expected={} + ) +) + ++ test.case.new( + name='flatObject', + test=test.expect.eq( + actual=xtd.inspect.inspect({ + key: 'value', + hidden_key:: 'value', + func(value): value, + hidden_func(value):: value, + }), + expected={ + fields: ['key'], + hidden_fields: ['hidden_key'], + functions: ['func'], + hidden_functions: ['hidden_func'], + } + ) +) + ++ test.case.new( + name='nestedObject', + test=test.expect.eq( + actual=xtd.inspect.inspect({ + nested: { + key: 'value', + hidden_key:: 'value', + func(value): value, + hidden_func(value):: value, + }, + key: 'value', + hidden_func(value):: value, + }), + expected={ + nested: { + fields: ['key'], + hidden_fields: ['hidden_key'], + functions: ['func'], + hidden_functions: ['hidden_func'], + }, + fields: ['key'], + hidden_functions: ['hidden_func'], + } + ) +) + ++ test.case.new( + name='maxRecursionDepth', + test=test.expect.eq( + actual=xtd.inspect.inspect({ + key: 'value', + nested: { + key: 'value', + nested: { + key: 'value', + }, + }, + }, maxDepth=1), + expected={ + fields: ['key'], + nested: { + fields: ['key', 'nested'], + }, + } + ) +) + ++ test.case.new( + name='noDiff', + test=test.expect.eq( + actual=xtd.inspect.diff('', ''), + expected='' + ) +) ++ test.case.new( + name='typeDiff', + test=test.expect.eq( + actual=xtd.inspect.diff('string', true), + expected='~[ string , true ]' + ) +) ++ ( + local input1 = { + same: 'same', + change: 'this', + remove: 'removed', + }; + local input2 = { + same: 'same', + change: 'changed', + add: 'added', + }; + test.case.new( + name='objectDiff', + test=test.expect.eq( + actual=xtd.inspect.diff(input1, input2), + expected={ + 'add +': 'added', + 'change ~': '~[ this , changed ]', + 'remove -': 'removed', + } + ) + ) +) + ++ ( + local input1 = [ + 'same', + 'this', + [ + 'same', + 'this', + ], + 'remove', + ]; + local input2 = [ + 'same', + 'changed', + [ + 'same', + 'changed', + 'added', + ], + ]; + test.case.new( + name='arrayDiff', + test=test.expect.eq( + actual=xtd.inspect.diff(input1, input2), + expected=[ + 'same', + '~[ this , changed ]', + [ + 'same', + '~[ this , changed ]', + '+ added', + ], + '- remove', + ] + ) + ) +) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json new file mode 100644 index 0000000..ce9ad4d --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json @@ -0,0 +1,15 @@ +{ + "version": 1, + "dependencies": [ + { + "source": { + "git": { + "remote": "https://github.com/jsonnet-libs/testonnet.git", + "subdir": "" + } + }, + "version": "master" + } + ], + "legacyImports": true +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet new file mode 100644 index 0000000..8c1106b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet @@ -0,0 +1,305 @@ +local jsonpath = import '../jsonpath.libsonnet'; +local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; + +test.new(std.thisFile) + +// Root ++ test.case.new( + name='root $', + test=test.expect.eq( + actual=jsonpath.getJSONPath({ key: 'content' }, '$'), + expected={ key: 'content' }, + ) +) ++ test.case.new( + name='root (empty path)', + test=test.expect.eq( + actual=jsonpath.getJSONPath({ key: 'content' }, ''), + expected={ key: 'content' }, + ) +) ++ test.case.new( + name='root .', + test=test.expect.eq( + actual=jsonpath.getJSONPath({ key: 'content' }, '.'), + expected={ key: 'content' }, + ) +) + +// Single key ++ test.case.new( + name='path without dot prefix', + test=test.expect.eq( + actual=jsonpath.getJSONPath({ key: 'content' }, 'key'), + expected='content', + ) +) ++ test.case.new( + name='single key', + test=test.expect.eq( + actual=jsonpath.getJSONPath({ key: 'content' }, '.key'), + expected='content', + ) +) ++ test.case.new( + name='single bracket key', + test=test.expect.eq( + actual=jsonpath.getJSONPath({ key: 'content' }, '[key]'), + expected='content', + ) +) ++ test.case.new( + name='single bracket key with $', + test=test.expect.eq( + actual=jsonpath.getJSONPath({ key: 'content' }, '$[key]'), + expected='content', + ) +) ++ test.case.new( + name='single array index', + test=test.expect.eq( + actual=jsonpath.getJSONPath(['content'], '.[0]'), + expected='content', + ) +) ++ test.case.new( + name='single array index without dot prefix', + test=test.expect.eq( + actual=jsonpath.getJSONPath(['content'], '[0]'), + expected='content', + ) +) + +// Nested ++ test.case.new( + name='nested key', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: { key3: 'content' } } }, + '.key1.key2.key3' + ), + expected='content', + ) +) ++ test.case.new( + name='nested bracket key', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: { key3: 'content' } } }, + '.key1.key2[key3]' + ), + expected='content', + ) +) ++ test.case.new( + name='nested bracket key (quoted)', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: { key3: 'content' } } }, + ".key1.key2['key3']" + ), + expected='content', + ) +) ++ test.case.new( + name='nested bracket star key', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: { key3: 'content' } } }, + '.key1.key2[*]' + ), + expected={ key3: 'content' }, + ) +) ++ test.case.new( + name='nested array index', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: ['content1', 'content2'] } }, + '.key1.key2[1]' + ), + expected='content2', + ) +) ++ test.case.new( + name='nested array index with $', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: ['content1', 'content2'] } }, + '$.key1.key2[1]' + ), + expected='content2', + ) +) ++ test.case.new( + name='nested array index without brackets', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: ['content1', 'content2'] } }, + '.key1.key2.1' + ), + expected='content2', + ) +) ++ test.case.new( + name='nested array star index', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: ['content1', 'content2'] } }, + '.key1.key2[*]' + ), + expected=['content1', 'content2'], + ) +) ++ test.case.new( + name='nested bracket keys and array index combo', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: ['content1', 'content2'] } }, + '$.[key1][key2][1]' + ), + expected='content2', + ) +) ++ test.case.new( + name='all keys in bracket and quoted', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key1: { key2: ['content1', 'content2'] } }, + "$['key1']['key2']" + ), + expected=['content1', 'content2'], + ) +) + +// index range/slice ++ test.case.new( + name='array with index range (first two)', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: ['content1', 'content2', 'content3'] }, + 'key[0:2]' + ), + expected=['content1', 'content2'], + ) +) ++ test.case.new( + name='array with index range (last two)', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: ['content1', 'content2', 'content3'] }, + 'key[1:3]' + ), + expected=['content2', 'content3'], + ) +) ++ test.case.new( + name='array with index range (until end)', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: ['content1', 'content2', 'content3'] }, + 'key[1:]' + ), + expected=['content2', 'content3'], + ) +) ++ test.case.new( + name='array with index range (from beginning)', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: ['content1', 'content2', 'content3'] }, + 'key[:2]' + ), + expected=['content1', 'content2'], + ) +) ++ test.case.new( + name='array with index range (negative start)', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: ['content1', 'content2', 'content3'] }, + 'key[-2:]' + ), + expected=['content2', 'content3'], + ) +) ++ test.case.new( + name='array with index range (negative end)', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: ['content1', 'content2', 'content3'] }, + 'key[:-1]' + ), + expected=['content1', 'content2'], + ) +) ++ test.case.new( + name='array with index range (step)', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: [ + 'content%s' % i + for i in std.range(1, 10) + ] }, + 'key[:5:2]' + ), + expected=['content1', 'content3', 'content5'], + ) +) + +// filter expr ++ test.case.new( + name='array with filter expression - string', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: [ + { + key: 'content%s' % i, + } + for i in std.range(1, 10) + ] }, + '.key[?(@.key==content2)]' + ), + expected=[{ + key: 'content2', + }], + ) +) ++ test.case.new( + name='array with filter expression - number', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: [ + { + count: i, + } + for i in std.range(1, 10) + ] }, + '.key[?(@.count<=2)]' + ), + expected=[{ + count: 1, + }, { + count: 2, + }], + ) +) ++ test.case.new( + name='array with filter expression - has key', + test=test.expect.eq( + actual=jsonpath.getJSONPath( + { key: [ + { + key1: 'value', + }, + { + key2: 'value', + }, + ] }, + '.key[?(@.key1)]' + ), + expected=[{ + key1: 'value', + }], + ) +) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet new file mode 100644 index 0000000..b2393a2 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet @@ -0,0 +1,209 @@ +local xtd = import '../main.libsonnet'; +local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; + +test.new(std.thisFile) ++ test.case.new( + name='empty', + test=test.expect.eq( + actual=xtd.url.escapeString(''), + expected='', + ) +) + ++ test.case.new( + name='abc', + test=test.expect.eq( + actual=xtd.url.escapeString('abc'), + expected='abc', + ) +) + ++ test.case.new( + name='space', + test=test.expect.eq( + actual=xtd.url.escapeString('one two'), + expected='one%20two', + ) +) + ++ test.case.new( + name='percent', + test=test.expect.eq( + actual=xtd.url.escapeString('10%'), + expected='10%25', + ) +) + ++ test.case.new( + name='complex', + test=test.expect.eq( + actual=xtd.url.escapeString(" ?&=#+%!<>#\"{}|\\^[]`☺\t:/@$'()*,;"), + expected='%20%3F%26%3D%23%2B%25%21%3C%3E%23%22%7B%7D%7C%5C%5E%5B%5D%60%E2%98%BA%09%3A%2F%40%24%27%28%29%2A%2C%3B', + ) +) + ++ test.case.new( + name='exclusions', + test=test.expect.eq( + actual=xtd.url.escapeString('hello, world', [',']), + expected='hello,%20world', + ) +) + ++ test.case.new( + name='multiple exclusions', + test=test.expect.eq( + actual=xtd.url.escapeString('hello, world,&', [',', '&']), + expected='hello,%20world,&', + ) +) + ++ test.case.new( + name='empty', + test=test.expect.eq( + actual=xtd.url.encodeQuery({}), + expected='', + ) +) + ++ test.case.new( + name='simple', + test=test.expect.eq( + actual=xtd.url.encodeQuery({ q: 'puppies', oe: 'utf8' }), + expected='oe=utf8&q=puppies', + ) +) + +// url.parse ++ test.case.new( + name='Full absolute URL', + test=test.expect.eqJson( + actual=xtd.url.parse('https://example.com/path/to/location;type=person?name=john#address'), + expected={ + scheme: 'https', + netloc: 'example.com', + hostname: 'example.com', + path: '/path/to/location', + params: 'type=person', + query: 'name=john', + fragment: 'address', + }, + ) +) + ++ test.case.new( + name='URL with fragment before params and query', + test=test.expect.eqJson( + actual=xtd.url.parse('https://example.com/path/to/location#address;type=person?name=john'), + expected={ + scheme: 'https', + netloc: 'example.com', + hostname: 'example.com', + path: '/path/to/location', + fragment: 'address;type=person?name=john', + }, + ) +) + ++ test.case.new( + name='URL without query', + test=test.expect.eqJson( + actual=xtd.url.parse('https://example.com/path/to/location;type=person#address'), + expected={ + scheme: 'https', + netloc: 'example.com', + hostname: 'example.com', + path: '/path/to/location', + params: 'type=person', + fragment: 'address', + }, + ) +) + ++ test.case.new( + name='URL without params', + test=test.expect.eqJson( + actual=xtd.url.parse('https://example.com/path/to/location?name=john#address'), + expected={ + scheme: 'https', + netloc: 'example.com', + hostname: 'example.com', + path: '/path/to/location', + query: 'name=john', + fragment: 'address', + }, + ) +) + ++ test.case.new( + name='URL with empty fragment', + test=test.expect.eqJson( + actual=xtd.url.parse('https://example.com/path/to/location#'), + expected={ + scheme: 'https', + netloc: 'example.com', + hostname: 'example.com', + path: '/path/to/location', + fragment: '', + }, + ) +) + ++ test.case.new( + name='host with port', + test=test.expect.eqJson( + actual=xtd.url.parse('//example.com:80'), + expected={ + netloc: 'example.com:80', + hostname: 'example.com', + port: '80', + }, + ) +) + ++ test.case.new( + name='mailto', + test=test.expect.eqJson( + actual=xtd.url.parse('mailto:john@example.com'), + expected={ + scheme: 'mailto', + path: 'john@example.com', + }, + ) +) + ++ test.case.new( + name='UserInfo', + test=test.expect.eqJson( + actual=xtd.url.parse('ftp://admin:password@example.com'), + + expected={ + hostname: 'example.com', + netloc: 'admin:password@example.com', + scheme: 'ftp', + username: 'admin', + password: 'password', + } + , + ) +) + ++ test.case.new( + name='Relative URL only', + test=test.expect.eqJson( + actual=xtd.url.parse('/path/to/location'), + expected={ + path: '/path/to/location', + }, + ) +) + ++ test.case.new( + name='URL fragment only', + test=test.expect.eqJson( + actual=xtd.url.parse('#fragment_only'), + expected={ + fragment: 'fragment_only', + }, + ) +) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/url.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/url.libsonnet new file mode 100644 index 0000000..32d1a30 --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/url.libsonnet @@ -0,0 +1,111 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='url', + url='github.com/jsonnet-libs/xtd/url.libsonnet', + help='`url` provides functions to deal with URLs', + ), + + '#escapeString': d.fn( + '`escapeString` escapes the given string so it can be safely placed inside an URL, replacing special characters with `%XX` sequences', + args=[ + d.arg('str', d.T.string), + d.arg('excludedChars', d.T.array, default=[]), + ], + ), + escapeString(str, excludedChars=[]):: + local allowedChars = '0123456789abcdefghijklmnopqrstuvwqxyzABCDEFGHIJKLMNOPQRSTUVWQXYZ'; + local utf8(char) = std.foldl(function(a, b) a + '%%%02X' % b, std.encodeUTF8(char), ''); + local escapeChar(char) = if std.member(excludedChars, char) || std.member(allowedChars, char) then char else utf8(char); + std.join('', std.map(escapeChar, std.stringChars(str))), + + '#encodeQuery': d.fn( + '`encodeQuery` takes an object of query parameters and returns them as an escaped `key=value` string', + args=[d.arg('params', d.T.object)], + ), + encodeQuery(params):: + local fmtParam(p) = '%s=%s' % [self.escapeString(p), self.escapeString(params[p])]; + std.join('&', std.map(fmtParam, std.objectFields(params))), + + '#parse': d.fn( + ||| + `parse` parses absolute and relative URLs. + + :///;parameters?# + + Inspired by Python's urllib.urlparse, following several RFC specifications. + |||, + args=[d.arg('url', d.T.string)], + ), + parse(url): + local hasFragment = std.member(url, '#'); + local fragmentSplit = std.splitLimit(url, '#', 1); + local fragment = fragmentSplit[1]; + + local hasQuery = std.member(fragmentSplit[0], '?'); + local querySplit = std.splitLimit(fragmentSplit[0], '?', 1); + local query = querySplit[1]; + + local hasParams = std.member(querySplit[0], ';'); + local paramsSplit = std.splitLimit(querySplit[0], ';', 1); + local params = paramsSplit[1]; + + local hasNetLoc = std.member(paramsSplit[0], '//'); + local netLocSplit = std.splitLimit(paramsSplit[0], '//', 1); + local netLoc = std.splitLimit(netLocSplit[1], '/', 1)[0]; + + local hasScheme = std.member(netLocSplit[0], ':'); + local schemeSplit = std.splitLimit(netLocSplit[0], ':', 1); + local scheme = schemeSplit[0]; + + local path = + if hasNetLoc && std.member(netLocSplit[1], '/') + then '/' + std.splitLimit(netLocSplit[1], '/', 1)[1] + else if hasScheme + then schemeSplit[1] + else netLocSplit[0]; + local hasPath = (path != ''); + + local hasUserInfo = hasNetLoc && std.member(netLoc, '@'); + local userInfoSplit = std.reverse(std.splitLimitR(netLoc, '@', 1)); + local userInfo = userInfoSplit[1]; + + local hasPassword = hasUserInfo && std.member(userInfo, ':'); + local passwordSplit = std.splitLimitR(userInfo, ':', 1); + local username = passwordSplit[0]; + local password = passwordSplit[1]; + + local hasPort = hasNetLoc && std.length(std.findSubstr(':', userInfoSplit[0])) > 0; + local portSplit = std.splitLimitR(userInfoSplit[0], ':', 1); + local host = portSplit[0]; + local port = portSplit[1]; + + { + [if hasScheme then 'scheme']: scheme, + [if hasNetLoc then 'netloc']: netLoc, + [if hasPath then 'path']: path, + [if hasParams then 'params']: params, + [if hasQuery then 'query']: query, + [if hasFragment then 'fragment']: fragment, + + [if hasUserInfo then 'username']: username, + [if hasPassword then 'password']: password, + [if hasNetLoc then 'hostname']: host, + [if hasPort then 'port']: port, + }, + + '#join': d.fn( + '`join` joins URLs from the object generated from `parse`', + args=[d.arg('splitObj', d.T.object)], + ), + join(splitObj): + std.join('', [ + if 'scheme' in splitObj then splitObj.scheme + ':' else '', + if 'netloc' in splitObj then '//' + splitObj.netloc else '', + if 'path' in splitObj then splitObj.path else '', + if 'params' in splitObj then ';' + splitObj.params else '', + if 'query' in splitObj then '?' + splitObj.query else '', + if 'fragment' in splitObj then '#' + splitObj.fragment else '', + ]), +} diff --git a/pkg/server/testdata/grafonnet/vendor/grafonnet-v10.0.0 b/pkg/server/testdata/grafonnet/vendor/grafonnet-v10.0.0 new file mode 120000 index 0000000..3749c7b --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/grafonnet-v10.0.0 @@ -0,0 +1 @@ +github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/xtd b/pkg/server/testdata/grafonnet/vendor/xtd new file mode 120000 index 0000000..68b106a --- /dev/null +++ b/pkg/server/testdata/grafonnet/vendor/xtd @@ -0,0 +1 @@ +github.com/jsonnet-libs/xtd \ No newline at end of file diff --git a/scripts/jsonnetfmt.sh b/scripts/jsonnetfmt.sh index b5489c1..df10ae5 100755 --- a/scripts/jsonnetfmt.sh +++ b/scripts/jsonnetfmt.sh @@ -1,5 +1,14 @@ #!/usr/bin/env bash +set -euxo pipefail + +# Format all jsonnet files in the repo, with exceptions. + +exceptions=("./pkg/server/testdata/hover-error.jsonnet") + for f in $(find . -name '*.jsonnet' -print -o -name '*.libsonnet' -print); do - jsonnetfmt -i "$f" || echo "Error formatting $f. May be expected (some tests include invalid jsonnet)." -done \ No newline at end of file + if [[ " ${exceptions[@]} " =~ " ${f} " ]]; then + continue + fi + jsonnetfmt -i "$f" +done From 02d502b20f41ea8a8ac5d661a9f67551b083f27d Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Thu, 7 Sep 2023 14:21:13 -0400 Subject: [PATCH 071/124] Fix: Go-to definition on recursive binary operators (#126) * Fix: Go-to definition on recursive binary operators Included the grafonnet example where the bug was identified as a testcase From now on, we can use grafonnet to build test cases * Fix formatting + linting --- pkg/ast/processing/find_field.go | 11 +++++++++-- pkg/server/definition_test.go | 19 ++++++++++++++++++- .../grafonnet/eval-variable-options.jsonnet | 7 +++++++ 3 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 pkg/server/testdata/grafonnet/eval-variable-options.jsonnet diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index d54021d..edf26f1 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -161,6 +161,14 @@ func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.D return ranges, nil } +func flattenBinary(node ast.Node) []ast.Node { + binary, nodeIsBinary := node.(*ast.Binary) + if !nodeIsBinary { + return []ast.Node{node} + } + return append(flattenBinary(binary.Right), flattenBinary(binary.Left)...) +} + // unpackFieldNodes extracts nodes from fields // - Binary nodes. A field could be either in the left or right side of the binary // - Self nodes. We want the object self refers to, not the self node itself @@ -182,8 +190,7 @@ func unpackFieldNodes(vm *jsonnet.VM, fields []*ast.DesugaredObjectField) ([]ast } } case *ast.Binary: - fieldNodes = append(fieldNodes, fieldNode.Right) - fieldNodes = append(fieldNodes, fieldNode.Left) + fieldNodes = append(fieldNodes, flattenBinary(fieldNode)...) default: fieldNodes = append(fieldNodes, fieldNode) } diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 6661dba..cc7db68 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -3,6 +3,7 @@ package server import ( _ "embed" "fmt" + "path/filepath" "testing" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" @@ -926,6 +927,22 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "grafonnet: eval variable selection options", + filename: "./testdata/grafonnet/eval-variable-options.jsonnet", + position: protocol.Position{Line: 5, Character: 54}, + results: []definitionResult{{ + targetFilename: "testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 101, Character: 12}, + End: protocol.Position{Line: 103, Character: 13}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 101, Character: 12}, + End: protocol.Position{Line: 101, Character: 21}, + }, + }}, + }, } func TestDefinition(t *testing.T) { @@ -941,7 +958,7 @@ func TestDefinition(t *testing.T) { } server := NewServer("any", "test version", nil, Configuration{ - JPaths: []string{"testdata"}, + JPaths: []string{"testdata", filepath.Join(filepath.Dir(tc.filename), "vendor")}, }) serverOpenTestFile(t, server, tc.filename) response, err := server.definitionLink(params) diff --git a/pkg/server/testdata/grafonnet/eval-variable-options.jsonnet b/pkg/server/testdata/grafonnet/eval-variable-options.jsonnet new file mode 100644 index 0000000..9bd6b83 --- /dev/null +++ b/pkg/server/testdata/grafonnet/eval-variable-options.jsonnet @@ -0,0 +1,7 @@ +local g = import 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet'; + +g.dashboard.new('title') ++ g.dashboard.withVariables([ + g.dashboard.variable.custom.new('var', ['a']) + + g.dashboard.variable.custom.selectionOptions.withMulti(), +]) From ebc2b49c2c9384b4fa9efeca268d0043e787860b Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Fri, 8 Sep 2023 17:34:28 +1000 Subject: [PATCH 072/124] Send settings on client initialization (#125) Send settings on LSP client initialization. Note jsonnet-language-server is unusual and expects configuration without a prefix. This is probably a bug in jsonnet-language-server, but this PR works with the existing code by passing through the "jsonnet" settings subtree, without the "jsonnet" prefix. Example: ```elisp ;; .emacs (lsp-register-custom-settings '(("jsonnet.formatting" ;; jsonnetfmt --string-style d --comment-style s ((StringStyle . "double") (CommentStyle . "slash"))))) ``` --- editor/emacs/jsonnet-language-server.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/emacs/jsonnet-language-server.el b/editor/emacs/jsonnet-language-server.el index e7ac75d..e251213 100644 --- a/editor/emacs/jsonnet-language-server.el +++ b/editor/emacs/jsonnet-language-server.el @@ -18,6 +18,11 @@ (make-lsp-client :new-connection (lsp-stdio-connection (lambda () lsp-jsonnet-executable)) :activation-fn (lsp-activate-on "jsonnet") + :initialized-fn (lambda (workspace) + (with-lsp-workspace workspace + (lsp--set-configuration + ;; TODO: jsonnet-language-server settings should use a prefix + (ht-get (lsp-configuration-section "jsonnet") "jsonnet")))) :server-id 'jsonnet)) ;; Start the language server whenever jsonnet-mode is used. From 760fe578448cbba1ecdc9a91dedc94859c2093f0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 21:37:32 -0500 Subject: [PATCH 073/124] Bump github.com/JohannesKaufmann/html-to-markdown from 1.4.1 to 1.4.2 (#130) Bumps [github.com/JohannesKaufmann/html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown) from 1.4.1 to 1.4.2. - [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases) - [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v1.4.1...v1.4.2) --- updated-dependencies: - dependency-name: github.com/JohannesKaufmann/html-to-markdown dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 8 ++++---- go.sum | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/go.mod b/go.mod index 6a288f4..003b616 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/grafana/jsonnet-language-server go 1.19 require ( - github.com/JohannesKaufmann/html-to-markdown v1.4.1 + github.com/JohannesKaufmann/html-to-markdown v1.4.2 github.com/google/go-jsonnet v0.20.0 github.com/grafana/tanka v0.26.0 github.com/hexops/gotextdiff v1.0.3 @@ -36,9 +36,9 @@ require ( github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.0 // indirect - golang.org/x/crypto v0.12.0 // indirect - golang.org/x/net v0.14.0 // indirect - golang.org/x/sys v0.11.0 // indirect + golang.org/x/crypto v0.15.0 // indirect + golang.org/x/net v0.18.0 // indirect + golang.org/x/sys v0.14.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 64b0c38..76cd39b 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/JohannesKaufmann/html-to-markdown v1.4.1 h1:CMAl6hz2MRfs03ZGAwYqQTC43Egi3vbc9SVo6nEKUE0= -github.com/JohannesKaufmann/html-to-markdown v1.4.1/go.mod h1:1zaDDQVWTRwNksmTUTkcVXqgNF28YHiEUIm8FL9Z+II= +github.com/JohannesKaufmann/html-to-markdown v1.4.2 h1:Jt3i/2l98+yOb5uD0ovoIGwccF4DfNxBeUye4P5KP9g= +github.com/JohannesKaufmann/html-to-markdown v1.4.2/go.mod h1:AwPLQeuGhVGKyWXJR8t46vR0iL1d3yGuembj8c1VcJU= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= @@ -93,13 +93,13 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yuin/goldmark v1.5.5 h1:IJznPe8wOzfIKETmMkd06F8nXkmlhaHqFRM9l1hAGsU= -github.com/yuin/goldmark v1.5.5/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68= +github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= -golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= +golang.org/x/crypto v0.15.0 h1:frVn1TEaCEaZcn3Tmd7Y2b5KKPaZ+I32Q2OA3kYp5TA= +golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -110,8 +110,8 @@ golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg= +golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -128,14 +128,14 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= +golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -143,7 +143,7 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= From 277b5969fffe0318c41c31d738b512cff29575fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:45:46 +0000 Subject: [PATCH 074/124] Bump github.com/JohannesKaufmann/html-to-markdown from 1.4.2 to 1.5.0 (#131) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 8 ++++---- go.sum | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/go.mod b/go.mod index 003b616..81ac6ce 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/grafana/jsonnet-language-server go 1.19 require ( - github.com/JohannesKaufmann/html-to-markdown v1.4.2 + github.com/JohannesKaufmann/html-to-markdown v1.5.0 github.com/google/go-jsonnet v0.20.0 github.com/grafana/tanka v0.26.0 github.com/hexops/gotextdiff v1.0.3 @@ -36,9 +36,9 @@ require ( github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.0 // indirect - golang.org/x/crypto v0.15.0 // indirect - golang.org/x/net v0.18.0 // indirect - golang.org/x/sys v0.14.0 // indirect + golang.org/x/crypto v0.16.0 // indirect + golang.org/x/net v0.19.0 // indirect + golang.org/x/sys v0.15.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 76cd39b..e15fd4d 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/JohannesKaufmann/html-to-markdown v1.4.2 h1:Jt3i/2l98+yOb5uD0ovoIGwccF4DfNxBeUye4P5KP9g= -github.com/JohannesKaufmann/html-to-markdown v1.4.2/go.mod h1:AwPLQeuGhVGKyWXJR8t46vR0iL1d3yGuembj8c1VcJU= +github.com/JohannesKaufmann/html-to-markdown v1.5.0 h1:cEAcqpxk0hUJOXEVGrgILGW76d1GpyGY7PCnAaWQyAI= +github.com/JohannesKaufmann/html-to-markdown v1.5.0/go.mod h1:QTO/aTyEDukulzu269jY0xiHeAGsNxmuUBo2Q0hPsK8= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= @@ -98,8 +98,8 @@ github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5ta golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.15.0 h1:frVn1TEaCEaZcn3Tmd7Y2b5KKPaZ+I32Q2OA3kYp5TA= -golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -110,8 +110,8 @@ golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg= -golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -128,14 +128,14 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= -golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= +golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= +golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= From fcbf731edd3c4afbc29c682926b8e88970e7e6bd Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Wed, 10 Jan 2024 11:10:07 -0700 Subject: [PATCH 075/124] update to 0.13.1 and remove deprecated vendorSha256 (#132) --- nix/default.nix | 6 +++--- nix/flake.lock | 30 ++++++++++++++++++++++++------ nix/flake.nix | 10 ++++------ nix/shell.nix | 1 + nix/snitch.nix | 2 +- 5 files changed, 33 insertions(+), 16 deletions(-) diff --git a/nix/default.nix b/nix/default.nix index 2167b31..504c4d9 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -3,18 +3,18 @@ with pkgs; buildGoModule rec { pname = "jsonnet-language-server"; - version = "0.13.0"; + version = "0.13.1"; ldflags = '' -X main.version=${version} ''; src = lib.cleanSource ../.; - vendorSha256 = "/mfwBHaouYN8JIxPz720/7MlMVh+5EEB+ocnYe4B020="; + vendorHash = "sha256-+9Eh40kkyZc9mS4m6BqK5PweFRUA0iWgsG/h2jZJr5w="; meta = with lib; { description = "A Language Server Protocol server for Jsonnet"; homepage = "https://github.com/grafana/jsonnet-language-server"; license = licenses.agpl3; - maintainers = with maintainers; [ jdbaldry ]; + maintainers = with maintainers; [ jdbaldry trevorwhitney ]; }; } diff --git a/nix/flake.lock b/nix/flake.lock index cf4e196..03fe2ca 100644 --- a/nix/flake.lock +++ b/nix/flake.lock @@ -1,12 +1,15 @@ { "nodes": { "flake-utils": { + "inputs": { + "systems": "systems" + }, "locked": { - "lastModified": 1659877975, - "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", + "lastModified": 1701680307, + "narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=", "owner": "numtide", "repo": "flake-utils", - "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", + "rev": "4022d587cbbfd70fe950c1e2083a02621806a725", "type": "github" }, "original": { @@ -17,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1661720780, - "narHash": "sha256-AJNGyaB2eKZAYaPNjBZOzap87yL+F9ZLaFzzMkvega0=", + "lastModified": 1704722960, + "narHash": "sha256-mKGJ3sPsT6//s+Knglai5YflJUF2DGj7Ai6Ynopz0kI=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a63021a330d8d33d862a8e29924b42d73037dd37", + "rev": "317484b1ead87b9c1b8ac5261a8d2dd748a0492d", "type": "github" }, "original": { @@ -36,6 +39,21 @@ "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/nix/flake.nix b/nix/flake.nix index d042010..fa7245c 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -7,12 +7,10 @@ outputs = { self, nixpkgs, flake-utils }: { overlay = - ( - final: prev: { - jsonnet-language-server = prev.callPackage ./default.nix { pkgs = prev; }; - snitch = prev.callPackage ./snitch.nix { pkgs = prev; }; - } - ); + final: prev: { + jsonnet-language-server = prev.callPackage ./default.nix { pkgs = prev; }; + snitch = prev.callPackage ./snitch.nix { pkgs = prev; }; + }; } // ( flake-utils.lib.eachDefaultSystem ( system: diff --git a/nix/shell.nix b/nix/shell.nix index e806048..afc349f 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -7,6 +7,7 @@ mkShell { go_1_19 golangci-lint gopls + jsonnet-language-server nix-prefetch snitch ]; diff --git a/nix/snitch.nix b/nix/snitch.nix index 8882d36..217c220 100644 --- a/nix/snitch.nix +++ b/nix/snitch.nix @@ -11,7 +11,7 @@ buildGoModule rec { rev = version; sha256 = "sha256-bflHSWN/BH4TSTTP4M3DldVwkV8MUSVCO15eYJTtTi0="; }; - vendorSha256 = "sha256-QAbxld0UY7jO9ommX7VrPKOWEiFPmD/xw02EZL6628A="; + vendorHash = "sha256-QAbxld0UY7jO9ommX7VrPKOWEiFPmD/xw02EZL6628A="; meta = with lib; { description = "Language agnostic tool that collects TODOs in the source code and reports them as Issues"; From feba4a405632accdda6c76d762fc5071b4ff7618 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Mar 2024 07:35:54 -0500 Subject: [PATCH 076/124] Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#135) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 4 ++-- go.sum | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 81ac6ce..af84f23 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 github.com/sirupsen/logrus v1.9.3 - github.com/stretchr/testify v1.8.4 + github.com/stretchr/testify v1.9.0 ) require ( @@ -35,7 +35,7 @@ require ( github.com/rs/zerolog v1.30.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect - github.com/stretchr/objx v0.5.0 // indirect + github.com/stretchr/objx v0.5.2 // indirect golang.org/x/crypto v0.16.0 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/sys v0.15.0 // indirect diff --git a/go.sum b/go.sum index e15fd4d..11651a9 100644 --- a/go.sum +++ b/go.sum @@ -80,18 +80,15 @@ github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68= github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= From 948a2316278a8579f4a1b2967372b2c306b291f6 Mon Sep 17 00:00:00 2001 From: Jeroen Op 't Eynde Date: Mon, 11 Mar 2024 13:43:45 +0100 Subject: [PATCH 077/124] feat(completion): quote labels when necessary (#136) * test(completion): quote labels * feat(completion): quote labels when necessary * fix: use upstream logic to validate identifier * style --- pkg/server/completion.go | 86 ++++++++++++++++++++++--- pkg/server/completion_test.go | 77 ++++++++++++++++++++++ pkg/server/testdata/quote_label.jsonnet | 7 ++ 3 files changed, 162 insertions(+), 8 deletions(-) create mode 100644 pkg/server/testdata/quote_label.jsonnet diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 06c482c..0060b2d 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -43,7 +43,7 @@ func (s *Server) Completion(_ context.Context, params *protocol.CompletionParams vm := s.getVM(doc.item.URI.SpanURI().Filename()) - items := s.completionFromStack(line, searchStack, vm) + items := s.completionFromStack(line, searchStack, vm, params.Position) return &protocol.CompletionList{IsIncomplete: false, Items: items}, nil } @@ -57,7 +57,7 @@ func getCompletionLine(fileContent string, position protocol.Position) string { return line } -func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm *jsonnet.VM) []protocol.CompletionItem { +func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm *jsonnet.VM, position protocol.Position) []protocol.CompletionItem { lineWords := strings.Split(line, " ") lastWord := lineWords[len(lineWords)-1] lastWord = strings.TrimRight(lastWord, ",;") // Ignore trailing commas and semicolons, they can present when someone is modifying an existing line @@ -76,7 +76,7 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm continue } - items = append(items, createCompletionItem(label, label, protocol.VariableCompletion, bind.Body)) + items = append(items, createCompletionItem(label, "", protocol.VariableCompletion, bind.Body, position)) } } } @@ -90,7 +90,7 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm } completionPrefix := strings.Join(indexes[:len(indexes)-1], ".") - return createCompletionItemsFromRanges(ranges, completionPrefix, line) + return createCompletionItemsFromRanges(ranges, completionPrefix, line, position) } func (s *Server) completionStdLib(line string) []protocol.CompletionItem { @@ -132,7 +132,7 @@ func (s *Server) completionStdLib(line string) []protocol.CompletionItem { return items } -func createCompletionItemsFromRanges(ranges []processing.ObjectRange, completionPrefix, currentLine string) []protocol.CompletionItem { +func createCompletionItemsFromRanges(ranges []processing.ObjectRange, completionPrefix, currentLine string, position protocol.Position) []protocol.CompletionItem { var items []protocol.CompletionItem labels := make(map[string]bool) @@ -152,7 +152,7 @@ func createCompletionItemsFromRanges(ranges []processing.ObjectRange, completion continue } - items = append(items, createCompletionItem(label, completionPrefix+"."+label, protocol.FieldCompletion, field.Node)) + items = append(items, createCompletionItem(label, completionPrefix, protocol.FieldCompletion, field.Node, position)) labels[label] = true } @@ -163,8 +163,19 @@ func createCompletionItemsFromRanges(ranges []processing.ObjectRange, completion return items } -func createCompletionItem(label, detail string, kind protocol.CompletionItemKind, body ast.Node) protocol.CompletionItem { +func createCompletionItem(label, prefix string, kind protocol.CompletionItemKind, body ast.Node, position protocol.Position) protocol.CompletionItem { + mustNotQuoteLabel := IsValidIdentifier(label) + insertText := label + detail := label + if prefix != "" { + detail = prefix + "." + insertText + } + if !mustNotQuoteLabel { + insertText = "['" + label + "']" + detail = prefix + insertText + } + if asFunc, ok := body.(*ast.Function); ok { kind = protocol.FunctionCompletion params := []string{} @@ -176,7 +187,7 @@ func createCompletionItem(label, detail string, kind protocol.CompletionItemKind insertText += paramsString } - return protocol.CompletionItem{ + item := protocol.CompletionItem{ Label: label, Detail: detail, Kind: kind, @@ -185,8 +196,67 @@ func createCompletionItem(label, detail string, kind protocol.CompletionItemKind }, InsertText: insertText, } + + // Remove leading `.` character when quoting label + if !mustNotQuoteLabel { + item.TextEdit = &protocol.TextEdit{ + Range: protocol.Range{ + Start: protocol.Position{ + Line: position.Line, + Character: position.Character - 1, + }, + End: protocol.Position{ + Line: position.Line, + Character: position.Character, + }, + }, + NewText: insertText, + } + } + + return item +} + +// Start - Copied from go-jsonnet/internal/parser/lexer.go + +func isUpper(r rune) bool { + return r >= 'A' && r <= 'Z' +} +func isLower(r rune) bool { + return r >= 'a' && r <= 'z' +} +func isNumber(r rune) bool { + return r >= '0' && r <= '9' +} +func isIdentifierFirst(r rune) bool { + return isUpper(r) || isLower(r) || r == '_' +} +func isIdentifier(r rune) bool { + return isIdentifierFirst(r) || isNumber(r) +} +func IsValidIdentifier(str string) bool { + if len(str) == 0 { + return false + } + for i, r := range str { + if i == 0 { + if !isIdentifierFirst(r) { + return false + } + } else { + if !isIdentifier(r) { + return false + } + } + } + // Ignore tokens for now, we should ask upstream to make the formatter a public package + // so we can use go-jsonnet/internal/formatter/pretty_field_names.go directly. + // return getTokenKindFromID(str) == tokenIdentifier + return true } +// End - Copied from go-jsonnet/internal/parser/lexer.go + func typeToString(t ast.Node) string { switch t.(type) { case *ast.Array: diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index 92855d7..fa85eb9 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -586,6 +586,83 @@ func TestCompletion(t *testing.T) { }, }, }, + { + name: "quote label", + filename: "testdata/quote_label.jsonnet", + replaceString: "lib", + replaceByString: "lib.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "1num", + Kind: protocol.FieldCompletion, + Detail: "lib['1num']", + InsertText: "['1num']", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + TextEdit: &protocol.TextEdit{ + Range: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 9, + }, + End: protocol.Position{ + Line: 0, + Character: 10, + }, + }, + NewText: "['1num']", + }, + }, + { + Label: "abc#func", + Kind: protocol.FunctionCompletion, + Detail: "lib['abc#func'](param)", + InsertText: "['abc#func'](param)", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "function", + }, + TextEdit: &protocol.TextEdit{ + Range: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 9, + }, + End: protocol.Position{ + Line: 0, + Character: 10, + }, + }, + NewText: "['abc#func'](param)", + }, + }, + { + Label: "abc#var", + Kind: protocol.FieldCompletion, + Detail: "lib['abc#var']", + InsertText: "['abc#var']", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + TextEdit: &protocol.TextEdit{ + Range: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 9, + }, + End: protocol.Position{ + Line: 0, + Character: 10, + }, + }, + NewText: "['abc#var']", + }, + }, + }, + }, + }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { diff --git a/pkg/server/testdata/quote_label.jsonnet b/pkg/server/testdata/quote_label.jsonnet new file mode 100644 index 0000000..9cde847 --- /dev/null +++ b/pkg/server/testdata/quote_label.jsonnet @@ -0,0 +1,7 @@ +local lib = { + '1num': 'val', + 'abc#func'(param=1): param, + 'abc#var': 'val', +}; + +lib From ff6d26ff2d93b264506237efd27baa73793c1aab Mon Sep 17 00:00:00 2001 From: Jeroen Op 't Eynde Date: Tue, 12 Mar 2024 15:45:33 +0100 Subject: [PATCH 078/124] chore: update go version to 1.22 (#138) --- .github/workflows/jsonnetfmt.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- go.mod | 2 +- go.sum | 1 + nix/shell.nix | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index 9a2b741..f6634c3 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.19 + go-version: 1.22 - name: Format run: | go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5cb5db..650d61f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.19 + go-version: 1.22 - uses: goreleaser/goreleaser-action@v2 with: distribution: goreleaser diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61c8d23..e60c473 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,6 +11,6 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: '1.19' + go-version: 1.22 - run: go test ./... -bench=. -benchmem \ No newline at end of file diff --git a/go.mod b/go.mod index af84f23..079ff46 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/grafana/jsonnet-language-server -go 1.19 +go 1.22 require ( github.com/JohannesKaufmann/html-to-markdown v1.5.0 diff --git a/go.sum b/go.sum index 11651a9..a38d81f 100644 --- a/go.sum +++ b/go.sum @@ -20,6 +20,7 @@ github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= diff --git a/nix/shell.nix b/nix/shell.nix index afc349f..546f094 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -4,7 +4,7 @@ with pkgs; mkShell { buildInputs = [ gnused - go_1_19 + go_1_22 golangci-lint gopls jsonnet-language-server From d286ca6b6595f54c90f27b87a2cee936892567df Mon Sep 17 00:00:00 2001 From: Jeroen Op 't Eynde Date: Thu, 16 May 2024 14:13:08 +0200 Subject: [PATCH 079/124] feat: hide docstrings in completion by default (#139) --- main.go | 7 +++++-- pkg/server/completion.go | 8 ++++++-- pkg/server/configuration.go | 11 +++++++++-- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 25f0520..3f8d076 100644 --- a/main.go +++ b/main.go @@ -55,8 +55,9 @@ Environment variables: func main() { config := server.Configuration{ - JPaths: filepath.SplitList(os.Getenv("JSONNET_PATH")), - FormattingOptions: formatter.DefaultOptions(), + JPaths: filepath.SplitList(os.Getenv("JSONNET_PATH")), + FormattingOptions: formatter.DefaultOptions(), + ShowDocstringInCompletion: false, } log.SetLevel(log.InfoLevel) @@ -82,6 +83,8 @@ func main() { config.EnableLintDiagnostics = true case "--eval-diags": config.EnableEvalDiagnostics = true + case "--show-docstrings": + config.ShowDocstringInCompletion = true } } diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 0060b2d..de5cd7b 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -90,7 +90,7 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm } completionPrefix := strings.Join(indexes[:len(indexes)-1], ".") - return createCompletionItemsFromRanges(ranges, completionPrefix, line, position) + return s.createCompletionItemsFromRanges(ranges, completionPrefix, line, position) } func (s *Server) completionStdLib(line string) []protocol.CompletionItem { @@ -132,7 +132,7 @@ func (s *Server) completionStdLib(line string) []protocol.CompletionItem { return items } -func createCompletionItemsFromRanges(ranges []processing.ObjectRange, completionPrefix, currentLine string, position protocol.Position) []protocol.CompletionItem { +func (s *Server) createCompletionItemsFromRanges(ranges []processing.ObjectRange, completionPrefix, currentLine string, position protocol.Position) []protocol.CompletionItem { var items []protocol.CompletionItem labels := make(map[string]bool) @@ -147,6 +147,10 @@ func createCompletionItemsFromRanges(ranges []processing.ObjectRange, completion continue } + if !s.configuration.ShowDocstringInCompletion && strings.HasPrefix(label, "#") { + continue + } + // Ignore the current field if strings.Contains(currentLine, label+":") && completionPrefix == "self" { continue diff --git a/pkg/server/configuration.go b/pkg/server/configuration.go index c970842..0638c06 100644 --- a/pkg/server/configuration.go +++ b/pkg/server/configuration.go @@ -20,8 +20,9 @@ type Configuration struct { ExtCode map[string]string FormattingOptions formatter.Options - EnableEvalDiagnostics bool - EnableLintDiagnostics bool + EnableEvalDiagnostics bool + EnableLintDiagnostics bool + ShowDocstringInCompletion bool } func (s *Server) DidChangeConfiguration(_ context.Context, params *protocol.DidChangeConfigurationParams) error { @@ -70,6 +71,12 @@ func (s *Server) DidChangeConfiguration(_ context.Context, params *protocol.DidC } else { return fmt.Errorf("%w: unsupported settings value for enable_lint_diagnostics. expected boolean. got: %T", jsonrpc2.ErrInvalidParams, sv) } + case "show_docstring_in_completion": + if boolVal, ok := sv.(bool); ok { + s.configuration.ShowDocstringInCompletion = boolVal + } else { + return fmt.Errorf("%w: unsupported settings value for show_docstring_in_completion. expected boolean. got: %T", jsonrpc2.ErrInvalidParams, sv) + } case "ext_vars": newVars, err := s.parseExtVars(sv) if err != nil { From e7625f6f60f8f70e36560b4cdbb9a3d3c63e4e9e Mon Sep 17 00:00:00 2001 From: Jeroen Op 't Eynde Date: Thu, 16 May 2024 14:13:39 +0200 Subject: [PATCH 080/124] fix(completion): use upstream go-jsonnet Formatter (#137) * fix(completion): use upstream go-jsonnet Formatter * fix: always calculate start position * fix: remove copied code --- pkg/server/completion.go | 85 +++++++++++++--------------------------- 1 file changed, 27 insertions(+), 58 deletions(-) diff --git a/pkg/server/completion.go b/pkg/server/completion.go index de5cd7b..bb78e00 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -8,6 +8,7 @@ import ( "github.com/google/go-jsonnet" "github.com/google/go-jsonnet/ast" + "github.com/google/go-jsonnet/formatter" "github.com/grafana/jsonnet-language-server/pkg/ast/processing" "github.com/grafana/jsonnet-language-server/pkg/nodestack" position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" @@ -167,30 +168,39 @@ func (s *Server) createCompletionItemsFromRanges(ranges []processing.ObjectRange return items } -func createCompletionItem(label, prefix string, kind protocol.CompletionItemKind, body ast.Node, position protocol.Position) protocol.CompletionItem { - mustNotQuoteLabel := IsValidIdentifier(label) - - insertText := label - detail := label - if prefix != "" { - detail = prefix + "." + insertText - } - if !mustNotQuoteLabel { - insertText = "['" + label + "']" - detail = prefix + insertText - } +func formatLabel(str string) string { + interStr := "interimPath" + str + fmtStr, _ := formatter.Format("", interStr, formatter.DefaultOptions()) + ret, _ := strings.CutPrefix(fmtStr, "interimPath") + ret, _ = strings.CutPrefix(ret, ".") + ret = strings.TrimRight(ret, "\n") + return ret +} +func createCompletionItem(label, prefix string, kind protocol.CompletionItemKind, body ast.Node, position protocol.Position) protocol.CompletionItem { + paramsString := "" if asFunc, ok := body.(*ast.Function); ok { kind = protocol.FunctionCompletion params := []string{} for _, param := range asFunc.Parameters { params = append(params, string(param.Name)) } - paramsString := "(" + strings.Join(params, ", ") + ")" - detail += paramsString - insertText += paramsString + paramsString = "(" + strings.Join(params, ", ") + ")" } + insertText := formatLabel("['" + label + "']" + paramsString) + + concat := "" + characterStartPosition := position.Character - 1 + if prefix == "" { + characterStartPosition = position.Character + } + if prefix != "" && !strings.HasPrefix(insertText, "[") { + concat = "." + characterStartPosition = position.Character + } + detail := prefix + concat + insertText + item := protocol.CompletionItem{ Label: label, Detail: detail, @@ -201,13 +211,12 @@ func createCompletionItem(label, prefix string, kind protocol.CompletionItemKind InsertText: insertText, } - // Remove leading `.` character when quoting label - if !mustNotQuoteLabel { + if strings.HasPrefix(insertText, "[") { item.TextEdit = &protocol.TextEdit{ Range: protocol.Range{ Start: protocol.Position{ Line: position.Line, - Character: position.Character - 1, + Character: characterStartPosition, }, End: protocol.Position{ Line: position.Line, @@ -221,46 +230,6 @@ func createCompletionItem(label, prefix string, kind protocol.CompletionItemKind return item } -// Start - Copied from go-jsonnet/internal/parser/lexer.go - -func isUpper(r rune) bool { - return r >= 'A' && r <= 'Z' -} -func isLower(r rune) bool { - return r >= 'a' && r <= 'z' -} -func isNumber(r rune) bool { - return r >= '0' && r <= '9' -} -func isIdentifierFirst(r rune) bool { - return isUpper(r) || isLower(r) || r == '_' -} -func isIdentifier(r rune) bool { - return isIdentifierFirst(r) || isNumber(r) -} -func IsValidIdentifier(str string) bool { - if len(str) == 0 { - return false - } - for i, r := range str { - if i == 0 { - if !isIdentifierFirst(r) { - return false - } - } else { - if !isIdentifier(r) { - return false - } - } - } - // Ignore tokens for now, we should ask upstream to make the formatter a public package - // so we can use go-jsonnet/internal/formatter/pretty_field_names.go directly. - // return getTokenKindFromID(str) == tokenIdentifier - return true -} - -// End - Copied from go-jsonnet/internal/parser/lexer.go - func typeToString(t ast.Node) string { switch t.(type) { case *ast.Array: From 7df08f8507450819093dc39ce598beb2442c9986 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 07:21:18 -0400 Subject: [PATCH 081/124] Bump github.com/JohannesKaufmann/html-to-markdown from 1.5.0 to 1.6.0 (#142) Bumps [github.com/JohannesKaufmann/html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown) from 1.5.0 to 1.6.0. - [Release notes](https://github.com/JohannesKaufmann/html-to-markdown/releases) - [Commits](https://github.com/JohannesKaufmann/html-to-markdown/compare/v1.5.0...v1.6.0) --- updated-dependencies: - dependency-name: github.com/JohannesKaufmann/html-to-markdown dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 12 ++++++------ go.sum | 51 +++++++++++++++++++++++++++++---------------------- 2 files changed, 35 insertions(+), 28 deletions(-) diff --git a/go.mod b/go.mod index 079ff46..dfc6222 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/grafana/jsonnet-language-server go 1.22 require ( - github.com/JohannesKaufmann/html-to-markdown v1.5.0 + github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/google/go-jsonnet v0.20.0 github.com/grafana/tanka v0.26.0 github.com/hexops/gotextdiff v1.0.3 @@ -17,8 +17,8 @@ require ( github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.2.0 // indirect github.com/Masterminds/sprig/v3 v3.2.3 // indirect - github.com/PuerkitoBio/goquery v1.8.1 // indirect - github.com/andybalholm/cascadia v1.3.1 // indirect + github.com/PuerkitoBio/goquery v1.9.2 // indirect + github.com/andybalholm/cascadia v1.3.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fatih/color v1.15.0 // indirect github.com/gobwas/glob v0.2.3 // indirect @@ -36,9 +36,9 @@ require ( github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.2 // indirect - golang.org/x/crypto v0.16.0 // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/crypto v0.23.0 // indirect + golang.org/x/net v0.25.0 // indirect + golang.org/x/sys v0.20.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index a38d81f..add0bed 100644 --- a/go.sum +++ b/go.sum @@ -1,15 +1,15 @@ -github.com/JohannesKaufmann/html-to-markdown v1.5.0 h1:cEAcqpxk0hUJOXEVGrgILGW76d1GpyGY7PCnAaWQyAI= -github.com/JohannesKaufmann/html-to-markdown v1.5.0/go.mod h1:QTO/aTyEDukulzu269jY0xiHeAGsNxmuUBo2Q0hPsK8= +github.com/JohannesKaufmann/html-to-markdown v1.6.0 h1:04VXMiE50YYfCfLboJCLcgqF5x+rHJnb1ssNmqpLH/k= +github.com/JohannesKaufmann/html-to-markdown v1.6.0/go.mod h1:NUI78lGg/a7vpEJTz/0uOcYMaibytE4BUOQS8k78yPQ= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= -github.com/PuerkitoBio/goquery v1.8.1 h1:uQxhNlArOIdbrH1tr0UXwdVFgDcZDrZVdcpygAcwmWM= -github.com/PuerkitoBio/goquery v1.8.1/go.mod h1:Q8ICL1kNUJ2sXGoAhPGUdYDJvgQgHzJsnnd3H7Ho5jQ= -github.com/andybalholm/cascadia v1.3.1 h1:nhxRkql1kdYCc8Snf7D5/D3spOX+dBgjA6u8x004T2c= -github.com/andybalholm/cascadia v1.3.1/go.mod h1:R4bJ1UQfqADjvDa4P6HZHLh/3OxWWEqc0Sk8XGwHqvA= +github.com/PuerkitoBio/goquery v1.9.2 h1:4/wZksC3KgkQw7SQgkKotmKljk0M6V8TUvA8Wb4yPeE= +github.com/PuerkitoBio/goquery v1.9.2/go.mod h1:GHPCaP0ODyyxqcNoFGYlAprUFH81NuRPd0GX3Zu2Mvk= +github.com/andybalholm/cascadia v1.3.2 h1:3Xi6Dw5lHF15JtdcmAHD3i1+T8plmv7BQ/nsViSLyss= +github.com/andybalholm/cascadia v1.3.2/go.mod h1:7gtRlve5FxPPgIgX36uWBX58OdBsSS6lUvCFb+h7KvU= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -70,8 +70,8 @@ github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiS github.com/sebdah/goldie/v2 v2.5.3 h1:9ES/mNN+HNUbNWpVAlrzuZ7jE+Nrczbj8uFRjM7624Y= github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= -github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= +github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= @@ -91,31 +91,33 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68= -github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U= +github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= +golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210916014120-12bc252f5db8/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -125,23 +127,29 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= +golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= +golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= @@ -153,7 +161,6 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= From b52b7e3fc8ea2bd65bc81a97745a99cbc91a1cc1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:23:26 -0400 Subject: [PATCH 082/124] Bump github.com/grafana/tanka from 0.26.0 to 0.27.1 (#143) * Bump github.com/grafana/tanka from 0.26.0 to 0.27.1 Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.26.0 to 0.27.1. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.26.0...v0.27.1) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Update code following update --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Duchesne --- go.mod | 10 +++++----- go.sum | 30 +++++++++++++++--------------- pkg/server/server.go | 7 ++----- 3 files changed, 22 insertions(+), 25 deletions(-) diff --git a/go.mod b/go.mod index dfc6222..c6e79ed 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22 require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.26.0 + github.com/grafana/tanka v0.27.1 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -20,19 +20,19 @@ require ( github.com/PuerkitoBio/goquery v1.9.2 // indirect github.com/andybalholm/cascadia v1.3.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/fatih/color v1.15.0 // indirect + github.com/fatih/color v1.17.0 // indirect github.com/gobwas/glob v0.2.3 // indirect github.com/google/uuid v1.3.0 // indirect github.com/huandu/xstrings v1.3.3 // indirect github.com/imdario/mergo v0.3.12 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.17 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/rs/zerolog v1.30.0 // indirect + github.com/rs/zerolog v1.33.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.2 // indirect @@ -42,5 +42,5 @@ require ( golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - sigs.k8s.io/yaml v1.3.0 // indirect + sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/go.sum b/go.sum index add0bed..bbe198d 100644 --- a/go.sum +++ b/go.sum @@ -14,20 +14,21 @@ github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSV github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= -github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= +github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.26.0 h1:qyP+l1mQ9byku3L6swEEl4n3KDeHqBr33KdCGNiEG2c= -github.com/grafana/tanka v0.26.0/go.mod h1:tYhhrouDY2Z8UvJvn0sI10vHXCyaEeHTHn9Y91Xh8mY= +github.com/grafana/tanka v0.27.1 h1:vYT8oTfewV7QuSxpBoxpzyXPB+qXAri6n2It3pDTC3w= +github.com/grafana/tanka v0.27.1/go.mod h1:Wu7ljq3kOzvst/eDq+PORfZHErztbELUGDFWHVU0K8c= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4= @@ -44,13 +45,12 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= -github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= @@ -65,8 +65,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.30.0 h1:SymVODrcRsaRaSInD9yQtKbtWqwsfoPcRff/oRXLj4c= -github.com/rs/zerolog v1.30.0/go.mod h1:/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w= +github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= +github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/sebdah/goldie/v2 v2.5.3 h1:9ES/mNN+HNUbNWpVAlrzuZ7jE+Nrczbj8uFRjM7624Y= github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= @@ -119,16 +119,16 @@ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= @@ -167,5 +167,5 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= -sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= +sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/pkg/server/server.go b/pkg/server/server.go index 2bd926b..abaf1cb 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -9,7 +9,7 @@ import ( "github.com/google/go-jsonnet/ast" "github.com/grafana/jsonnet-language-server/pkg/stdlib" "github.com/grafana/jsonnet-language-server/pkg/utils" - tankaJsonnet "github.com/grafana/tanka/pkg/jsonnet" + tankaJsonnet "github.com/grafana/tanka/pkg/jsonnet/implementations/goimpl" "github.com/grafana/tanka/pkg/jsonnet/jpath" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" log "github.com/sirupsen/logrus" @@ -53,10 +53,7 @@ func (s *Server) getVM(path string) *jsonnet.VM { // nolint: gocritic jpath = append(s.configuration.JPaths, filepath.Dir(path)) } - opts := tankaJsonnet.Opts{ - ImportPaths: jpath, - } - vm = tankaJsonnet.MakeVM(opts) + vm = tankaJsonnet.MakeRawVM(jpath, nil, nil, 0) } else { // nolint: gocritic jpath := append(s.configuration.JPaths, filepath.Dir(path)) From f055eadd097f4176d99d85136061c81d13ca7358 Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Sun, 7 Jul 2024 17:34:15 -0600 Subject: [PATCH 083/124] fix: update nix package (#145) --- .gitignore | 3 ++- nix/default.nix | 8 ++++---- nix/flake.lock | 12 ++++++------ 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 8b7a14c..b751d8d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.direnv/ /flake-profile* -jsonnet-language-server \ No newline at end of file +jsonnet-language-server +result diff --git a/nix/default.nix b/nix/default.nix index 504c4d9..3c13a9e 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "jsonnet-language-server"; version = "0.13.1"; - ldflags = '' - -X main.version=${version} - ''; + ldflags = [ + "-X main.version=${version}" + ]; src = lib.cleanSource ../.; vendorHash = "sha256-+9Eh40kkyZc9mS4m6BqK5PweFRUA0iWgsG/h2jZJr5w="; meta = with lib; { description = "A Language Server Protocol server for Jsonnet"; homepage = "https://github.com/grafana/jsonnet-language-server"; - license = licenses.agpl3; + license = licenses.agpl3Only; maintainers = with maintainers; [ jdbaldry trevorwhitney ]; }; } diff --git a/nix/flake.lock b/nix/flake.lock index 03fe2ca..4f7180d 100644 --- a/nix/flake.lock +++ b/nix/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1701680307, - "narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=", + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "4022d587cbbfd70fe950c1e2083a02621806a725", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1704722960, - "narHash": "sha256-mKGJ3sPsT6//s+Knglai5YflJUF2DGj7Ai6Ynopz0kI=", + "lastModified": 1720031269, + "narHash": "sha256-rwz8NJZV+387rnWpTYcXaRNvzUSnnF9aHONoJIYmiUQ=", "owner": "nixos", "repo": "nixpkgs", - "rev": "317484b1ead87b9c1b8ac5261a8d2dd748a0492d", + "rev": "9f4128e00b0ae8ec65918efeba59db998750ead6", "type": "github" }, "original": { From 4dacb0ff9e442ef1694d0a108bd7d750867fcee1 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 6 Aug 2024 21:06:09 -0400 Subject: [PATCH 084/124] Support `assert` statements (#146) * Support `assert` statements Closes https://github.com/grafana/jsonnet-language-server/issues/128 * Simplify `FindNodeByPosition` The whole function is just about finding the children of nodes go-jsonnet provides a helper for that --- pkg/ast/processing/find_position.go | 49 +++------------------ pkg/server/definition_test.go | 30 +++++++++++++ pkg/server/testdata/goto-assert-var.jsonnet | 5 +++ 3 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 pkg/server/testdata/goto-assert-var.jsonnet diff --git a/pkg/ast/processing/find_position.go b/pkg/ast/processing/find_position.go index 92682d6..aedd2af 100644 --- a/pkg/ast/processing/find_position.go +++ b/pkg/ast/processing/find_position.go @@ -4,6 +4,7 @@ import ( "errors" "github.com/google/go-jsonnet/ast" + "github.com/google/go-jsonnet/toolutils" "github.com/grafana/jsonnet-language-server/pkg/nodestack" ) @@ -34,14 +35,8 @@ func FindNodeByPosition(node ast.Node, location ast.Location) (*nodestack.NodeSt } else if curr.Loc().End.IsSet() { continue } + switch curr := curr.(type) { - case *ast.Local: - for _, bind := range curr.Binds { - stack.Push(bind.Body) - } - if curr.Body != nil { - stack.Push(curr.Body) - } case *ast.DesugaredObject: for _, field := range curr.Fields { body := field.Body @@ -57,43 +52,13 @@ func FindNodeByPosition(node ast.Node, location ast.Location) (*nodestack.NodeSt for _, local := range curr.Locals { stack.Push(local.Body) } - case *ast.Binary: - stack.Push(curr.Left) - stack.Push(curr.Right) - case *ast.Array: - for _, element := range curr.Elements { - stack.Push(element.Expr) + for _, assert := range curr.Asserts { + stack.Push(assert) } - case *ast.Apply: - for _, posArg := range curr.Arguments.Positional { - stack.Push(posArg.Expr) - } - for _, namedArg := range curr.Arguments.Named { - stack.Push(namedArg.Arg) - } - stack.Push(curr.Target) - case *ast.Conditional: - stack.Push(curr.Cond) - stack.Push(curr.BranchTrue) - stack.Push(curr.BranchFalse) - case *ast.Error: - stack.Push(curr.Expr) - case *ast.Function: - for _, param := range curr.Parameters { - if param.DefaultArg != nil { - stack.Push(param.DefaultArg) - } + default: + for _, c := range toolutils.Children(curr) { + stack.Push(c) } - stack.Push(curr.Body) - case *ast.Index: - stack.Push(curr.Target) - stack.Push(curr.Index) - case *ast.InSuper: - stack.Push(curr.Index) - case *ast.SuperIndex: - stack.Push(curr.Index) - case *ast.Unary: - stack.Push(curr.Expr) } } return searchStack.ReorderDesugaredObjects(), nil diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index cc7db68..5789aa3 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -943,6 +943,36 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "goto assert local var", + filename: "testdata/goto-assert-var.jsonnet", + position: protocol.Position{Line: 3, Character: 11}, + results: []definitionResult{{ + targetRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 8}, + End: protocol.Position{Line: 1, Character: 19}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 1, Character: 8}, + End: protocol.Position{Line: 1, Character: 12}, + }, + }}, + }, + { + name: "goto assert self var", + filename: "testdata/goto-assert-var.jsonnet", + position: protocol.Position{Line: 3, Character: 23}, + results: []definitionResult{{ + targetRange: protocol.Range{ + Start: protocol.Position{Line: 2, Character: 2}, + End: protocol.Position{Line: 2, Character: 16}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 2, Character: 2}, + End: protocol.Position{Line: 2, Character: 6}, + }, + }}, + }, } func TestDefinition(t *testing.T) { diff --git a/pkg/server/testdata/goto-assert-var.jsonnet b/pkg/server/testdata/goto-assert-var.jsonnet new file mode 100644 index 0000000..1f5f857 --- /dev/null +++ b/pkg/server/testdata/goto-assert-var.jsonnet @@ -0,0 +1,5 @@ +{ + local var1 = true, + var2: 'string', + assert var1 : self.var2, +} From f5c504544177555f50b84cdf04444fb30c2a7759 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 6 Aug 2024 21:14:54 -0400 Subject: [PATCH 085/124] Update workflows (#148) - Use fixed changesets - Add dependabot for GHA - Use go-version-file for go install in workflows - Update deprecated goreleaser stuff --- .github/dependabot.yml | 5 +++++ .github/workflows/golangci-lint.yml | 5 ++--- .github/workflows/jsonnetfmt.yml | 6 +++--- .github/workflows/release.yml | 13 ++++++------- .github/workflows/test.yml | 6 +++--- .goreleaser.yml | 2 +- 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 41f7310..e7d3c78 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,10 @@ version: 2 updates: + - package-ecosystem: github-actions + directory: '/' + schedule: + interval: 'weekly' + open-pull-requests-limit: 5 - package-ecosystem: 'gomod' directory: '/' schedule: diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 7588e6b..704692d 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,9 +11,8 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: latest \ No newline at end of file + version: latest diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index f6634c3..59cd4d8 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -8,10 +8,10 @@ jobs: jsonnetfmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22 + go-version-file: go.mod - name: Format run: | go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 650d61f..58387d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,14 +9,13 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22 - - uses: goreleaser/goreleaser-action@v2 + go-version-file: go.mod + - uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 with: - distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e60c473..4ddf8a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,9 +8,9 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.22 + go-version-file: go.mod - run: go test ./... -bench=. -benchmem \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 2212092..6610662 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,4 +20,4 @@ archives: release: draft: true changelog: - skip: true + disable: true From fc8e9ab2e19695f02ba187b8786c9bb9cff3be9d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:18:52 -0400 Subject: [PATCH 086/124] Bump github.com/grafana/tanka from 0.27.1 to 0.28.0 (#147) * Bump github.com/grafana/tanka from 0.27.1 to 0.28.0 Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.27.1 to 0.28.0. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.27.1...v0.28.0) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * go mod tidy --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Duchesne --- go.mod | 14 +++++++------- go.sum | 20 ++++++++++++-------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index c6e79ed..de0aec4 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,13 @@ module github.com/grafana/jsonnet-language-server -go 1.22 +go 1.22.4 + +toolchain go1.22.5 require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.27.1 + github.com/grafana/tanka v0.28.0 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -21,11 +23,9 @@ require ( github.com/andybalholm/cascadia v1.3.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fatih/color v1.17.0 // indirect - github.com/gobwas/glob v0.2.3 // indirect - github.com/google/uuid v1.3.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/huandu/xstrings v1.3.3 // indirect github.com/imdario/mergo v0.3.12 // indirect - github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect @@ -36,9 +36,9 @@ require ( github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/stretchr/objx v0.5.2 // indirect - golang.org/x/crypto v0.23.0 // indirect + golang.org/x/crypto v0.24.0 // indirect golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.20.0 // indirect + golang.org/x/sys v0.22.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index bbe198d..03d1485 100644 --- a/go.sum +++ b/go.sum @@ -25,10 +25,10 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.27.1 h1:vYT8oTfewV7QuSxpBoxpzyXPB+qXAri6n2It3pDTC3w= -github.com/grafana/tanka v0.27.1/go.mod h1:Wu7ljq3kOzvst/eDq+PORfZHErztbELUGDFWHVU0K8c= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/grafana/tanka v0.28.0 h1:t5TmNA7O4shCYtl6Zeqjj6LL2OAxffnEfcVlv3JjSg4= +github.com/grafana/tanka v0.28.0/go.mod h1:Zi9P/RnYPWC+aK5UQMLMZiku6jcofT7Iw3BrGQldZpQ= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4= @@ -43,8 +43,9 @@ github.com/karrick/godirwalk v1.17.0/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1q github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= @@ -98,8 +99,9 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= -golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -131,8 +133,9 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= +golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= @@ -158,8 +161,9 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= From 45e0b27aa4d2b1d70719de916229e7a559663f28 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:22:32 -0400 Subject: [PATCH 087/124] Bump golangci/golangci-lint-action from 2 to 6 (#149) * Bump golangci/golangci-lint-action from 2 to 6 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 2 to 6. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v2...v6) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Use fixed changeset --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Duchesne --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 704692d..4b9c204 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,6 +13,6 @@ jobs: steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 with: version: latest From 71857b2be5aae5e3bc6646e315ee4fbf2c297b49 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 7 Aug 2024 17:42:44 -0400 Subject: [PATCH 088/124] Auto-complete function body attributes (#150) Closes https://github.com/grafana/jsonnet-language-server/issues/129 Had to implement a more sophisticated word-splitting function because `myfunc(arg1, arg2) has to be a single "word" --- pkg/ast/processing/find_field.go | 5 +++ pkg/server/completion.go | 39 +++++++++++++++++++- pkg/server/completion_test.go | 29 +++++++++++++++ pkg/server/testdata/goto-functions.libsonnet | 4 +- 4 files changed, 74 insertions(+), 3 deletions(-) diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index edf26f1..f2497fd 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -40,6 +40,11 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm foundDesugaredObjects = FindTopLevelObjectsInFile(vm, start, "") default: + if strings.Count(start, "(") == 1 && strings.Count(start, ")") == 1 { + // If the index is a function call, we need to find the function definition + // We can ignore the arguments. We'll only consider static attributes from the function's body + start = strings.Split(start, "(")[0] + } // Get ast.DesugaredObject at variable definition by getting bind then setting ast.DesugaredObject bind := FindBindByIDViaStack(stack, ast.Identifier(start)) if bind == nil { diff --git a/pkg/server/completion.go b/pkg/server/completion.go index bb78e00..e6b53f8 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -59,7 +59,7 @@ func getCompletionLine(fileContent string, position protocol.Position) string { } func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm *jsonnet.VM, position protocol.Position) []protocol.CompletionItem { - lineWords := strings.Split(line, " ") + lineWords := splitWords(line) lastWord := lineWords[len(lineWords)-1] lastWord = strings.TrimRight(lastWord, ",;") // Ignore trailing commas and semicolons, they can present when someone is modifying an existing line @@ -250,6 +250,43 @@ func typeToString(t ast.Node) string { return "import" case *ast.Index: return "object field" + case *ast.Var: + return "variable" } return reflect.TypeOf(t).String() } + +// splitWords splits the input string into words, respecting spaces within parentheses. +func splitWords(input string) []string { + var words []string + var currentWord strings.Builder + var insideParentheses bool + + for _, char := range input { + switch char { + case ' ': + if insideParentheses { + currentWord.WriteRune(char) + } else if currentWord.Len() > 0 { + words = append(words, currentWord.String()) + currentWord.Reset() + } + case '(': + insideParentheses = true + currentWord.WriteRune(char) + case ')': + currentWord.WriteRune(char) + insideParentheses = false + default: + currentWord.WriteRune(char) + } + } + + if currentWord.Len() > 0 { + words = append(words, currentWord.String()) + } else if strings.HasSuffix(input, " ") { + words = append(words, "") + } + + return words +} diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index fa85eb9..e7bb0cf 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -663,6 +663,35 @@ func TestCompletion(t *testing.T) { }, }, }, + { + name: "complete attribute from function", + filename: "testdata/goto-functions.libsonnet", + replaceString: "test: myfunc(arg1, arg2)", + replaceByString: "test: myfunc(arg1, arg2).", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "atb1", + Kind: protocol.FieldCompletion, + Detail: "myfunc(arg1, arg2).atb1", + InsertText: "atb1", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "variable", + }, + }, + { + Label: "atb2", + Kind: protocol.FieldCompletion, + Detail: "myfunc(arg1, arg2).atb2", + InsertText: "atb2", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "variable", + }, + }, + }, + }, + }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { diff --git a/pkg/server/testdata/goto-functions.libsonnet b/pkg/server/testdata/goto-functions.libsonnet index 8c5c3de..f554567 100644 --- a/pkg/server/testdata/goto-functions.libsonnet +++ b/pkg/server/testdata/goto-functions.libsonnet @@ -1,6 +1,6 @@ local myfunc(arg1, arg2) = { - arg1: arg1, - arg2: arg2, + atb1: arg1, + atb2: arg2, }; { From 8cf3395ee3e4779da0f0bbdf947658262d04a11b Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 7 Aug 2024 17:42:55 -0400 Subject: [PATCH 089/124] Completion: Return a non-nil list when no suggestions (#151) Closes https://github.com/grafana/jsonnet-language-server/issues/141 --- pkg/server/completion.go | 8 ++++---- pkg/server/completion_test.go | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/server/completion.go b/pkg/server/completion.go index e6b53f8..e1a1138 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -66,7 +66,7 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm indexes := strings.Split(lastWord, ".") if len(indexes) == 1 { - var items []protocol.CompletionItem + items := []protocol.CompletionItem{} // firstIndex is a variable (local) completion for !stack.IsEmpty() { if curr, ok := stack.Pop().(*ast.Local); ok { @@ -87,7 +87,7 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm ranges, err := processing.FindRangesFromIndexList(stack, indexes, vm, true) if err != nil { log.Errorf("Completion: error finding ranges: %v", err) - return nil + return []protocol.CompletionItem{} } completionPrefix := strings.Join(indexes[:len(indexes)-1], ".") @@ -95,7 +95,7 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm } func (s *Server) completionStdLib(line string) []protocol.CompletionItem { - var items []protocol.CompletionItem + items := []protocol.CompletionItem{} stdIndex := strings.LastIndex(line, "std.") if stdIndex != -1 { @@ -134,7 +134,7 @@ func (s *Server) completionStdLib(line string) []protocol.CompletionItem { } func (s *Server) createCompletionItemsFromRanges(ranges []processing.ObjectRange, completionPrefix, currentLine string, position protocol.Position) []protocol.CompletionItem { - var items []protocol.CompletionItem + items := []protocol.CompletionItem{} labels := make(map[string]bool) for _, field := range ranges { diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index e7bb0cf..f4e5dc3 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -175,7 +175,7 @@ func TestCompletion(t *testing.T) { replaceByString: "self.h", expected: protocol.CompletionList{ IsIncomplete: false, - Items: nil, + Items: []protocol.CompletionItem{}, }, }, { @@ -257,7 +257,7 @@ func TestCompletion(t *testing.T) { replaceByString: "bar: bad", expected: protocol.CompletionList{ IsIncomplete: false, - Items: nil, + Items: []protocol.CompletionItem{}, }, }, { @@ -483,7 +483,7 @@ func TestCompletion(t *testing.T) { replaceByString: "hello.hell.", expected: protocol.CompletionList{ IsIncomplete: false, - Items: nil, + Items: []protocol.CompletionItem{}, }, }, { From 4c756e3d19675983c0f5d89a0fadfd49c8576b65 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 7 Aug 2024 17:43:07 -0400 Subject: [PATCH 090/124] Support hover on all tokens (#152) * Support hover on all tokens Closes https://github.com/grafana/jsonnet-language-server/issues/8 Closes https://github.com/grafana/jsonnet-language-server/issues/9 Closes https://github.com/grafana/jsonnet-language-server/issues/10 Next step will be to support docsonnet: https://github.com/grafana/jsonnet-language-server/issues/109 to get some proper descriptions * switch case --- pkg/server/cache.go | 50 ++++++++++++++++++++- pkg/server/hover.go | 75 ++++++++++++++++++++++---------- pkg/server/hover_test.go | 94 +++++++++++++++++++++++++++++++++++++++- 3 files changed, 194 insertions(+), 25 deletions(-) diff --git a/pkg/server/cache.go b/pkg/server/cache.go index 6628649..c350249 100644 --- a/pkg/server/cache.go +++ b/pkg/server/cache.go @@ -3,6 +3,8 @@ package server import ( "errors" "fmt" + "os" + "strings" "sync" "github.com/google/go-jsonnet/ast" @@ -43,8 +45,6 @@ type cache struct { } // put adds or replaces a document in the cache. -// Documents are only replaced if the new document version is greater than the currently -// cached version. func (c *cache) put(new *document) error { c.mu.Lock() defer c.mu.Unlock() @@ -72,3 +72,49 @@ func (c *cache) get(uri protocol.DocumentURI) (*document, error) { return doc, nil } + +func (c *cache) getContents(uri protocol.DocumentURI, position protocol.Range) (string, error) { + text := "" + doc, err := c.get(uri) + if err == nil { + text = doc.item.Text + } else { + // Read the file from disk (TODO: cache this) + bytes, err := os.ReadFile(uri.SpanURI().Filename()) + if err != nil { + return "", err + } + text = string(bytes) + } + + lines := strings.Split(text, "\n") + if int(position.Start.Line) >= len(lines) { + return "", fmt.Errorf("line %d out of range", position.Start.Line) + } + if int(position.Start.Character) >= len(lines[position.Start.Line]) { + return "", fmt.Errorf("character %d out of range", position.Start.Character) + } + if int(position.End.Line) >= len(lines) { + return "", fmt.Errorf("line %d out of range", position.End.Line) + } + if int(position.End.Character) >= len(lines[position.End.Line]) { + return "", fmt.Errorf("character %d out of range", position.End.Character) + } + + contentBuilder := strings.Builder{} + for i := position.Start.Line; i <= position.End.Line; i++ { + switch i { + case position.Start.Line: + contentBuilder.WriteString(lines[i][position.Start.Character:]) + case position.End.Line: + contentBuilder.WriteString(lines[i][:position.End.Character]) + default: + contentBuilder.WriteString(lines[i]) + } + if i != position.End.Line { + contentBuilder.WriteRune('\n') + } + } + + return contentBuilder.String(), nil +} diff --git a/pkg/server/hover.go b/pkg/server/hover.go index 671fece..f3e95cc 100644 --- a/pkg/server/hover.go +++ b/pkg/server/hover.go @@ -35,27 +35,7 @@ func (s *Server) Hover(_ context.Context, params *protocol.HoverParams) (*protoc return nil, nil } - node := stack.Pop() - - // // DEBUG - // var node2 ast.Node - // if !stack.IsEmpty() { - // _, node2 = stack.Pop() - // } - // r := protocol.Range{ - // Start: protocol.Position{ - // Line: uint32(node.Loc().Begin.Line) - 1, - // Character: uint32(node.Loc().Begin.Column) - 1, - // }, - // End: protocol.Position{ - // Line: uint32(node.Loc().End.Line) - 1, - // Character: uint32(node.Loc().End.Column) - 1, - // }, - // } - // return &protocol.Hover{Range: r, - // Contents: protocol.MarkupContent{Kind: protocol.PlainText, - // Value: fmt.Sprintf("%v: %+v\n\n%v: %+v", reflect.TypeOf(node), node, reflect.TypeOf(node2), node2)}, - // }, nil + node := stack.Peek() _, isIndex := node.(*ast.Index) _, isVar := node.(*ast.Var) @@ -84,5 +64,56 @@ func (s *Server) Hover(_ context.Context, params *protocol.HoverParams) (*protoc } } - return nil, nil + definitionParams := &protocol.DefinitionParams{ + TextDocumentPositionParams: params.TextDocumentPositionParams, + } + definitions, err := findDefinition(doc.ast, definitionParams, s.getVM(doc.item.URI.SpanURI().Filename())) + if err != nil { + log.Debugf("Hover: error finding definition: %s", err) + return nil, nil + } + + if len(definitions) == 0 { + return nil, nil + } + + // Show the contents at the target range + // If there are multiple definitions, show the filenames+line numbers + contentBuilder := strings.Builder{} + for _, def := range definitions { + if len(definitions) > 1 { + header := fmt.Sprintf("%s:%d", def.TargetURI, def.TargetRange.Start.Line+1) + if def.TargetRange.Start.Line != def.TargetRange.End.Line { + header += fmt.Sprintf("-%d", def.TargetRange.End.Line+1) + } + contentBuilder.WriteString(fmt.Sprintf("## `%s`\n", header)) + } + + targetContent, err := s.cache.getContents(def.TargetURI, def.TargetRange) + if err != nil { + log.Debugf("Hover: error reading target content: %s", err) + return nil, nil + } + // Limit the content to 5 lines + if strings.Count(targetContent, "\n") > 5 { + targetContent = strings.Join(strings.Split(targetContent, "\n")[:5], "\n") + "\n..." + } + contentBuilder.WriteString(fmt.Sprintf("```jsonnet\n%s\n```\n", targetContent)) + + if len(definitions) > 1 { + contentBuilder.WriteString("\n") + } + } + + result := &protocol.Hover{ + Contents: protocol.MarkupContent{ + Kind: protocol.Markdown, + Value: contentBuilder.String(), + }, + } + if loc := node.Loc(); loc != nil { + result.Range = position.RangeASTToProtocol(*loc) + } + + return result, nil } diff --git a/pkg/server/hover_test.go b/pkg/server/hover_test.go index a99d27d..d1ffea6 100644 --- a/pkg/server/hover_test.go +++ b/pkg/server/hover_test.go @@ -4,6 +4,7 @@ import ( "context" "io" "os" + "path/filepath" "testing" "github.com/grafana/jsonnet-language-server/pkg/stdlib" @@ -66,7 +67,7 @@ var ( } ) -func TestHover(t *testing.T) { +func TestHoverOnStdLib(t *testing.T) { logrus.SetOutput(io.Discard) var testCases = []struct { @@ -241,3 +242,94 @@ func TestHover(t *testing.T) { }) } } + +func TestHover(t *testing.T) { + logrus.SetOutput(io.Discard) + + testCases := []struct { + name string + filename string + position protocol.Position + expectedContent protocol.Hover + }{ + { + name: "hover on nested attribute", + filename: "testdata/goto-indexes.jsonnet", + position: protocol.Position{Line: 9, Character: 16}, + expectedContent: protocol.Hover{ + Contents: protocol.MarkupContent{ + Kind: protocol.Markdown, + Value: "```jsonnet\nbar: 'innerfoo',\n```\n", + }, + Range: protocol.Range{ + Start: protocol.Position{Line: 9, Character: 5}, + End: protocol.Position{Line: 9, Character: 18}, + }, + }, + }, + { + name: "hover on multi-line string", + filename: "testdata/goto-indexes.jsonnet", + position: protocol.Position{Line: 8, Character: 9}, + expectedContent: protocol.Hover{ + Contents: protocol.MarkupContent{ + Kind: protocol.Markdown, + Value: "```jsonnet\nobj = {\n foo: {\n bar: 'innerfoo',\n },\n bar: 'foo',\n}\n```\n", + }, + Range: protocol.Range{ + Start: protocol.Position{Line: 8, Character: 8}, + End: protocol.Position{Line: 8, Character: 11}, + }, + }, + }, + } + + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + params := &protocol.HoverParams{ + TextDocumentPositionParams: protocol.TextDocumentPositionParams{ + TextDocument: protocol.TextDocumentIdentifier{ + URI: protocol.URIFromPath(tc.filename), + }, + Position: tc.position, + }, + } + + server := NewServer("any", "test version", nil, Configuration{ + JPaths: []string{"testdata", filepath.Join(filepath.Dir(tc.filename), "vendor")}, + }) + serverOpenTestFile(t, server, tc.filename) + response, err := server.Hover(context.Background(), params) + + require.NoError(t, err) + assert.Equal(t, &tc.expectedContent, response) + }) + } +} + +func TestHoverGoToDefinitionTests(t *testing.T) { + logrus.SetOutput(io.Discard) + + for _, tc := range definitionTestCases { + t.Run(tc.name, func(t *testing.T) { + params := &protocol.HoverParams{ + TextDocumentPositionParams: protocol.TextDocumentPositionParams{ + TextDocument: protocol.TextDocumentIdentifier{ + URI: protocol.URIFromPath(tc.filename), + }, + Position: tc.position, + }, + } + + server := NewServer("any", "test version", nil, Configuration{ + JPaths: []string{"testdata", filepath.Join(filepath.Dir(tc.filename), "vendor")}, + }) + serverOpenTestFile(t, server, tc.filename) + response, err := server.Hover(context.Background(), params) + + // We only want to check that it found something. In combination with other tests, we can assume the content is OK. + require.NoError(t, err) + require.NotNil(t, response) + }) + } +} From 6f0feae446816e32d7d9faad7f2da8edf2dc3b0f Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Sun, 25 Aug 2024 21:27:05 -0400 Subject: [PATCH 091/124] Global cache for documents + top level jsonnet objects (#153) * Global cache for documents + top level jsonnet objects Closes https://github.com/grafana/jsonnet-language-server/issues/133 There are two caches currently: - One for protocol documents. This one is instantiated by the server and maintained up-to-date as documents are opened, changed, and closed. - One for jsonnet objects. This one is a global var and is only added to. Modified objects are never removed/modified from the cache. By merging the two caches, we can expand the first cache's behavior to also invalidate modified objects from the global cache when a document is changed. * Simplify processing args (#154) Instead of carrying a `cache` and `vm` around on each function, create a `Processor` struct to contain those * Fix linting --- .golangci.toml | 3 +- pkg/ast/processing/find_field.go | 38 +++++------ pkg/ast/processing/processor.go | 18 +++++ pkg/ast/processing/top_level_objects.go | 27 ++++---- pkg/{server => cache}/cache.go | 90 +++++++++++++++---------- pkg/server/completion.go | 13 ++-- pkg/server/configuration_test.go | 4 +- pkg/server/definition.go | 15 +++-- pkg/server/diagnostics.go | 47 ++++++------- pkg/server/diagnostics_test.go | 4 +- pkg/server/execute.go | 4 +- pkg/server/formatting.go | 6 +- pkg/server/hover.go | 12 ++-- pkg/server/server.go | 37 ++++++---- pkg/server/symbols.go | 6 +- 15 files changed, 185 insertions(+), 139 deletions(-) create mode 100644 pkg/ast/processing/processor.go rename pkg/{server => cache}/cache.go (54%) diff --git a/.golangci.toml b/.golangci.toml index 1178a69..9311a87 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -1,14 +1,13 @@ [linters] enable = [ + "copyloopvar", "dogsled", - "exportloopref", "forcetypeassert", "goconst", "gocritic", "gocyclo", "goimports", "goprintffuncname", - "gosec", "gosimple", "govet", "ineffassign", diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index f2497fd..0fe3627 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -5,13 +5,12 @@ import ( "reflect" "strings" - "github.com/google/go-jsonnet" "github.com/google/go-jsonnet/ast" "github.com/grafana/jsonnet-language-server/pkg/nodestack" log "github.com/sirupsen/logrus" ) -func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm *jsonnet.VM, partialMatchFields bool) ([]ObjectRange, error) { +func (p *Processor) FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, partialMatchFields bool) ([]ObjectRange, error) { var foundDesugaredObjects []*ast.DesugaredObject // First element will be super, self, or var name start, indexList := indexList[0], indexList[1:] @@ -31,13 +30,13 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm if _, ok := tmpStack.Peek().(*ast.Binary); ok { tmpStack.Pop() } - foundDesugaredObjects = filterSelfScope(FindTopLevelObjects(tmpStack, vm)) + foundDesugaredObjects = filterSelfScope(p.FindTopLevelObjects(tmpStack)) case start == "std": return nil, fmt.Errorf("cannot get definition of std lib") case start == "$": - foundDesugaredObjects = FindTopLevelObjects(nodestack.NewNodeStack(stack.From), vm) + foundDesugaredObjects = p.FindTopLevelObjects(nodestack.NewNodeStack(stack.From)) case strings.Contains(start, "."): - foundDesugaredObjects = FindTopLevelObjectsInFile(vm, start, "") + foundDesugaredObjects = p.FindTopLevelObjectsInFile(start, "") default: if strings.Count(start, "(") == 1 && strings.Count(start, ")") == 1 { @@ -65,15 +64,15 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm foundDesugaredObjects = append(foundDesugaredObjects, bodyNode) case *ast.Self: tmpStack := nodestack.NewNodeStack(stack.From) - foundDesugaredObjects = FindTopLevelObjects(tmpStack, vm) + foundDesugaredObjects = p.FindTopLevelObjects(tmpStack) case *ast.Import: filename := bodyNode.File.Value - foundDesugaredObjects = FindTopLevelObjectsInFile(vm, filename, "") + foundDesugaredObjects = p.FindTopLevelObjectsInFile(filename, "") case *ast.Index, *ast.Apply: tempStack := nodestack.NewNodeStack(bodyNode) indexList = append(tempStack.BuildIndexList(), indexList...) - return FindRangesFromIndexList(stack, indexList, vm, partialMatchFields) + return p.FindRangesFromIndexList(stack, indexList, partialMatchFields) case *ast.Function: // If the function's body is an object, it means we can look for indexes within the function if funcBody := findChildDesugaredObject(bodyNode.Body); funcBody != nil { @@ -84,10 +83,10 @@ func FindRangesFromIndexList(stack *nodestack.NodeStack, indexList []string, vm } } - return extractObjectRangesFromDesugaredObjs(vm, foundDesugaredObjects, indexList, partialMatchFields) + return p.extractObjectRangesFromDesugaredObjs(foundDesugaredObjects, indexList, partialMatchFields) } -func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.DesugaredObject, indexList []string, partialMatchFields bool) ([]ObjectRange, error) { +func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.DesugaredObject, indexList []string, partialMatchFields bool) ([]ObjectRange, error) { var ranges []ObjectRange for len(indexList) > 0 { index := indexList[0] @@ -111,7 +110,7 @@ func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.D return ranges, nil } - fieldNodes, err := unpackFieldNodes(vm, foundFields) + fieldNodes, err := p.unpackFieldNodes(foundFields) if err != nil { return nil, err } @@ -125,7 +124,7 @@ func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.D // The target is a function and will be found by FindVarReference on the next loop fieldNodes = append(fieldNodes, fieldNode.Target) case *ast.Var: - varReference, err := FindVarReference(fieldNode, vm) + varReference, err := p.FindVarReference(fieldNode) if err != nil { return nil, err } @@ -142,11 +141,11 @@ func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.D // if we're trying to find the a definition which is an index, // we need to find it from itself, meaning that we need to create a stack // from the index's target and search from there - rootNode, _, _ := vm.ImportAST("", fieldNode.LocRange.FileName) + rootNode, _, _ := p.vm.ImportAST("", fieldNode.LocRange.FileName) stack, _ := FindNodeByPosition(rootNode, fieldNode.Target.Loc().Begin) if stack != nil { additionalIndexList := append(nodestack.NewNodeStack(fieldNode).BuildIndexList(), indexList...) - result, _ := FindRangesFromIndexList(stack, additionalIndexList, vm, partialMatchFields) + result, _ := p.FindRangesFromIndexList(stack, additionalIndexList, partialMatchFields) if len(result) > 0 { return result, err } @@ -157,7 +156,7 @@ func extractObjectRangesFromDesugaredObjs(vm *jsonnet.VM, desugaredObjs []*ast.D desugaredObjs = append(desugaredObjs, findChildDesugaredObject(fieldNode.Body)) case *ast.Import: filename := fieldNode.File.Value - newObjs := FindTopLevelObjectsInFile(vm, filename, string(fieldNode.Loc().File.DiagnosticFileName)) + newObjs := p.FindTopLevelObjectsInFile(filename, string(fieldNode.Loc().File.DiagnosticFileName)) desugaredObjs = append(desugaredObjs, newObjs...) } i++ @@ -177,13 +176,13 @@ func flattenBinary(node ast.Node) []ast.Node { // unpackFieldNodes extracts nodes from fields // - Binary nodes. A field could be either in the left or right side of the binary // - Self nodes. We want the object self refers to, not the self node itself -func unpackFieldNodes(vm *jsonnet.VM, fields []*ast.DesugaredObjectField) ([]ast.Node, error) { +func (p *Processor) unpackFieldNodes(fields []*ast.DesugaredObjectField) ([]ast.Node, error) { var fieldNodes []ast.Node for _, foundField := range fields { switch fieldNode := foundField.Body.(type) { case *ast.Self: filename := fieldNode.LocRange.FileName - rootNode, _, _ := vm.ImportAST("", filename) + rootNode, _, _ := p.vm.ImportAST("", filename) tmpStack, err := FindNodeByPosition(rootNode, fieldNode.LocRange.Begin) if err != nil { return nil, err @@ -220,7 +219,6 @@ func findObjectFieldsInObject(objectNode *ast.DesugaredObject, index string, par var matchingFields []*ast.DesugaredObjectField for _, field := range objectNode.Fields { - field := field literalString, isString := field.Name.(*ast.LiteralString) if !isString { continue @@ -253,8 +251,8 @@ func findChildDesugaredObject(node ast.Node) *ast.DesugaredObject { // FindVarReference finds the object that the variable is referencing // To do so, we get the stack where the var is used and search that stack for the var's definition -func FindVarReference(varNode *ast.Var, vm *jsonnet.VM) (ast.Node, error) { - varFileNode, _, _ := vm.ImportAST("", varNode.LocRange.FileName) +func (p *Processor) FindVarReference(varNode *ast.Var) (ast.Node, error) { + varFileNode, _, _ := p.vm.ImportAST("", varNode.LocRange.FileName) varStack, err := FindNodeByPosition(varFileNode, varNode.Loc().Begin) if err != nil { return nil, fmt.Errorf("got the following error when finding the bind for %s: %w", varNode.Id, err) diff --git a/pkg/ast/processing/processor.go b/pkg/ast/processing/processor.go new file mode 100644 index 0000000..32d8313 --- /dev/null +++ b/pkg/ast/processing/processor.go @@ -0,0 +1,18 @@ +package processing + +import ( + "github.com/google/go-jsonnet" + "github.com/grafana/jsonnet-language-server/pkg/cache" +) + +type Processor struct { + cache *cache.Cache + vm *jsonnet.VM +} + +func NewProcessor(cache *cache.Cache, vm *jsonnet.VM) *Processor { + return &Processor{ + cache: cache, + vm: vm, + } +} diff --git a/pkg/ast/processing/top_level_objects.go b/pkg/ast/processing/top_level_objects.go index 13014dd..4bef0fc 100644 --- a/pkg/ast/processing/top_level_objects.go +++ b/pkg/ast/processing/top_level_objects.go @@ -1,26 +1,23 @@ package processing import ( - "github.com/google/go-jsonnet" "github.com/google/go-jsonnet/ast" "github.com/grafana/jsonnet-language-server/pkg/nodestack" log "github.com/sirupsen/logrus" ) -var fileTopLevelObjectsCache = make(map[string][]*ast.DesugaredObject) - -func FindTopLevelObjectsInFile(vm *jsonnet.VM, filename, importedFrom string) []*ast.DesugaredObject { - cacheKey := importedFrom + ":" + filename - if _, ok := fileTopLevelObjectsCache[cacheKey]; !ok { - rootNode, _, _ := vm.ImportAST(importedFrom, filename) - fileTopLevelObjectsCache[cacheKey] = FindTopLevelObjects(nodestack.NewNodeStack(rootNode), vm) +func (p *Processor) FindTopLevelObjectsInFile(filename, importedFrom string) []*ast.DesugaredObject { + v, ok := p.cache.GetTopLevelObject(filename, importedFrom) + if !ok { + rootNode, _, _ := p.vm.ImportAST(importedFrom, filename) + v = p.FindTopLevelObjects(nodestack.NewNodeStack(rootNode)) + p.cache.PutTopLevelObject(filename, importedFrom, v) } - - return fileTopLevelObjectsCache[cacheKey] + return v } // Find all ast.DesugaredObject's from NodeStack -func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.DesugaredObject { +func (p *Processor) FindTopLevelObjects(stack *nodestack.NodeStack) []*ast.DesugaredObject { var objects []*ast.DesugaredObject for !stack.IsEmpty() { curr := stack.Pop() @@ -34,7 +31,7 @@ func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.Desu stack.Push(curr.Body) case *ast.Import: filename := curr.File.Value - rootNode, _, _ := vm.ImportAST(string(curr.Loc().File.DiagnosticFileName), filename) + rootNode, _, _ := p.vm.ImportAST(string(curr.Loc().File.DiagnosticFileName), filename) stack.Push(rootNode) case *ast.Index: indexValue, indexIsString := curr.Index.(*ast.LiteralString) @@ -45,7 +42,7 @@ func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.Desu var container ast.Node // If our target is a var, the container for the index is the var ref if varTarget, targetIsVar := curr.Target.(*ast.Var); targetIsVar { - ref, err := FindVarReference(varTarget, vm) + ref, err := p.FindVarReference(varTarget) if err != nil { log.WithError(err).Errorf("Error finding var reference, ignoring this node") continue @@ -62,7 +59,7 @@ func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.Desu if containerObj, containerIsObj := container.(*ast.DesugaredObject); containerIsObj { possibleObjects = []*ast.DesugaredObject{containerObj} } else if containerImport, containerIsImport := container.(*ast.Import); containerIsImport { - possibleObjects = FindTopLevelObjectsInFile(vm, containerImport.File.Value, string(containerImport.Loc().File.DiagnosticFileName)) + possibleObjects = p.FindTopLevelObjectsInFile(containerImport.File.Value, string(containerImport.Loc().File.DiagnosticFileName)) } for _, obj := range possibleObjects { @@ -71,7 +68,7 @@ func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.Desu } } case *ast.Var: - varReference, err := FindVarReference(curr, vm) + varReference, err := p.FindVarReference(curr) if err != nil { log.WithError(err).Errorf("Error finding var reference, ignoring this node") continue diff --git a/pkg/server/cache.go b/pkg/cache/cache.go similarity index 54% rename from pkg/server/cache.go rename to pkg/cache/cache.go index c350249..f402aea 100644 --- a/pkg/server/cache.go +++ b/pkg/cache/cache.go @@ -1,9 +1,10 @@ -package server +package cache import ( "errors" "fmt" "os" + "path/filepath" "strings" "sync" @@ -11,59 +12,63 @@ import ( "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" ) -type document struct { +type Document struct { // From DidOpen and DidChange - item protocol.TextDocumentItem + Item protocol.TextDocumentItem // Contains the last successfully parsed AST. If doc.err is not nil, it's out of date. - ast ast.Node - linesChangedSinceAST map[int]bool + AST ast.Node + LinesChangedSinceAST map[int]bool // From diagnostics - val string - err error - diagnostics []protocol.Diagnostic + Val string + Err error + Diagnostics []protocol.Diagnostic } -// newCache returns a document cache. -func newCache() *cache { - return &cache{ - mu: sync.RWMutex{}, - docs: make(map[protocol.DocumentURI]*document), - diagQueue: make(map[protocol.DocumentURI]struct{}), - } +// Cache caches documents. +type Cache struct { + mu sync.RWMutex + docs map[protocol.DocumentURI]*Document + topLevelObjects map[string][]*ast.DesugaredObject } -// cache caches documents. -type cache struct { - mu sync.RWMutex - docs map[protocol.DocumentURI]*document - - diagMutex sync.RWMutex - diagQueue map[protocol.DocumentURI]struct{} - diagRunning sync.Map +// New returns a document cache. +func New() *Cache { + return &Cache{ + mu: sync.RWMutex{}, + docs: make(map[protocol.DocumentURI]*Document), + topLevelObjects: make(map[string][]*ast.DesugaredObject), + } } -// put adds or replaces a document in the cache. -func (c *cache) put(new *document) error { +// Put adds or replaces a document in the cache. +func (c *Cache) Put(new *Document) error { c.mu.Lock() defer c.mu.Unlock() - uri := new.item.URI + uri := new.Item.URI if old, ok := c.docs[uri]; ok { - if old.item.Version > new.item.Version { + if old.Item.Version > new.Item.Version { return errors.New("newer version of the document is already in the cache") } } c.docs[uri] = new + // Invalidate the TopLevelObject cache + for k := range c.topLevelObjects { + if strings.HasSuffix(k, filepath.Base(uri.SpanURI().Filename())) { + delete(c.topLevelObjects, k) + } + } + return nil } -// get retrieves a document from the cache. -func (c *cache) get(uri protocol.DocumentURI) (*document, error) { - c.mu.Lock() - defer c.mu.Unlock() +// Get retrieves a document from the cache. +func (c *Cache) Get(uri protocol.DocumentURI) (*Document, error) { + c.mu.RLock() + defer c.mu.RUnlock() doc, ok := c.docs[uri] if !ok { @@ -73,11 +78,11 @@ func (c *cache) get(uri protocol.DocumentURI) (*document, error) { return doc, nil } -func (c *cache) getContents(uri protocol.DocumentURI, position protocol.Range) (string, error) { +func (c *Cache) GetContents(uri protocol.DocumentURI, position protocol.Range) (string, error) { text := "" - doc, err := c.get(uri) + doc, err := c.Get(uri) if err == nil { - text = doc.item.Text + text = doc.Item.Text } else { // Read the file from disk (TODO: cache this) bytes, err := os.ReadFile(uri.SpanURI().Filename()) @@ -118,3 +123,20 @@ func (c *cache) getContents(uri protocol.DocumentURI, position protocol.Range) ( return contentBuilder.String(), nil } + +func (c *Cache) GetTopLevelObject(filename, importedFrom string) ([]*ast.DesugaredObject, bool) { + c.mu.RLock() + defer c.mu.RUnlock() + + cacheKey := importedFrom + ":" + filename + v, ok := c.topLevelObjects[cacheKey] + return v, ok +} + +func (c *Cache) PutTopLevelObject(filename, importedFrom string, objects []*ast.DesugaredObject) { + c.mu.Lock() + defer c.mu.Unlock() + + cacheKey := importedFrom + ":" + filename + c.topLevelObjects[cacheKey] = objects +} diff --git a/pkg/server/completion.go b/pkg/server/completion.go index e1a1138..153420e 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -18,12 +18,12 @@ import ( ) func (s *Server) Completion(_ context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error) { - doc, err := s.cache.get(params.TextDocument.URI) + doc, err := s.cache.Get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Completion: %s: %w", errorRetrievingDocument, err) } - line := getCompletionLine(doc.item.Text, params.Position) + line := getCompletionLine(doc.Item.Text, params.Position) // Short-circuit if it's a stdlib completion if items := s.completionStdLib(line); len(items) > 0 { @@ -31,18 +31,18 @@ func (s *Server) Completion(_ context.Context, params *protocol.CompletionParams } // Otherwise, parse the AST and search for completions - if doc.ast == nil { + if doc.AST == nil { log.Errorf("Completion: document was never successfully parsed, can't autocomplete") return nil, nil } - searchStack, err := processing.FindNodeByPosition(doc.ast, position.ProtocolToAST(params.Position)) + searchStack, err := processing.FindNodeByPosition(doc.AST, position.ProtocolToAST(params.Position)) if err != nil { log.Errorf("Completion: error computing node: %v", err) return nil, nil } - vm := s.getVM(doc.item.URI.SpanURI().Filename()) + vm := s.getVM(doc.Item.URI.SpanURI().Filename()) items := s.completionFromStack(line, searchStack, vm, params.Position) return &protocol.CompletionList{IsIncomplete: false, Items: items}, nil @@ -84,7 +84,8 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm return items } - ranges, err := processing.FindRangesFromIndexList(stack, indexes, vm, true) + processor := processing.NewProcessor(s.cache, vm) + ranges, err := processor.FindRangesFromIndexList(stack, indexes, true) if err != nil { log.Errorf("Completion: error finding ranges: %v", err) return []protocol.CompletionItem{} diff --git a/pkg/server/configuration_test.go b/pkg/server/configuration_test.go index 020b3ae..ce39f8e 100644 --- a/pkg/server/configuration_test.go +++ b/pkg/server/configuration_test.go @@ -141,10 +141,10 @@ func TestConfiguration(t *testing.T) { vm := s.getVM("any") - doc, err := s.cache.get(fileURI) + doc, err := s.cache.Get(fileURI) assert.NoError(t, err) - json, err := vm.Evaluate(doc.ast) + json, err := vm.Evaluate(doc.AST) assert.NoError(t, err) assert.JSONEq(t, tc.expectedFileOutput, json) }) diff --git a/pkg/server/definition.go b/pkg/server/definition.go index 071d585..e64a47a 100644 --- a/pkg/server/definition.go +++ b/pkg/server/definition.go @@ -39,21 +39,21 @@ func (s *Server) Definition(_ context.Context, params *protocol.DefinitionParams } func (s *Server) definitionLink(params *protocol.DefinitionParams) ([]protocol.DefinitionLink, error) { - doc, err := s.cache.get(params.TextDocument.URI) + doc, err := s.cache.Get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Definition: %s: %w", errorRetrievingDocument, err) } // Only find definitions, if the the line we're trying to find a definition for hasn't changed since last successful AST parse - if doc.ast == nil { + if doc.AST == nil { return nil, utils.LogErrorf("Definition: document was never successfully parsed, can't find definitions") } - if doc.linesChangedSinceAST[int(params.Position.Line)] { + if doc.LinesChangedSinceAST[int(params.Position.Line)] { return nil, utils.LogErrorf("Definition: document line %d was changed since last successful parse, can't find definitions", params.Position.Line) } - vm := s.getVM(doc.item.URI.SpanURI().Filename()) - responseDefLinks, err := findDefinition(doc.ast, params, vm) + vm := s.getVM(doc.Item.URI.SpanURI().Filename()) + responseDefLinks, err := s.findDefinition(doc.AST, params, vm) if err != nil { return nil, err } @@ -61,8 +61,9 @@ func (s *Server) definitionLink(params *protocol.DefinitionParams) ([]protocol.D return responseDefLinks, nil } -func findDefinition(root ast.Node, params *protocol.DefinitionParams, vm *jsonnet.VM) ([]protocol.DefinitionLink, error) { +func (s *Server) findDefinition(root ast.Node, params *protocol.DefinitionParams, vm *jsonnet.VM) ([]protocol.DefinitionLink, error) { var response []protocol.DefinitionLink + processor := processing.NewProcessor(s.cache, vm) searchStack, _ := processing.FindNodeByPosition(root, position.ProtocolToAST(params.Position)) deepestNode := searchStack.Pop() @@ -93,7 +94,7 @@ func findDefinition(root ast.Node, params *protocol.DefinitionParams, vm *jsonne indexSearchStack := nodestack.NewNodeStack(deepestNode) indexList := indexSearchStack.BuildIndexList() tempSearchStack := *searchStack - objectRanges, err := processing.FindRangesFromIndexList(&tempSearchStack, indexList, vm, false) + objectRanges, err := processor.FindRangesFromIndexList(&tempSearchStack, indexList, false) if err != nil { return nil, err } diff --git a/pkg/server/diagnostics.go b/pkg/server/diagnostics.go index a13e7b9..283ff34 100644 --- a/pkg/server/diagnostics.go +++ b/pkg/server/diagnostics.go @@ -10,6 +10,7 @@ import ( "time" "github.com/google/go-jsonnet/linter" + "github.com/grafana/jsonnet-language-server/pkg/cache" position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" log "github.com/sirupsen/logrus" @@ -74,25 +75,25 @@ func parseErrRegexpMatch(match []string) (string, protocol.Range) { } func (s *Server) queueDiagnostics(uri protocol.DocumentURI) { - s.cache.diagMutex.Lock() - defer s.cache.diagMutex.Unlock() - s.cache.diagQueue[uri] = struct{}{} + s.diagMutex.Lock() + defer s.diagMutex.Unlock() + s.diagQueue[uri] = struct{}{} } func (s *Server) diagnosticsLoop() { go func() { for { - s.cache.diagMutex.Lock() - for uri := range s.cache.diagQueue { - if _, ok := s.cache.diagRunning.Load(uri); ok { + s.diagMutex.Lock() + for uri := range s.diagQueue { + if _, ok := s.diagRunning.Load(uri); ok { continue } go func() { - s.cache.diagRunning.Store(uri, true) + s.diagRunning.Store(uri, true) log.Debug("Publishing diagnostics for ", uri) - doc, err := s.cache.get(uri) + doc, err := s.cache.Get(uri) if err != nil { log.Errorf("publishDiagnostics: %s: %v\n", errorRetrievingDocument, err) return @@ -133,30 +134,30 @@ func (s *Server) diagnosticsLoop() { log.Errorf("publishDiagnostics: unable to publish diagnostics: %v\n", err) } - doc.diagnostics = diags + doc.Diagnostics = diags log.Debug("Done publishing diagnostics for ", uri) - s.cache.diagRunning.Delete(uri) + s.diagRunning.Delete(uri) }() - delete(s.cache.diagQueue, uri) + delete(s.diagQueue, uri) } - s.cache.diagMutex.Unlock() + s.diagMutex.Unlock() time.Sleep(1 * time.Second) } }() } -func (s *Server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { - if doc.err == nil && s.configuration.EnableEvalDiagnostics { - vm := s.getVM(doc.item.URI.SpanURI().Filename()) - doc.val, doc.err = vm.EvaluateAnonymousSnippet(doc.item.URI.SpanURI().Filename(), doc.item.Text) +func (s *Server) getEvalDiags(doc *cache.Document) (diags []protocol.Diagnostic) { + if doc.Err == nil && s.configuration.EnableEvalDiagnostics { + vm := s.getVM(doc.Item.URI.SpanURI().Filename()) + doc.Val, doc.Err = vm.EvaluateAnonymousSnippet(doc.Item.URI.SpanURI().Filename(), doc.Item.Text) } - if doc.err != nil { + if doc.Err != nil { diag := protocol.Diagnostic{Source: "jsonnet evaluation"} - lines := strings.Split(doc.err.Error(), "\n") + lines := strings.Split(doc.Err.Error(), "\n") if len(lines) == 0 { log.Errorf("publishDiagnostics: expected at least two lines of Jsonnet evaluation error output, got: %v\n", lines) return diags @@ -173,7 +174,7 @@ func (s *Server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { message, rang := parseErrRegexpMatch(match) if runtimeErr { - diag.Message = doc.err.Error() + diag.Message = doc.Err.Error() diag.Severity = protocol.SeverityWarning } else { diag.Message = message @@ -187,7 +188,7 @@ func (s *Server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) { return diags } -func (s *Server) getLintDiags(doc *document) (diags []protocol.Diagnostic) { +func (s *Server) getLintDiags(doc *cache.Document) (diags []protocol.Diagnostic) { result, err := s.lintWithRecover(doc) if err != nil { log.Errorf("getLintDiags: %s: %v\n", errorRetrievingDocument, err) @@ -202,18 +203,18 @@ func (s *Server) getLintDiags(doc *document) (diags []protocol.Diagnostic) { return diags } -func (s *Server) lintWithRecover(doc *document) (result string, err error) { +func (s *Server) lintWithRecover(doc *cache.Document) (result string, err error) { defer func() { if r := recover(); r != nil { err = fmt.Errorf("error linting: %v", r) } }() - vm := s.getVM(doc.item.URI.SpanURI().Filename()) + vm := s.getVM(doc.Item.URI.SpanURI().Filename()) buf := &bytes.Buffer{} linter.LintSnippet(vm, buf, []linter.Snippet{ - {FileName: doc.item.URI.SpanURI().Filename(), Code: doc.item.Text}, + {FileName: doc.Item.URI.SpanURI().Filename(), Code: doc.Item.Text}, }) result = buf.String() diff --git a/pkg/server/diagnostics_test.go b/pkg/server/diagnostics_test.go index 6299018..ee4eabb 100644 --- a/pkg/server/diagnostics_test.go +++ b/pkg/server/diagnostics_test.go @@ -57,7 +57,7 @@ local unused = 'test'; for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { s, fileURI := testServerWithFile(t, nil, tc.fileContent) - doc, err := s.cache.get(fileURI) + doc, err := s.cache.Get(fileURI) if err != nil { t.Fatalf("%s: %v", errorRetrievingDocument, err) } @@ -145,7 +145,7 @@ func TestGetEvalDiags(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { s, fileURI := testServerWithFile(t, nil, tc.fileContent) - doc, err := s.cache.get(fileURI) + doc, err := s.cache.Get(fileURI) if err != nil { t.Fatalf("%s: %v", errorRetrievingDocument, err) } diff --git a/pkg/server/execute.go b/pkg/server/execute.go index e5956af..ce76df0 100644 --- a/pkg/server/execute.go +++ b/pkg/server/execute.go @@ -43,12 +43,12 @@ func (s *Server) evalItem(params *protocol.ExecuteCommandParams) (interface{}, e return nil, fmt.Errorf("failed to unmarshal position: %v", err) } - doc, err := s.cache.get(protocol.URIFromPath(fileName)) + doc, err := s.cache.Get(protocol.URIFromPath(fileName)) if err != nil { return nil, utils.LogErrorf("evalItem: %s: %w", errorRetrievingDocument, err) } - stack, err := processing.FindNodeByPosition(doc.ast, position.ProtocolToAST(p)) + stack, err := processing.FindNodeByPosition(doc.AST, position.ProtocolToAST(p)) if err != nil { return nil, err } diff --git a/pkg/server/formatting.go b/pkg/server/formatting.go index fa3cd21..019ced9 100644 --- a/pkg/server/formatting.go +++ b/pkg/server/formatting.go @@ -12,18 +12,18 @@ import ( ) func (s *Server) Formatting(_ context.Context, params *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error) { - doc, err := s.cache.get(params.TextDocument.URI) + doc, err := s.cache.Get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Formatting: %s: %w", errorRetrievingDocument, err) } - formatted, err := formatter.Format(params.TextDocument.URI.SpanURI().Filename(), doc.item.Text, s.configuration.FormattingOptions) + formatted, err := formatter.Format(params.TextDocument.URI.SpanURI().Filename(), doc.Item.Text, s.configuration.FormattingOptions) if err != nil { log.Errorf("error formatting document: %v", err) return nil, nil } - return getTextEdits(doc.item.Text, formatted), nil + return getTextEdits(doc.Item.Text, formatted), nil } func getTextEdits(before, after string) []protocol.TextEdit { diff --git a/pkg/server/hover.go b/pkg/server/hover.go index f3e95cc..f3b4a4f 100644 --- a/pkg/server/hover.go +++ b/pkg/server/hover.go @@ -14,18 +14,18 @@ import ( ) func (s *Server) Hover(_ context.Context, params *protocol.HoverParams) (*protocol.Hover, error) { - doc, err := s.cache.get(params.TextDocument.URI) + doc, err := s.cache.Get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("Hover: %s: %w", errorRetrievingDocument, err) } - if doc.err != nil { + if doc.Err != nil { // Hover triggers often. Throwing an error on each request is noisy log.Errorf("Hover: %s", errorParsingDocument) return nil, nil } - stack, err := processing.FindNodeByPosition(doc.ast, position.ProtocolToAST(params.Position)) + stack, err := processing.FindNodeByPosition(doc.AST, position.ProtocolToAST(params.Position)) if err != nil { return nil, err } @@ -41,7 +41,7 @@ func (s *Server) Hover(_ context.Context, params *protocol.HoverParams) (*protoc _, isVar := node.(*ast.Var) lineIndex := uint32(node.Loc().Begin.Line) - 1 startIndex := uint32(node.Loc().Begin.Column) - 1 - line := strings.Split(doc.item.Text, "\n")[lineIndex] + line := strings.Split(doc.Item.Text, "\n")[lineIndex] if (isIndex || isVar) && strings.HasPrefix(line[startIndex:], "std") { functionNameIndex := startIndex + 4 if functionNameIndex < uint32(len(line)) { @@ -67,7 +67,7 @@ func (s *Server) Hover(_ context.Context, params *protocol.HoverParams) (*protoc definitionParams := &protocol.DefinitionParams{ TextDocumentPositionParams: params.TextDocumentPositionParams, } - definitions, err := findDefinition(doc.ast, definitionParams, s.getVM(doc.item.URI.SpanURI().Filename())) + definitions, err := s.findDefinition(doc.AST, definitionParams, s.getVM(doc.Item.URI.SpanURI().Filename())) if err != nil { log.Debugf("Hover: error finding definition: %s", err) return nil, nil @@ -89,7 +89,7 @@ func (s *Server) Hover(_ context.Context, params *protocol.HoverParams) (*protoc contentBuilder.WriteString(fmt.Sprintf("## `%s`\n", header)) } - targetContent, err := s.cache.getContents(def.TargetURI, def.TargetRange) + targetContent, err := s.cache.GetContents(def.TargetURI, def.TargetRange) if err != nil { log.Debugf("Hover: error reading target content: %s", err) return nil, nil diff --git a/pkg/server/server.go b/pkg/server/server.go index abaf1cb..a4336a8 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -4,9 +4,11 @@ import ( "context" "path/filepath" "strings" + "sync" "github.com/google/go-jsonnet" "github.com/google/go-jsonnet/ast" + "github.com/grafana/jsonnet-language-server/pkg/cache" "github.com/grafana/jsonnet-language-server/pkg/stdlib" "github.com/grafana/jsonnet-language-server/pkg/utils" tankaJsonnet "github.com/grafana/tanka/pkg/jsonnet/implementations/goimpl" @@ -25,9 +27,11 @@ func NewServer(name, version string, client protocol.ClientCloser, configuration server := &Server{ name: name, version: version, - cache: newCache(), + cache: cache.New(), client: client, configuration: configuration, + + diagQueue: make(map[protocol.DocumentURI]struct{}), } return server @@ -38,10 +42,15 @@ type Server struct { name, version string stdlib []stdlib.Function - cache *cache + cache *cache.Cache client protocol.ClientCloser configuration Configuration + + // Diagnostics + diagMutex sync.RWMutex + diagQueue map[protocol.DocumentURI]struct{} + diagRunning sync.Map } func (s *Server) getVM(path string) *jsonnet.VM { @@ -69,29 +78,29 @@ func (s *Server) getVM(path string) *jsonnet.VM { func (s *Server) DidChange(_ context.Context, params *protocol.DidChangeTextDocumentParams) error { defer s.queueDiagnostics(params.TextDocument.URI) - doc, err := s.cache.get(params.TextDocument.URI) + doc, err := s.cache.Get(params.TextDocument.URI) if err != nil { return utils.LogErrorf("DidChange: %s: %w", errorRetrievingDocument, err) } - if params.TextDocument.Version > doc.item.Version && len(params.ContentChanges) != 0 { - oldText := doc.item.Text - doc.item.Text = params.ContentChanges[len(params.ContentChanges)-1].Text + if params.TextDocument.Version > doc.Item.Version && len(params.ContentChanges) != 0 { + oldText := doc.Item.Text + doc.Item.Text = params.ContentChanges[len(params.ContentChanges)-1].Text var ast ast.Node - ast, doc.err = jsonnet.SnippetToAST(doc.item.URI.SpanURI().Filename(), doc.item.Text) + ast, doc.Err = jsonnet.SnippetToAST(doc.Item.URI.SpanURI().Filename(), doc.Item.Text) // If the AST parsed correctly, set it on the document // Otherwise, keep the old AST, and find all the lines that have changed since last AST if ast != nil { - doc.ast = ast - doc.linesChangedSinceAST = map[int]bool{} + doc.AST = ast + doc.LinesChangedSinceAST = map[int]bool{} } else { splitOldText := strings.Split(oldText, "\n") - splitNewText := strings.Split(doc.item.Text, "\n") + splitNewText := strings.Split(doc.Item.Text, "\n") for index, oldLine := range splitOldText { if index >= len(splitNewText) || oldLine != splitNewText[index] { - doc.linesChangedSinceAST[index] = true + doc.LinesChangedSinceAST[index] = true } } } @@ -102,11 +111,11 @@ func (s *Server) DidChange(_ context.Context, params *protocol.DidChangeTextDocu func (s *Server) DidOpen(_ context.Context, params *protocol.DidOpenTextDocumentParams) (err error) { defer s.queueDiagnostics(params.TextDocument.URI) - doc := &document{item: params.TextDocument, linesChangedSinceAST: map[int]bool{}} + doc := &cache.Document{Item: params.TextDocument, LinesChangedSinceAST: map[int]bool{}} if params.TextDocument.Text != "" { - doc.ast, doc.err = jsonnet.SnippetToAST(params.TextDocument.URI.SpanURI().Filename(), params.TextDocument.Text) + doc.AST, doc.Err = jsonnet.SnippetToAST(params.TextDocument.URI.SpanURI().Filename(), params.TextDocument.Text) } - return s.cache.put(doc) + return s.cache.Put(doc) } func (s *Server) Initialize(_ context.Context, _ *protocol.ParamInitialize) (*protocol.InitializeResult, error) { diff --git a/pkg/server/symbols.go b/pkg/server/symbols.go index 4338c92..096f5bf 100644 --- a/pkg/server/symbols.go +++ b/pkg/server/symbols.go @@ -15,19 +15,19 @@ import ( ) func (s *Server) DocumentSymbol(_ context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) { - doc, err := s.cache.get(params.TextDocument.URI) + doc, err := s.cache.Get(params.TextDocument.URI) if err != nil { return nil, utils.LogErrorf("DocumentSymbol: %s: %w", errorRetrievingDocument, err) } - if doc.err != nil { + if doc.Err != nil { // Returning an error too often can lead to the client killing the language server // Logging the errors is sufficient log.Errorf("DocumentSymbol: %s", errorParsingDocument) return nil, nil } - symbols := buildDocumentSymbols(doc.ast) + symbols := buildDocumentSymbols(doc.AST) result := make([]interface{}, len(symbols)) for i, symbol := range symbols { From b2443cf9b5ebacbc0e460ad84ee0f7c1ab1bd7f6 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Sun, 25 Aug 2024 22:02:44 -0400 Subject: [PATCH 092/124] Invalidate the whole "top level objects" cache (#155) ... whenever files are changed. The reason for that is that it's hard to figure out where imports actually lead, so invalidations sometimes won't happen, leading to invalid language server suggestions --- pkg/cache/cache.go | 9 +++------ pkg/server/server.go | 3 ++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go index f402aea..992ef1b 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "os" - "path/filepath" "strings" "sync" @@ -56,11 +55,9 @@ func (c *Cache) Put(new *Document) error { c.docs[uri] = new // Invalidate the TopLevelObject cache - for k := range c.topLevelObjects { - if strings.HasSuffix(k, filepath.Base(uri.SpanURI().Filename())) { - delete(c.topLevelObjects, k) - } - } + // We can't easily invalidate the cache for a single file (hard to figure out where the import actually leads), + // so we just clear the whole thing + c.topLevelObjects = make(map[string][]*ast.DesugaredObject) return nil } diff --git a/pkg/server/server.go b/pkg/server/server.go index a4336a8..9e6b2e6 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -105,7 +105,8 @@ func (s *Server) DidChange(_ context.Context, params *protocol.DidChangeTextDocu } } } - return nil + + return s.cache.Put(doc) } func (s *Server) DidOpen(_ context.Context, params *protocol.DidOpenTextDocumentParams) (err error) { From 27a600220a4e5ff3ab27ef54bd7e7b8488ce23f5 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Sun, 8 Sep 2024 16:43:29 -0400 Subject: [PATCH 093/124] Support builder pattern better (#156) * Support builder pattern better Found some cases where go-to-definition was not working properly * Fix linting --- pkg/ast/processing/find_field.go | 54 +++++++++++-------- pkg/server/definition_test.go | 15 ++++++ .../testdata/goto-builder-pattern.jsonnet | 23 ++++++++ 3 files changed, 71 insertions(+), 21 deletions(-) create mode 100644 pkg/server/testdata/goto-builder-pattern.jsonnet diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index 0fe3627..a35a38b 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -17,7 +17,7 @@ func (p *Processor) FindRangesFromIndexList(stack *nodestack.NodeStack, indexLis switch { case start == "super": // Find the LHS desugared object of a binary node - lhsObject, err := findLHSDesugaredObject(stack) + lhsObject, err := p.findLHSDesugaredObject(stack) if err != nil { return nil, err } @@ -68,16 +68,13 @@ func (p *Processor) FindRangesFromIndexList(stack *nodestack.NodeStack, indexLis case *ast.Import: filename := bodyNode.File.Value foundDesugaredObjects = p.FindTopLevelObjectsInFile(filename, "") - case *ast.Index, *ast.Apply: tempStack := nodestack.NewNodeStack(bodyNode) indexList = append(tempStack.BuildIndexList(), indexList...) return p.FindRangesFromIndexList(stack, indexList, partialMatchFields) case *ast.Function: // If the function's body is an object, it means we can look for indexes within the function - if funcBody := findChildDesugaredObject(bodyNode.Body); funcBody != nil { - foundDesugaredObjects = append(foundDesugaredObjects, funcBody) - } + foundDesugaredObjects = append(foundDesugaredObjects, p.findChildDesugaredObjects(bodyNode.Body)...) default: return nil, fmt.Errorf("unexpected node type when finding bind for '%s': %s", start, reflect.TypeOf(bind.Body)) } @@ -119,6 +116,8 @@ func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.De for i < len(fieldNodes) { fieldNode := fieldNodes[i] switch fieldNode := fieldNode.(type) { + default: + desugaredObjs = append(desugaredObjs, p.findChildDesugaredObjects(fieldNode)...) case *ast.Apply: // Add the target of the Apply to the list of field nodes to look for // The target is a function and will be found by FindVarReference on the next loop @@ -130,13 +129,12 @@ func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.De } // If the reference is an object, add it directly to the list of objects to look in // Otherwise, add it back to the list for further processing - if varReferenceObj := findChildDesugaredObject(varReference); varReferenceObj != nil { - desugaredObjs = append(desugaredObjs, varReferenceObj) + if varReferenceObjs := p.findChildDesugaredObjects(varReference); len(varReferenceObjs) > 0 { + desugaredObjs = append(desugaredObjs, varReferenceObjs...) } else { fieldNodes = append(fieldNodes, varReference) } - case *ast.DesugaredObject: - desugaredObjs = append(desugaredObjs, fieldNode) + case *ast.Index: // if we're trying to find the a definition which is an index, // we need to find it from itself, meaning that we need to create a stack @@ -153,11 +151,27 @@ func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.De fieldNodes = append(fieldNodes, fieldNode.Target) case *ast.Function: - desugaredObjs = append(desugaredObjs, findChildDesugaredObject(fieldNode.Body)) + fieldNodes = append(fieldNodes, fieldNode.Body) case *ast.Import: filename := fieldNode.File.Value newObjs := p.FindTopLevelObjectsInFile(filename, string(fieldNode.Loc().File.DiagnosticFileName)) desugaredObjs = append(desugaredObjs, newObjs...) + case *ast.Binary: + fieldNodes = append(fieldNodes, flattenBinary(fieldNode)...) + case *ast.Self: + filename := fieldNode.LocRange.FileName + rootNode, _, _ := p.vm.ImportAST("", filename) + tmpStack, err := FindNodeByPosition(rootNode, fieldNode.LocRange.Begin) + if err != nil { + return nil, err + } + for !tmpStack.IsEmpty() { + node := tmpStack.Pop() + if castNode, ok := node.(*ast.DesugaredObject); ok { + desugaredObjs = append(desugaredObjs, castNode) + break + } + } } i++ } @@ -234,17 +248,15 @@ func findObjectFieldsInObject(objectNode *ast.DesugaredObject, index string, par return matchingFields } -func findChildDesugaredObject(node ast.Node) *ast.DesugaredObject { +func (p *Processor) findChildDesugaredObjects(node ast.Node) []*ast.DesugaredObject { switch node := node.(type) { case *ast.DesugaredObject: - return node + return []*ast.DesugaredObject{node} case *ast.Binary: - if res := findChildDesugaredObject(node.Left); res != nil { - return res - } - if res := findChildDesugaredObject(node.Right); res != nil { - return res - } + var res []*ast.DesugaredObject + res = append(res, p.findChildDesugaredObjects(node.Left)...) + res = append(res, p.findChildDesugaredObjects(node.Right)...) + return res } return nil } @@ -264,7 +276,7 @@ func (p *Processor) FindVarReference(varNode *ast.Var) (ast.Node, error) { return bind.Body, nil } -func findLHSDesugaredObject(stack *nodestack.NodeStack) (*ast.DesugaredObject, error) { +func (p *Processor) findLHSDesugaredObject(stack *nodestack.NodeStack) (*ast.DesugaredObject, error) { for !stack.IsEmpty() { curr := stack.Pop() switch curr := curr.(type) { @@ -276,8 +288,8 @@ func findLHSDesugaredObject(stack *nodestack.NodeStack) (*ast.DesugaredObject, e case *ast.Var: bind := FindBindByIDViaStack(stack, lhsNode.Id) if bind != nil { - if bindBody := findChildDesugaredObject(bind.Body); bindBody != nil { - return bindBody, nil + if binds := p.findChildDesugaredObjects(bind.Body); len(binds) > 0 { + return binds[0], nil } } } diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 5789aa3..724ef78 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -973,6 +973,21 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "goto builder pattern function", + filename: "testdata/goto-builder-pattern.jsonnet", + position: protocol.Position{Line: 21, Character: 62}, + results: []definitionResult{{ + targetRange: protocol.Range{ + Start: protocol.Position{Line: 16, Character: 6}, + End: protocol.Position{Line: 16, Character: 51}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 16, Character: 6}, + End: protocol.Position{Line: 16, Character: 11}, + }, + }}, + }, } func TestDefinition(t *testing.T) { diff --git a/pkg/server/testdata/goto-builder-pattern.jsonnet b/pkg/server/testdata/goto-builder-pattern.jsonnet new file mode 100644 index 0000000..a5d297c --- /dev/null +++ b/pkg/server/testdata/goto-builder-pattern.jsonnet @@ -0,0 +1,23 @@ +{ + util:: { + new():: { + local this = self, + + attr: 'unset1', + attr2: 'unset2', + + withAttr(v):: self { // Intentionally using `self` instead of `this` + attr: v, + }, + + withAttr2(v):: this { // Intentionally using `this` instead of `self` + attr2: v, + }, + + build():: '%s + %s' % [self.attr, this.attr2], + }, + }, + + + test: self.util.new().withAttr('hello').withAttr2('world').build(), +} From 698917fef48eba24db9eba38d1d0bc474db97378 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Sun, 8 Sep 2024 20:56:07 -0400 Subject: [PATCH 094/124] Extract `findSelfObject` (#157) * Extract `findSelfObject` This is used twice and it's complex enough that it can be extracted * Simpler `unpackFieldNodes` --- pkg/ast/processing/find_field.go | 55 +++++++++++++------------------- 1 file changed, 22 insertions(+), 33 deletions(-) diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index a35a38b..5d5d5b7 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -107,11 +107,7 @@ func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.De return ranges, nil } - fieldNodes, err := p.unpackFieldNodes(foundFields) - if err != nil { - return nil, err - } - + fieldNodes := p.unpackFieldNodes(foundFields) i := 0 for i < len(fieldNodes) { fieldNode := fieldNodes[i] @@ -145,7 +141,7 @@ func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.De additionalIndexList := append(nodestack.NewNodeStack(fieldNode).BuildIndexList(), indexList...) result, _ := p.FindRangesFromIndexList(stack, additionalIndexList, partialMatchFields) if len(result) > 0 { - return result, err + return result, nil } } @@ -159,19 +155,7 @@ func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.De case *ast.Binary: fieldNodes = append(fieldNodes, flattenBinary(fieldNode)...) case *ast.Self: - filename := fieldNode.LocRange.FileName - rootNode, _, _ := p.vm.ImportAST("", filename) - tmpStack, err := FindNodeByPosition(rootNode, fieldNode.LocRange.Begin) - if err != nil { - return nil, err - } - for !tmpStack.IsEmpty() { - node := tmpStack.Pop() - if castNode, ok := node.(*ast.DesugaredObject); ok { - desugaredObjs = append(desugaredObjs, castNode) - break - } - } + desugaredObjs = append(desugaredObjs, p.findSelfObject(fieldNode)) } i++ } @@ -190,23 +174,12 @@ func flattenBinary(node ast.Node) []ast.Node { // unpackFieldNodes extracts nodes from fields // - Binary nodes. A field could be either in the left or right side of the binary // - Self nodes. We want the object self refers to, not the self node itself -func (p *Processor) unpackFieldNodes(fields []*ast.DesugaredObjectField) ([]ast.Node, error) { +func (p *Processor) unpackFieldNodes(fields []*ast.DesugaredObjectField) []ast.Node { var fieldNodes []ast.Node for _, foundField := range fields { switch fieldNode := foundField.Body.(type) { case *ast.Self: - filename := fieldNode.LocRange.FileName - rootNode, _, _ := p.vm.ImportAST("", filename) - tmpStack, err := FindNodeByPosition(rootNode, fieldNode.LocRange.Begin) - if err != nil { - return nil, err - } - for !tmpStack.IsEmpty() { - node := tmpStack.Pop() - if _, ok := node.(*ast.DesugaredObject); ok { - fieldNodes = append(fieldNodes, node) - } - } + fieldNodes = append(fieldNodes, p.findSelfObject(fieldNode)) case *ast.Binary: fieldNodes = append(fieldNodes, flattenBinary(fieldNode)...) default: @@ -214,7 +187,7 @@ func (p *Processor) unpackFieldNodes(fields []*ast.DesugaredObjectField) ([]ast. } } - return fieldNodes, nil + return fieldNodes } func findObjectFieldsInObjects(objectNodes []*ast.DesugaredObject, index string, partialMatchFields bool) []*ast.DesugaredObjectField { @@ -304,3 +277,19 @@ func (p *Processor) findLHSDesugaredObject(stack *nodestack.NodeStack) (*ast.Des } return nil, fmt.Errorf("could not find a lhs object") } + +func (p *Processor) findSelfObject(self *ast.Self) *ast.DesugaredObject { + filename := self.LocRange.FileName + rootNode, _, _ := p.vm.ImportAST("", filename) + tmpStack, err := FindNodeByPosition(rootNode, self.LocRange.Begin) + if err != nil { + return nil + } + for !tmpStack.IsEmpty() { + node := tmpStack.Pop() + if castNode, ok := node.(*ast.DesugaredObject); ok { + return castNode + } + } + return nil +} From f678aec0771061ca0de637ce87a52614839591a9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:30:21 +0000 Subject: [PATCH 095/124] Bump actions/checkout from 4.1.7 to 4.2.0 (#159) --- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/jsonnetfmt.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 4b9c204..b43f0dc 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,7 +11,7 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: golangci-lint uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 with: diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index 59cd4d8..c7b4bb0 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -8,7 +8,7 @@ jobs: jsonnetfmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: go.mod diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58387d8..efd53b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: go.mod diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ddf8a2..f2840bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: go.mod From 4aea2ea7eb92e4675f81b1b45d43cf540da63c6c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:53:01 +0000 Subject: [PATCH 096/124] Bump github.com/grafana/tanka from 0.28.0 to 0.28.2 (#158) --- go.mod | 22 ++++++++++---------- go.sum | 63 ++++++++++++++++++++++++++-------------------------------- 2 files changed, 39 insertions(+), 46 deletions(-) diff --git a/go.mod b/go.mod index de0aec4..c5937a9 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.22.5 require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.28.0 + github.com/grafana/tanka v0.28.2 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -16,29 +16,29 @@ require ( ) require ( + dario.cat/mergo v1.0.1 // indirect github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver/v3 v3.2.0 // indirect - github.com/Masterminds/sprig/v3 v3.2.3 // indirect + github.com/Masterminds/semver/v3 v3.3.0 // indirect + github.com/Masterminds/sprig/v3 v3.3.0 // indirect github.com/PuerkitoBio/goquery v1.9.2 // indirect github.com/andybalholm/cascadia v1.3.2 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/fatih/color v1.17.0 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/huandu/xstrings v1.3.3 // indirect - github.com/imdario/mergo v0.3.12 // indirect + github.com/huandu/xstrings v1.5.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/rs/zerolog v1.33.0 // indirect - github.com/shopspring/decimal v1.3.1 // indirect - github.com/spf13/cast v1.4.1 // indirect + github.com/shopspring/decimal v1.4.0 // indirect + github.com/spf13/cast v1.7.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - golang.org/x/crypto v0.24.0 // indirect + golang.org/x/crypto v0.26.0 // indirect golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.22.0 // indirect + golang.org/x/sys v0.23.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 03d1485..ae728eb 100644 --- a/go.sum +++ b/go.sum @@ -1,21 +1,26 @@ +dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= +dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= github.com/JohannesKaufmann/html-to-markdown v1.6.0 h1:04VXMiE50YYfCfLboJCLcgqF5x+rHJnb1ssNmqpLH/k= github.com/JohannesKaufmann/html-to-markdown v1.6.0/go.mod h1:NUI78lGg/a7vpEJTz/0uOcYMaibytE4BUOQS8k78yPQ= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= -github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= -github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= -github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= +github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= +github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= +github.com/Masterminds/sprig/v3 v3.3.0 h1:mQh0Yrg1XPo6vjYXgtf5OtijNAKJRNcTdOOGZe3tPhs= +github.com/Masterminds/sprig/v3 v3.3.0/go.mod h1:Zy1iXRYNqNLUolqCpL4uhk6SHUMAOSCzdgBfDb35Lz0= github.com/PuerkitoBio/goquery v1.9.2 h1:4/wZksC3KgkQw7SQgkKotmKljk0M6V8TUvA8Wb4yPeE= github.com/PuerkitoBio/goquery v1.9.2/go.mod h1:GHPCaP0ODyyxqcNoFGYlAprUFH81NuRPd0GX3Zu2Mvk= github.com/andybalholm/cascadia v1.3.2 h1:3Xi6Dw5lHF15JtdcmAHD3i1+T8plmv7BQ/nsViSLyss= github.com/andybalholm/cascadia v1.3.2/go.mod h1:7gtRlve5FxPPgIgX36uWBX58OdBsSS6lUvCFb+h7KvU= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -24,24 +29,21 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.28.0 h1:t5TmNA7O4shCYtl6Zeqjj6LL2OAxffnEfcVlv3JjSg4= -github.com/grafana/tanka v0.28.0/go.mod h1:Zi9P/RnYPWC+aK5UQMLMZiku6jcofT7Iw3BrGQldZpQ= +github.com/grafana/tanka v0.28.2 h1:EM1NQKUwzRDSwVrF3S0E7B+muEbjndeAvTSHpXxaAOI= +github.com/grafana/tanka v0.28.2/go.mod h1:YaWCH4i+OD8/w91TA8nmT8H2TKLzD52MY0fHAc/DDXc= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4= -github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= -github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= +github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= +github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 h1:t0A10MAY8Z3eeBIBzlzrPpdjsag6Biuxq8iMCHmdGU8= github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2/go.mod h1:Hp8QDOEcdn4aDZ+DFTda+smIB0b5MvII4Q0Jo0y2VkA= github.com/karrick/godirwalk v1.17.0 h1:b4kY7nqDdioR/6qnbHQyDvmA17u5G1cZ6J+CZXwSWoI= github.com/karrick/godirwalk v1.17.0/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -52,19 +54,20 @@ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/ github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= @@ -73,21 +76,17 @@ github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvK github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= -github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= -github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= +github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= -github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= +github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= @@ -96,18 +95,16 @@ github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U= github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= -golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= -golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= +golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= @@ -125,7 +122,6 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -134,11 +130,10 @@ golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= +golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= @@ -148,7 +143,6 @@ golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= @@ -165,7 +159,6 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 22e738d6769845a7c8174eb9b0a831332f7b5e94 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:41:26 +0000 Subject: [PATCH 097/124] Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 (#162) --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index b43f0dc..d192087 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,6 +13,6 @@ jobs: steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: golangci-lint - uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 + uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 with: version: latest From 189ec8f721ec978a2f0f059a246ec197cd46977d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:45:27 +0000 Subject: [PATCH 098/124] Bump actions/checkout from 4.2.0 to 4.2.1 (#161) --- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/jsonnetfmt.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index d192087..feefe20 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,7 +11,7 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - name: golangci-lint uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 with: diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index c7b4bb0..7594027 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -8,7 +8,7 @@ jobs: jsonnetfmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: go.mod diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efd53b8..6554f9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: go.mod diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f2840bc..469dc5b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: go.mod From 3470edc3a539aa57ed40339ebe8393e2585b128c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:22:56 +0000 Subject: [PATCH 099/124] Bump actions/setup-go from 5.0.2 to 5.1.0 (#165) --- .github/workflows/jsonnetfmt.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index 7594027..53e4aa2 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: go.mod - name: Format diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6554f9b..efaeff9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: go.mod - uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 469dc5b..9aaae90 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: go.mod - run: go test ./... -bench=. -benchmem From f9c3eb50e6fcee1c3beef75ea4cbcde2b31e5063 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:26:30 +0000 Subject: [PATCH 100/124] Bump actions/checkout from 4.2.1 to 4.2.2 (#164) --- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/jsonnetfmt.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index feefe20..aaaf7df 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,7 +11,7 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: golangci-lint uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 with: diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index 53e4aa2..44b38e5 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -8,7 +8,7 @@ jobs: jsonnetfmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: go.mod diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index efaeff9..b3b1463 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: go.mod diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9aaae90..0b24bc5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: go.mod From c24c69bd5da41635d92af9938c8db4af7e45d42c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 08:34:25 -0400 Subject: [PATCH 101/124] Bump github.com/grafana/tanka from 0.28.2 to 0.28.4 (#163) * Bump github.com/grafana/tanka from 0.28.2 to 0.28.4 Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.28.2 to 0.28.4. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.28.2...v0.28.4) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * go mod tidy --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Duchesne --- go.mod | 8 ++++---- go.sum | 10 ++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index c5937a9..9dcc4e8 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,13 @@ module github.com/grafana/jsonnet-language-server -go 1.22.4 +go 1.23.0 -toolchain go1.22.5 +toolchain go1.23.2 require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.28.2 + github.com/grafana/tanka v0.28.4 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -38,7 +38,7 @@ require ( github.com/stretchr/objx v0.5.2 // indirect golang.org/x/crypto v0.26.0 // indirect golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.23.0 // indirect + golang.org/x/sys v0.26.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index ae728eb..53043ef 100644 --- a/go.sum +++ b/go.sum @@ -31,16 +31,14 @@ github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33u github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.28.2 h1:EM1NQKUwzRDSwVrF3S0E7B+muEbjndeAvTSHpXxaAOI= -github.com/grafana/tanka v0.28.2/go.mod h1:YaWCH4i+OD8/w91TA8nmT8H2TKLzD52MY0fHAc/DDXc= +github.com/grafana/tanka v0.28.4 h1:3aSutsqse0h52o2qoYo70neVBpgge8fw4boIFe7h8tE= +github.com/grafana/tanka v0.28.4/go.mod h1:9ozQODaMiE7rhnqNFnNKmSUyMo2238PchpCzbFit108= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 h1:t0A10MAY8Z3eeBIBzlzrPpdjsag6Biuxq8iMCHmdGU8= github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2/go.mod h1:Hp8QDOEcdn4aDZ+DFTda+smIB0b5MvII4Q0Jo0y2VkA= -github.com/karrick/godirwalk v1.17.0 h1:b4kY7nqDdioR/6qnbHQyDvmA17u5G1cZ6J+CZXwSWoI= -github.com/karrick/godirwalk v1.17.0/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -130,8 +128,8 @@ golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= -golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= From 73d430d9b15673ba08dd3e9f25a4498c1990073d Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 11 Dec 2024 09:16:03 -0500 Subject: [PATCH 102/124] Fix linting (#173) This is broken on all PRs --- pkg/cache/cache.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go index 992ef1b..804a976 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -42,17 +42,17 @@ func New() *Cache { } // Put adds or replaces a document in the cache. -func (c *Cache) Put(new *Document) error { +func (c *Cache) Put(doc *Document) error { c.mu.Lock() defer c.mu.Unlock() - uri := new.Item.URI + uri := doc.Item.URI if old, ok := c.docs[uri]; ok { - if old.Item.Version > new.Item.Version { + if old.Item.Version > doc.Item.Version { return errors.New("newer version of the document is already in the cache") } } - c.docs[uri] = new + c.docs[uri] = doc // Invalidate the TopLevelObject cache // We can't easily invalidate the cache for a single file (hard to figure out where the import actually leads), From c4f28ddeabe91cc1fae67ec9c9e0a403a4b6c5d8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:23:36 -0500 Subject: [PATCH 103/124] Bump github.com/grafana/tanka from 0.28.4 to 0.30.2 (#172) Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.28.4 to 0.30.2. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.28.4...v0.30.2) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 8 ++++---- go.sum | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 9dcc4e8..d0a7fec 100644 --- a/go.mod +++ b/go.mod @@ -7,12 +7,12 @@ toolchain go1.23.2 require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.28.4 + github.com/grafana/tanka v0.30.2 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 github.com/sirupsen/logrus v1.9.3 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 ) require ( @@ -23,7 +23,7 @@ require ( github.com/PuerkitoBio/goquery v1.9.2 // indirect github.com/andybalholm/cascadia v1.3.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/fatih/color v1.17.0 // indirect + github.com/fatih/color v1.18.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/huandu/xstrings v1.5.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect @@ -38,7 +38,7 @@ require ( github.com/stretchr/objx v0.5.2 // indirect golang.org/x/crypto v0.26.0 // indirect golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.27.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 53043ef..703840f 100644 --- a/go.sum +++ b/go.sum @@ -17,8 +17,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= -github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= +github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= +github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= @@ -31,8 +31,8 @@ github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33u github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.28.4 h1:3aSutsqse0h52o2qoYo70neVBpgge8fw4boIFe7h8tE= -github.com/grafana/tanka v0.28.4/go.mod h1:9ozQODaMiE7rhnqNFnNKmSUyMo2238PchpCzbFit108= +github.com/grafana/tanka v0.30.2 h1:xmYILUKylkWFdRme6NRXBwECLTYtFuYdf47Rx2mgPPQ= +github.com/grafana/tanka v0.30.2/go.mod h1:3Bag6AcUtvTk24nO2OwG0j8efX9pW4qcuXM2pThdXJw= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= @@ -86,8 +86,8 @@ github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U= github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= @@ -128,8 +128,8 @@ golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= +golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= From 800931447d91fc68e3c7040743c9b6eb37050801 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:23:45 -0500 Subject: [PATCH 104/124] Bump goreleaser/goreleaser-action from 6.0.0 to 6.1.0 (#169) Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 6.0.0 to 6.1.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/286f3b13b1b49da4ac219696163fb8c1c93e1200...9ed2f89a662bf1735a48bc8557fd212fa902bebf) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3b1463..4a7bde1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: go.mod - - uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 + - uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0 with: version: latest args: release --clean From 0b91f5126cc0511052d88e5a804c1a9f873a10b2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:24:18 -0500 Subject: [PATCH 105/124] Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#171) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.10.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> From f862fe0b9b3584359aff2c620bc5138b6925fcf8 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 11 Dec 2024 09:37:16 -0500 Subject: [PATCH 106/124] Remove `goto-` prefix on testdata files (#174) These files are used for more than just go-to-definition. It's unnecessary --- pkg/server/completion_test.go | 22 +-- pkg/server/definition_test.go | 162 +++++++++--------- pkg/server/hover_test.go | 4 +- pkg/server/symbols_test.go | 8 +- ...-assert-var.jsonnet => assert-var.jsonnet} | 0 ...ic-object.jsonnet => basic-object.jsonnet} | 0 ...attern.jsonnet => builder-pattern.jsonnet} | 0 .../{goto-comment.jsonnet => comment.jsonnet} | 0 ...s.jsonnet => computed-field-names.jsonnet} | 0 ...ollow.jsonnet => dollar-no-follow.jsonnet} | 2 +- ...r-simple.jsonnet => dollar-simple.jsonnet} | 0 ...libsonnet => functions-advanced.libsonnet} | 0 ...unctions.libsonnet => functions.libsonnet} | 0 .../testdata/goto-import-attribute.jsonnet | 2 - .../goto-import-intermediary.libsonnet | 3 - .../testdata/goto-import-nested1.libsonnet | 7 - .../testdata/goto-import-no-obj.libsonnet | 1 - .../testdata/goto-imported-file.jsonnet | 6 - .../goto-infinite-recursion-bug-1.jsonnet | 6 - .../goto-multilevel-library-main.jsonnet | 4 - .../goto-multilevel-library-sub-1.libsonnet | 4 - .../goto-multilevel-library-top.libsonnet | 7 - ...to-nested-import-file-no-inter-obj.jsonnet | 4 - .../goto-nested-imported-file.jsonnet | 4 - .../testdata/goto-root-function.jsonnet | 13 -- pkg/server/testdata/import-attribute.jsonnet | 2 + .../testdata/import-intermediary.libsonnet | 3 + ...ain.jsonnet => import-nested-main.jsonnet} | 2 +- ....libsonnet => import-nested-obj.libsonnet} | 0 pkg/server/testdata/import-nested1.libsonnet | 7 + ...ed2.libsonnet => import-nested2.libsonnet} | 2 +- ...ed3.libsonnet => import-nested3.libsonnet} | 2 +- pkg/server/testdata/import-no-obj.libsonnet | 1 + pkg/server/testdata/imported-file.jsonnet | 6 + .../{goto-indexes.jsonnet => indexes.jsonnet} | 0 .../testdata/infinite-recursion-bug-1.jsonnet | 6 + ...net => infinite-recursion-bug-2.libsonnet} | 2 +- ...net => infinite-recursion-bug-3.libsonnet} | 0 ...ion.libsonnet => local-function.libsonnet} | 0 .../testdata/multilevel-library-main.jsonnet | 4 + ...t => multilevel-library-sub-1.1.libsonnet} | 0 ...t => multilevel-library-sub-1.2.libsonnet} | 0 .../multilevel-library-sub-1.libsonnet | 4 + ...net => multilevel-library-sub-2.libsonnet} | 0 .../testdata/multilevel-library-top.libsonnet | 7 + .../nested-import-file-no-inter-obj.jsonnet | 4 + .../testdata/nested-imported-file.jsonnet | 4 + ...es-base.jsonnet => overrides-base.jsonnet} | 2 +- ...ted.jsonnet => overrides-imported.jsonnet} | 0 ...d2.jsonnet => overrides-imported2.jsonnet} | 0 ...to-overrides.jsonnet => overrides.jsonnet} | 2 +- ....libsonnet => root-function-lib.libsonnet} | 0 pkg/server/testdata/root-function.jsonnet | 13 ++ ...g.jsonnet => self-complex-scoping.jsonnet} | 0 ...in-local.jsonnet => self-in-local.jsonnet} | 0 ...ary.jsonnet => self-within-binary.jsonnet} | 2 +- .../{goto-std.jsonnet => std.jsonnet} | 0 57 files changed, 167 insertions(+), 167 deletions(-) rename pkg/server/testdata/{goto-assert-var.jsonnet => assert-var.jsonnet} (100%) rename pkg/server/testdata/{goto-basic-object.jsonnet => basic-object.jsonnet} (100%) rename pkg/server/testdata/{goto-builder-pattern.jsonnet => builder-pattern.jsonnet} (100%) rename pkg/server/testdata/{goto-comment.jsonnet => comment.jsonnet} (100%) rename pkg/server/testdata/{goto-computed-field-names.jsonnet => computed-field-names.jsonnet} (100%) rename pkg/server/testdata/{goto-dollar-no-follow.jsonnet => dollar-no-follow.jsonnet} (75%) rename pkg/server/testdata/{goto-dollar-simple.jsonnet => dollar-simple.jsonnet} (100%) rename pkg/server/testdata/{goto-functions-advanced.libsonnet => functions-advanced.libsonnet} (100%) rename pkg/server/testdata/{goto-functions.libsonnet => functions.libsonnet} (100%) delete mode 100644 pkg/server/testdata/goto-import-attribute.jsonnet delete mode 100644 pkg/server/testdata/goto-import-intermediary.libsonnet delete mode 100644 pkg/server/testdata/goto-import-nested1.libsonnet delete mode 100644 pkg/server/testdata/goto-import-no-obj.libsonnet delete mode 100644 pkg/server/testdata/goto-imported-file.jsonnet delete mode 100644 pkg/server/testdata/goto-infinite-recursion-bug-1.jsonnet delete mode 100644 pkg/server/testdata/goto-multilevel-library-main.jsonnet delete mode 100644 pkg/server/testdata/goto-multilevel-library-sub-1.libsonnet delete mode 100644 pkg/server/testdata/goto-multilevel-library-top.libsonnet delete mode 100644 pkg/server/testdata/goto-nested-import-file-no-inter-obj.jsonnet delete mode 100644 pkg/server/testdata/goto-nested-imported-file.jsonnet delete mode 100644 pkg/server/testdata/goto-root-function.jsonnet create mode 100644 pkg/server/testdata/import-attribute.jsonnet create mode 100644 pkg/server/testdata/import-intermediary.libsonnet rename pkg/server/testdata/{goto-import-nested-main.jsonnet => import-nested-main.jsonnet} (72%) rename pkg/server/testdata/{goto-import-nested-obj.libsonnet => import-nested-obj.libsonnet} (100%) create mode 100644 pkg/server/testdata/import-nested1.libsonnet rename pkg/server/testdata/{goto-import-nested2.libsonnet => import-nested2.libsonnet} (56%) rename pkg/server/testdata/{goto-import-nested3.libsonnet => import-nested3.libsonnet} (75%) create mode 100644 pkg/server/testdata/import-no-obj.libsonnet create mode 100644 pkg/server/testdata/imported-file.jsonnet rename pkg/server/testdata/{goto-indexes.jsonnet => indexes.jsonnet} (100%) create mode 100644 pkg/server/testdata/infinite-recursion-bug-1.jsonnet rename pkg/server/testdata/{goto-infinite-recursion-bug-2.libsonnet => infinite-recursion-bug-2.libsonnet} (82%) rename pkg/server/testdata/{goto-infinite-recursion-bug-3.libsonnet => infinite-recursion-bug-3.libsonnet} (100%) rename pkg/server/testdata/{goto-local-function.libsonnet => local-function.libsonnet} (100%) create mode 100644 pkg/server/testdata/multilevel-library-main.jsonnet rename pkg/server/testdata/{goto-multilevel-library-sub-1.1.libsonnet => multilevel-library-sub-1.1.libsonnet} (100%) rename pkg/server/testdata/{goto-multilevel-library-sub-1.2.libsonnet => multilevel-library-sub-1.2.libsonnet} (100%) create mode 100644 pkg/server/testdata/multilevel-library-sub-1.libsonnet rename pkg/server/testdata/{goto-multilevel-library-sub-2.libsonnet => multilevel-library-sub-2.libsonnet} (100%) create mode 100644 pkg/server/testdata/multilevel-library-top.libsonnet create mode 100644 pkg/server/testdata/nested-import-file-no-inter-obj.jsonnet create mode 100644 pkg/server/testdata/nested-imported-file.jsonnet rename pkg/server/testdata/{goto-overrides-base.jsonnet => overrides-base.jsonnet} (72%) rename pkg/server/testdata/{goto-overrides-imported.jsonnet => overrides-imported.jsonnet} (100%) rename pkg/server/testdata/{goto-overrides-imported2.jsonnet => overrides-imported2.jsonnet} (100%) rename pkg/server/testdata/{goto-overrides.jsonnet => overrides.jsonnet} (95%) rename pkg/server/testdata/{goto-root-function-lib.libsonnet => root-function-lib.libsonnet} (100%) create mode 100644 pkg/server/testdata/root-function.jsonnet rename pkg/server/testdata/{goto-self-complex-scoping.jsonnet => self-complex-scoping.jsonnet} (100%) rename pkg/server/testdata/{goto-self-in-local.jsonnet => self-in-local.jsonnet} (100%) rename pkg/server/testdata/{goto-self-within-binary.jsonnet => self-within-binary.jsonnet} (52%) rename pkg/server/testdata/{goto-std.jsonnet => std.jsonnet} (100%) diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index f4e5dc3..3aa9181 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -198,7 +198,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete through binary", - filename: "testdata/goto-basic-object.jsonnet", + filename: "testdata/basic-object.jsonnet", replaceString: "bar: 'foo',", replaceByString: "bar: self.", expected: protocol.CompletionList{ @@ -216,7 +216,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete locals", - filename: "testdata/goto-basic-object.jsonnet", + filename: "testdata/basic-object.jsonnet", replaceString: "bar: 'foo',", replaceByString: "bar: ", expected: protocol.CompletionList{ @@ -234,7 +234,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete locals: good prefix", - filename: "testdata/goto-basic-object.jsonnet", + filename: "testdata/basic-object.jsonnet", replaceString: "bar: 'foo',", replaceByString: "bar: some", expected: protocol.CompletionList{ @@ -252,7 +252,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete locals: bad prefix", - filename: "testdata/goto-basic-object.jsonnet", + filename: "testdata/basic-object.jsonnet", replaceString: "bar: 'foo',", replaceByString: "bar: bad", expected: protocol.CompletionList{ @@ -262,7 +262,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete through import", - filename: "testdata/goto-imported-file.jsonnet", + filename: "testdata/imported-file.jsonnet", replaceString: "b: otherfile.bar,", replaceByString: "b: otherfile.", expected: protocol.CompletionList{ @@ -291,7 +291,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete through import with prefix", - filename: "testdata/goto-imported-file.jsonnet", + filename: "testdata/imported-file.jsonnet", replaceString: "b: otherfile.bar,", replaceByString: "b: otherfile.b", expected: protocol.CompletionList{ @@ -311,7 +311,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete dollar sign", - filename: "testdata/goto-dollar-simple.jsonnet", + filename: "testdata/dollar-simple.jsonnet", replaceString: "test: $.attribute,", replaceByString: "test: $.", expected: protocol.CompletionList{ @@ -340,7 +340,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete dollar sign, end with comma", - filename: "testdata/goto-dollar-simple.jsonnet", + filename: "testdata/dollar-simple.jsonnet", replaceString: "test: $.attribute,", replaceByString: "test: $.,", expected: protocol.CompletionList{ @@ -369,7 +369,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete nested imported file", - filename: "testdata/goto-nested-imported-file.jsonnet", + filename: "testdata/nested-imported-file.jsonnet", replaceString: "foo: file.foo,", replaceByString: "foo: file.", expected: protocol.CompletionList{ @@ -398,7 +398,7 @@ func TestCompletion(t *testing.T) { }, { name: "autocomplete multiple fields within local", - filename: "testdata/goto-indexes.jsonnet", + filename: "testdata/indexes.jsonnet", replaceString: "attr: obj.foo", replaceByString: "attr: obj.", expected: protocol.CompletionList{ @@ -665,7 +665,7 @@ func TestCompletion(t *testing.T) { }, { name: "complete attribute from function", - filename: "testdata/goto-functions.libsonnet", + filename: "testdata/functions.libsonnet", replaceString: "test: myfunc(arg1, arg2)", replaceByString: "test: myfunc(arg1, arg2).", expected: protocol.CompletionList{ diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 724ef78..5e5b283 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -165,7 +165,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "test goto local obj field from 'self.attr' from other obj", - filename: "./testdata/goto-indexes.jsonnet", + filename: "./testdata/indexes.jsonnet", position: protocol.Position{Line: 9, Character: 16}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -180,7 +180,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "test goto local object 'obj' via obj index 'obj.foo'", - filename: "./testdata/goto-indexes.jsonnet", + filename: "./testdata/indexes.jsonnet", position: protocol.Position{Line: 8, Character: 13}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -195,10 +195,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "test goto imported file", - filename: "./testdata/goto-imported-file.jsonnet", + filename: "./testdata/imported-file.jsonnet", position: protocol.Position{Line: 0, Character: 22}, results: []definitionResult{{ - targetFilename: "testdata/goto-basic-object.jsonnet", + targetFilename: "testdata/basic-object.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 0, Character: 0}, End: protocol.Position{Line: 0, Character: 0}, @@ -211,10 +211,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "test goto imported file at lhs index", - filename: "./testdata/goto-imported-file.jsonnet", + filename: "./testdata/imported-file.jsonnet", position: protocol.Position{Line: 3, Character: 16}, results: []definitionResult{{ - targetFilename: "testdata/goto-basic-object.jsonnet", + targetFilename: "testdata/basic-object.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 3, Character: 2}, End: protocol.Position{Line: 3, Character: 12}, @@ -227,10 +227,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "test goto imported file at rhs index", - filename: "./testdata/goto-imported-file.jsonnet", + filename: "./testdata/imported-file.jsonnet", position: protocol.Position{Line: 4, Character: 16}, results: []definitionResult{{ - targetFilename: "testdata/goto-basic-object.jsonnet", + targetFilename: "testdata/basic-object.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 5, Character: 2}, End: protocol.Position{Line: 5, Character: 12}, @@ -243,10 +243,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto import index", - filename: "testdata/goto-import-attribute.jsonnet", - position: protocol.Position{Line: 0, Character: 48}, + filename: "testdata/import-attribute.jsonnet", + position: protocol.Position{Line: 0, Character: 43}, results: []definitionResult{{ - targetFilename: "testdata/goto-basic-object.jsonnet", + targetFilename: "testdata/basic-object.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 5, Character: 2}, End: protocol.Position{Line: 5, Character: 12}, @@ -259,10 +259,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto attribute of nested import", - filename: "testdata/goto-nested-imported-file.jsonnet", + filename: "testdata/nested-imported-file.jsonnet", position: protocol.Position{Line: 2, Character: 13}, results: []definitionResult{{ - targetFilename: "testdata/goto-basic-object.jsonnet", + targetFilename: "testdata/basic-object.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 3, Character: 2}, End: protocol.Position{Line: 3, Character: 12}, @@ -275,7 +275,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto dollar attribute", - filename: "testdata/goto-dollar-simple.jsonnet", + filename: "testdata/dollar-simple.jsonnet", position: protocol.Position{Line: 7, Character: 17}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -290,7 +290,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto dollar sub attribute", - filename: "testdata/goto-dollar-simple.jsonnet", + filename: "testdata/dollar-simple.jsonnet", position: protocol.Position{Line: 8, Character: 28}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -305,7 +305,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto dollar doesn't follow to imports", - filename: "testdata/goto-dollar-no-follow.jsonnet", + filename: "testdata/dollar-no-follow.jsonnet", position: protocol.Position{Line: 7, Character: 13}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -320,10 +320,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto attribute of nested import no object intermediary", - filename: "testdata/goto-nested-import-file-no-inter-obj.jsonnet", + filename: "testdata/nested-import-file-no-inter-obj.jsonnet", position: protocol.Position{Line: 2, Character: 13}, results: []definitionResult{{ - targetFilename: "testdata/goto-basic-object.jsonnet", + targetFilename: "testdata/basic-object.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 3, Character: 2}, End: protocol.Position{Line: 3, Character: 12}, @@ -336,10 +336,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto self in import in binary", - filename: "testdata/goto-self-within-binary.jsonnet", + filename: "testdata/self-within-binary.jsonnet", position: protocol.Position{Line: 4, Character: 13}, results: []definitionResult{{ - targetFilename: "testdata/goto-basic-object.jsonnet", + targetFilename: "testdata/basic-object.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 3, Character: 2}, End: protocol.Position{Line: 3, Character: 12}, @@ -352,7 +352,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto self attribute from local", - filename: "testdata/goto-self-in-local.jsonnet", + filename: "testdata/self-in-local.jsonnet", position: protocol.Position{Line: 3, Character: 23}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -367,7 +367,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto function parameter from inside function", - filename: "testdata/goto-functions.libsonnet", + filename: "testdata/functions.libsonnet", position: protocol.Position{Line: 7, Character: 10}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -378,7 +378,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto local func param", - filename: "testdata/goto-local-function.libsonnet", + filename: "testdata/local-function.libsonnet", position: protocol.Position{Line: 2, Character: 25}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -389,7 +389,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto self complex scope 1", - filename: "testdata/goto-self-complex-scoping.jsonnet", + filename: "testdata/self-complex-scoping.jsonnet", position: protocol.Position{Line: 10, Character: 15}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -404,7 +404,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto self complex scope 2", - filename: "testdata/goto-self-complex-scoping.jsonnet", + filename: "testdata/self-complex-scoping.jsonnet", position: protocol.Position{Line: 11, Character: 19}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -419,7 +419,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: clobber string", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 41, Character: 30}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -434,7 +434,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: clobber nested string", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 42, Character: 44}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -449,7 +449,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: clobber map", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 43, Character: 28}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -464,7 +464,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: map (multiple definitions)", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 32, Character: 22}, results: []definitionResult{ { @@ -498,10 +498,10 @@ var definitionTestCases = []definitionTestCase{ }, }, { - targetFilename: "testdata/goto-overrides-base.jsonnet", + targetFilename: "testdata/overrides-base.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 19, Character: 2}, - End: protocol.Position{Line: 19, Character: 94}, + End: protocol.Position{Line: 19, Character: 84}, }, targetSelectionRange: protocol.Range{ Start: protocol.Position{Line: 19, Character: 2}, @@ -509,7 +509,7 @@ var definitionTestCases = []definitionTestCase{ }, }, { - targetFilename: "testdata/goto-overrides-base.jsonnet", + targetFilename: "testdata/overrides-base.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 16, Character: 2}, End: protocol.Position{Line: 16, Character: 24}, @@ -520,7 +520,7 @@ var definitionTestCases = []definitionTestCase{ }, }, { - targetFilename: "testdata/goto-overrides-base.jsonnet", + targetFilename: "testdata/overrides-base.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 1, Character: 2}, End: protocol.Position{Line: 7, Character: 3}, @@ -534,7 +534,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: nested map (multiple definitions)", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 33, Character: 34}, results: []definitionResult{ { @@ -568,7 +568,7 @@ var definitionTestCases = []definitionTestCase{ }, }, { - targetFilename: "testdata/goto-overrides-imported2.jsonnet", + targetFilename: "testdata/overrides-imported2.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 1, Character: 2}, End: protocol.Position{Line: 3, Character: 3}, @@ -579,7 +579,7 @@ var definitionTestCases = []definitionTestCase{ }, }, { - targetFilename: "testdata/goto-overrides-imported.jsonnet", + targetFilename: "testdata/overrides-imported.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 1, Character: 2}, End: protocol.Position{Line: 3, Character: 3}, @@ -590,7 +590,7 @@ var definitionTestCases = []definitionTestCase{ }, }, { - targetFilename: "testdata/goto-overrides-base.jsonnet", + targetFilename: "testdata/overrides-base.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 12, Character: 4}, End: protocol.Position{Line: 14, Character: 5}, @@ -601,7 +601,7 @@ var definitionTestCases = []definitionTestCase{ }, }, { - targetFilename: "testdata/goto-overrides-base.jsonnet", + targetFilename: "testdata/overrides-base.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 3, Character: 4}, End: protocol.Position{Line: 5, Character: 5}, @@ -615,7 +615,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: string carried from super", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 35, Character: 27}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -630,7 +630,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: nested string carried from super", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 36, Character: 44}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -645,10 +645,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: string carried from local", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 37, Character: 57}, results: []definitionResult{{ - targetFilename: "testdata/goto-overrides-base.jsonnet", + targetFilename: "testdata/overrides-base.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 13, Character: 6}, End: protocol.Position{Line: 13, Character: 24}, @@ -661,10 +661,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: string carried from import", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 38, Character: 57}, results: []definitionResult{{ - targetFilename: "testdata/goto-overrides-imported.jsonnet", + targetFilename: "testdata/overrides-imported.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 2, Character: 4}, End: protocol.Position{Line: 2, Character: 23}, @@ -677,10 +677,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto with overrides: string carried from second import", - filename: "testdata/goto-overrides.jsonnet", + filename: "testdata/overrides.jsonnet", position: protocol.Position{Line: 39, Character: 67}, results: []definitionResult{{ - targetFilename: "testdata/goto-overrides-imported2.jsonnet", + targetFilename: "testdata/overrides-imported2.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 2, Character: 4}, End: protocol.Position{Line: 2, Character: 30}, @@ -693,10 +693,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto deeply nested imported attribute", - filename: "testdata/goto-import-nested-main.jsonnet", + filename: "testdata/import-nested-main.jsonnet", position: protocol.Position{Line: 6, Character: 14}, results: []definitionResult{{ - targetFilename: "testdata/goto-import-nested-obj.libsonnet", + targetFilename: "testdata/import-nested-obj.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 2, Character: 2}, End: protocol.Position{Line: 2, Character: 26}, @@ -709,10 +709,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto deeply nested imported attribute through self", - filename: "testdata/goto-import-nested-main.jsonnet", + filename: "testdata/import-nested-main.jsonnet", position: protocol.Position{Line: 7, Character: 27}, results: []definitionResult{{ - targetFilename: "testdata/goto-import-nested-obj.libsonnet", + targetFilename: "testdata/import-nested-obj.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 2, Character: 2}, End: protocol.Position{Line: 2, Character: 26}, @@ -725,10 +725,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto computed field name object field", - filename: "testdata/goto-computed-field-names.jsonnet", + filename: "testdata/computed-field-names.jsonnet", position: protocol.Position{Line: 3, Character: 9}, results: []definitionResult{{ - targetFilename: "testdata/goto-computed-field-names.jsonnet", + targetFilename: "testdata/computed-field-names.jsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 0, Character: 14}, End: protocol.Position{Line: 0, Character: 26}, @@ -741,7 +741,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto field through function", - filename: "testdata/goto-functions-advanced.libsonnet", + filename: "testdata/functions-advanced.libsonnet", position: protocol.Position{Line: 15, Character: 48}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -756,7 +756,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto field through function-created object", - filename: "testdata/goto-functions-advanced.libsonnet", + filename: "testdata/functions-advanced.libsonnet", position: protocol.Position{Line: 16, Character: 54}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -771,7 +771,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto field through builder pattern attribute", - filename: "testdata/goto-functions-advanced.libsonnet", + filename: "testdata/functions-advanced.libsonnet", position: protocol.Position{Line: 17, Character: 67}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -786,7 +786,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto field through mixin attribute", - filename: "testdata/goto-functions-advanced.libsonnet", + filename: "testdata/functions-advanced.libsonnet", position: protocol.Position{Line: 18, Character: 58}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -801,10 +801,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto attribute of root-function library", - filename: "testdata/goto-root-function.jsonnet", - position: protocol.Position{Line: 5, Character: 70}, + filename: "testdata/root-function.jsonnet", + position: protocol.Position{Line: 5, Character: 65}, results: []definitionResult{{ - targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetFilename: "testdata/root-function-lib.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 1, Character: 2}, End: protocol.Position{Line: 1, Character: 22}, @@ -817,10 +817,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto attribute of root-function library through local import", - filename: "testdata/goto-root-function.jsonnet", + filename: "testdata/root-function.jsonnet", position: protocol.Position{Line: 6, Character: 28}, results: []definitionResult{{ - targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetFilename: "testdata/root-function-lib.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 1, Character: 2}, End: protocol.Position{Line: 1, Character: 22}, @@ -833,10 +833,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto attribute of root-function library through local resolved import", - filename: "testdata/goto-root-function.jsonnet", + filename: "testdata/root-function.jsonnet", position: protocol.Position{Line: 7, Character: 36}, results: []definitionResult{{ - targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetFilename: "testdata/root-function-lib.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 1, Character: 2}, End: protocol.Position{Line: 1, Character: 22}, @@ -849,10 +849,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto nested attribute of root-function library", - filename: "testdata/goto-root-function.jsonnet", + filename: "testdata/root-function.jsonnet", position: protocol.Position{Line: 9, Character: 98}, results: []definitionResult{{ - targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetFilename: "testdata/root-function-lib.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 4, Character: 4}, End: protocol.Position{Line: 4, Character: 36}, @@ -865,10 +865,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto nested attribute of root-function library through local import", - filename: "testdata/goto-root-function.jsonnet", + filename: "testdata/root-function.jsonnet", position: protocol.Position{Line: 10, Character: 55}, results: []definitionResult{{ - targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetFilename: "testdata/root-function-lib.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 4, Character: 4}, End: protocol.Position{Line: 4, Character: 36}, @@ -881,10 +881,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto nested attribute of root-function library through local resolved import", - filename: "testdata/goto-root-function.jsonnet", + filename: "testdata/root-function.jsonnet", position: protocol.Position{Line: 11, Character: 64}, results: []definitionResult{{ - targetFilename: "testdata/goto-root-function-lib.libsonnet", + targetFilename: "testdata/root-function-lib.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 4, Character: 4}, End: protocol.Position{Line: 4, Character: 36}, @@ -897,10 +897,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto function nested multiple times in different ways", - filename: "testdata/goto-multilevel-library-main.jsonnet", + filename: "testdata/multilevel-library-main.jsonnet", position: protocol.Position{Line: 2, Character: 34}, results: []definitionResult{{ - targetFilename: "testdata/goto-multilevel-library-sub-1.1.libsonnet", + targetFilename: "testdata/multilevel-library-sub-1.1.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 1, Character: 2}, End: protocol.Position{Line: 1, Character: 28}, @@ -913,10 +913,10 @@ var definitionTestCases = []definitionTestCase{ }, { name: "test fix infinite recursion", - filename: "./testdata/goto-infinite-recursion-bug-1.jsonnet", + filename: "./testdata/infinite-recursion-bug-1.jsonnet", position: protocol.Position{Line: 2, Character: 26}, results: []definitionResult{{ - targetFilename: "testdata/goto-infinite-recursion-bug-3.libsonnet", + targetFilename: "testdata/infinite-recursion-bug-3.libsonnet", targetRange: protocol.Range{ Start: protocol.Position{Line: 5, Character: 10}, End: protocol.Position{Line: 5, Character: 36}, @@ -945,7 +945,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto assert local var", - filename: "testdata/goto-assert-var.jsonnet", + filename: "testdata/assert-var.jsonnet", position: protocol.Position{Line: 3, Character: 11}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -960,7 +960,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto assert self var", - filename: "testdata/goto-assert-var.jsonnet", + filename: "testdata/assert-var.jsonnet", position: protocol.Position{Line: 3, Character: 23}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -975,7 +975,7 @@ var definitionTestCases = []definitionTestCase{ }, { name: "goto builder pattern function", - filename: "testdata/goto-builder-pattern.jsonnet", + filename: "testdata/builder-pattern.jsonnet", position: protocol.Position{Line: 21, Character: 62}, results: []definitionResult{{ targetRange: protocol.Range{ @@ -1064,32 +1064,32 @@ func TestDefinitionFail(t *testing.T) { }{ { name: "goto local keyword fails", - filename: "testdata/goto-basic-object.jsonnet", + filename: "testdata/basic-object.jsonnet", position: protocol.Position{Line: 0, Character: 3}, expected: fmt.Errorf("cannot find definition"), }, { name: "goto index of std fails", - filename: "testdata/goto-std.jsonnet", + filename: "testdata/std.jsonnet", position: protocol.Position{Line: 1, Character: 20}, expected: fmt.Errorf("cannot get definition of std lib"), }, { name: "goto comment fails", - filename: "testdata/goto-comment.jsonnet", + filename: "testdata/comment.jsonnet", position: protocol.Position{Line: 0, Character: 1}, expected: fmt.Errorf("cannot find definition"), }, { name: "goto super fails as no LHS object exists", - filename: "testdata/goto-local-function.libsonnet", + filename: "testdata/local-function.libsonnet", position: protocol.Position{Line: 33, Character: 23}, expected: fmt.Errorf("could not find a lhs object"), }, { name: "goto self fails when out of scope", - filename: "testdata/goto-self-complex-scoping.jsonnet", + filename: "testdata/self-complex-scoping.jsonnet", position: protocol.Position{Line: 3, Character: 18}, expected: fmt.Errorf("field test was not found in ast.DesugaredObject"), }, diff --git a/pkg/server/hover_test.go b/pkg/server/hover_test.go index d1ffea6..2622a77 100644 --- a/pkg/server/hover_test.go +++ b/pkg/server/hover_test.go @@ -254,7 +254,7 @@ func TestHover(t *testing.T) { }{ { name: "hover on nested attribute", - filename: "testdata/goto-indexes.jsonnet", + filename: "testdata/indexes.jsonnet", position: protocol.Position{Line: 9, Character: 16}, expectedContent: protocol.Hover{ Contents: protocol.MarkupContent{ @@ -269,7 +269,7 @@ func TestHover(t *testing.T) { }, { name: "hover on multi-line string", - filename: "testdata/goto-indexes.jsonnet", + filename: "testdata/indexes.jsonnet", position: protocol.Position{Line: 8, Character: 9}, expectedContent: protocol.Hover{ Contents: protocol.MarkupContent{ diff --git a/pkg/server/symbols_test.go b/pkg/server/symbols_test.go index 609d223..ac088ec 100644 --- a/pkg/server/symbols_test.go +++ b/pkg/server/symbols_test.go @@ -17,7 +17,7 @@ func TestSymbols(t *testing.T) { }{ { name: "One field", - filename: "testdata/goto-comment.jsonnet", + filename: "testdata/comment.jsonnet", expectSymbols: []interface{}{ protocol.DocumentSymbol{ Name: "foo", @@ -48,7 +48,7 @@ func TestSymbols(t *testing.T) { }, { name: "local var + two fields from plus root objects", - filename: "testdata/goto-basic-object.jsonnet", + filename: "testdata/basic-object.jsonnet", expectSymbols: []interface{}{ protocol.DocumentSymbol{ Name: "somevar", @@ -129,7 +129,7 @@ func TestSymbols(t *testing.T) { }, { name: "Functions", - filename: "testdata/goto-functions.libsonnet", + filename: "testdata/functions.libsonnet", expectSymbols: []interface{}{ protocol.DocumentSymbol{ Name: "myfunc", @@ -186,7 +186,7 @@ func TestSymbols(t *testing.T) { }, { name: "Computed fields", - filename: "testdata/goto-computed-field-names.jsonnet", + filename: "testdata/computed-field-names.jsonnet", expectSymbols: []interface{}{ protocol.DocumentSymbol{ Name: "obj", diff --git a/pkg/server/testdata/goto-assert-var.jsonnet b/pkg/server/testdata/assert-var.jsonnet similarity index 100% rename from pkg/server/testdata/goto-assert-var.jsonnet rename to pkg/server/testdata/assert-var.jsonnet diff --git a/pkg/server/testdata/goto-basic-object.jsonnet b/pkg/server/testdata/basic-object.jsonnet similarity index 100% rename from pkg/server/testdata/goto-basic-object.jsonnet rename to pkg/server/testdata/basic-object.jsonnet diff --git a/pkg/server/testdata/goto-builder-pattern.jsonnet b/pkg/server/testdata/builder-pattern.jsonnet similarity index 100% rename from pkg/server/testdata/goto-builder-pattern.jsonnet rename to pkg/server/testdata/builder-pattern.jsonnet diff --git a/pkg/server/testdata/goto-comment.jsonnet b/pkg/server/testdata/comment.jsonnet similarity index 100% rename from pkg/server/testdata/goto-comment.jsonnet rename to pkg/server/testdata/comment.jsonnet diff --git a/pkg/server/testdata/goto-computed-field-names.jsonnet b/pkg/server/testdata/computed-field-names.jsonnet similarity index 100% rename from pkg/server/testdata/goto-computed-field-names.jsonnet rename to pkg/server/testdata/computed-field-names.jsonnet diff --git a/pkg/server/testdata/goto-dollar-no-follow.jsonnet b/pkg/server/testdata/dollar-no-follow.jsonnet similarity index 75% rename from pkg/server/testdata/goto-dollar-no-follow.jsonnet rename to pkg/server/testdata/dollar-no-follow.jsonnet index b8fab60..0292799 100644 --- a/pkg/server/testdata/goto-dollar-no-follow.jsonnet +++ b/pkg/server/testdata/dollar-no-follow.jsonnet @@ -1,4 +1,4 @@ -local imported = import 'goto-dollar-simple.jsonnet'; +local imported = import 'dollar-simple.jsonnet'; { test: imported.attribute.sub, diff --git a/pkg/server/testdata/goto-dollar-simple.jsonnet b/pkg/server/testdata/dollar-simple.jsonnet similarity index 100% rename from pkg/server/testdata/goto-dollar-simple.jsonnet rename to pkg/server/testdata/dollar-simple.jsonnet diff --git a/pkg/server/testdata/goto-functions-advanced.libsonnet b/pkg/server/testdata/functions-advanced.libsonnet similarity index 100% rename from pkg/server/testdata/goto-functions-advanced.libsonnet rename to pkg/server/testdata/functions-advanced.libsonnet diff --git a/pkg/server/testdata/goto-functions.libsonnet b/pkg/server/testdata/functions.libsonnet similarity index 100% rename from pkg/server/testdata/goto-functions.libsonnet rename to pkg/server/testdata/functions.libsonnet diff --git a/pkg/server/testdata/goto-import-attribute.jsonnet b/pkg/server/testdata/goto-import-attribute.jsonnet deleted file mode 100644 index 26ea507..0000000 --- a/pkg/server/testdata/goto-import-attribute.jsonnet +++ /dev/null @@ -1,2 +0,0 @@ -local foo = (import 'goto-basic-object.jsonnet').bar; -{} diff --git a/pkg/server/testdata/goto-import-intermediary.libsonnet b/pkg/server/testdata/goto-import-intermediary.libsonnet deleted file mode 100644 index 2c244a5..0000000 --- a/pkg/server/testdata/goto-import-intermediary.libsonnet +++ /dev/null @@ -1,3 +0,0 @@ -{ - otherFile: (import 'goto-basic-object.jsonnet'), -} diff --git a/pkg/server/testdata/goto-import-nested1.libsonnet b/pkg/server/testdata/goto-import-nested1.libsonnet deleted file mode 100644 index f21f850..0000000 --- a/pkg/server/testdata/goto-import-nested1.libsonnet +++ /dev/null @@ -1,7 +0,0 @@ -{ - api:: { - v1:: { - obj:: import 'goto-import-nested-obj.libsonnet', - }, - }, -} diff --git a/pkg/server/testdata/goto-import-no-obj.libsonnet b/pkg/server/testdata/goto-import-no-obj.libsonnet deleted file mode 100644 index 1df53de..0000000 --- a/pkg/server/testdata/goto-import-no-obj.libsonnet +++ /dev/null @@ -1 +0,0 @@ -(import 'goto-basic-object.jsonnet') diff --git a/pkg/server/testdata/goto-imported-file.jsonnet b/pkg/server/testdata/goto-imported-file.jsonnet deleted file mode 100644 index 2ce7fc5..0000000 --- a/pkg/server/testdata/goto-imported-file.jsonnet +++ /dev/null @@ -1,6 +0,0 @@ -local otherfile = import 'goto-basic-object.jsonnet'; - -{ - a: otherfile.foo, - b: otherfile.bar, -} diff --git a/pkg/server/testdata/goto-infinite-recursion-bug-1.jsonnet b/pkg/server/testdata/goto-infinite-recursion-bug-1.jsonnet deleted file mode 100644 index a1592c5..0000000 --- a/pkg/server/testdata/goto-infinite-recursion-bug-1.jsonnet +++ /dev/null @@ -1,6 +0,0 @@ -local drone = import './goto-infinite-recursion-bug-2.libsonnet'; -{ - steps: drone.step.withCommands([ - 'blabla', - ]), -} diff --git a/pkg/server/testdata/goto-multilevel-library-main.jsonnet b/pkg/server/testdata/goto-multilevel-library-main.jsonnet deleted file mode 100644 index 92cc427..0000000 --- a/pkg/server/testdata/goto-multilevel-library-main.jsonnet +++ /dev/null @@ -1,4 +0,0 @@ -local library = import 'goto-multilevel-library-top.libsonnet'; -{ - my_item: library.sub1.subsub1.new(name='test'), -} diff --git a/pkg/server/testdata/goto-multilevel-library-sub-1.libsonnet b/pkg/server/testdata/goto-multilevel-library-sub-1.libsonnet deleted file mode 100644 index 2b24cfb..0000000 --- a/pkg/server/testdata/goto-multilevel-library-sub-1.libsonnet +++ /dev/null @@ -1,4 +0,0 @@ -{ - subsub1: import 'goto-multilevel-library-sub-1.1.libsonnet', - subsub2: import 'goto-multilevel-library-sub-1.2.libsonnet', -} diff --git a/pkg/server/testdata/goto-multilevel-library-top.libsonnet b/pkg/server/testdata/goto-multilevel-library-top.libsonnet deleted file mode 100644 index d6075ae..0000000 --- a/pkg/server/testdata/goto-multilevel-library-top.libsonnet +++ /dev/null @@ -1,7 +0,0 @@ -local sub1 = import 'goto-multilevel-library-sub-1.libsonnet'; -local sub2 = import 'goto-multilevel-library-sub-2.libsonnet'; - -{ - sub1:: sub1, - sub2:: sub2, -} diff --git a/pkg/server/testdata/goto-nested-import-file-no-inter-obj.jsonnet b/pkg/server/testdata/goto-nested-import-file-no-inter-obj.jsonnet deleted file mode 100644 index 279d4f2..0000000 --- a/pkg/server/testdata/goto-nested-import-file-no-inter-obj.jsonnet +++ /dev/null @@ -1,4 +0,0 @@ -local file = (import 'goto-import-no-obj.libsonnet'); -{ - foo: file.foo, -} diff --git a/pkg/server/testdata/goto-nested-imported-file.jsonnet b/pkg/server/testdata/goto-nested-imported-file.jsonnet deleted file mode 100644 index b6dddf4..0000000 --- a/pkg/server/testdata/goto-nested-imported-file.jsonnet +++ /dev/null @@ -1,4 +0,0 @@ -local file = (import 'goto-import-intermediary.libsonnet').otherFile; -{ - foo: file.foo, -} diff --git a/pkg/server/testdata/goto-root-function.jsonnet b/pkg/server/testdata/goto-root-function.jsonnet deleted file mode 100644 index 9eb4f5b..0000000 --- a/pkg/server/testdata/goto-root-function.jsonnet +++ /dev/null @@ -1,13 +0,0 @@ -local lib = import 'goto-root-function-lib.libsonnet'; -local libResolved = (import 'goto-root-function-lib.libsonnet')('test'); - -{ - - fromImport: (import 'goto-root-function-lib.libsonnet')('test').attribute, - fromLib: lib('test').attribute, - fromResolvedLib: libResolved.attribute, - - nestedFromImport: (import 'goto-root-function-lib.libsonnet')('test').nestedFunc('test').nestedAttribute, - nestedFromLib: lib('test').nestedFunc('test').nestedAttribute, - nestedFromResolvedLib: libResolved.nestedFunc('test').nestedAttribute, -} diff --git a/pkg/server/testdata/import-attribute.jsonnet b/pkg/server/testdata/import-attribute.jsonnet new file mode 100644 index 0000000..0206145 --- /dev/null +++ b/pkg/server/testdata/import-attribute.jsonnet @@ -0,0 +1,2 @@ +local foo = (import 'basic-object.jsonnet').bar; +{} diff --git a/pkg/server/testdata/import-intermediary.libsonnet b/pkg/server/testdata/import-intermediary.libsonnet new file mode 100644 index 0000000..bfcf165 --- /dev/null +++ b/pkg/server/testdata/import-intermediary.libsonnet @@ -0,0 +1,3 @@ +{ + otherFile: (import 'basic-object.jsonnet'), +} diff --git a/pkg/server/testdata/goto-import-nested-main.jsonnet b/pkg/server/testdata/import-nested-main.jsonnet similarity index 72% rename from pkg/server/testdata/goto-import-nested-main.jsonnet rename to pkg/server/testdata/import-nested-main.jsonnet index bc04744..8ce85f1 100644 --- a/pkg/server/testdata/goto-import-nested-main.jsonnet +++ b/pkg/server/testdata/import-nested-main.jsonnet @@ -1,4 +1,4 @@ -local imported = import 'goto-import-nested3.libsonnet'; +local imported = import 'import-nested3.libsonnet'; local obj = imported.api.v1.obj; { diff --git a/pkg/server/testdata/goto-import-nested-obj.libsonnet b/pkg/server/testdata/import-nested-obj.libsonnet similarity index 100% rename from pkg/server/testdata/goto-import-nested-obj.libsonnet rename to pkg/server/testdata/import-nested-obj.libsonnet diff --git a/pkg/server/testdata/import-nested1.libsonnet b/pkg/server/testdata/import-nested1.libsonnet new file mode 100644 index 0000000..73a5a66 --- /dev/null +++ b/pkg/server/testdata/import-nested1.libsonnet @@ -0,0 +1,7 @@ +{ + api:: { + v1:: { + obj:: import 'import-nested-obj.libsonnet', + }, + }, +} diff --git a/pkg/server/testdata/goto-import-nested2.libsonnet b/pkg/server/testdata/import-nested2.libsonnet similarity index 56% rename from pkg/server/testdata/goto-import-nested2.libsonnet rename to pkg/server/testdata/import-nested2.libsonnet index 93c3607..86170ae 100644 --- a/pkg/server/testdata/goto-import-nested2.libsonnet +++ b/pkg/server/testdata/import-nested2.libsonnet @@ -1,4 +1,4 @@ -local base = import 'goto-import-nested1.libsonnet'; +local base = import 'import-nested1.libsonnet'; base { api+:: { diff --git a/pkg/server/testdata/goto-import-nested3.libsonnet b/pkg/server/testdata/import-nested3.libsonnet similarity index 75% rename from pkg/server/testdata/goto-import-nested3.libsonnet rename to pkg/server/testdata/import-nested3.libsonnet index 5d6a4ee..8ce8242 100644 --- a/pkg/server/testdata/goto-import-nested3.libsonnet +++ b/pkg/server/testdata/import-nested3.libsonnet @@ -1,4 +1,4 @@ -(import 'goto-import-nested2.libsonnet') +(import 'import-nested2.libsonnet') + { local this = self, _config+:: { diff --git a/pkg/server/testdata/import-no-obj.libsonnet b/pkg/server/testdata/import-no-obj.libsonnet new file mode 100644 index 0000000..724f299 --- /dev/null +++ b/pkg/server/testdata/import-no-obj.libsonnet @@ -0,0 +1 @@ +(import 'basic-object.jsonnet') diff --git a/pkg/server/testdata/imported-file.jsonnet b/pkg/server/testdata/imported-file.jsonnet new file mode 100644 index 0000000..aba5b86 --- /dev/null +++ b/pkg/server/testdata/imported-file.jsonnet @@ -0,0 +1,6 @@ +local otherfile = import 'basic-object.jsonnet'; + +{ + a: otherfile.foo, + b: otherfile.bar, +} diff --git a/pkg/server/testdata/goto-indexes.jsonnet b/pkg/server/testdata/indexes.jsonnet similarity index 100% rename from pkg/server/testdata/goto-indexes.jsonnet rename to pkg/server/testdata/indexes.jsonnet diff --git a/pkg/server/testdata/infinite-recursion-bug-1.jsonnet b/pkg/server/testdata/infinite-recursion-bug-1.jsonnet new file mode 100644 index 0000000..f0a85e5 --- /dev/null +++ b/pkg/server/testdata/infinite-recursion-bug-1.jsonnet @@ -0,0 +1,6 @@ +local drone = import './infinite-recursion-bug-2.libsonnet'; +{ + steps: drone.step.withCommands([ + 'blabla', + ]), +} diff --git a/pkg/server/testdata/goto-infinite-recursion-bug-2.libsonnet b/pkg/server/testdata/infinite-recursion-bug-2.libsonnet similarity index 82% rename from pkg/server/testdata/goto-infinite-recursion-bug-2.libsonnet rename to pkg/server/testdata/infinite-recursion-bug-2.libsonnet index 53b2dd4..f3b4ac6 100644 --- a/pkg/server/testdata/goto-infinite-recursion-bug-2.libsonnet +++ b/pkg/server/testdata/infinite-recursion-bug-2.libsonnet @@ -1,4 +1,4 @@ -local drone = import './goto-infinite-recursion-bug-3.libsonnet'; +local drone = import './infinite-recursion-bug-3.libsonnet'; { pipeline: drone.pipeline.docker { diff --git a/pkg/server/testdata/goto-infinite-recursion-bug-3.libsonnet b/pkg/server/testdata/infinite-recursion-bug-3.libsonnet similarity index 100% rename from pkg/server/testdata/goto-infinite-recursion-bug-3.libsonnet rename to pkg/server/testdata/infinite-recursion-bug-3.libsonnet diff --git a/pkg/server/testdata/goto-local-function.libsonnet b/pkg/server/testdata/local-function.libsonnet similarity index 100% rename from pkg/server/testdata/goto-local-function.libsonnet rename to pkg/server/testdata/local-function.libsonnet diff --git a/pkg/server/testdata/multilevel-library-main.jsonnet b/pkg/server/testdata/multilevel-library-main.jsonnet new file mode 100644 index 0000000..15e0361 --- /dev/null +++ b/pkg/server/testdata/multilevel-library-main.jsonnet @@ -0,0 +1,4 @@ +local library = import 'multilevel-library-top.libsonnet'; +{ + my_item: library.sub1.subsub1.new(name='test'), +} diff --git a/pkg/server/testdata/goto-multilevel-library-sub-1.1.libsonnet b/pkg/server/testdata/multilevel-library-sub-1.1.libsonnet similarity index 100% rename from pkg/server/testdata/goto-multilevel-library-sub-1.1.libsonnet rename to pkg/server/testdata/multilevel-library-sub-1.1.libsonnet diff --git a/pkg/server/testdata/goto-multilevel-library-sub-1.2.libsonnet b/pkg/server/testdata/multilevel-library-sub-1.2.libsonnet similarity index 100% rename from pkg/server/testdata/goto-multilevel-library-sub-1.2.libsonnet rename to pkg/server/testdata/multilevel-library-sub-1.2.libsonnet diff --git a/pkg/server/testdata/multilevel-library-sub-1.libsonnet b/pkg/server/testdata/multilevel-library-sub-1.libsonnet new file mode 100644 index 0000000..6d81a68 --- /dev/null +++ b/pkg/server/testdata/multilevel-library-sub-1.libsonnet @@ -0,0 +1,4 @@ +{ + subsub1: import 'multilevel-library-sub-1.1.libsonnet', + subsub2: import 'multilevel-library-sub-1.2.libsonnet', +} diff --git a/pkg/server/testdata/goto-multilevel-library-sub-2.libsonnet b/pkg/server/testdata/multilevel-library-sub-2.libsonnet similarity index 100% rename from pkg/server/testdata/goto-multilevel-library-sub-2.libsonnet rename to pkg/server/testdata/multilevel-library-sub-2.libsonnet diff --git a/pkg/server/testdata/multilevel-library-top.libsonnet b/pkg/server/testdata/multilevel-library-top.libsonnet new file mode 100644 index 0000000..6b2aa1c --- /dev/null +++ b/pkg/server/testdata/multilevel-library-top.libsonnet @@ -0,0 +1,7 @@ +local sub1 = import 'multilevel-library-sub-1.libsonnet'; +local sub2 = import 'multilevel-library-sub-2.libsonnet'; + +{ + sub1:: sub1, + sub2:: sub2, +} diff --git a/pkg/server/testdata/nested-import-file-no-inter-obj.jsonnet b/pkg/server/testdata/nested-import-file-no-inter-obj.jsonnet new file mode 100644 index 0000000..8d6faff --- /dev/null +++ b/pkg/server/testdata/nested-import-file-no-inter-obj.jsonnet @@ -0,0 +1,4 @@ +local file = (import 'import-no-obj.libsonnet'); +{ + foo: file.foo, +} diff --git a/pkg/server/testdata/nested-imported-file.jsonnet b/pkg/server/testdata/nested-imported-file.jsonnet new file mode 100644 index 0000000..e5774bb --- /dev/null +++ b/pkg/server/testdata/nested-imported-file.jsonnet @@ -0,0 +1,4 @@ +local file = (import 'import-intermediary.libsonnet').otherFile; +{ + foo: file.foo, +} diff --git a/pkg/server/testdata/goto-overrides-base.jsonnet b/pkg/server/testdata/overrides-base.jsonnet similarity index 72% rename from pkg/server/testdata/goto-overrides-base.jsonnet rename to pkg/server/testdata/overrides-base.jsonnet index 92bb46f..09d09d0 100644 --- a/pkg/server/testdata/goto-overrides-base.jsonnet +++ b/pkg/server/testdata/overrides-base.jsonnet @@ -17,5 +17,5 @@ a+: extensionFromLocal, } + { - a+: (import 'goto-overrides-imported.jsonnet') + (import 'goto-overrides-imported2.jsonnet'), + a+: (import 'overrides-imported.jsonnet') + (import 'overrides-imported2.jsonnet'), } diff --git a/pkg/server/testdata/goto-overrides-imported.jsonnet b/pkg/server/testdata/overrides-imported.jsonnet similarity index 100% rename from pkg/server/testdata/goto-overrides-imported.jsonnet rename to pkg/server/testdata/overrides-imported.jsonnet diff --git a/pkg/server/testdata/goto-overrides-imported2.jsonnet b/pkg/server/testdata/overrides-imported2.jsonnet similarity index 100% rename from pkg/server/testdata/goto-overrides-imported2.jsonnet rename to pkg/server/testdata/overrides-imported2.jsonnet diff --git a/pkg/server/testdata/goto-overrides.jsonnet b/pkg/server/testdata/overrides.jsonnet similarity index 95% rename from pkg/server/testdata/goto-overrides.jsonnet rename to pkg/server/testdata/overrides.jsonnet index b7cd3d9..e7b6918 100644 --- a/pkg/server/testdata/goto-overrides.jsonnet +++ b/pkg/server/testdata/overrides.jsonnet @@ -1,4 +1,4 @@ -(import 'goto-overrides-base.jsonnet') + // 1. Initial definition from base file +(import 'overrides-base.jsonnet') + // 1. Initial definition from base file { // 2. Override nested string a+: { hello: 'world', diff --git a/pkg/server/testdata/goto-root-function-lib.libsonnet b/pkg/server/testdata/root-function-lib.libsonnet similarity index 100% rename from pkg/server/testdata/goto-root-function-lib.libsonnet rename to pkg/server/testdata/root-function-lib.libsonnet diff --git a/pkg/server/testdata/root-function.jsonnet b/pkg/server/testdata/root-function.jsonnet new file mode 100644 index 0000000..c110d28 --- /dev/null +++ b/pkg/server/testdata/root-function.jsonnet @@ -0,0 +1,13 @@ +local lib = import 'root-function-lib.libsonnet'; +local libResolved = (import 'root-function-lib.libsonnet')('test'); + +{ + + fromImport: (import 'root-function-lib.libsonnet')('test').attribute, + fromLib: lib('test').attribute, + fromResolvedLib: libResolved.attribute, + + nestedFromImport: (import 'root-function-lib.libsonnet')('test').nestedFunc('test').nestedAttribute, + nestedFromLib: lib('test').nestedFunc('test').nestedAttribute, + nestedFromResolvedLib: libResolved.nestedFunc('test').nestedAttribute, +} diff --git a/pkg/server/testdata/goto-self-complex-scoping.jsonnet b/pkg/server/testdata/self-complex-scoping.jsonnet similarity index 100% rename from pkg/server/testdata/goto-self-complex-scoping.jsonnet rename to pkg/server/testdata/self-complex-scoping.jsonnet diff --git a/pkg/server/testdata/goto-self-in-local.jsonnet b/pkg/server/testdata/self-in-local.jsonnet similarity index 100% rename from pkg/server/testdata/goto-self-in-local.jsonnet rename to pkg/server/testdata/self-in-local.jsonnet diff --git a/pkg/server/testdata/goto-self-within-binary.jsonnet b/pkg/server/testdata/self-within-binary.jsonnet similarity index 52% rename from pkg/server/testdata/goto-self-within-binary.jsonnet rename to pkg/server/testdata/self-within-binary.jsonnet index 87666ca..e3164e6 100644 --- a/pkg/server/testdata/goto-self-within-binary.jsonnet +++ b/pkg/server/testdata/self-within-binary.jsonnet @@ -1,4 +1,4 @@ -(import 'goto-basic-object.jsonnet') + +(import 'basic-object.jsonnet') + { aaa: 'hello', } + { diff --git a/pkg/server/testdata/goto-std.jsonnet b/pkg/server/testdata/std.jsonnet similarity index 100% rename from pkg/server/testdata/goto-std.jsonnet rename to pkg/server/testdata/std.jsonnet From 3e5d544fa82f4e796a6706bd0d4f61791df1a1cd Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Wed, 11 Dec 2024 09:45:29 -0500 Subject: [PATCH 107/124] Pull latest stdlib definitions (#175) * Pull latest stdlib definitions * Add test on objectHas. It moved. Just checking --- pkg/stdlib/stdlib-content.jsonnet | 384 +++++++++++++++++++++++------- pkg/stdlib/stdlib_test.go | 9 + 2 files changed, 303 insertions(+), 90 deletions(-) diff --git a/pkg/stdlib/stdlib-content.jsonnet b/pkg/stdlib/stdlib-content.jsonnet index 241f11a..c36e1c5 100644 --- a/pkg/stdlib/stdlib-content.jsonnet +++ b/pkg/stdlib/stdlib-content.jsonnet @@ -29,7 +29,7 @@ local html = import 'html.libsonnet'; name: 'extVar', params: ['x'], availableSince: '0.10.0', - description: 'If an external variable with the given name was defined, return its string value. Otherwise, raise an error.', + description: 'If an external variable with the given name was defined, return its value. Otherwise, raise an error.', }, ], }, @@ -70,83 +70,6 @@ local html = import 'html.libsonnet'; null, true or false. |||, }, - { - name: 'get', - params: ['o', 'f', 'default=null', 'inc_hidden=true'], - availableSince: '0.18.0', - description: ||| - Returns the object's field if it exists or default value otherwise. - inc_hidden controls whether to include hidden fields. - |||, - }, - { - name: 'objectHas', - params: ['o', 'f'], - availableSince: '0.10.0', - description: ||| - Returns true if the given object has the field (given as a string), otherwise - false. Raises an error if the arguments are not object and string - respectively. Returns false if the field is hidden. - |||, - }, - { - name: 'objectFields', - params: ['o'], - availableSince: '0.10.0', - description: ||| - Returns an array of strings, each element being a field from the given object. Does not include - hidden fields. - |||, - }, - { - name: 'objectValues', - params: ['o'], - availableSince: '0.17.0', - description: ||| - Returns an array of the values in the given object. Does not include hidden fields. - |||, - }, - { - name: 'objectKeysValues', - params: ['o'], - availableSince: '0.20.0', - description: ||| - Returns an array of objects from the given object, each object having two fields: - key (string) and value (object). Does not include hidden fields. - |||, - }, - { - name: 'objectHasAll', - params: ['o', 'f'], - availableSince: '0.10.0', - description: ||| - As std.objectHas but also includes hidden fields. - |||, - }, - { - name: 'objectFieldsAll', - params: ['o'], - availableSince: '0.10.0', - description: ||| - As std.objectFields but also includes hidden fields. - |||, - }, - { - name: 'objectValuesAll', - params: ['o'], - availableSince: '0.17.0', - description: ||| - As std.objectValues but also includes hidden fields. - |||, - }, - { - name: 'objectKeysValuesAll', - params: ['o'], - availableSince: '0.20.0', - description: ||| - As std.objectKeysValues but also includes hidden fields. - |||, - }, { name: 'prune', params: ['a'], @@ -157,16 +80,6 @@ local html = import 'html.libsonnet'; The argument a may have any type. |||, }, - { - name: 'mapWithKey', - params: ['func', 'obj'], - availableSince: '0.10.0', - description: ||| - Apply the given function to all fields of the given object, also passing - the field name. The function func is expected to take the - field name as the first parameter and the field value as the second. - |||, - }, ], }, { @@ -197,12 +110,20 @@ local html = import 'html.libsonnet';
    std.acos(x)
    std.atan(x)
    std.round(x)
+
    std.isEven(x)
+
    std.isOdd(x)
+
    std.isInteger(x)
+
    std.isDecimal(x)

The function std.mod(a, b) is what the % operator is desugared to. It performs modulo arithmetic if the left hand side is a number, or if the left hand side is a string, it does Python-style string formatting with std.format().

+

+ The functions std.isEven(x) and std.isOdd(x) use integral part of a + floating number to test for even or odd. +

|||, ], fields: [ @@ -455,7 +376,23 @@ local html = import 'html.libsonnet'; params: ['str'], availableSince: '0.20.0', description: ||| - Returns true if the the given string is of zero length. + Returns true if the given string is of zero length. + |||, + }, + { + name: 'trim', + params: ['str'], + availableSince: 'upcoming', + description: ||| + Returns a copy of string after eliminating leading and trailing whitespaces. + |||, + }, + { + name: 'equalsIgnoreCase', + params: ['str1', 'str2'], + availableSince: 'upcoming', + description: ||| + Returns true if the the given str1 is equal to str2 by doing case insensitive comparison, false otherwise. |||, }, { @@ -869,13 +806,49 @@ local html = import 'html.libsonnet'; }, ], }, + { + name: 'manifestJson', + params: ['value'], + availableSince: '0.10.0', + description: ||| + Convert the given object to a JSON form. Under the covers, + it calls std.manifestJsonEx with a 4-space indent: + |||, + examples: [ + { + input: ||| + std.manifestJson( + { + x: [1, 2, 3, true, false, null, + "string\nstring"], + y: { a: 1, b: 2, c: [1, 2] }, + }) + |||, + output: + std.manifestJson( + { + x: [ + 1, + 2, + 3, + true, + false, + null, + 'string\nstring', + ], + y: { a: 1, b: 2, c: [1, 2] }, + } + ), + }, + ], + }, { name: 'manifestJsonMinified', params: ['value'], availableSince: '0.18.0', description: ||| Convert the given object to a minified JSON form. Under the covers, - it calls std.manifestJsonEx:'): + it calls std.manifestJsonEx: |||, examples: [ { @@ -1303,6 +1276,10 @@ local html = import 'html.libsonnet'; input: 'std.slice("jsonnet", 0, 4, 1)', output: std.slice('jsonnet', 0, 4, 1), }, + { + input: 'std.slice("jsonnet", -3, null, null)', + output: std.slice('jsonnet', -3, null, null), + }, ], }, { @@ -1349,6 +1326,20 @@ local html = import 'html.libsonnet'; }, ], }, + { + name: 'flattenDeepArray', + params: ['value'], + availableSince: 'upcoming', + description: ||| + Concatenate an array containing values and arrays into a single flattened array. + |||, + examples: [ + { + input: 'std.flattenDeepArray([[1, 2], [], [3, [4]], [[5, 6, [null]], [7, 8]]])', + output: std.flattenDeepArray([[1, 2], [], [3, [4]], [[5, 6, [null]], [7, 8]]]), + }, + ], + }, { name: 'reverse', params: ['arrs'], @@ -1421,6 +1412,66 @@ local html = import 'html.libsonnet'; |||, ]), }, + { + name: 'minArray', + params: ['arr', 'keyF', 'onEmpty'], + availableSince: 'upcoming', + description: html.paragraphs([ + ||| + Return the min of all element in arr. + |||, + ]), + }, + { + name: 'maxArray', + params: ['arr', 'keyF', 'onEmpty'], + availableSince: 'upcoming', + description: html.paragraphs([ + ||| + Return the max of all element in arr. + |||, + ]), + }, + { + name: 'contains', + params: ['arr', 'elem'], + availableSince: 'upcoming', + description: html.paragraphs([ + ||| + Return true if given elem is present in arr, false otherwise. + |||, + ]), + }, + { + name: 'avg', + params: ['arr'], + availableSince: '0.20.0', + description: html.paragraphs([ + ||| + Return average of all element in arr. + |||, + ]), + }, + { + name: 'remove', + params: ['arr', 'elem'], + availableSince: 'upcoming', + description: html.paragraphs([ + ||| + Remove first occurrence of elem from arr. + |||, + ]), + }, + { + name: 'removeAt', + params: ['arr', 'idx'], + availableSince: 'upcoming', + description: html.paragraphs([ + ||| + Remove element at idx index from arr. + |||, + ]), + }, ], }, { @@ -1497,6 +1548,107 @@ local html = import 'html.libsonnet'; }, ], }, + { + name: 'Objects', + id: 'objects', + fields: [ + { + name: 'get', + params: ['o', 'f', 'default=null', 'inc_hidden=true'], + availableSince: '0.18.0', + description: ||| + Returns the object's field if it exists or default value otherwise. + inc_hidden controls whether to include hidden fields. + |||, + }, + { + name: 'objectHas', + params: ['o', 'f'], + availableSince: '0.10.0', + description: ||| + Returns true if the given object has the field (given as a string), otherwise + false. Raises an error if the arguments are not object and string + respectively. Returns false if the field is hidden. + |||, + }, + { + name: 'objectFields', + params: ['o'], + availableSince: '0.10.0', + description: ||| + Returns an array of strings, each element being a field from the given object. Does not include + hidden fields. + |||, + }, + { + name: 'objectValues', + params: ['o'], + availableSince: '0.17.0', + description: ||| + Returns an array of the values in the given object. Does not include hidden fields. + |||, + }, + { + name: 'objectKeysValues', + params: ['o'], + availableSince: '0.20.0', + description: ||| + Returns an array of objects from the given object, each object having two fields: + key (string) and value (object). Does not include hidden fields. + |||, + }, + { + name: 'objectHasAll', + params: ['o', 'f'], + availableSince: '0.10.0', + description: ||| + As std.objectHas but also includes hidden fields. + |||, + }, + { + name: 'objectFieldsAll', + params: ['o'], + availableSince: '0.10.0', + description: ||| + As std.objectFields but also includes hidden fields. + |||, + }, + { + name: 'objectValuesAll', + params: ['o'], + availableSince: '0.17.0', + description: ||| + As std.objectValues but also includes hidden fields. + |||, + }, + { + name: 'objectKeysValuesAll', + params: ['o'], + availableSince: '0.20.0', + description: ||| + As std.objectKeysValues but also includes hidden fields. + |||, + }, + { + name: 'objectRemoveKey', + params: ['obj', 'key'], + availableSince: 'upcoming', + description: ||| + Returns a new object after removing the given key from object. + |||, + }, + { + name: 'mapWithKey', + params: ['func', 'obj'], + availableSince: '0.10.0', + description: ||| + Apply the given function to all fields of the given object, also passing + the field name. The function func is expected to take the + field name as the first parameter and the field value as the second. + |||, + }, + ], + }, { name: 'Encoding', id: 'encoding', @@ -1544,6 +1696,58 @@ local html = import 'html.libsonnet'; Encodes the given value into an MD5 string. |||, }, + { + name: 'sha1', + params: ['s'], + availableSince: 'upcoming', + description: [ + html.p({}, ||| + Encodes the given value into an SHA1 string. + |||), + html.p({}, ||| + This function is only available in Go version of jsonnet. + |||), + ], + }, + { + name: 'sha256', + params: ['s'], + availableSince: 'upcoming', + description: [ + html.p({}, ||| + Encodes the given value into an SHA256 string. + |||), + html.p({}, ||| + This function is only available in Go version of jsonnet. + |||), + ], + }, + { + name: 'sha512', + params: ['s'], + availableSince: 'upcoming', + description: [ + html.p({}, ||| + Encodes the given value into an SHA512 string. + |||), + html.p({}, ||| + This function is only available in Go version of jsonnet. + |||), + ], + }, + { + name: 'sha3', + params: ['s'], + availableSince: 'upcoming', + description: [ + html.p({}, ||| + Encodes the given value into an SHA3 string. + |||), + html.p({}, ||| + This function is only available in Go version of jsonnet. + |||), + ], + }, ], }, { diff --git a/pkg/stdlib/stdlib_test.go b/pkg/stdlib/stdlib_test.go index 0e8b2e6..af00576 100644 --- a/pkg/stdlib/stdlib_test.go +++ b/pkg/stdlib/stdlib_test.go @@ -17,6 +17,15 @@ func TestFunctions(t *testing.T) { } contains(t, functions, minFunc) + // Check std.objectHas + objectHasFunc := Function{ + Name: "objectHas", + Params: []string{"o", "f"}, + MarkdownDescription: "Returns `true` if the given object has the field (given as a string), otherwise\n`false`. Raises an error if the arguments are not object and string\nrespectively. Returns false if the field is hidden.", + AvailableSince: "0.10.0", + } + contains(t, functions, objectHasFunc) + // Check std.ceil ceilFunc := Function{ Name: "ceil", From 89d07aebf6f7f59f17752b575dfb53fb53b2ccf4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:32:36 -0500 Subject: [PATCH 108/124] Bump github.com/grafana/tanka from 0.30.2 to 0.31.1 (#182) Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.30.2 to 0.31.1. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.30.2...v0.31.1) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 6 +++--- go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index d0a7fec..3a06068 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.23.2 require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.30.2 + github.com/grafana/tanka v0.31.1 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -36,9 +36,9 @@ require ( github.com/shopspring/decimal v1.4.0 // indirect github.com/spf13/cast v1.7.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - golang.org/x/crypto v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.27.0 // indirect + golang.org/x/sys v0.28.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 703840f..8f68714 100644 --- a/go.sum +++ b/go.sum @@ -31,8 +31,8 @@ github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33u github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.30.2 h1:xmYILUKylkWFdRme6NRXBwECLTYtFuYdf47Rx2mgPPQ= -github.com/grafana/tanka v0.30.2/go.mod h1:3Bag6AcUtvTk24nO2OwG0j8efX9pW4qcuXM2pThdXJw= +github.com/grafana/tanka v0.31.1 h1:xH1PkKPRZWb9+2L6qSYqw/qUUO84x7RbbYrkcz02I9Y= +github.com/grafana/tanka v0.31.1/go.mod h1:zsws4RioG0P6nbpxPdWnbxpOEQ7IQFma6KRkpSjKpGk= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= @@ -96,8 +96,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -128,8 +128,8 @@ golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= -golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= From 59a359264d512e5ccad3e347fca83ebd71b0fe3a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:33:04 -0500 Subject: [PATCH 109/124] Bump actions/setup-go from 5.1.0 to 5.2.0 (#176) Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.1.0 to 5.2.0. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed...3041bf56c941b39c61721a86cd11f3bb1338122a) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/jsonnetfmt.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index 44b38e5..9ad6fa1 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 + - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: go-version-file: go.mod - name: Format diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a7bde1..01f4fbe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 + - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: go-version-file: go.mod - uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b24bc5..0dbb23a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 + - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: go-version-file: go.mod - run: go test ./... -bench=. -benchmem From 2412c8b058637f701afce47b08562b4607523468 Mon Sep 17 00:00:00 2001 From: "Dale A. Jackson" <3943722+JacksonWrath@users.noreply.github.com> Date: Tue, 7 Jan 2025 05:50:15 -0800 Subject: [PATCH 110/124] Completion within parentheses (#179) * Enables completion when typing inside parentheses (e.g. in-line arguments of a function call) * Also fixes some edge-case bugs causing the server to crash (e.g. initiating auto-complete on an empty line) --- pkg/server/completion.go | 17 +++++++++++++ pkg/server/completion_test.go | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 153420e..7b5456e 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -44,6 +44,18 @@ func (s *Server) Completion(_ context.Context, params *protocol.CompletionParams vm := s.getVM(doc.Item.URI.SpanURI().Filename()) + // Inside parentheses, search for completions as if the content was on a separate line + // e.g., this enables completion in function arguments + if strings.LastIndex(line, "(") > strings.LastIndex(line, ")") { + argsPart := line[strings.LastIndex(line, "(")+1:] + // Only consider the last argument for completion + arguments := strings.Split(argsPart, ",") + lastArg := arguments[len(arguments)-1] + lastArg = strings.TrimSpace(lastArg) + lastArg = strings.TrimLeft(lastArg, "{[") // Ignore leading array or object tokens + line = lastArg + } + items := s.completionFromStack(line, searchStack, vm, params.Position) return &protocol.CompletionList{IsIncomplete: false, Items: items}, nil } @@ -62,6 +74,7 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm lineWords := splitWords(line) lastWord := lineWords[len(lineWords)-1] lastWord = strings.TrimRight(lastWord, ",;") // Ignore trailing commas and semicolons, they can present when someone is modifying an existing line + lastWord = strings.TrimSpace(lastWord) indexes := strings.Split(lastWord, ".") @@ -289,5 +302,9 @@ func splitWords(input string) []string { words = append(words, "") } + if len(words) == 0 { + words = append(words, "") + } + return words } diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index 3aa9181..f7f6c09 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -692,6 +692,53 @@ func TestCompletion(t *testing.T) { }, }, }, + { + name: "completion in function arguments", + filename: "testdata/functions.libsonnet", + replaceString: "test: myfunc(arg1, arg2)", + replaceByString: "test: myfunc(arg1, self.", + expected: protocol.CompletionList{ + IsIncomplete: false, + Items: []protocol.CompletionItem{ + { + Label: "a", + Kind: protocol.FieldCompletion, + Detail: "self.a", + InsertText: "a", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "variable", + }, + }, + { + Label: "b", + Kind: protocol.FieldCompletion, + Detail: "self.b", + InsertText: "b", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "variable", + }, + }, + { + Label: "c", + Kind: protocol.FieldCompletion, + Detail: "self.c", + InsertText: "c", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + }, + { + Label: "test", + Kind: protocol.FieldCompletion, + Detail: "self.test", + InsertText: "test", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "*ast.Apply", + }, + }, + }, + }, + }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { From 446a98f7a7c5d28f60afbd36d243129c4ff47959 Mon Sep 17 00:00:00 2001 From: "Dale A. Jackson" <3943722+JacksonWrath@users.noreply.github.com> Date: Tue, 7 Jan 2025 06:16:29 -0800 Subject: [PATCH 111/124] Include all in-scope locals in completion (#181) * Enables auto-complete for variables scoped to current object node, instead of just globally defined variables --- pkg/server/completion.go | 21 +++++---- pkg/server/completion_test.go | 54 +++++++++++++++++------- pkg/server/definition_test.go | 16 +++---- pkg/server/symbols_test.go | 8 ++-- pkg/server/testdata/basic-object.jsonnet | 1 + 5 files changed, 64 insertions(+), 36 deletions(-) diff --git a/pkg/server/completion.go b/pkg/server/completion.go index 7b5456e..38c7a5b 100644 --- a/pkg/server/completion.go +++ b/pkg/server/completion.go @@ -82,14 +82,19 @@ func (s *Server) completionFromStack(line string, stack *nodestack.NodeStack, vm items := []protocol.CompletionItem{} // firstIndex is a variable (local) completion for !stack.IsEmpty() { - if curr, ok := stack.Pop().(*ast.Local); ok { - for _, bind := range curr.Binds { - label := string(bind.Variable) - - if !strings.HasPrefix(label, indexes[0]) { - continue - } - + curr := stack.Pop() + var binds ast.LocalBinds + switch typedCurr := curr.(type) { + case *ast.DesugaredObject: + binds = typedCurr.Locals + case *ast.Local: + binds = typedCurr.Binds + default: + continue + } + for _, bind := range binds { + label := string(bind.Variable) + if strings.HasPrefix(label, indexes[0]) && label != "$" { items = append(items, createCompletionItem(label, "", protocol.VariableCompletion, bind.Body, position)) } } diff --git a/pkg/server/completion_test.go b/pkg/server/completion_test.go index f7f6c09..4c3f2e6 100644 --- a/pkg/server/completion_test.go +++ b/pkg/server/completion_test.go @@ -221,15 +221,26 @@ func TestCompletion(t *testing.T) { replaceByString: "bar: ", expected: protocol.CompletionList{ IsIncomplete: false, - Items: []protocol.CompletionItem{{ - Label: "somevar", - Kind: protocol.VariableCompletion, - Detail: "somevar", - InsertText: "somevar", - LabelDetails: protocol.CompletionItemLabelDetails{ - Description: "string", + Items: []protocol.CompletionItem{ + { + Label: "somevar2", + Kind: protocol.VariableCompletion, + Detail: "somevar2", + InsertText: "somevar2", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, }, - }}, + { + Label: "somevar", + Kind: protocol.VariableCompletion, + Detail: "somevar", + InsertText: "somevar", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + }, + }, }, }, { @@ -239,15 +250,26 @@ func TestCompletion(t *testing.T) { replaceByString: "bar: some", expected: protocol.CompletionList{ IsIncomplete: false, - Items: []protocol.CompletionItem{{ - Label: "somevar", - Kind: protocol.VariableCompletion, - Detail: "somevar", - InsertText: "somevar", - LabelDetails: protocol.CompletionItemLabelDetails{ - Description: "string", + Items: []protocol.CompletionItem{ + { + Label: "somevar2", + Kind: protocol.VariableCompletion, + Detail: "somevar2", + InsertText: "somevar2", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, }, - }}, + { + Label: "somevar", + Kind: protocol.VariableCompletion, + Detail: "somevar", + InsertText: "somevar", + LabelDetails: protocol.CompletionItemLabelDetails{ + Description: "string", + }, + }, + }, }, }, { diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 5e5b283..11b2fda 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -232,12 +232,12 @@ var definitionTestCases = []definitionTestCase{ results: []definitionResult{{ targetFilename: "testdata/basic-object.jsonnet", targetRange: protocol.Range{ - Start: protocol.Position{Line: 5, Character: 2}, - End: protocol.Position{Line: 5, Character: 12}, + Start: protocol.Position{Line: 6, Character: 2}, + End: protocol.Position{Line: 6, Character: 12}, }, targetSelectionRange: protocol.Range{ - Start: protocol.Position{Line: 5, Character: 2}, - End: protocol.Position{Line: 5, Character: 5}, + Start: protocol.Position{Line: 6, Character: 2}, + End: protocol.Position{Line: 6, Character: 5}, }, }}, }, @@ -248,12 +248,12 @@ var definitionTestCases = []definitionTestCase{ results: []definitionResult{{ targetFilename: "testdata/basic-object.jsonnet", targetRange: protocol.Range{ - Start: protocol.Position{Line: 5, Character: 2}, - End: protocol.Position{Line: 5, Character: 12}, + Start: protocol.Position{Line: 6, Character: 2}, + End: protocol.Position{Line: 6, Character: 12}, }, targetSelectionRange: protocol.Range{ - Start: protocol.Position{Line: 5, Character: 2}, - End: protocol.Position{Line: 5, Character: 5}, + Start: protocol.Position{Line: 6, Character: 2}, + End: protocol.Position{Line: 6, Character: 5}, }, }}, }, diff --git a/pkg/server/symbols_test.go b/pkg/server/symbols_test.go index ac088ec..fd688e6 100644 --- a/pkg/server/symbols_test.go +++ b/pkg/server/symbols_test.go @@ -106,21 +106,21 @@ func TestSymbols(t *testing.T) { Kind: protocol.Field, Range: protocol.Range{ Start: protocol.Position{ - Line: 5, + Line: 6, Character: 2, }, End: protocol.Position{ - Line: 5, + Line: 6, Character: 12, }, }, SelectionRange: protocol.Range{ Start: protocol.Position{ - Line: 5, + Line: 6, Character: 2, }, End: protocol.Position{ - Line: 5, + Line: 6, Character: 5, }, }, diff --git a/pkg/server/testdata/basic-object.jsonnet b/pkg/server/testdata/basic-object.jsonnet index fbc5595..798bb10 100644 --- a/pkg/server/testdata/basic-object.jsonnet +++ b/pkg/server/testdata/basic-object.jsonnet @@ -3,5 +3,6 @@ local somevar = 'hello'; { foo: 'bar', } + { + local somevar2 = 'world', bar: 'foo', } From b1a9763a29b90a24c557ffef8a4c42f5f0d503f3 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 7 Jan 2025 21:04:41 -0500 Subject: [PATCH 112/124] Fix symbols crashing (#183) Closes https://github.com/grafana/jsonnet-language-server/issues/166 Symbols are now always strings. If field names are complex nodes, then we use the actual jsonnet --- pkg/ast/processing/find_field.go | 2 +- pkg/ast/processing/object_range.go | 41 +++++-- pkg/cache/cache.go | 6 +- pkg/server/hover_test.go | 2 +- pkg/server/symbols.go | 17 +-- pkg/server/symbols_test.go | 106 ++++++++++++++++++ .../testdata/conditional-fields.jsonnet | 6 + 7 files changed, 157 insertions(+), 23 deletions(-) create mode 100644 pkg/server/testdata/conditional-fields.jsonnet diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index 5d5d5b7..a010c4c 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -96,7 +96,7 @@ func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.De } if len(indexList) == 0 { for _, found := range foundFields { - ranges = append(ranges, FieldToRange(*found)) + ranges = append(ranges, p.FieldToRange(*found)) // If the field is not PlusSuper (field+: value), we stop there. Other previous values are not relevant // If partialMatchCurrentField is true, we can continue to look for other fields diff --git a/pkg/ast/processing/object_range.go b/pkg/ast/processing/object_range.go index 1d5be49..6873238 100644 --- a/pkg/ast/processing/object_range.go +++ b/pkg/ast/processing/object_range.go @@ -5,6 +5,8 @@ import ( "strings" "github.com/google/go-jsonnet/ast" + position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" + "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" ) type ObjectRange struct { @@ -15,7 +17,7 @@ type ObjectRange struct { Node ast.Node } -func FieldToRange(field ast.DesugaredObjectField) ObjectRange { +func (p *Processor) FieldToRange(field ast.DesugaredObjectField) ObjectRange { selectionRange := ast.LocationRange{ Begin: ast.Location{ Line: field.LocRange.Begin.Line, @@ -23,33 +25,48 @@ func FieldToRange(field ast.DesugaredObjectField) ObjectRange { }, End: ast.Location{ Line: field.LocRange.Begin.Line, - Column: field.LocRange.Begin.Column + len(FieldNameToString(field.Name)), + Column: field.LocRange.Begin.Column + len(p.FieldNameToString(field.Name)), }, } return ObjectRange{ Filename: field.LocRange.FileName, SelectionRange: selectionRange, FullRange: field.LocRange, - FieldName: FieldNameToString(field.Name), + FieldName: p.FieldNameToString(field.Name), Node: field.Body, } } -func FieldNameToString(fieldName ast.Node) string { - if fieldName, ok := fieldName.(*ast.LiteralString); ok { +func (p *Processor) FieldNameToString(fieldName ast.Node) string { + const unknown = "" + + switch fieldName := fieldName.(type) { + case *ast.LiteralString: return fieldName.Value - } - if fieldName, ok := fieldName.(*ast.Index); ok { + case *ast.Index: // We only want to wrap in brackets at the top level, so we trim at all step and then rewrap return fmt.Sprintf("[%s.%s]", - strings.Trim(FieldNameToString(fieldName.Target), "[]"), - strings.Trim(FieldNameToString(fieldName.Index), "[]"), + strings.Trim(p.FieldNameToString(fieldName.Target), "[]"), + strings.Trim(p.FieldNameToString(fieldName.Index), "[]"), ) - } - if fieldName, ok := fieldName.(*ast.Var); ok { + case *ast.Var: return string(fieldName.Id) + default: + loc := fieldName.Loc() + if loc == nil { + return unknown + } + fname := loc.FileName + if fname == "" { + return unknown + } + + content, err := p.cache.GetContents(protocol.URIFromPath(fname), position.RangeASTToProtocol(*loc)) + if err != nil { + return unknown + } + return content } - return "" } func LocalBindToRange(bind ast.LocalBind) ObjectRange { diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go index 804a976..dec59aa 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -107,7 +107,11 @@ func (c *Cache) GetContents(uri protocol.DocumentURI, position protocol.Range) ( for i := position.Start.Line; i <= position.End.Line; i++ { switch i { case position.Start.Line: - contentBuilder.WriteString(lines[i][position.Start.Character:]) + if i == position.End.Line { + contentBuilder.WriteString(lines[i][position.Start.Character:position.End.Character]) + } else { + contentBuilder.WriteString(lines[i][position.Start.Character:]) + } case position.End.Line: contentBuilder.WriteString(lines[i][:position.End.Character]) default: diff --git a/pkg/server/hover_test.go b/pkg/server/hover_test.go index 2622a77..d9db5ba 100644 --- a/pkg/server/hover_test.go +++ b/pkg/server/hover_test.go @@ -259,7 +259,7 @@ func TestHover(t *testing.T) { expectedContent: protocol.Hover{ Contents: protocol.MarkupContent{ Kind: protocol.Markdown, - Value: "```jsonnet\nbar: 'innerfoo',\n```\n", + Value: "```jsonnet\nbar: 'innerfoo'\n```\n", }, Range: protocol.Range{ Start: protocol.Position{Line: 9, Character: 5}, diff --git a/pkg/server/symbols.go b/pkg/server/symbols.go index 096f5bf..97b544b 100644 --- a/pkg/server/symbols.go +++ b/pkg/server/symbols.go @@ -27,7 +27,8 @@ func (s *Server) DocumentSymbol(_ context.Context, params *protocol.DocumentSymb return nil, nil } - symbols := buildDocumentSymbols(doc.AST) + processor := processing.NewProcessor(s.cache, nil) + symbols := s.buildDocumentSymbols(processor, doc.AST) result := make([]interface{}, len(symbols)) for i, symbol := range symbols { @@ -37,13 +38,13 @@ func (s *Server) DocumentSymbol(_ context.Context, params *protocol.DocumentSymb return result, nil } -func buildDocumentSymbols(node ast.Node) []protocol.DocumentSymbol { +func (s *Server) buildDocumentSymbols(processor *processing.Processor, node ast.Node) []protocol.DocumentSymbol { var symbols []protocol.DocumentSymbol switch node := node.(type) { case *ast.Binary: - symbols = append(symbols, buildDocumentSymbols(node.Left)...) - symbols = append(symbols, buildDocumentSymbols(node.Right)...) + symbols = append(symbols, s.buildDocumentSymbols(processor, node.Left)...) + symbols = append(symbols, s.buildDocumentSymbols(processor, node.Right)...) case *ast.Local: for _, bind := range node.Binds { objectRange := processing.LocalBindToRange(bind) @@ -55,21 +56,21 @@ func buildDocumentSymbols(node ast.Node) []protocol.DocumentSymbol { Detail: symbolDetails(bind.Body), }) } - symbols = append(symbols, buildDocumentSymbols(node.Body)...) + symbols = append(symbols, s.buildDocumentSymbols(processor, node.Body)...) case *ast.DesugaredObject: for _, field := range node.Fields { kind := protocol.Field if field.Hide == ast.ObjectFieldHidden { kind = protocol.Property } - fieldRange := processing.FieldToRange(field) + fieldRange := processor.FieldToRange(field) symbols = append(symbols, protocol.DocumentSymbol{ - Name: processing.FieldNameToString(field.Name), + Name: processor.FieldNameToString(field.Name), Kind: kind, Range: position.RangeASTToProtocol(fieldRange.FullRange), SelectionRange: position.RangeASTToProtocol(fieldRange.SelectionRange), Detail: symbolDetails(field.Body), - Children: buildDocumentSymbols(field.Body), + Children: s.buildDocumentSymbols(processor, field.Body), }) } } diff --git a/pkg/server/symbols_test.go b/pkg/server/symbols_test.go index fd688e6..09a0df8 100644 --- a/pkg/server/symbols_test.go +++ b/pkg/server/symbols_test.go @@ -266,6 +266,112 @@ func TestSymbols(t *testing.T) { }, }, }, + { + name: "Conditional fields", + filename: "testdata/conditional-fields.jsonnet", + expectSymbols: []interface{}{ + protocol.DocumentSymbol{ + Name: "flag", + Detail: "Boolean", + Kind: protocol.Variable, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 6, + }, + End: protocol.Position{ + Line: 0, + Character: 17, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 0, + Character: 6, + }, + End: protocol.Position{ + Line: 0, + Character: 10, + }, + }, + }, + protocol.DocumentSymbol{ + Name: "if flag then 'hello'", + Detail: "String", + Kind: protocol.Field, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 2, + Character: 2, + }, + End: protocol.Position{ + Line: 2, + Character: 34, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 2, + Character: 2, + }, + End: protocol.Position{ + Line: 2, + Character: 22, + }, + }, + }, + protocol.DocumentSymbol{ + Name: "if flag then 'hello1' else 'hello2'", + Detail: "String", + Kind: protocol.Field, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 3, + Character: 2, + }, + End: protocol.Position{ + Line: 3, + Character: 49, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 3, + Character: 2, + }, + End: protocol.Position{ + Line: 3, + Character: 37, + }, + }, + }, + protocol.DocumentSymbol{ + Name: "if false == flag then 'hello3' else (function() 'test')()", + Detail: "String", + Kind: protocol.Field, + Range: protocol.Range{ + Start: protocol.Position{ + Line: 4, + Character: 2, + }, + End: protocol.Position{ + Line: 4, + Character: 71, + }, + }, + SelectionRange: protocol.Range{ + Start: protocol.Position{ + Line: 4, + Character: 2, + }, + End: protocol.Position{ + Line: 4, + Character: 59, + }, + }, + }, + }, + }, } { t.Run(tc.name, func(t *testing.T) { params := &protocol.DocumentSymbolParams{ diff --git a/pkg/server/testdata/conditional-fields.jsonnet b/pkg/server/testdata/conditional-fields.jsonnet new file mode 100644 index 0000000..0cec24c --- /dev/null +++ b/pkg/server/testdata/conditional-fields.jsonnet @@ -0,0 +1,6 @@ +local flag = true; +{ + [if flag then 'hello']: 'world!', + [if flag then 'hello1' else 'hello2']: 'world!', + [if false == flag then 'hello3' else (function() 'test')()]: 'world!', +} From 99b0260c24a95e9e23d565017dccabed384a121a Mon Sep 17 00:00:00 2001 From: Bob Danek <25288485+bobdanek@users.noreply.github.com> Date: Mon, 28 Apr 2025 14:20:48 -0700 Subject: [PATCH 113/124] [force merge] Apply StepSecurity and zizmor fixes (#199) * [StepSecurity] ci: Harden GitHub Actions Signed-off-by: StepSecurity Bot * Apply remaining zizmor findings --------- Signed-off-by: StepSecurity Bot Co-authored-by: StepSecurity Bot --- .github/workflows/golangci-lint.yml | 2 ++ .github/workflows/jsonnetfmt.yml | 5 +++++ .github/workflows/release.yml | 9 ++++++++- .github/workflows/test.yml | 4 ++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index aaaf7df..0578416 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false - name: golangci-lint uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 with: diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index 9ad6fa1..7d4c263 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -4,11 +4,16 @@ on: branches: - main pull_request: {} +permissions: + contents: read + jobs: jsonnetfmt: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: go-version-file: go.mod diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01f4fbe..9fa021f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,15 +4,22 @@ on: push: tags: - '*' - +permissions: + contents: read + jobs: goreleaser: + permissions: + contents: write # for goreleaser/goreleaser-action to create a GitHub release runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: go-version-file: go.mod + cache: false - uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0 with: version: latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0dbb23a..73cf0df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,11 +4,15 @@ on: branches: - main pull_request: {} +permissions: + contents: read jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: go-version-file: go.mod From 1cc354a3c242310daab535f11931bab6aef74ee1 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Mon, 28 Apr 2025 21:04:53 -0400 Subject: [PATCH 114/124] Fix linting error --- .golangci.toml | 64 +++++++++++++++++++++++++------------ pkg/server/configuration.go | 7 +++- 2 files changed, 49 insertions(+), 22 deletions(-) diff --git a/.golangci.toml b/.golangci.toml index 9311a87..a3ccc0d 100644 --- a/.golangci.toml +++ b/.golangci.toml @@ -1,24 +1,46 @@ +version = '2' + [linters] enable = [ - "copyloopvar", - "dogsled", - "forcetypeassert", - "goconst", - "gocritic", - "gocyclo", - "goimports", - "goprintffuncname", - "gosimple", - "govet", - "ineffassign", - "misspell", - "nakedret", - "revive", - "staticcheck", - "stylecheck", - "typecheck", - "unconvert", - "unparam", - "unused", - "whitespace" + 'copyloopvar', + 'dogsled', + 'forcetypeassert', + 'goconst', + 'gocritic', + 'gocyclo', + 'goprintffuncname', + 'misspell', + 'nakedret', + 'revive', + 'staticcheck', + 'unconvert', + 'unparam', + 'whitespace' +] + +[linters.exclusions] +generated = 'lax' +presets = [ + 'comments', + 'common-false-positives', + 'legacy', + 'std-error-handling' +] +paths = [ + 'third_party$', + 'builtin$', + 'examples$' +] + +[formatters] +enable = [ + 'goimports' +] + +[formatters.exclusions] +generated = 'lax' +paths = [ + 'third_party$', + 'builtin$', + 'examples$' ] diff --git a/pkg/server/configuration.go b/pkg/server/configuration.go index 0638c06..8cddef1 100644 --- a/pkg/server/configuration.go +++ b/pkg/server/configuration.go @@ -34,7 +34,12 @@ func (s *Server) DidChangeConfiguration(_ context.Context, params *protocol.DidC for sk, sv := range settingsMap { switch sk { case "log_level": - level, err := log.ParseLevel(sv.(string)) + svStr, ok := sv.(string) + if !ok { + return fmt.Errorf("%w: unsupported settings value for log_level. expected string. got: %T", jsonrpc2.ErrInvalidParams, sv) + } + + level, err := log.ParseLevel(svStr) if err != nil { return fmt.Errorf("%w: %v", jsonrpc2.ErrInvalidParams, err) } From ff74a5b168cef07a78e1bc0defffbbcb879f8c6d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Apr 2025 21:09:41 -0400 Subject: [PATCH 115/124] Bump golangci/golangci-lint-action from 6.1.1 to 7.0.0 (#194) Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.1.1 to 7.0.0. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/971e284b6050e8a5849b72094c50ab08da042db8...1481404843c368bc19ca9406f87d6e0fc97bdcfd) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 0578416..a156538 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -15,6 +15,6 @@ jobs: with: persist-credentials: false - name: golangci-lint - uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 + uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0 with: version: latest From bfc00cdd4b85d4e84ce314ec617155d120db377c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Apr 2025 01:12:42 +0000 Subject: [PATCH 116/124] Bump goreleaser/goreleaser-action from 6.1.0 to 6.3.0 (#196) Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 6.1.0 to 6.3.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/9ed2f89a662bf1735a48bc8557fd212fa902bebf...9c156ee8a17a598857849441385a2041ef570552) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-version: 6.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9fa021f..ab5e2a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: with: go-version-file: go.mod cache: false - - uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0 + - uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0 with: version: latest args: release --clean From 864cd6fe7a7a031ed2e158e9d790a0bb4b9098c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Apr 2025 01:12:52 +0000 Subject: [PATCH 117/124] Bump actions/setup-go from 5.2.0 to 5.4.0 (#195) Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.2.0 to 5.4.0. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/3041bf56c941b39c61721a86cd11f3bb1338122a...0aaccfd150d50ccaeb58ebd88d36e91967a5f35b) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/jsonnetfmt.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index 7d4c263..971f005 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 + - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 with: go-version-file: go.mod - name: Format diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab5e2a6..1480fcd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 + - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 with: go-version-file: go.mod cache: false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 73cf0df..fa12d90 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 + - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 with: go-version-file: go.mod - run: go test ./... -bench=. -benchmem From c9d14854eaa989125c64d5faf200d443dd80b48d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Apr 2025 01:13:46 +0000 Subject: [PATCH 118/124] Bump github.com/grafana/tanka from 0.31.1 to 0.31.3 (#191) Bumps [github.com/grafana/tanka](https://github.com/grafana/tanka) from 0.31.1 to 0.31.3. - [Release notes](https://github.com/grafana/tanka/releases) - [Changelog](https://github.com/grafana/tanka/blob/main/CHANGELOG.md) - [Commits](https://github.com/grafana/tanka/compare/v0.31.1...v0.31.3) --- updated-dependencies: - dependency-name: github.com/grafana/tanka dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 8 ++++---- go.sum | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 3a06068..122b712 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.23.2 require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.31.1 + github.com/grafana/tanka v0.32.0 github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -32,13 +32,13 @@ require ( github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/rs/zerolog v1.33.0 // indirect + github.com/rs/zerolog v1.34.0 // indirect github.com/shopspring/decimal v1.4.0 // indirect github.com/spf13/cast v1.7.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - golang.org/x/crypto v0.31.0 // indirect + golang.org/x/crypto v0.35.0 // indirect golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.28.0 // indirect + golang.org/x/sys v0.32.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 8f68714..d590f57 100644 --- a/go.sum +++ b/go.sum @@ -25,14 +25,14 @@ github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.31.1 h1:xH1PkKPRZWb9+2L6qSYqw/qUUO84x7RbbYrkcz02I9Y= -github.com/grafana/tanka v0.31.1/go.mod h1:zsws4RioG0P6nbpxPdWnbxpOEQ7IQFma6KRkpSjKpGk= +github.com/grafana/tanka v0.32.0 h1:F+xSc0ipvdeiyf2Fpl9dxcC3wpjVCMEgoc+RoyeGpNw= +github.com/grafana/tanka v0.32.0/go.mod h1:djmXTGczYi6wMKyVpyR7nRBvNBbHtkkq7Q/40yNy12Q= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= @@ -66,9 +66,9 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= -github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0= +github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY= +github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ= github.com/sebdah/goldie/v2 v2.5.3 h1:9ES/mNN+HNUbNWpVAlrzuZ7jE+Nrczbj8uFRjM7624Y= github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= @@ -96,8 +96,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= -golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= -golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs= +golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -128,8 +128,8 @@ golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= -golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= +golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= From c33dc2d0d86cb5bab4c3fa30918967870307a9ea Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Fri, 16 May 2025 17:58:48 +0200 Subject: [PATCH 119/124] Support builder pattern with imports (#203) * Support builder pattern with imports Weird case that we use at Grafana Labs. Lots of indirection with imports in the mix * Fix errors --- pkg/ast/processing/find_field.go | 18 + pkg/server/definition_test.go | 28 +- ...> grafonnet-eval-variable-options.jsonnet} | 2 +- .../testdata/grafonnet/jsonnetfile.lock.json | 36 - .../clean/dashboard.libsonnet | 266 -- .../grafonnet-v10.0.0/clean/panel.libsonnet | 341 --- .../clean/panel/alertGroups.libsonnet | 20 - .../clean/panel/annotationsList.libsonnet | 40 - .../clean/panel/barChart.libsonnet | 157 - .../clean/panel/barGauge.libsonnet | 58 - .../clean/panel/candlestick.libsonnet | 11 - .../clean/panel/canvas.libsonnet | 11 - .../clean/panel/dashboardList.libsonnet | 40 - .../clean/panel/datagrid.libsonnet | 16 - .../clean/panel/debug.libsonnet | 29 - .../clean/panel/gauge.libsonnet | 52 - .../clean/panel/geomap.libsonnet | 155 - .../clean/panel/heatmap.libsonnet | 266 -- .../clean/panel/histogram.libsonnet | 119 - .../clean/panel/logs.libsonnet | 30 - .../clean/panel/news.libsonnet | 18 - .../clean/panel/nodeGraph.libsonnet | 51 - .../clean/panel/pieChart.libsonnet | 130 - .../clean/panel/stat.libsonnet | 56 - .../clean/panel/stateTimeline.libsonnet | 98 - .../clean/panel/statusHistory.libsonnet | 96 - .../clean/panel/table.libsonnet | 73 - .../clean/panel/text.libsonnet | 31 - .../clean/panel/timeSeries.libsonnet | 188 -- .../clean/panel/trend.libsonnet | 182 -- .../clean/panel/xyChart.libsonnet | 211 -- .../clean/query/loki.libsonnet | 27 - .../clean/query/prometheus.libsonnet | 29 - .../clean/query/tempo.libsonnet | 54 - .../custom/dashboard.libsonnet | 44 - .../grafonnet-v10.0.0/custom/panel.libsonnet | 125 - .../grafonnet-v10.0.0/custom/row.libsonnet | 11 - .../custom/util/grid.libsonnet | 134 - .../custom/util/panel.libsonnet | 51 - .../gen/grafonnet-v10.0.0/docs/README.md | 29 - .../docs/grafonnet/librarypanel.md | 256 -- .../docs/grafonnet/panel/alertGroups/index.md | 497 ---- .../docs/grafonnet/panel/alertGroups/link.md | 109 - .../panel/alertGroups/thresholdStep.md | 47 - .../panel/alertGroups/transformation.md | 76 - .../panel/alertGroups/valueMapping.md | 365 --- .../grafonnet/panel/annotationsList/index.md | 569 ---- .../grafonnet/panel/annotationsList/link.md | 109 - .../panel/annotationsList/thresholdStep.md | 47 - .../panel/annotationsList/transformation.md | 76 - .../panel/annotationsList/valueMapping.md | 365 --- .../docs/grafonnet/panel/barChart/index.md | 1030 ------- .../docs/grafonnet/panel/barChart/link.md | 109 - .../grafonnet/panel/barChart/thresholdStep.md | 47 - .../panel/barChart/transformation.md | 76 - .../grafonnet/panel/barChart/valueMapping.md | 365 --- .../docs/grafonnet/panel/barGauge/index.md | 638 ---- .../docs/grafonnet/panel/barGauge/link.md | 109 - .../grafonnet/panel/barGauge/thresholdStep.md | 47 - .../panel/barGauge/transformation.md | 76 - .../grafonnet/panel/barGauge/valueMapping.md | 365 --- .../panel/candlestick/fieldOverride.md | 194 -- .../docs/grafonnet/panel/candlestick/index.md | 466 --- .../docs/grafonnet/panel/candlestick/link.md | 109 - .../panel/candlestick/thresholdStep.md | 47 - .../panel/candlestick/transformation.md | 76 - .../panel/candlestick/valueMapping.md | 365 --- .../grafonnet/panel/canvas/fieldOverride.md | 194 -- .../docs/grafonnet/panel/canvas/index.md | 466 --- .../docs/grafonnet/panel/canvas/link.md | 109 - .../grafonnet/panel/canvas/thresholdStep.md | 47 - .../grafonnet/panel/canvas/transformation.md | 76 - .../grafonnet/panel/canvas/valueMapping.md | 365 --- .../panel/dashboardList/fieldOverride.md | 194 -- .../grafonnet/panel/dashboardList/index.md | 569 ---- .../grafonnet/panel/dashboardList/link.md | 109 - .../panel/dashboardList/thresholdStep.md | 47 - .../panel/dashboardList/transformation.md | 76 - .../panel/dashboardList/valueMapping.md | 365 --- .../grafonnet/panel/datagrid/fieldOverride.md | 194 -- .../docs/grafonnet/panel/datagrid/index.md | 479 --- .../docs/grafonnet/panel/datagrid/link.md | 109 - .../grafonnet/panel/datagrid/thresholdStep.md | 47 - .../panel/datagrid/transformation.md | 76 - .../grafonnet/panel/datagrid/valueMapping.md | 365 --- .../grafonnet/panel/debug/fieldOverride.md | 194 -- .../docs/grafonnet/panel/debug/index.md | 530 ---- .../docs/grafonnet/panel/debug/link.md | 109 - .../grafonnet/panel/debug/thresholdStep.md | 47 - .../grafonnet/panel/debug/transformation.md | 76 - .../grafonnet/panel/debug/valueMapping.md | 365 --- .../grafonnet/panel/gauge/fieldOverride.md | 194 -- .../docs/grafonnet/panel/gauge/index.md | 606 ---- .../docs/grafonnet/panel/gauge/link.md | 109 - .../grafonnet/panel/gauge/thresholdStep.md | 47 - .../grafonnet/panel/gauge/transformation.md | 76 - .../grafonnet/panel/gauge/valueMapping.md | 365 --- .../grafonnet/panel/geomap/fieldOverride.md | 194 -- .../docs/grafonnet/panel/geomap/index.md | 1030 ------- .../docs/grafonnet/panel/geomap/link.md | 109 - .../grafonnet/panel/geomap/thresholdStep.md | 47 - .../grafonnet/panel/geomap/transformation.md | 76 - .../grafonnet/panel/geomap/valueMapping.md | 365 --- .../grafonnet/panel/heatmap/fieldOverride.md | 194 -- .../docs/grafonnet/panel/heatmap/index.md | 1420 --------- .../docs/grafonnet/panel/heatmap/link.md | 109 - .../grafonnet/panel/heatmap/thresholdStep.md | 47 - .../grafonnet/panel/heatmap/transformation.md | 76 - .../grafonnet/panel/heatmap/valueMapping.md | 365 --- .../panel/histogram/fieldOverride.md | 194 -- .../docs/grafonnet/panel/histogram/index.md | 874 ------ .../docs/grafonnet/panel/histogram/link.md | 109 - .../panel/histogram/thresholdStep.md | 47 - .../panel/histogram/transformation.md | 76 - .../grafonnet/panel/histogram/valueMapping.md | 365 --- .../grafonnet/panel/logs/fieldOverride.md | 194 -- .../docs/grafonnet/panel/logs/index.md | 546 ---- .../docs/grafonnet/panel/logs/link.md | 109 - .../grafonnet/panel/logs/thresholdStep.md | 47 - .../grafonnet/panel/logs/transformation.md | 76 - .../docs/grafonnet/panel/logs/valueMapping.md | 365 --- .../grafonnet/panel/news/fieldOverride.md | 194 -- .../docs/grafonnet/panel/news/index.md | 488 --- .../docs/grafonnet/panel/news/link.md | 109 - .../grafonnet/panel/news/thresholdStep.md | 47 - .../grafonnet/panel/news/transformation.md | 76 - .../docs/grafonnet/panel/news/valueMapping.md | 365 --- .../panel/nodeGraph/fieldOverride.md | 194 -- .../docs/grafonnet/panel/nodeGraph/index.md | 590 ---- .../docs/grafonnet/panel/nodeGraph/link.md | 109 - .../panel/nodeGraph/thresholdStep.md | 47 - .../panel/nodeGraph/transformation.md | 76 - .../grafonnet/panel/nodeGraph/valueMapping.md | 365 --- .../grafonnet/panel/pieChart/fieldOverride.md | 194 -- .../docs/grafonnet/panel/pieChart/index.md | 857 ------ .../docs/grafonnet/panel/pieChart/link.md | 109 - .../grafonnet/panel/pieChart/thresholdStep.md | 47 - .../panel/pieChart/transformation.md | 76 - .../grafonnet/panel/pieChart/valueMapping.md | 365 --- .../grafonnet/panel/stat/fieldOverride.md | 194 -- .../docs/grafonnet/panel/stat/index.md | 632 ---- .../docs/grafonnet/panel/stat/link.md | 109 - .../grafonnet/panel/stat/thresholdStep.md | 47 - .../grafonnet/panel/stat/transformation.md | 76 - .../docs/grafonnet/panel/stat/valueMapping.md | 365 --- .../panel/stateTimeline/fieldOverride.md | 194 -- .../grafonnet/panel/stateTimeline/index.md | 764 ----- .../grafonnet/panel/stateTimeline/link.md | 109 - .../panel/stateTimeline/thresholdStep.md | 47 - .../panel/stateTimeline/transformation.md | 76 - .../panel/stateTimeline/valueMapping.md | 365 --- .../panel/statusHistory/fieldOverride.md | 194 -- .../grafonnet/panel/statusHistory/index.md | 755 ----- .../grafonnet/panel/statusHistory/link.md | 109 - .../panel/statusHistory/thresholdStep.md | 47 - .../panel/statusHistory/transformation.md | 76 - .../panel/statusHistory/valueMapping.md | 365 --- .../grafonnet/panel/table/fieldOverride.md | 194 -- .../docs/grafonnet/panel/table/index.md | 653 ---- .../docs/grafonnet/panel/table/link.md | 109 - .../grafonnet/panel/table/thresholdStep.md | 47 - .../grafonnet/panel/table/transformation.md | 76 - .../grafonnet/panel/table/valueMapping.md | 365 --- .../grafonnet/panel/text/fieldOverride.md | 194 -- .../docs/grafonnet/panel/text/index.md | 541 ---- .../docs/grafonnet/panel/text/link.md | 109 - .../grafonnet/panel/text/thresholdStep.md | 47 - .../grafonnet/panel/text/transformation.md | 76 - .../docs/grafonnet/panel/text/valueMapping.md | 365 --- .../panel/timeSeries/fieldOverride.md | 194 -- .../docs/grafonnet/panel/timeSeries/index.md | 1141 ------- .../docs/grafonnet/panel/timeSeries/link.md | 109 - .../panel/timeSeries/thresholdStep.md | 47 - .../panel/timeSeries/transformation.md | 76 - .../panel/timeSeries/valueMapping.md | 365 --- .../grafonnet/panel/trend/fieldOverride.md | 194 -- .../docs/grafonnet/panel/trend/index.md | 1132 ------- .../docs/grafonnet/panel/trend/link.md | 109 - .../grafonnet/panel/trend/thresholdStep.md | 47 - .../grafonnet/panel/trend/transformation.md | 76 - .../grafonnet/panel/trend/valueMapping.md | 365 --- .../grafonnet/panel/xyChart/fieldOverride.md | 194 -- .../docs/grafonnet/panel/xyChart/index.md | 1207 -------- .../docs/grafonnet/panel/xyChart/link.md | 109 - .../grafonnet/panel/xyChart/thresholdStep.md | 47 - .../grafonnet/panel/xyChart/transformation.md | 76 - .../grafonnet/panel/xyChart/valueMapping.md | 365 --- .../docs/grafonnet/playlist.md | 97 - .../docs/grafonnet/preferences.md | 85 - .../docs/grafonnet/query/elasticsearch.md | 2620 ----------------- .../docs/grafonnet/query/index.md | 16 - .../docs/grafonnet/query/tempo.md | 217 -- .../docs/grafonnet/query/testData.md | 619 ---- .../docs/grafonnet/serviceaccount.md | 120 - .../grafonnet-v10.0.0/docs/grafonnet/team.md | 82 - .../grafonnet-v10.0.0/docs/grafonnet/util.md | 81 - .../gen/grafonnet-v10.0.0/main.libsonnet | 23 - .../gen/grafonnet-v10.0.0/panel.libsonnet | 30 - .../gen/grafonnet-v10.0.0/query.libsonnet | 13 - .../grafonnet-v10.0.0/raw/dashboard.libsonnet | 296 -- .../raw/librarypanel.libsonnet | 65 - .../gen/grafonnet-v10.0.0/raw/panel.libsonnet | 407 --- .../raw/panel/alertGroups.libsonnet | 19 - .../raw/panel/annotationsList.libsonnet | 39 - .../raw/panel/barChart.libsonnet | 168 -- .../raw/panel/barGauge.libsonnet | 57 - .../raw/panel/candlestick.libsonnet | 6 - .../raw/panel/canvas.libsonnet | 6 - .../raw/panel/dashboardList.libsonnet | 39 - .../raw/panel/datagrid.libsonnet | 15 - .../raw/panel/debug.libsonnet | 43 - .../raw/panel/gauge.libsonnet | 51 - .../raw/panel/geomap.libsonnet | 215 -- .../raw/panel/heatmap.libsonnet | 414 --- .../raw/panel/histogram.libsonnet | 130 - .../raw/panel/logs.libsonnet | 29 - .../raw/panel/news.libsonnet | 17 - .../raw/panel/nodeGraph.libsonnet | 98 - .../raw/panel/pieChart.libsonnet | 186 -- .../grafonnet-v10.0.0/raw/panel/row.libsonnet | 51 - .../raw/panel/stat.libsonnet | 55 - .../raw/panel/stateTimeline.libsonnet | 109 - .../raw/panel/statusHistory.libsonnet | 107 - .../raw/panel/table.libsonnet | 72 - .../raw/panel/text.libsonnet | 47 - .../raw/panel/timeSeries.libsonnet | 199 -- .../raw/panel/trend.libsonnet | 193 -- .../raw/panel/xyChart.libsonnet | 487 --- .../grafonnet-v10.0.0/raw/playlist.libsonnet | 27 - .../raw/preferences.libsonnet | 23 - .../raw/publicdashboard.libsonnet | 16 - .../raw/query/azureMonitor.libsonnet | 360 --- .../raw/query/cloudWatch.libsonnet | 306 -- .../raw/query/elasticsearch.libsonnet | 758 ----- .../raw/query/grafanaPyroscope.libsonnet | 26 - .../raw/query/loki.libsonnet | 26 - .../raw/query/parca.libsonnet | 16 - .../raw/query/prometheus.libsonnet | 28 - .../raw/query/tempo.libsonnet | 53 - .../raw/query/testData.libsonnet | 167 -- .../raw/serviceaccount.libsonnet | 32 - .../gen/grafonnet-v10.0.0/raw/team.libsonnet | 20 - .../docsonnet/doc-util/render.libsonnet | 401 --- .../jsonnet-libs/xtd/ascii.libsonnet | 39 - .../jsonnet-libs/xtd/date.libsonnet | 58 - .../github.com/jsonnet-libs/xtd/docs/ascii.md | 43 - .../github.com/jsonnet-libs/xtd/docs/date.md | 45 - .../jsonnet-libs/xtd/test/date_test.jsonnet | 131 - .../grafonnet/vendor/grafonnet-v10.0.0 | 1 - pkg/server/testdata/jsonnetfile.json | 33 + pkg/server/testdata/jsonnetfile.lock.json | 67 + pkg/server/testdata/k.libsonnet | 11 + pkg/server/testdata/use-ksonnet-util.jsonnet | 13 + .../testdata/{grafonnet => }/vendor/doc-util | 0 .../gen/grafonnet-latest}/jsonnetfile.json | 8 +- .../gen/grafonnet-latest/main.libsonnet | 1 + .../grafonnet-v11.4.0/accesspolicy.libsonnet | 90 + .../gen/grafonnet-v11.4.0/alerting.libsonnet | 9 + .../clean/alerting/contactPoint.libsonnet | 33 + .../clean/alerting/muteTiming.libsonnet | 135 + .../alerting/notificationPolicy.libsonnet | 97 + .../alerting/notificationTemplate.libsonnet | 20 + .../clean/alerting/ruleGroup.libsonnet | 147 + .../custom/alerting/contactPoint.libsonnet | 12 + .../custom/alerting/muteTiming.libsonnet | 8 + .../alerting/notificationPolicy.libsonnet | 12 + .../custom/alerting/ruleGroup.libsonnet | 13 + .../custom/dashboard.libsonnet | 69 + .../custom/dashboard/annotation.libsonnet | 2 +- .../custom/dashboard/link.libsonnet | 0 .../custom/dashboard/variable.libsonnet | 68 +- .../grafonnet-v11.4.0/custom/panel.libsonnet | 171 ++ .../custom/query/azureMonitor.libsonnet | 17 + .../custom/query/cloudWatch.libsonnet | 23 + .../custom/query/elasticsearch.libsonnet | 20 + .../custom/query/expr.libsonnet | 12 + .../query/googleCloudMonitoring.libsonnet | 17 + .../custom/query/grafanaPyroscope.libsonnet | 17 + .../custom/query/loki.libsonnet | 1 + .../custom/query/parca.libsonnet | 17 + .../custom/query/prometheus.libsonnet | 1 + .../custom/query/tempo.libsonnet | 1 + .../custom/query/testData.libsonnet | 17 + .../grafonnet-v11.4.0/custom/row.libsonnet | 26 + .../custom/util/dashboard.libsonnet | 10 +- .../custom/util/grid.libsonnet | 212 ++ .../custom/util/main.libsonnet | 0 .../custom/util/panel.libsonnet | 420 +++ .../custom/util/string.libsonnet | 0 .../gen/grafonnet-v11.4.0/dashboard.libsonnet | 596 ++++ .../gen/grafonnet-v11.4.0/docs/README.md | 31 + .../docs/accesspolicy/index.md | 156 + .../docs/accesspolicy/rules.md | 60 + .../docs/alerting/contactPoint.md | 100 + .../grafonnet-v11.4.0/docs/alerting/index.md | 11 + .../docs/alerting/muteTiming/index.md | 48 + .../alerting/muteTiming/interval/index.md | 48 + .../interval/time_intervals/index.md | 144 + .../interval/time_intervals/times.md | 32 + .../docs/alerting/notificationPolicy/index.md | 173 ++ .../alerting/notificationPolicy/matcher.md | 45 + .../docs/alerting/notificationTemplate.md | 56 + .../docs/alerting/ruleGroup/index.md | 72 + .../docs/alerting/ruleGroup/rule/data.md | 124 + .../docs/alerting/ruleGroup/rule/index.md | 196 ++ .../docs}/dashboard/annotation.md | 187 +- .../docs}/dashboard/index.md | 295 +- .../grafonnet-v11.4.0/docs}/dashboard/link.md | 99 +- .../docs}/dashboard/variable.md | 582 +++- .../gen/grafonnet-v11.4.0/docs/folder.md | 45 + .../docs/librarypanel/index.md | 1598 ++++++++++ .../model/fieldConfig/defaults/links.md | 146 + .../fieldConfig/defaults/thresholds/steps.md | 34 + .../model/fieldConfig/overrides/index.md | 104 + .../model/fieldConfig/overrides/properties.md | 45 + .../docs/librarypanel/model/links.md | 146 + .../librarypanel/model/transformations.md | 140 + .../docs/panel/alertList/index.md | 1215 ++++++++ .../docs/panel/alertList/panelOptions/link.md | 146 + .../alertList/queryOptions/transformation.md | 140 + .../alertList/standardOptions/mapping.md | 445 +++ .../alertList/standardOptions/override.md} | 146 +- .../standardOptions/threshold/step.md | 34 + .../docs/panel/annotationsList/index.md | 788 +++++ .../annotationsList/panelOptions/link.md | 146 + .../queryOptions/transformation.md | 140 + .../standardOptions/mapping.md | 445 +++ .../standardOptions/override.md} | 146 +- .../standardOptions/threshold/step.md | 34 + .../docs/panel/barChart/index.md | 1432 +++++++++ .../docs/panel/barChart/panelOptions/link.md | 146 + .../barChart/queryOptions/transformation.md | 140 + .../panel/barChart/standardOptions/mapping.md | 445 +++ .../barChart/standardOptions/override.md} | 146 +- .../standardOptions/threshold/step.md | 34 + .../docs/panel/barGauge/index.md | 1069 +++++++ .../docs/panel/barGauge/panelOptions/link.md | 146 + .../barGauge/queryOptions/transformation.md | 140 + .../panel/barGauge/standardOptions/mapping.md | 445 +++ .../barGauge/standardOptions/override.md} | 146 +- .../standardOptions/threshold/step.md | 34 + .../docs/panel/candlestick/index.md | 1762 +++++++++++ .../panel/candlestick/panelOptions/link.md | 146 + .../queryOptions/transformation.md | 140 + .../candlestick/standardOptions/mapping.md | 445 +++ .../candlestick/standardOptions/override.md | 244 ++ .../standardOptions/threshold/step.md | 34 + .../docs/panel/canvas/index.md | 775 +++++ .../root/elements/connections/index.md | 410 +++ .../root/elements/connections/vertices.md | 32 + .../canvas/options/root/elements/index.md | 512 ++++ .../docs/panel/canvas/panelOptions/link.md | 146 + .../canvas/queryOptions/transformation.md | 140 + .../panel/canvas/standardOptions/mapping.md | 445 +++ .../panel/canvas/standardOptions/override.md | 244 ++ .../canvas/standardOptions/threshold/step.md | 34 + .../docs/panel/dashboardList/index.md | 812 +++++ .../panel/dashboardList/panelOptions/link.md | 146 + .../queryOptions/transformation.md | 140 + .../dashboardList/standardOptions/mapping.md | 445 +++ .../dashboardList/standardOptions/override.md | 244 ++ .../standardOptions/threshold/step.md | 34 + .../docs/panel/datagrid/index.md | 660 +++++ .../docs/panel/datagrid/panelOptions/link.md | 146 + .../datagrid/queryOptions/transformation.md | 140 + .../panel/datagrid/standardOptions/mapping.md | 445 +++ .../datagrid/standardOptions/override.md | 244 ++ .../standardOptions/threshold/step.md | 34 + .../docs/panel/debug/index.md | 727 +++++ .../docs/panel/debug/panelOptions/link.md | 146 + .../debug/queryOptions/transformation.md | 140 + .../panel/debug/standardOptions/mapping.md | 445 +++ .../panel/debug/standardOptions/override.md | 244 ++ .../debug/standardOptions/threshold/step.md | 34 + .../docs/panel/gauge/index.md | 867 ++++++ .../docs/panel/gauge/panelOptions/link.md | 146 + .../gauge/queryOptions/transformation.md | 140 + .../panel/gauge/standardOptions/mapping.md | 445 +++ .../panel/gauge/standardOptions/override.md | 244 ++ .../gauge/standardOptions/threshold/step.md | 34 + .../docs/panel/geomap/index.md | 1226 ++++++++ .../docs/panel/geomap/options/layers.md | 220 ++ .../docs/panel/geomap/panelOptions/link.md | 146 + .../geomap/queryOptions/transformation.md | 140 + .../panel/geomap/standardOptions/mapping.md | 445 +++ .../panel/geomap/standardOptions/override.md | 244 ++ .../geomap/standardOptions/threshold/step.md | 34 + .../docs/panel/heatmap/index.md | 1864 ++++++++++++ .../docs/panel/heatmap/panelOptions/link.md | 146 + .../heatmap/queryOptions/transformation.md | 140 + .../panel/heatmap/standardOptions/mapping.md | 445 +++ .../panel/heatmap/standardOptions/override.md | 244 ++ .../heatmap/standardOptions/threshold/step.md | 34 + .../docs/panel/histogram/index.md | 1285 ++++++++ .../docs/panel/histogram/panelOptions/link.md | 146 + .../histogram/queryOptions/transformation.md | 140 + .../histogram/standardOptions/mapping.md | 445 +++ .../histogram/standardOptions/override.md | 244 ++ .../standardOptions/threshold/step.md | 34 + .../grafonnet-v11.4.0/docs}/panel/index.md | 3 +- .../docs/panel/logs/index.md | 956 ++++++ .../docs/panel/logs/panelOptions/link.md | 146 + .../panel/logs/queryOptions/transformation.md | 140 + .../panel/logs/standardOptions/mapping.md | 445 +++ .../panel/logs/standardOptions/override.md | 244 ++ .../logs/standardOptions/threshold/step.md | 34 + .../docs/panel/news/index.md | 672 +++++ .../docs/panel/news/panelOptions/link.md | 146 + .../panel/news/queryOptions/transformation.md | 140 + .../panel/news/standardOptions/mapping.md | 445 +++ .../panel/news/standardOptions/override.md | 244 ++ .../news/standardOptions/threshold/step.md | 34 + .../docs/panel/nodeGraph/index.md | 776 +++++ .../panel/nodeGraph/options/nodes/arcs.md | 33 + .../docs/panel/nodeGraph/panelOptions/link.md | 146 + .../nodeGraph/queryOptions/transformation.md | 140 + .../nodeGraph/standardOptions/mapping.md | 445 +++ .../nodeGraph/standardOptions/override.md | 244 ++ .../standardOptions/threshold/step.md | 34 + .../docs/panel/pieChart/index.md | 1174 ++++++++ .../docs/panel/pieChart/panelOptions/link.md | 146 + .../pieChart/queryOptions/transformation.md | 140 + .../panel/pieChart/standardOptions/mapping.md | 445 +++ .../pieChart/standardOptions/override.md | 244 ++ .../standardOptions/threshold/step.md | 34 + .../gen/grafonnet-v11.4.0/docs}/panel/row.md | 132 +- .../docs/panel/stat/index.md | 897 ++++++ .../docs/panel/stat/panelOptions/link.md | 146 + .../panel/stat/queryOptions/transformation.md | 140 + .../panel/stat/standardOptions/mapping.md | 445 +++ .../panel/stat/standardOptions/override.md | 244 ++ .../stat/standardOptions/threshold/step.md | 34 + .../docs/panel/stateTimeline/index.md | 1080 +++++++ .../panel/stateTimeline/panelOptions/link.md | 146 + .../queryOptions/transformation.md | 140 + .../stateTimeline/standardOptions/mapping.md | 445 +++ .../stateTimeline/standardOptions/override.md | 244 ++ .../standardOptions/threshold/step.md | 34 + .../docs/panel/statusHistory/index.md | 1053 +++++++ .../panel/statusHistory/panelOptions/link.md | 146 + .../queryOptions/transformation.md | 140 + .../statusHistory/standardOptions/mapping.md | 445 +++ .../statusHistory/standardOptions/override.md | 244 ++ .../standardOptions/threshold/step.md | 34 + .../docs/panel/table/index.md | 2072 +++++++++++++ .../docs/panel/table/options/sortBy.md | 34 + .../docs/panel/table/panelOptions/link.md | 146 + .../table/queryOptions/transformation.md | 140 + .../panel/table/standardOptions/mapping.md | 445 +++ .../panel/table/standardOptions/override.md | 244 ++ .../table/standardOptions/threshold/step.md | 34 + .../docs/panel/text/index.md | 742 +++++ .../docs/panel/text/panelOptions/link.md | 146 + .../panel/text/queryOptions/transformation.md | 140 + .../panel/text/standardOptions/mapping.md | 445 +++ .../panel/text/standardOptions/override.md | 244 ++ .../text/standardOptions/threshold/step.md | 34 + .../docs/panel/timeSeries/index.md | 1589 ++++++++++ .../panel/timeSeries/panelOptions/link.md | 146 + .../timeSeries/queryOptions/transformation.md | 140 + .../timeSeries/standardOptions/mapping.md | 445 +++ .../timeSeries/standardOptions/override.md | 244 ++ .../standardOptions/threshold/step.md | 34 + .../docs/panel/trend/index.md | 1562 ++++++++++ .../docs/panel/trend/panelOptions/link.md | 146 + .../trend/queryOptions/transformation.md | 140 + .../panel/trend/standardOptions/mapping.md | 445 +++ .../panel/trend/standardOptions/override.md | 244 ++ .../trend/standardOptions/threshold/step.md | 34 + .../docs/panel/xyChart/index.md | 1618 ++++++++++ .../docs/panel/xyChart/options/series.md | 665 +++++ .../docs/panel/xyChart/panelOptions/link.md | 146 + .../xyChart/queryOptions/transformation.md | 140 + .../panel/xyChart/standardOptions/mapping.md | 445 +++ .../panel/xyChart/standardOptions/override.md | 244 ++ .../xyChart/standardOptions/threshold/step.md | 34 + .../gen/grafonnet-v11.4.0/docs/preferences.md | 262 ++ .../docs}/publicdashboard.md | 46 +- .../grafonnet-v11.4.0/docs/query/athena.md | 256 ++ .../azureMonitor/dimensionFilters.md | 69 + .../azureMonitor/azureMonitor/resources.md | 68 + .../query/azureMonitor/azureTraces/filters.md | 57 + .../docs/query/azureMonitor/index.md} | 1107 ++++--- .../docs/query/bigquery/index.md | 507 ++++ .../docs/query/bigquery/sql/columns/index.md | 57 + .../query/bigquery/sql/columns/parameters.md | 29 + .../docs/query/bigquery/sql/groupBy.md | 70 + .../CloudWatchLogsQuery/logGroups.md | 57 + .../parameters.md | 29 + .../sql/orderBy/parameters.md | 29 + .../sql/select/parameters.md | 29 + .../docs/query/cloudWatch/index.md} | 1011 ++++--- .../bucketAggs/Filters/settings/filters.md | 32 + .../query/elasticsearch/bucketAggs/index.md | 567 ++++ .../docs/query/elasticsearch/index.md | 178 ++ .../BucketScript/pipelineVariables.md | 32 + .../BucketScript/pipelineVariables.md | 32 + .../docs/query/elasticsearch/metrics/index.md | 2547 ++++++++++++++++ .../expr/TypeClassicConditions/conditions.md | 205 ++ .../query/expr/TypeClassicConditions/index.md | 315 ++ .../docs/query/expr/TypeMath.md | 299 ++ .../docs/query/expr/TypeReduce.md | 376 +++ .../docs/query/expr/TypeResample.md | 349 +++ .../docs/query/expr/TypeSql.md | 299 ++ .../query/expr/TypeThreshold/conditions.md | 163 + .../docs/query/expr/TypeThreshold/index.md | 327 ++ .../docs/query/expr/index.md | 12 + .../docs/query/googleCloudMonitoring.md | 623 ++++ .../docs}/query/grafanaPyroscope.md | 121 +- .../gen/grafonnet-v11.4.0/docs/query/index.md | 19 + .../gen/grafonnet-v11.4.0/docs}/query/loki.md | 130 +- .../grafonnet-v11.4.0/docs}/query/parca.md | 76 +- .../docs}/query/prometheus.md | 138 +- .../docs/query/tempo/filters.md | 94 + .../docs/query/tempo/groupBy.md | 94 + .../docs/query/tempo/index.md | 314 ++ .../docs/query/testData/csvWave.md | 56 + .../docs/query/testData/index.md | 1111 +++++++ .../gen/grafonnet-v11.4.0/docs/role.md | 70 + .../gen/grafonnet-v11.4.0/docs/rolebinding.md | 189 ++ .../gen/grafonnet-v11.4.0/docs/team.md | 32 + .../gen/grafonnet-v11.4.0/docs/util.md | 328 +++ .../gen/grafonnet-v11.4.0/folder.libsonnet | 16 + .../gen/grafonnet-v11.4.0}/jsonnetfile.json | 0 .../grafonnet-v11.4.0/librarypanel.libsonnet | 1184 ++++++++ .../gen/grafonnet-v11.4.0/main.libsonnet | 26 + .../gen/grafonnet-v11.4.0/panel.libsonnet | 803 +++++ .../panel/alertList.libsonnet | 341 +++ .../panel/annotationsList.libsonnet | 94 + .../panel/barChart.libsonnet | 553 ++++ .../panel/barGauge.libsonnet | 269 ++ .../panel/candlestick.libsonnet | 850 ++++++ .../grafonnet-v11.4.0/panel/canvas.libsonnet | 544 ++++ .../panel/dashboardList.libsonnet | 106 + .../panel/datagrid.libsonnet | 28 + .../grafonnet-v11.4.0/panel/debug.libsonnet | 67 + .../grafonnet-v11.4.0/panel/gauge.libsonnet | 150 + .../grafonnet-v11.4.0/panel/geomap.libsonnet | 486 +++ .../grafonnet-v11.4.0/panel/heatmap.libsonnet | 845 ++++++ .../panel/histogram.libsonnet | 486 +++ .../grafonnet-v11.4.0/panel/logs.libsonnet | 178 ++ .../grafonnet-v11.4.0/panel/news.libsonnet | 34 + .../panel/nodeGraph.libsonnet | 118 + .../panel/pieChart.libsonnet | 380 +++ .../gen/grafonnet-v11.4.0/panel/row.libsonnet | 103 + .../grafonnet-v11.4.0/panel/stat.libsonnet | 162 + .../panel/stateTimeline.libsonnet | 304 ++ .../panel/statusHistory.libsonnet | 292 ++ .../grafonnet-v11.4.0/panel/table.libsonnet | 1358 +++++++++ .../grafonnet-v11.4.0/panel/text.libsonnet | 73 + .../panel/timeSeries.libsonnet | 756 +++++ .../grafonnet-v11.4.0/panel/trend.libsonnet | 738 +++++ .../grafonnet-v11.4.0/panel/xyChart.libsonnet | 1070 +++++++ .../grafonnet-v11.4.0/panelindex.libsonnet | 30 + .../grafonnet-v11.4.0/preferences.libsonnet | 117 + .../publicdashboard.libsonnet | 28 + .../gen/grafonnet-v11.4.0/query.libsonnet | 17 + .../grafonnet-v11.4.0/query/athena.libsonnet | 100 + .../query/azureMonitor.libsonnet | 885 ++++++ .../query/bigquery.libsonnet | 303 ++ .../query/cloudWatch.libsonnet | 742 +++++ .../query/elasticsearch.libsonnet | 1467 +++++++++ .../grafonnet-v11.4.0/query/expr.libsonnet | 960 ++++++ .../query/googleCloudMonitoring.libsonnet | 308 ++ .../query/grafanaPyroscope.libsonnet | 80 + .../grafonnet-v11.4.0/query/loki.libsonnet | 72 + .../grafonnet-v11.4.0/query/parca.libsonnet | 48 + .../query/prometheus.libsonnet | 76 + .../grafonnet-v11.4.0/query/tempo.libsonnet | 184 ++ .../query/testData.libsonnet | 494 ++++ .../gen/grafonnet-v11.4.0/role.libsonnet | 24 + .../grafonnet-v11.4.0/rolebinding.libsonnet | 92 + .../gen/grafonnet-v11.4.0/team.libsonnet | 12 + .../ksonnet-util/grafana.libsonnet | 67 + .../ksonnet-util/k-compat.libsonnet | 22 + .../ksonnet-util/kausal.libsonnet | 29 + .../ksonnet-util/legacy-custom.libsonnet | 152 + .../ksonnet-util/legacy-noname.libsonnet | 46 + .../ksonnet-util/legacy-subtypes.libsonnet | 158 + .../ksonnet-util/legacy-types.libsonnet | 27 + .../jsonnet-libs/ksonnet-util/util.libsonnet | 309 ++ .../jsonnet-libs/docsonnet/doc-util/README.md | 177 +- .../docsonnet/doc-util/main.libsonnet | 55 +- .../docsonnet/doc-util/render.libsonnet | 479 +++ .../k8s-libsonnet/1.30/_custom/apps.libsonnet | 79 + .../1.30/_custom/autoscaling.libsonnet | 31 + .../1.30/_custom/batch.libsonnet | 26 + .../k8s-libsonnet/1.30/_custom/core.libsonnet | 266 ++ .../k8s-libsonnet/1.30/_custom/list.libsonnet | 27 + .../1.30/_custom/mapContainers.libsonnet | 80 + .../k8s-libsonnet/1.30/_custom/rbac.libsonnet | 41 + .../1.30/_custom/volumeMounts.libsonnet | 323 ++ .../_gen/admissionregistration/main.libsonnet | 7 + .../v1/auditAnnotation.libsonnet | 10 + .../v1/expressionWarning.libsonnet | 10 + .../admissionregistration/v1/main.libsonnet | 26 + .../v1/matchCondition.libsonnet | 10 + .../v1/matchResources.libsonnet | 38 + .../v1/mutatingWebhook.libsonnet | 70 + .../v1/mutatingWebhookConfiguration.libsonnet | 58 + .../v1/namedRuleWithOperations.libsonnet | 28 + .../v1/paramKind.libsonnet | 8 + .../v1/paramRef.libsonnet | 23 + .../v1/ruleWithOperations.libsonnet | 24 + .../v1/serviceReference.libsonnet | 14 + .../v1/typeChecking.libsonnet | 10 + .../v1/validatingAdmissionPolicy.libsonnet | 117 + ...validatingAdmissionPolicyBinding.libsonnet | 118 + ...datingAdmissionPolicyBindingSpec.libsonnet | 67 + .../validatingAdmissionPolicySpec.libsonnet | 66 + .../validatingAdmissionPolicyStatus.libsonnet | 19 + .../v1/validatingWebhook.libsonnet | 68 + .../validatingWebhookConfiguration.libsonnet | 58 + .../v1/validation.libsonnet | 14 + .../v1/variable.libsonnet | 10 + .../v1/webhookClientConfig.libsonnet | 21 + .../v1alpha1/auditAnnotation.libsonnet | 10 + .../v1alpha1/expressionWarning.libsonnet | 10 + .../v1alpha1/main.libsonnet | 19 + .../v1alpha1/matchCondition.libsonnet | 10 + .../v1alpha1/matchResources.libsonnet | 38 + .../namedRuleWithOperations.libsonnet | 28 + .../v1alpha1/paramKind.libsonnet | 8 + .../v1alpha1/paramRef.libsonnet | 23 + .../v1alpha1/typeChecking.libsonnet | 10 + .../validatingAdmissionPolicy.libsonnet | 117 + ...validatingAdmissionPolicyBinding.libsonnet | 118 + ...datingAdmissionPolicyBindingSpec.libsonnet | 67 + .../validatingAdmissionPolicySpec.libsonnet | 66 + .../validatingAdmissionPolicyStatus.libsonnet | 19 + .../v1alpha1/validation.libsonnet | 14 + .../v1alpha1/variable.libsonnet | 10 + .../v1beta1/auditAnnotation.libsonnet | 10 + .../v1beta1/expressionWarning.libsonnet | 10 + .../v1beta1/main.libsonnet | 19 + .../v1beta1/matchCondition.libsonnet | 10 + .../v1beta1/matchResources.libsonnet | 38 + .../v1beta1/namedRuleWithOperations.libsonnet | 28 + .../v1beta1/paramKind.libsonnet | 8 + .../v1beta1/paramRef.libsonnet | 23 + .../v1beta1/typeChecking.libsonnet | 10 + .../validatingAdmissionPolicy.libsonnet | 117 + ...validatingAdmissionPolicyBinding.libsonnet | 118 + ...datingAdmissionPolicyBindingSpec.libsonnet | 67 + .../validatingAdmissionPolicySpec.libsonnet | 66 + .../validatingAdmissionPolicyStatus.libsonnet | 19 + .../v1beta1/validation.libsonnet | 14 + .../v1beta1/variable.libsonnet | 10 + .../1.30/_gen/apiregistration/main.libsonnet | 5 + .../apiregistration/v1/apiService.libsonnet | 78 + .../v1/apiServiceCondition.libsonnet | 14 + .../v1/apiServiceSpec.libsonnet | 27 + .../v1/apiServiceStatus.libsonnet | 10 + .../_gen/apiregistration/v1/main.libsonnet | 9 + .../v1/serviceReference.libsonnet | 12 + .../_gen/apiserverinternal/main.libsonnet | 5 + .../apiserverinternal/v1alpha1/main.libsonnet | 9 + .../v1alpha1/serverStorageVersion.libsonnet | 18 + .../v1alpha1/storageVersion.libsonnet | 58 + .../storageVersionCondition.libsonnet | 16 + .../v1alpha1/storageVersionSpec.libsonnet | 6 + .../v1alpha1/storageVersionStatus.libsonnet | 16 + .../1.30/_gen/apps/main.libsonnet | 5 + .../_gen/apps/v1/controllerRevision.libsonnet | 60 + .../1.30/_gen/apps/v1/daemonSet.libsonnet | 345 +++ .../_gen/apps/v1/daemonSetCondition.libsonnet | 14 + .../1.30/_gen/apps/v1/daemonSetSpec.libsonnet | 294 ++ .../_gen/apps/v1/daemonSetStatus.libsonnet | 28 + .../apps/v1/daemonSetUpdateStrategy.libsonnet | 15 + .../1.30/_gen/apps/v1/deployment.libsonnet | 351 +++ .../apps/v1/deploymentCondition.libsonnet | 16 + .../_gen/apps/v1/deploymentSpec.libsonnet | 300 ++ .../_gen/apps/v1/deploymentStatus.libsonnet | 24 + .../_gen/apps/v1/deploymentStrategy.libsonnet | 15 + .../1.30/_gen/apps/v1/main.libsonnet | 29 + .../1.30/_gen/apps/v1/replicaSet.libsonnet | 333 +++ .../apps/v1/replicaSetCondition.libsonnet | 14 + .../_gen/apps/v1/replicaSetSpec.libsonnet | 282 ++ .../_gen/apps/v1/replicaSetStatus.libsonnet | 20 + .../apps/v1/rollingUpdateDaemonSet.libsonnet | 10 + .../apps/v1/rollingUpdateDeployment.libsonnet | 10 + ...rollingUpdateStatefulSetStrategy.libsonnet | 10 + .../1.30/_gen/apps/v1/statefulSet.libsonnet | 367 +++ .../apps/v1/statefulSetCondition.libsonnet | 14 + .../apps/v1/statefulSetOrdinals.libsonnet | 8 + ...istentVolumeClaimRetentionPolicy.libsonnet | 10 + .../_gen/apps/v1/statefulSetSpec.libsonnet | 316 ++ .../_gen/apps/v1/statefulSetStatus.libsonnet | 28 + .../v1/statefulSetUpdateStrategy.libsonnet | 15 + .../1.30/_gen/authentication/main.libsonnet | 7 + .../v1/boundObjectReference.libsonnet | 12 + .../_gen/authentication/v1/main.libsonnet | 14 + .../v1/selfSubjectReview.libsonnet | 54 + .../v1/selfSubjectReviewStatus.libsonnet | 21 + .../authentication/v1/tokenRequest.libsonnet | 74 + .../v1/tokenRequestSpec.libsonnet | 23 + .../v1/tokenRequestStatus.libsonnet | 10 + .../authentication/v1/tokenReview.libsonnet | 63 + .../v1/tokenReviewSpec.libsonnet | 12 + .../v1/tokenReviewStatus.libsonnet | 29 + .../_gen/authentication/v1/userInfo.libsonnet | 18 + .../authentication/v1alpha1/main.libsonnet | 6 + .../v1alpha1/selfSubjectReview.libsonnet | 54 + .../selfSubjectReviewStatus.libsonnet | 21 + .../authentication/v1beta1/main.libsonnet | 6 + .../v1beta1/selfSubjectReview.libsonnet | 54 + .../v1beta1/selfSubjectReviewStatus.libsonnet | 21 + .../1.30/_gen/authorization/main.libsonnet | 5 + .../v1/localSubjectAccessReview.libsonnet | 93 + .../1.30/_gen/authorization/v1/main.libsonnet | 17 + .../v1/nonResourceAttributes.libsonnet | 10 + .../v1/nonResourceRule.libsonnet | 14 + .../v1/resourceAttributes.libsonnet | 20 + .../authorization/v1/resourceRule.libsonnet | 22 + .../v1/selfSubjectAccessReview.libsonnet | 81 + .../v1/selfSubjectAccessReviewSpec.libsonnet | 30 + .../v1/selfSubjectRulesReview.libsonnet | 59 + .../v1/selfSubjectRulesReviewSpec.libsonnet | 8 + .../v1/subjectAccessReview.libsonnet | 93 + .../v1/subjectAccessReviewSpec.libsonnet | 42 + .../v1/subjectAccessReviewStatus.libsonnet | 14 + .../v1/subjectRulesReviewStatus.libsonnet | 18 + .../1.30/_gen/autoscaling/main.libsonnet | 6 + .../v1/crossVersionObjectReference.libsonnet | 10 + .../v1/horizontalPodAutoscaler.libsonnet | 72 + .../v1/horizontalPodAutoscalerSpec.libsonnet | 21 + .../horizontalPodAutoscalerStatus.libsonnet | 16 + .../1.30/_gen/autoscaling/v1/main.libsonnet | 11 + .../1.30/_gen/autoscaling/v1/scale.libsonnet | 59 + .../_gen/autoscaling/v1/scaleSpec.libsonnet | 8 + .../_gen/autoscaling/v1/scaleStatus.libsonnet | 10 + .../containerResourceMetricSource.libsonnet | 21 + .../containerResourceMetricStatus.libsonnet | 19 + .../v2/crossVersionObjectReference.libsonnet | 10 + .../v2/externalMetricSource.libsonnet | 33 + .../v2/externalMetricStatus.libsonnet | 31 + .../v2/horizontalPodAutoscaler.libsonnet | 99 + .../horizontalPodAutoscalerBehavior.libsonnet | 28 + ...horizontalPodAutoscalerCondition.libsonnet | 14 + .../v2/horizontalPodAutoscalerSpec.libsonnet | 48 + .../horizontalPodAutoscalerStatus.libsonnet | 22 + .../autoscaling/v2/hpaScalingPolicy.libsonnet | 12 + .../autoscaling/v2/hpaScalingRules.libsonnet | 14 + .../1.30/_gen/autoscaling/v2/main.libsonnet | 27 + .../autoscaling/v2/metricIdentifier.libsonnet | 19 + .../_gen/autoscaling/v2/metricSpec.libsonnet | 141 + .../autoscaling/v2/metricStatus.libsonnet | 131 + .../autoscaling/v2/metricTarget.libsonnet | 14 + .../v2/metricValueStatus.libsonnet | 12 + .../v2/objectMetricSource.libsonnet | 42 + .../v2/objectMetricStatus.libsonnet | 40 + .../autoscaling/v2/podsMetricSource.libsonnet | 33 + .../autoscaling/v2/podsMetricStatus.libsonnet | 31 + .../v2/resourceMetricSource.libsonnet | 19 + .../v2/resourceMetricStatus.libsonnet | 17 + .../1.30/_gen/batch/main.libsonnet | 5 + .../1.30/_gen/batch/v1/cronJob.libsonnet | 430 +++ .../1.30/_gen/batch/v1/cronJobSpec.libsonnet | 379 +++ .../_gen/batch/v1/cronJobStatus.libsonnet | 14 + .../1.30/_gen/batch/v1/job.libsonnet | 367 +++ .../1.30/_gen/batch/v1/jobCondition.libsonnet | 16 + .../1.30/_gen/batch/v1/jobSpec.libsonnet | 316 ++ .../1.30/_gen/batch/v1/jobStatus.libsonnet | 39 + .../_gen/batch/v1/jobTemplateSpec.libsonnet | 362 +++ .../1.30/_gen/batch/v1/main.libsonnet | 19 + .../_gen/batch/v1/podFailurePolicy.libsonnet | 10 + ...lurePolicyOnExitCodesRequirement.libsonnet | 14 + ...lurePolicyOnPodConditionsPattern.libsonnet | 8 + .../batch/v1/podFailurePolicyRule.libsonnet | 23 + .../_gen/batch/v1/successPolicy.libsonnet | 10 + .../_gen/batch/v1/successPolicyRule.libsonnet | 10 + .../v1/uncountedTerminatedPods.libsonnet | 14 + .../1.30/_gen/certificates/main.libsonnet | 6 + .../v1/certificateSigningRequest.libsonnet | 79 + ...rtificateSigningRequestCondition.libsonnet | 16 + .../certificateSigningRequestSpec.libsonnet | 28 + .../certificateSigningRequestStatus.libsonnet | 12 + .../1.30/_gen/certificates/v1/main.libsonnet | 8 + .../v1alpha1/clusterTrustBundle.libsonnet | 61 + .../v1alpha1/clusterTrustBundleSpec.libsonnet | 10 + .../_gen/certificates/v1alpha1/main.libsonnet | 6 + .../1.30/_gen/coordination/main.libsonnet | 5 + .../1.30/_gen/coordination/v1/lease.libsonnet | 67 + .../_gen/coordination/v1/leaseSpec.libsonnet | 16 + .../1.30/_gen/coordination/v1/main.libsonnet | 6 + .../1.30/_gen/core/main.libsonnet | 5 + .../1.30/_gen/core/v1/affinity.libsonnet | 42 + .../_gen/core/v1/appArmorProfile.libsonnet | 10 + .../_gen/core/v1/attachedVolume.libsonnet | 10 + ...awsElasticBlockStoreVolumeSource.libsonnet | 14 + .../core/v1/azureDiskVolumeSource.libsonnet | 18 + .../azureFilePersistentVolumeSource.libsonnet | 14 + .../core/v1/azureFileVolumeSource.libsonnet | 12 + .../1.30/_gen/core/v1/binding.libsonnet | 71 + .../1.30/_gen/core/v1/capabilities.libsonnet | 14 + .../v1/cephFSPersistentVolumeSource.libsonnet | 25 + .../_gen/core/v1/cephFSVolumeSource.libsonnet | 23 + .../v1/cinderPersistentVolumeSource.libsonnet | 19 + .../_gen/core/v1/cinderVolumeSource.libsonnet | 17 + .../1.30/_gen/core/v1/claimSource.libsonnet | 10 + .../_gen/core/v1/clientIPConfig.libsonnet | 8 + .../v1/clusterTrustBundleProjection.libsonnet | 25 + .../_gen/core/v1/componentCondition.libsonnet | 12 + .../_gen/core/v1/componentStatus.libsonnet | 58 + .../1.30/_gen/core/v1/configMap.libsonnet | 64 + .../_gen/core/v1/configMapEnvSource.libsonnet | 10 + .../core/v1/configMapKeySelector.libsonnet | 12 + .../v1/configMapNodeConfigSource.libsonnet | 16 + .../core/v1/configMapProjection.libsonnet | 14 + .../core/v1/configMapVolumeSource.libsonnet | 16 + .../1.30/_gen/core/v1/container.libsonnet | 367 +++ .../_gen/core/v1/containerImage.libsonnet | 12 + .../1.30/_gen/core/v1/containerPort.libsonnet | 16 + .../core/v1/containerResizePolicy.libsonnet | 10 + .../_gen/core/v1/containerState.libsonnet | 35 + .../core/v1/containerStateRunning.libsonnet | 8 + .../v1/containerStateTerminated.libsonnet | 20 + .../core/v1/containerStateWaiting.libsonnet | 10 + .../_gen/core/v1/containerStatus.libsonnet | 107 + .../v1/csiPersistentVolumeSource.libsonnet | 53 + .../_gen/core/v1/csiVolumeSource.libsonnet | 21 + .../_gen/core/v1/daemonEndpoint.libsonnet | 8 + .../core/v1/downwardAPIProjection.libsonnet | 10 + .../core/v1/downwardAPIVolumeFile.libsonnet | 26 + .../core/v1/downwardAPIVolumeSource.libsonnet | 12 + .../core/v1/emptyDirVolumeSource.libsonnet | 10 + .../_gen/core/v1/endpointAddress.libsonnet | 29 + .../1.30/_gen/core/v1/endpointPort.libsonnet | 14 + .../_gen/core/v1/endpointSubset.libsonnet | 18 + .../1.30/_gen/core/v1/endpoints.libsonnet | 58 + .../1.30/_gen/core/v1/envFromSource.libsonnet | 22 + .../1.30/_gen/core/v1/envVar.libsonnet | 47 + .../1.30/_gen/core/v1/envVarSource.libsonnet | 40 + .../_gen/core/v1/ephemeralContainer.libsonnet | 369 +++ .../core/v1/ephemeralVolumeSource.libsonnet | 109 + .../1.30/_gen/core/v1/event.libsonnet | 122 + .../1.30/_gen/core/v1/eventSeries.libsonnet | 10 + .../1.30/_gen/core/v1/eventSource.libsonnet | 10 + .../1.30/_gen/core/v1/execAction.libsonnet | 10 + .../_gen/core/v1/fcVolumeSource.libsonnet | 20 + .../v1/flexPersistentVolumeSource.libsonnet | 23 + .../_gen/core/v1/flexVolumeSource.libsonnet | 21 + .../core/v1/flockerVolumeSource.libsonnet | 10 + .../gcePersistentDiskVolumeSource.libsonnet | 14 + .../core/v1/gitRepoVolumeSource.libsonnet | 12 + .../glusterfsPersistentVolumeSource.libsonnet | 14 + .../core/v1/glusterfsVolumeSource.libsonnet | 12 + .../1.30/_gen/core/v1/grpcAction.libsonnet | 10 + .../1.30/_gen/core/v1/hostAlias.libsonnet | 12 + .../1.30/_gen/core/v1/hostIP.libsonnet | 8 + .../core/v1/hostPathVolumeSource.libsonnet | 10 + .../1.30/_gen/core/v1/httpGetAction.libsonnet | 18 + .../1.30/_gen/core/v1/httpHeader.libsonnet | 10 + .../v1/iscsiPersistentVolumeSource.libsonnet | 35 + .../_gen/core/v1/iscsiVolumeSource.libsonnet | 33 + .../1.30/_gen/core/v1/keyToPath.libsonnet | 12 + .../1.30/_gen/core/v1/lifecycle.libsonnet | 80 + .../_gen/core/v1/lifecycleHandler.libsonnet | 40 + .../1.30/_gen/core/v1/limitRange.libsonnet | 61 + .../_gen/core/v1/limitRangeItem.libsonnet | 28 + .../_gen/core/v1/limitRangeSpec.libsonnet | 10 + .../core/v1/loadBalancerIngress.libsonnet | 16 + .../_gen/core/v1/loadBalancerStatus.libsonnet | 10 + .../core/v1/localObjectReference.libsonnet | 8 + .../_gen/core/v1/localVolumeSource.libsonnet | 10 + .../1.30/_gen/core/v1/main.libsonnet | 194 ++ .../_gen/core/v1/modifyVolumeStatus.libsonnet | 8 + .../1.30/_gen/core/v1/namespace.libsonnet | 61 + .../_gen/core/v1/namespaceCondition.libsonnet | 14 + .../1.30/_gen/core/v1/namespaceSpec.libsonnet | 10 + .../_gen/core/v1/namespaceStatus.libsonnet | 12 + .../_gen/core/v1/nfsVolumeSource.libsonnet | 12 + .../1.30/_gen/core/v1/node.libsonnet | 89 + .../1.30/_gen/core/v1/nodeAddress.libsonnet | 10 + .../1.30/_gen/core/v1/nodeAffinity.libsonnet | 17 + .../1.30/_gen/core/v1/nodeCondition.libsonnet | 16 + .../_gen/core/v1/nodeConfigSource.libsonnet | 19 + .../_gen/core/v1/nodeConfigStatus.libsonnet | 56 + .../core/v1/nodeDaemonEndpoints.libsonnet | 11 + .../_gen/core/v1/nodeRuntimeHandler.libsonnet | 13 + .../v1/nodeRuntimeHandlerFeatures.libsonnet | 8 + .../1.30/_gen/core/v1/nodeSelector.libsonnet | 10 + .../core/v1/nodeSelectorRequirement.libsonnet | 14 + .../_gen/core/v1/nodeSelectorTerm.libsonnet | 14 + .../1.30/_gen/core/v1/nodeSpec.libsonnet | 38 + .../1.30/_gen/core/v1/nodeStatus.libsonnet | 124 + .../_gen/core/v1/nodeSystemInfo.libsonnet | 26 + .../core/v1/objectFieldSelector.libsonnet | 8 + .../_gen/core/v1/objectReference.libsonnet | 18 + .../_gen/core/v1/persistentVolume.libsonnet | 474 +++ .../core/v1/persistentVolumeClaim.libsonnet | 111 + .../persistentVolumeClaimCondition.libsonnet | 16 + .../v1/persistentVolumeClaimSpec.libsonnet | 60 + .../v1/persistentVolumeClaimStatus.libsonnet | 35 + .../persistentVolumeClaimTemplate.libsonnet | 106 + ...ersistentVolumeClaimVolumeSource.libsonnet | 10 + .../core/v1/persistentVolumeSpec.libsonnet | 423 +++ .../core/v1/persistentVolumeStatus.libsonnet | 14 + ...photonPersistentDiskVolumeSource.libsonnet | 10 + .../1.30/_gen/core/v1/pod.libsonnet | 269 ++ .../1.30/_gen/core/v1/podAffinity.libsonnet | 14 + .../_gen/core/v1/podAffinityTerm.libsonnet | 42 + .../_gen/core/v1/podAntiAffinity.libsonnet | 14 + .../1.30/_gen/core/v1/podCondition.libsonnet | 16 + .../1.30/_gen/core/v1/podDNSConfig.libsonnet | 18 + .../_gen/core/v1/podDNSConfigOption.libsonnet | 10 + .../1.30/_gen/core/v1/podIP.libsonnet | 8 + .../1.30/_gen/core/v1/podOS.libsonnet | 8 + .../_gen/core/v1/podReadinessGate.libsonnet | 8 + .../_gen/core/v1/podResourceClaim.libsonnet | 15 + .../core/v1/podResourceClaimStatus.libsonnet | 10 + .../_gen/core/v1/podSchedulingGate.libsonnet | 8 + .../_gen/core/v1/podSecurityContext.libsonnet | 60 + .../1.30/_gen/core/v1/podSpec.libsonnet | 218 ++ .../1.30/_gen/core/v1/podStatus.libsonnet | 52 + .../1.30/_gen/core/v1/podTemplate.libsonnet | 315 ++ .../_gen/core/v1/podTemplateSpec.libsonnet | 264 ++ .../1.30/_gen/core/v1/portStatus.libsonnet | 12 + .../core/v1/portworxVolumeSource.libsonnet | 12 + .../core/v1/preferredSchedulingTerm.libsonnet | 19 + .../1.30/_gen/core/v1/probe.libsonnet | 54 + .../core/v1/projectedVolumeSource.libsonnet | 12 + .../core/v1/quobyteVolumeSource.libsonnet | 18 + .../v1/rbdPersistentVolumeSource.libsonnet | 29 + .../_gen/core/v1/rbdVolumeSource.libsonnet | 27 + .../core/v1/replicationController.libsonnet | 326 ++ .../replicationControllerCondition.libsonnet | 14 + .../v1/replicationControllerSpec.libsonnet | 275 ++ .../v1/replicationControllerStatus.libsonnet | 20 + .../1.30/_gen/core/v1/resourceClaim.libsonnet | 8 + .../core/v1/resourceFieldSelector.libsonnet | 12 + .../1.30/_gen/core/v1/resourceQuota.libsonnet | 72 + .../_gen/core/v1/resourceQuotaSpec.libsonnet | 21 + .../core/v1/resourceQuotaStatus.libsonnet | 14 + .../core/v1/resourceRequirements.libsonnet | 18 + .../scaleIOPersistentVolumeSource.libsonnet | 31 + .../core/v1/scaleIOVolumeSource.libsonnet | 29 + .../1.30/_gen/core/v1/scopeSelector.libsonnet | 10 + ...copedResourceSelectorRequirement.libsonnet | 14 + .../_gen/core/v1/seLinuxOptions.libsonnet | 14 + .../_gen/core/v1/seccompProfile.libsonnet | 10 + .../1.30/_gen/core/v1/secret.libsonnet | 66 + .../_gen/core/v1/secretEnvSource.libsonnet | 10 + .../_gen/core/v1/secretKeySelector.libsonnet | 12 + .../_gen/core/v1/secretProjection.libsonnet | 14 + .../_gen/core/v1/secretReference.libsonnet | 10 + .../_gen/core/v1/secretVolumeSource.libsonnet | 16 + .../_gen/core/v1/securityContext.libsonnet | 67 + .../1.30/_gen/core/v1/service.libsonnet | 115 + .../_gen/core/v1/serviceAccount.libsonnet | 64 + .../serviceAccountTokenProjection.libsonnet | 12 + .../1.30/_gen/core/v1/servicePort.libsonnet | 18 + .../1.30/_gen/core/v1/serviceSpec.libsonnet | 64 + .../1.30/_gen/core/v1/serviceStatus.libsonnet | 17 + .../core/v1/sessionAffinityConfig.libsonnet | 11 + .../1.30/_gen/core/v1/sleepAction.libsonnet | 8 + .../storageOSPersistentVolumeSource.libsonnet | 31 + .../core/v1/storageOSVolumeSource.libsonnet | 19 + .../1.30/_gen/core/v1/sysctl.libsonnet | 10 + .../1.30/_gen/core/v1/taint.libsonnet | 14 + .../_gen/core/v1/tcpSocketAction.libsonnet | 10 + .../1.30/_gen/core/v1/toleration.libsonnet | 16 + ...topologySelectorLabelRequirement.libsonnet | 12 + .../core/v1/topologySelectorTerm.libsonnet | 10 + .../v1/topologySpreadConstraint.libsonnet | 33 + .../v1/typedLocalObjectReference.libsonnet | 12 + .../core/v1/typedObjectReference.libsonnet | 14 + .../1.30/_gen/core/v1/volume.libsonnet | 484 +++ .../1.30/_gen/core/v1/volumeDevice.libsonnet | 10 + .../1.30/_gen/core/v1/volumeMount.libsonnet | 20 + .../_gen/core/v1/volumeMountStatus.libsonnet | 14 + .../_gen/core/v1/volumeNodeAffinity.libsonnet | 13 + .../_gen/core/v1/volumeProjection.libsonnet | 66 + .../v1/volumeResourceRequirements.libsonnet | 14 + .../vsphereVirtualDiskVolumeSource.libsonnet | 14 + .../core/v1/weightedPodAffinityTerm.libsonnet | 47 + .../windowsSecurityContextOptions.libsonnet | 14 + .../1.30/_gen/discovery/main.libsonnet | 5 + .../1.30/_gen/discovery/v1/endpoint.libsonnet | 53 + .../discovery/v1/endpointConditions.libsonnet | 12 + .../_gen/discovery/v1/endpointHints.libsonnet | 10 + .../_gen/discovery/v1/endpointPort.libsonnet | 14 + .../_gen/discovery/v1/endpointSlice.libsonnet | 64 + .../1.30/_gen/discovery/v1/forZone.libsonnet | 8 + .../1.30/_gen/discovery/v1/main.libsonnet | 10 + .../1.30/_gen/events/main.libsonnet | 5 + .../1.30/_gen/events/v1/event.libsonnet | 122 + .../1.30/_gen/events/v1/eventSeries.libsonnet | 10 + .../1.30/_gen/events/v1/main.libsonnet | 6 + .../1.30/_gen/flowcontrol/main.libsonnet | 6 + ...exemptPriorityLevelConfiguration.libsonnet | 10 + .../v1/flowDistinguisherMethod.libsonnet | 8 + .../_gen/flowcontrol/v1/flowSchema.libsonnet | 73 + .../v1/flowSchemaCondition.libsonnet | 14 + .../flowcontrol/v1/flowSchemaSpec.libsonnet | 22 + .../flowcontrol/v1/flowSchemaStatus.libsonnet | 10 + .../flowcontrol/v1/groupSubject.libsonnet | 8 + .../flowcontrol/v1/limitResponse.libsonnet | 17 + ...imitedPriorityLevelConfiguration.libsonnet | 26 + .../1.30/_gen/flowcontrol/v1/main.libsonnet | 25 + .../v1/nonResourcePolicyRule.libsonnet | 14 + .../v1/policyRulesWithSubjects.libsonnet | 18 + .../v1/priorityLevelConfiguration.libsonnet | 89 + ...orityLevelConfigurationCondition.libsonnet | 14 + ...orityLevelConfigurationReference.libsonnet | 8 + .../priorityLevelConfigurationSpec.libsonnet | 38 + ...priorityLevelConfigurationStatus.libsonnet | 10 + .../v1/queuingConfiguration.libsonnet | 12 + .../v1/resourcePolicyRule.libsonnet | 24 + .../v1/serviceAccountSubject.libsonnet | 10 + .../_gen/flowcontrol/v1/subject.libsonnet | 25 + .../_gen/flowcontrol/v1/userSubject.libsonnet | 8 + ...exemptPriorityLevelConfiguration.libsonnet | 10 + .../v1beta3/flowDistinguisherMethod.libsonnet | 8 + .../flowcontrol/v1beta3/flowSchema.libsonnet | 73 + .../v1beta3/flowSchemaCondition.libsonnet | 14 + .../v1beta3/flowSchemaSpec.libsonnet | 22 + .../v1beta3/flowSchemaStatus.libsonnet | 10 + .../v1beta3/groupSubject.libsonnet | 8 + .../v1beta3/limitResponse.libsonnet | 17 + ...imitedPriorityLevelConfiguration.libsonnet | 26 + .../_gen/flowcontrol/v1beta3/main.libsonnet | 25 + .../v1beta3/nonResourcePolicyRule.libsonnet | 14 + .../v1beta3/policyRulesWithSubjects.libsonnet | 18 + .../priorityLevelConfiguration.libsonnet | 89 + ...orityLevelConfigurationCondition.libsonnet | 14 + ...orityLevelConfigurationReference.libsonnet | 8 + .../priorityLevelConfigurationSpec.libsonnet | 38 + ...priorityLevelConfigurationStatus.libsonnet | 10 + .../v1beta3/queuingConfiguration.libsonnet | 12 + .../v1beta3/resourcePolicyRule.libsonnet | 24 + .../v1beta3/serviceAccountSubject.libsonnet | 10 + .../flowcontrol/v1beta3/subject.libsonnet | 25 + .../flowcontrol/v1beta3/userSubject.libsonnet | 8 + .../1.30/_gen/meta/main.libsonnet | 5 + .../1.30/_gen/meta/v1/apiGroup.libsonnet | 28 + .../1.30/_gen/meta/v1/apiGroupList.libsonnet | 15 + .../1.30/_gen/meta/v1/apiResource.libsonnet | 32 + .../_gen/meta/v1/apiResourceList.libsonnet | 17 + .../1.30/_gen/meta/v1/apiVersions.libsonnet | 19 + .../1.30/_gen/meta/v1/condition.libsonnet | 16 + .../1.30/_gen/meta/v1/deleteOptions.libsonnet | 28 + .../1.30/_gen/meta/v1/fieldsV1.libsonnet | 6 + .../v1/groupVersionForDiscovery.libsonnet | 10 + .../1.30/_gen/meta/v1/labelSelector.libsonnet | 14 + .../v1/labelSelectorRequirement.libsonnet | 14 + .../1.30/_gen/meta/v1/listMeta.libsonnet | 14 + .../1.30/_gen/meta/v1/main.libsonnet | 27 + .../_gen/meta/v1/managedFieldsEntry.libsonnet | 20 + .../1.30/_gen/meta/v1/microTime.libsonnet | 6 + .../1.30/_gen/meta/v1/objectMeta.libsonnet | 46 + .../_gen/meta/v1/ownerReference.libsonnet | 16 + .../1.30/_gen/meta/v1/patch.libsonnet | 6 + .../1.30/_gen/meta/v1/preconditions.libsonnet | 10 + .../v1/serverAddressByClientCIDR.libsonnet | 10 + .../1.30/_gen/meta/v1/statusCause.libsonnet | 12 + .../1.30/_gen/meta/v1/statusDetails.libsonnet | 20 + .../1.30/_gen/meta/v1/time.libsonnet | 6 + .../1.30/_gen/meta/v1/watchEvent.libsonnet | 17 + .../1.30/_gen/networking/main.libsonnet | 6 + .../networking/v1/httpIngressPath.libsonnet | 34 + .../v1/httpIngressRuleValue.libsonnet | 10 + .../1.30/_gen/networking/v1/ingress.libsonnet | 91 + .../networking/v1/ingressBackend.libsonnet | 27 + .../_gen/networking/v1/ingressClass.libsonnet | 72 + .../ingressClassParametersReference.libsonnet | 16 + .../networking/v1/ingressClassSpec.libsonnet | 21 + .../v1/ingressLoadBalancerIngress.libsonnet | 14 + .../v1/ingressLoadBalancerStatus.libsonnet | 10 + .../networking/v1/ingressPortStatus.libsonnet | 12 + .../_gen/networking/v1/ingressRule.libsonnet | 15 + .../v1/ingressServiceBackend.libsonnet | 15 + .../_gen/networking/v1/ingressSpec.libsonnet | 40 + .../networking/v1/ingressStatus.libsonnet | 13 + .../_gen/networking/v1/ingressTLS.libsonnet | 12 + .../1.30/_gen/networking/v1/ipBlock.libsonnet | 12 + .../1.30/_gen/networking/v1/main.libsonnet | 27 + .../networking/v1/networkPolicy.libsonnet | 80 + .../v1/networkPolicyEgressRule.libsonnet | 14 + .../v1/networkPolicyIngressRule.libsonnet | 14 + .../networking/v1/networkPolicyPeer.libsonnet | 37 + .../networking/v1/networkPolicyPort.libsonnet | 12 + .../networking/v1/networkPolicySpec.libsonnet | 29 + .../v1/serviceBackendPort.libsonnet | 10 + .../networking/v1alpha1/ipAddress.libsonnet | 68 + .../v1alpha1/ipAddressSpec.libsonnet | 17 + .../_gen/networking/v1alpha1/main.libsonnet | 10 + .../v1alpha1/parentReference.libsonnet | 14 + .../networking/v1alpha1/serviceCIDR.libsonnet | 61 + .../v1alpha1/serviceCIDRSpec.libsonnet | 10 + .../v1alpha1/serviceCIDRStatus.libsonnet | 10 + .../1.30/_gen/node/main.libsonnet | 5 + .../1.30/_gen/node/v1/main.libsonnet | 7 + .../1.30/_gen/node/v1/overhead.libsonnet | 10 + .../1.30/_gen/node/v1/runtimeClass.libsonnet | 74 + .../1.30/_gen/node/v1/scheduling.libsonnet | 14 + .../1.30/_gen/policy/main.libsonnet | 5 + .../1.30/_gen/policy/v1/eviction.libsonnet | 78 + .../1.30/_gen/policy/v1/main.libsonnet | 8 + .../policy/v1/podDisruptionBudget.libsonnet | 74 + .../v1/podDisruptionBudgetSpec.libsonnet | 23 + .../v1/podDisruptionBudgetStatus.libsonnet | 24 + .../1.30/_gen/rbac/main.libsonnet | 5 + .../_gen/rbac/v1/aggregationRule.libsonnet | 10 + .../1.30/_gen/rbac/v1/clusterRole.libsonnet | 65 + .../_gen/rbac/v1/clusterRoleBinding.libsonnet | 67 + .../1.30/_gen/rbac/v1/main.libsonnet | 12 + .../1.30/_gen/rbac/v1/policyRule.libsonnet | 26 + .../1.30/_gen/rbac/v1/role.libsonnet | 58 + .../1.30/_gen/rbac/v1/roleBinding.libsonnet | 67 + .../1.30/_gen/rbac/v1/roleRef.libsonnet | 12 + .../1.30/_gen/rbac/v1/subject.libsonnet | 14 + .../1.30/_gen/resource/main.libsonnet | 5 + .../v1alpha2/allocationResult.libsonnet | 19 + .../v1alpha2/driverAllocationResult.libsonnet | 15 + .../v1alpha2/driverRequests.libsonnet | 16 + .../_gen/resource/v1alpha2/main.libsonnet | 36 + .../namedResourcesAllocationResult.libsonnet | 8 + .../namedResourcesAttribute.libsonnet | 32 + .../v1alpha2/namedResourcesFilter.libsonnet | 8 + .../v1alpha2/namedResourcesInstance.libsonnet | 12 + .../v1alpha2/namedResourcesIntSlice.libsonnet | 10 + .../v1alpha2/namedResourcesRequest.libsonnet | 8 + .../namedResourcesResources.libsonnet | 10 + .../namedResourcesStringSlice.libsonnet | 10 + .../v1alpha2/podSchedulingContext.libsonnet | 63 + .../podSchedulingContextSpec.libsonnet | 12 + .../podSchedulingContextStatus.libsonnet | 10 + .../resource/v1alpha2/resourceClaim.libsonnet | 70 + .../resourceClaimConsumerReference.libsonnet | 14 + .../resourceClaimParameters.libsonnet | 69 + ...resourceClaimParametersReference.libsonnet | 12 + .../resourceClaimSchedulingStatus.libsonnet | 12 + .../v1alpha2/resourceClaimSpec.libsonnet | 19 + .../v1alpha2/resourceClaimStatus.libsonnet | 30 + .../v1alpha2/resourceClaimTemplate.libsonnet | 116 + .../resourceClaimTemplateSpec.libsonnet | 65 + .../resource/v1alpha2/resourceClass.libsonnet | 76 + .../resourceClassParameters.libsonnet | 73 + ...resourceClassParametersReference.libsonnet | 14 + .../v1alpha2/resourceFilter.libsonnet | 13 + .../v1alpha2/resourceHandle.libsonnet | 27 + .../v1alpha2/resourceRequest.libsonnet | 15 + .../resource/v1alpha2/resourceSlice.libsonnet | 65 + .../structuredResourceHandle.libsonnet | 20 + .../v1alpha2/vendorParameters.libsonnet | 12 + .../1.30/_gen/scheduling/main.libsonnet | 5 + .../1.30/_gen/scheduling/v1/main.libsonnet | 5 + .../scheduling/v1/priorityClass.libsonnet | 62 + .../1.30/_gen/storage/main.libsonnet | 6 + .../1.30/_gen/storage/v1/csiDriver.libsonnet | 77 + .../_gen/storage/v1/csiDriverSpec.libsonnet | 26 + .../1.30/_gen/storage/v1/csiNode.libsonnet | 61 + .../_gen/storage/v1/csiNodeDriver.libsonnet | 19 + .../_gen/storage/v1/csiNodeSpec.libsonnet | 10 + .../storage/v1/csiStorageCapacity.libsonnet | 71 + .../1.30/_gen/storage/v1/main.libsonnet | 18 + .../_gen/storage/v1/storageClass.libsonnet | 74 + .../_gen/storage/v1/tokenRequest.libsonnet | 10 + .../storage/v1/volumeAttachment.libsonnet | 486 +++ .../v1/volumeAttachmentSource.libsonnet | 428 +++ .../storage/v1/volumeAttachmentSpec.libsonnet | 435 +++ .../v1/volumeAttachmentStatus.libsonnet | 26 + .../_gen/storage/v1/volumeError.libsonnet | 10 + .../storage/v1/volumeNodeResources.libsonnet | 8 + .../1.30/_gen/storage/v1alpha1/main.libsonnet | 5 + .../v1alpha1/volumeAttributesClass.libsonnet | 60 + .../1.30/_gen/storagemigration/main.libsonnet | 5 + .../v1alpha1/groupVersionResource.libsonnet | 12 + .../storagemigration/v1alpha1/main.libsonnet | 9 + .../v1alpha1/migrationCondition.libsonnet | 14 + .../storageVersionMigration.libsonnet | 68 + .../storageVersionMigrationSpec.libsonnet | 17 + .../storageVersionMigrationStatus.libsonnet | 12 + .../k8s-libsonnet/1.30/gen.libsonnet | 27 + .../k8s-libsonnet/1.30/main.libsonnet | 1 + .../xtd/.github/workflows/tests.yml | 32 + .../github.com/jsonnet-libs/xtd/.gitignore | 0 .../github.com/jsonnet-libs/xtd/LICENSE | 0 .../github.com/jsonnet-libs/xtd/Makefile | 0 .../github.com/jsonnet-libs/xtd/README.md | 0 .../jsonnet-libs/xtd/aggregate.libsonnet | 2 +- .../jsonnet-libs/xtd/array.libsonnet | 20 +- .../jsonnet-libs/xtd/ascii.libsonnet | 132 + .../jsonnet-libs/xtd/camelcase.libsonnet | 22 +- .../jsonnet-libs/xtd/date.libsonnet | 185 ++ .../jsonnet-libs/xtd/docs/.gitignore | 0 .../github.com/jsonnet-libs/xtd/docs/Gemfile | 0 .../jsonnet-libs/xtd/docs/README.md | 5 +- .../jsonnet-libs/xtd/docs/_config.yml | 0 .../jsonnet-libs/xtd/docs/aggregate.md | 2 +- .../github.com/jsonnet-libs/xtd/docs/array.md | 14 +- .../github.com/jsonnet-libs/xtd/docs/ascii.md | 76 + .../jsonnet-libs/xtd/docs/camelcase.md | 14 +- .../github.com/jsonnet-libs/xtd/docs/date.md | 66 + .../jsonnet-libs/xtd/docs/inspect.md | 12 +- .../jsonnet-libs/xtd/docs/jsonpath.md | 2 +- .../jsonnet-libs/xtd/docs/number.md | 43 + .../jsonnet-libs/xtd/docs/string.md | 2 +- .../github.com/jsonnet-libs/xtd/docs/url.md | 2 +- .../jsonnet-libs/xtd/inspect.libsonnet | 26 +- .../jsonnet-libs/xtd/jsonpath.libsonnet | 2 +- .../jsonnet-libs/xtd/main.libsonnet | 3 +- .../jsonnet-libs/xtd/number.libsonnet | 48 + .../jsonnet-libs/xtd/string.libsonnet | 2 +- .../jsonnet-libs/xtd/test/array_test.jsonnet | 0 .../jsonnet-libs/xtd/test/ascii_test.jsonnet | 92 + .../xtd/test/camelcase_test.jsonnet | 88 +- .../jsonnet-libs/xtd/test/date_test.jsonnet | 219 ++ .../xtd/test/inspect_test.jsonnet | 39 + .../jsonnet-libs/xtd/test/jsonnetfile.json | 0 .../xtd/test/jsonpath_test.jsonnet | 0 .../jsonnet-libs/xtd/test/url_test.jsonnet | 0 .../github.com/jsonnet-libs/xtd/url.libsonnet | 2 +- pkg/server/testdata/vendor/grafonnet-latest | 1 + pkg/server/testdata/vendor/grafonnet-v11.4.0 | 1 + pkg/server/testdata/vendor/k8s-libsonnet | 1 + pkg/server/testdata/vendor/ksonnet-util | 1 + .../testdata/{grafonnet => }/vendor/xtd | 0 scripts/jsonnetfmt.sh | 3 +- 1220 files changed, 120432 insertions(+), 52837 deletions(-) rename pkg/server/testdata/{grafonnet/eval-variable-options.jsonnet => grafonnet-eval-variable-options.jsonnet} (66%) delete mode 100644 pkg/server/testdata/grafonnet/jsonnetfile.lock.json delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/librarypanel.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/fieldOverride.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/link.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/thresholdStep.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/transformation.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/valueMapping.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/playlist.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/preferences.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/elasticsearch.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/index.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/tempo.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/testData.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/serviceaccount.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/team.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/util.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/date.libsonnet delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/date.md delete mode 100644 pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet delete mode 120000 pkg/server/testdata/grafonnet/vendor/grafonnet-v10.0.0 create mode 100644 pkg/server/testdata/jsonnetfile.json create mode 100644 pkg/server/testdata/jsonnetfile.lock.json create mode 100644 pkg/server/testdata/k.libsonnet create mode 100644 pkg/server/testdata/use-ksonnet-util.jsonnet rename pkg/server/testdata/{grafonnet => }/vendor/doc-util (100%) rename pkg/server/testdata/{grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-latest}/jsonnetfile.json (67%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/accesspolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/alerting.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/contactPoint.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/muteTiming.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/notificationPolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/notificationTemplate.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/ruleGroup.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/contactPoint.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/muteTiming.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/notificationPolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/ruleGroup.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard.libsonnet rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/custom/dashboard/annotation.libsonnet (99%) rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/custom/dashboard/link.libsonnet (100%) rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/custom/dashboard/variable.libsonnet (88%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/panel.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/azureMonitor.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/cloudWatch.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/elasticsearch.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/expr.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/googleCloudMonitoring.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/grafanaPyroscope.libsonnet rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/custom/query/loki.libsonnet (92%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/parca.libsonnet rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/custom/query/prometheus.libsonnet (95%) rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/custom/query/tempo.libsonnet (93%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/testData.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/row.libsonnet rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/custom/util/dashboard.libsonnet (85%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/grid.libsonnet rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/custom/util/main.libsonnet (100%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/panel.libsonnet rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/custom/util/string.libsonnet (100%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/dashboard.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/README.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/accesspolicy/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/accesspolicy/rules.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/contactPoint.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/time_intervals/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/time_intervals/times.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationPolicy/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationPolicy/matcher.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationTemplate.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/rule/data.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/rule/index.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/dashboard/annotation.md (63%) rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/dashboard/index.md (59%) rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/dashboard/link.md (50%) rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/dashboard/variable.md (57%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/folder.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/defaults/links.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/defaults/thresholds/steps.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/overrides/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/overrides/properties.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/links.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/transformations.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/mapping.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/fieldOverride.md => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/override.md} (71%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/mapping.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/fieldOverride.md => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/override.md} (71%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/mapping.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/fieldOverride.md => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/override.md} (71%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/mapping.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/fieldOverride.md => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/override.md} (71%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/connections/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/connections/vertices.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/options/layers.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/threshold/step.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/panel/index.md (95%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/options/nodes/arcs.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/threshold/step.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/panel/row.md (54%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/options/sortBy.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/options/series.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/panelOptions/link.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/queryOptions/transformation.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/mapping.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/override.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/threshold/step.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/preferences.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/publicdashboard.md (71%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/athena.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureMonitor/resources.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureTraces/filters.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/azureMonitor.md => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/index.md} (60%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/columns/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/columns/parameters.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/groupBy.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/cloudWatch.md => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/index.md} (58%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/bucketAggs/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeClassicConditions/conditions.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeClassicConditions/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeMath.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeReduce.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeResample.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeSql.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeThreshold/conditions.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeThreshold/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/googleCloudMonitoring.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/query/grafanaPyroscope.md (50%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/index.md rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/query/loki.md (54%) rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/query/parca.md (53%) rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs}/query/prometheus.md (53%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/filters.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/groupBy.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/testData/csvWave.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/testData/index.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/role.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/rolebinding.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/team.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/util.md create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/folder.libsonnet rename pkg/server/testdata/{grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 => vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0}/jsonnetfile.json (100%) create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/librarypanel.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/alertList.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/annotationsList.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/barChart.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/barGauge.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/candlestick.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/canvas.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/dashboardList.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/datagrid.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/debug.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/gauge.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/geomap.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/heatmap.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/histogram.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/logs.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/news.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/nodeGraph.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/pieChart.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/row.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/stat.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/stateTimeline.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/statusHistory.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/table.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/text.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/timeSeries.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/trend.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/xyChart.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panelindex.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/preferences.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/publicdashboard.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/athena.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/azureMonitor.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/bigquery.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/cloudWatch.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/elasticsearch.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/expr.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/googleCloudMonitoring.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/grafanaPyroscope.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/loki.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/parca.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/prometheus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/tempo.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/testData.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/role.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/rolebinding.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/team.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/grafana.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/k-compat.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/kausal.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-custom.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-noname.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-subtypes.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-types.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/util.libsonnet rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md (65%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet (84%) create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/apps.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/autoscaling.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/batch.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/core.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/list.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/mapContainers.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/rbac.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/volumeMounts.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/auditAnnotation.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/expressionWarning.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/matchCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/matchResources.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/mutatingWebhook.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/mutatingWebhookConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/namedRuleWithOperations.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/paramKind.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/paramRef.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/ruleWithOperations.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/serviceReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/typeChecking.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyBinding.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyBindingSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicySpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingWebhook.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingWebhookConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validation.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/variable.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/webhookClientConfig.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/auditAnnotation.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/expressionWarning.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/matchCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/matchResources.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/namedRuleWithOperations.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/paramKind.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/paramRef.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/typeChecking.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyBinding.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyBindingSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicySpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validation.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/variable.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/auditAnnotation.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/expressionWarning.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/matchCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/matchResources.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/namedRuleWithOperations.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/paramKind.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/paramRef.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/typeChecking.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyBinding.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyBindingSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicySpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validation.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/variable.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiService.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/serviceReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/serverStorageVersion.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersion.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/controllerRevision.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSet.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetUpdateStrategy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deployment.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentStrategy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSet.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateDaemonSet.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateDeployment.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateStatefulSetStrategy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSet.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetOrdinals.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetPersistentVolumeClaimRetentionPolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetUpdateStrategy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/boundObjectReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/selfSubjectReview.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/selfSubjectReviewStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequest.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequestSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequestStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReview.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReviewSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReviewStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/userInfo.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/selfSubjectReview.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/selfSubjectReviewStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/selfSubjectReview.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/selfSubjectReviewStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/localSubjectAccessReview.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/nonResourceAttributes.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/nonResourceRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/resourceAttributes.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/resourceRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectAccessReview.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectAccessReviewSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectRulesReview.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectRulesReviewSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReview.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReviewSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReviewStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectRulesReviewStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/crossVersionObjectReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscaler.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscalerSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscalerStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scale.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scaleSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scaleStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/containerResourceMetricSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/containerResourceMetricStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/crossVersionObjectReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/externalMetricSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/externalMetricStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscaler.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerBehavior.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/hpaScalingPolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/hpaScalingRules.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricIdentifier.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricTarget.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricValueStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/objectMetricSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/objectMetricStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/podsMetricSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/podsMetricStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/resourceMetricSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/resourceMetricStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJob.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJobSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJobStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/job.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobTemplateSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyOnExitCodesRequirement.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyOnPodConditionsPattern.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/successPolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/successPolicyRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/uncountedTerminatedPods.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequest.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/clusterTrustBundle.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/clusterTrustBundleSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/lease.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/leaseSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/affinity.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/appArmorProfile.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/attachedVolume.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/awsElasticBlockStoreVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureDiskVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureFilePersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureFileVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/binding.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/capabilities.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cephFSPersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cephFSVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cinderPersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cinderVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/claimSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/clientIPConfig.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/clusterTrustBundleProjection.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/componentCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/componentStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMap.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapEnvSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapKeySelector.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapNodeConfigSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapProjection.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/container.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerImage.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerPort.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerResizePolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerState.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateRunning.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateTerminated.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateWaiting.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/csiPersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/csiVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/daemonEndpoint.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIProjection.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIVolumeFile.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/emptyDirVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointAddress.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointPort.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointSubset.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpoints.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envFromSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envVar.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envVarSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/ephemeralContainer.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/ephemeralVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/event.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/eventSeries.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/eventSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/execAction.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/fcVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flexPersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flexVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flockerVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/gcePersistentDiskVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/gitRepoVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/glusterfsPersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/glusterfsVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/grpcAction.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostAlias.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostIP.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostPathVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/httpGetAction.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/httpHeader.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/iscsiPersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/iscsiVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/keyToPath.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/lifecycle.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/lifecycleHandler.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRange.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRangeItem.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRangeSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/loadBalancerIngress.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/loadBalancerStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/localObjectReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/localVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/modifyVolumeStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespace.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nfsVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/node.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeAddress.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeAffinity.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeConfigSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeConfigStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeDaemonEndpoints.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeRuntimeHandler.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeRuntimeHandlerFeatures.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelector.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelectorRequirement.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelectorTerm.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSystemInfo.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/objectFieldSelector.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/objectReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolume.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaim.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimTemplate.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/photonPersistentDiskVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/pod.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAffinity.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAffinityTerm.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAntiAffinity.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podDNSConfig.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podDNSConfigOption.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podIP.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podOS.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podReadinessGate.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podResourceClaim.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podResourceClaimStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSchedulingGate.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSecurityContext.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podTemplate.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podTemplateSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/portStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/portworxVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/preferredSchedulingTerm.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/probe.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/projectedVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/quobyteVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/rbdPersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/rbdVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationController.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceClaim.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceFieldSelector.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuota.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuotaSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuotaStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceRequirements.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scaleIOPersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scaleIOVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scopeSelector.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scopedResourceSelectorRequirement.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/seLinuxOptions.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/seccompProfile.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secret.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretEnvSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretKeySelector.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretProjection.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/securityContext.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/service.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceAccount.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceAccountTokenProjection.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/servicePort.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sessionAffinityConfig.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sleepAction.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/storageOSPersistentVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/storageOSVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sysctl.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/taint.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/tcpSocketAction.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/toleration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySelectorLabelRequirement.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySelectorTerm.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySpreadConstraint.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/typedLocalObjectReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/typedObjectReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volume.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeDevice.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeMount.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeMountStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeNodeAffinity.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeProjection.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeResourceRequirements.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/vsphereVirtualDiskVolumeSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/weightedPodAffinityTerm.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/windowsSecurityContextOptions.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpoint.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointConditions.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointHints.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointPort.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointSlice.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/forZone.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/event.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/eventSeries.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/exemptPriorityLevelConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowDistinguisherMethod.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchema.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/groupSubject.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/limitResponse.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/limitedPriorityLevelConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/nonResourcePolicyRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/policyRulesWithSubjects.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/queuingConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/resourcePolicyRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/serviceAccountSubject.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/subject.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/userSubject.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/exemptPriorityLevelConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowDistinguisherMethod.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchema.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/groupSubject.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/limitResponse.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/limitedPriorityLevelConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/nonResourcePolicyRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/policyRulesWithSubjects.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/queuingConfiguration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/resourcePolicyRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/serviceAccountSubject.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/subject.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/userSubject.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiGroup.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiGroupList.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiResource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiResourceList.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiVersions.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/condition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/deleteOptions.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/fieldsV1.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/groupVersionForDiscovery.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/labelSelector.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/labelSelectorRequirement.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/listMeta.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/managedFieldsEntry.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/microTime.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/objectMeta.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/ownerReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/patch.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/preconditions.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/serverAddressByClientCIDR.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/statusCause.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/statusDetails.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/time.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/watchEvent.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/httpIngressPath.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/httpIngressRuleValue.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingress.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressBackend.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClass.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClassParametersReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClassSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressLoadBalancerIngress.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressLoadBalancerStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressPortStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressServiceBackend.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressTLS.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ipBlock.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicy.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyEgressRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyIngressRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyPeer.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyPort.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicySpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/serviceBackendPort.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/ipAddress.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/ipAddressSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/parentReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDR.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDRSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDRStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/overhead.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/runtimeClass.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/scheduling.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/eviction.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudget.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudgetSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudgetStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/aggregationRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/clusterRole.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/clusterRoleBinding.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/policyRule.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/role.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/roleBinding.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/roleRef.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/subject.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/allocationResult.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/driverAllocationResult.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/driverRequests.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesAllocationResult.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesAttribute.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesFilter.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesInstance.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesIntSlice.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesRequest.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesResources.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesStringSlice.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContext.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContextSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContextStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaim.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimConsumerReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimParameters.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimParametersReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimSchedulingStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimTemplate.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimTemplateSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClass.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClassParameters.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClassParametersReference.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceFilter.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceHandle.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceRequest.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceSlice.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/structuredResourceHandle.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/vendorParameters.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/v1/priorityClass.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiDriver.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiDriverSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNode.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNodeDriver.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNodeSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiStorageCapacity.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/storageClass.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/tokenRequest.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachment.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentSource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeError.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeNodeResources.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1alpha1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1alpha1/volumeAttributesClass.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/groupVersionResource.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/migrationCondition.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigration.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigrationSpec.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigrationStatus.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/gen.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/main.libsonnet create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/.github/workflows/tests.yml rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/.gitignore (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/LICENSE (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/Makefile (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/README.md (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet (96%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/array.libsonnet (59%) create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet (73%) create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/date.libsonnet rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/README.md (94%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md (98%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/array.md (52%) create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md (64%) create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/date.md rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md (90%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md (98%) create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/number.md rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/string.md (96%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/docs/url.md (98%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet (88%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet (97%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/main.libsonnet (86%) create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/number.libsonnet rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/string.libsonnet (92%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet (100%) create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/ascii_test.jsonnet rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet (61%) create mode 100644 pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet (79%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet (100%) rename pkg/server/testdata/{grafonnet => }/vendor/github.com/jsonnet-libs/xtd/url.libsonnet (98%) create mode 120000 pkg/server/testdata/vendor/grafonnet-latest create mode 120000 pkg/server/testdata/vendor/grafonnet-v11.4.0 create mode 120000 pkg/server/testdata/vendor/k8s-libsonnet create mode 120000 pkg/server/testdata/vendor/ksonnet-util rename pkg/server/testdata/{grafonnet => }/vendor/xtd (100%) diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index a010c4c..1de18f7 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -117,6 +117,24 @@ func (p *Processor) extractObjectRangesFromDesugaredObjs(desugaredObjs []*ast.De case *ast.Apply: // Add the target of the Apply to the list of field nodes to look for // The target is a function and will be found by FindVarReference on the next loop + if idx, ok := fieldNode.Target.(*ast.Index); ok { // Builder pattern, run the function within the index + if importNode, ok := idx.Target.(*ast.Import); ok { + // If the index is a builder pattern, we need to run the function within the index + // We need to import the file first + objs := p.FindTopLevelObjectsInFile(importNode.File.Value, string(importNode.Loc().File.DiagnosticFileName)) + for _, obj := range objs { + fieldString, ok := idx.Index.(*ast.LiteralString) + if !ok { + continue + } + if idxField := findObjectFieldsInObject(obj, fieldString.Value, false); len(idxField) > 0 { + fieldNodes = append(fieldNodes, idxField[0].Body) + } + } + i++ + continue + } + } fieldNodes = append(fieldNodes, fieldNode.Target) case *ast.Var: varReference, err := p.FindVarReference(fieldNode) diff --git a/pkg/server/definition_test.go b/pkg/server/definition_test.go index 11b2fda..0a27308 100644 --- a/pkg/server/definition_test.go +++ b/pkg/server/definition_test.go @@ -929,17 +929,17 @@ var definitionTestCases = []definitionTestCase{ }, { name: "grafonnet: eval variable selection options", - filename: "./testdata/grafonnet/eval-variable-options.jsonnet", + filename: "./testdata/grafonnet-eval-variable-options.jsonnet", position: protocol.Position{Line: 5, Character: 54}, results: []definitionResult{{ - targetFilename: "testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet", + targetFilename: "testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard/variable.libsonnet", targetRange: protocol.Range{ - Start: protocol.Position{Line: 101, Character: 12}, - End: protocol.Position{Line: 103, Character: 13}, + Start: protocol.Position{Line: 122, Character: 12}, + End: protocol.Position{Line: 124, Character: 13}, }, targetSelectionRange: protocol.Range{ - Start: protocol.Position{Line: 101, Character: 12}, - End: protocol.Position{Line: 101, Character: 21}, + Start: protocol.Position{Line: 122, Character: 12}, + End: protocol.Position{Line: 122, Character: 21}, }, }}, }, @@ -988,6 +988,22 @@ var definitionTestCases = []definitionTestCase{ }, }}, }, + { + name: "goto ksonnet util", + filename: "testdata/use-ksonnet-util.jsonnet", + position: protocol.Position{Line: 11, Character: 30}, + results: []definitionResult{{ + targetFilename: "testdata/vendor/ksonnet-util/util.libsonnet", + targetRange: protocol.Range{ + Start: protocol.Position{Line: 243, Character: 2}, + End: protocol.Position{Line: 251, Character: 5}, + }, + targetSelectionRange: protocol.Range{ + Start: protocol.Position{Line: 243, Character: 2}, + End: protocol.Position{Line: 243, Character: 24}, + }, + }}, + }, } func TestDefinition(t *testing.T) { diff --git a/pkg/server/testdata/grafonnet/eval-variable-options.jsonnet b/pkg/server/testdata/grafonnet-eval-variable-options.jsonnet similarity index 66% rename from pkg/server/testdata/grafonnet/eval-variable-options.jsonnet rename to pkg/server/testdata/grafonnet-eval-variable-options.jsonnet index 9bd6b83..13ede98 100644 --- a/pkg/server/testdata/grafonnet/eval-variable-options.jsonnet +++ b/pkg/server/testdata/grafonnet-eval-variable-options.jsonnet @@ -1,4 +1,4 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet'; +local g = import 'vendor/grafonnet-latest/main.libsonnet'; g.dashboard.new('title') + g.dashboard.withVariables([ diff --git a/pkg/server/testdata/grafonnet/jsonnetfile.lock.json b/pkg/server/testdata/grafonnet/jsonnetfile.lock.json deleted file mode 100644 index e400ebe..0000000 --- a/pkg/server/testdata/grafonnet/jsonnetfile.lock.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-v10.0.0" - } - }, - "version": "d37dd0e8d3498bfe45c997d1b634df37483b8abc", - "sum": "niLBEXrTCZ1JwqTMLnvy+yXqhrhvuIk0v+1YsB/bIkg=" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/docsonnet.git", - "subdir": "doc-util" - } - }, - "version": "7c865ec0606f2b68c0f6b2721f101e6a99cd2593", - "sum": "zjjufxN4yAIevldYEERiZEp27vK0BJKj1VvZcVtWiOo=" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/xtd.git", - "subdir": "" - } - }, - "version": "0256a910ac71f0f842696d7bca0bf01ea77eb654", - "sum": "zBOpb1oTNvXdq9RF6yzTHill5r1YTJLBBoqyx4JYtAg=" - } - ], - "legacyImports": false -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet deleted file mode 100644 index 6afc545..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet +++ /dev/null @@ -1,266 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.dashboard', name: 'dashboard' }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Description of dashboard.' } }, - withDescription(value): { description: value }, - '#withEditable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether a dashboard is editable or not.' } }, - withEditable(value=true): { editable: value }, - '#withFiscalYearStartMonth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'The month that the fiscal year starts on. 0 = January, 11 = December' } }, - withFiscalYearStartMonth(value=0): { fiscalYearStartMonth: value }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withLinks(value): { links: (if std.isArray(value) - then value - else [value]) }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withLinksMixin(value): { links+: (if std.isArray(value) - then value - else [value]) }, - '#withLiveNow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'When set to true, the dashboard will redraw panels at an interval matching the pixel width.\nThis will keep data "moving left" regardless of the query refresh rate. This setting helps\navoid dashboards presenting stale live data' } }, - withLiveNow(value=true): { liveNow: value }, - '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPanels(value): { panels: (if std.isArray(value) - then value - else [value]) }, - '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPanelsMixin(value): { panels+: (if std.isArray(value) - then value - else [value]) }, - '#withRefresh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, - withRefresh(value): { refresh: value }, - '#withRefreshMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, - withRefreshMixin(value): { refresh+: value }, - '#withSchemaVersion': { 'function': { args: [{ default: 36, enums: null, name: 'value', type: 'integer' }], help: "Version of the JSON schema, incremented each time a Grafana update brings\nchanges to said schema.\nTODO this is the existing schema numbering system. It will be replaced by Thema's themaVersion" } }, - withSchemaVersion(value=36): { schemaVersion: value }, - '#withStyle': { 'function': { args: [{ default: 'dark', enums: ['dark', 'light'], name: 'value', type: 'string' }], help: 'Theme of dashboard.' } }, - withStyle(value='dark'): { style: value }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Tags associated with dashboard.' } }, - withTags(value): { tags: (if std.isArray(value) - then value - else [value]) }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Tags associated with dashboard.' } }, - withTagsMixin(value): { tags+: (if std.isArray(value) - then value - else [value]) }, - '#withTemplating': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTemplating(value): { templating: value }, - '#withTemplatingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTemplatingMixin(value): { templating+: value }, - '#withTimezone': { 'function': { args: [{ default: 'browser', enums: null, name: 'value', type: 'string' }], help: 'Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc".' } }, - withTimezone(value='browser'): { timezone: value }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Title of dashboard.' } }, - withTitle(value): { title: value }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique dashboard identifier that can be generated by anyone. string (8-40)' } }, - withUid(value): { uid: value }, - '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withWeekStart(value): { weekStart: value }, - time+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: 'string' }], help: '' } }, - withFrom(value='now-6h'): { time+: { from: value } }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: 'string' }], help: '' } }, - withTo(value='now'): { time+: { to: value } }, - }, - timepicker+: - { - '#withCollapse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is collapsed or not.' } }, - withCollapse(value=true): { timepicker+: { collapse: value } }, - '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is enabled or not.' } }, - withEnable(value=true): { timepicker+: { enable: value } }, - '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is visible or not.' } }, - withHidden(value=true): { timepicker+: { hidden: value } }, - '#withRefreshIntervals': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: 'array' }], help: 'Selectable intervals for auto-refresh.' } }, - withRefreshIntervals(value): { timepicker+: { refresh_intervals: (if std.isArray(value) - then value - else [value]) } }, - '#withRefreshIntervalsMixin': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: 'array' }], help: 'Selectable intervals for auto-refresh.' } }, - withRefreshIntervalsMixin(value): { timepicker+: { refresh_intervals+: (if std.isArray(value) - then value - else [value]) } }, - '#withTimeOptions': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTimeOptions(value): { timepicker+: { time_options: (if std.isArray(value) - then value - else [value]) } }, - '#withTimeOptionsMixin': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTimeOptionsMixin(value): { timepicker+: { time_options+: (if std.isArray(value) - then value - else [value]) } }, - }, - link+: - { - dashboards+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTitle(value): { title: value }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { type: value }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTags(value): { tags: (if std.isArray(value) - then value - else [value]) }, - options+: - { - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsDropdown(value=true): { asDropdown: value }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withKeepTime(value=true): { keepTime: value }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIncludeVars(value=true): { includeVars: value }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTargetBlank(value=true): { targetBlank: value }, - }, - }, - link+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTitle(value): { title: value }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { type: value }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUrl(value): { url: value }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTooltip(value): { tooltip: value }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { icon: value }, - options+: - { - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsDropdown(value=true): { asDropdown: value }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withKeepTime(value=true): { keepTime: value }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIncludeVars(value=true): { includeVars: value }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTargetBlank(value=true): { targetBlank: value }, - }, - }, - }, - annotation+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withList(value): { annotations+: { list: (if std.isArray(value) - then value - else [value]) } }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withListMixin(value): { annotations+: { list+: (if std.isArray(value) - then value - else [value]) } }, - list+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: Should be DataSourceRef' } }, - withDatasource(value): { datasource: value }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: Should be DataSourceRef' } }, - withDatasourceMixin(value): { datasource+: value }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { datasource+: { type: value } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUid(value): { datasource+: { uid: value } }, - }, - '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'When enabled the annotation query is issued with every dashboard refresh' } }, - withEnable(value=true): { enable: value }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFilter(value): { filter: value }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFilterMixin(value): { filter+: value }, - filter+: - { - '#withExclude': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Should the specified panels be included or excluded' } }, - withExclude(value=true): { filter+: { exclude: value } }, - '#withIds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel IDs that should be included or excluded' } }, - withIds(value): { filter+: { ids: (if std.isArray(value) - then value - else [value]) } }, - '#withIdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel IDs that should be included or excluded' } }, - withIdsMixin(value): { filter+: { ids+: (if std.isArray(value) - then value - else [value]) } }, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Annotation queries can be toggled on or off at the top of the dashboard.\nWhen hide is true, the toggle is not shown in the dashboard.' } }, - withHide(value=true): { hide: value }, - '#withIconColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Color to use for the annotation event markers' } }, - withIconColor(value): { iconColor: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of annotation.' } }, - withName(value): { name: value }, - '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTarget(value): { target: value }, - '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTargetMixin(value): { target+: value }, - target+: - { - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withLimit(value): { target+: { limit: value } }, - '#withMatchAny': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withMatchAny(value=true): { target+: { matchAny: value } }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTags(value): { target+: { tags: (if std.isArray(value) - then value - else [value]) } }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTagsMixin(value): { target+: { tags+: (if std.isArray(value) - then value - else [value]) } }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withType(value): { target+: { type: value } }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO -- this should not exist here, it is based on the --grafana-- datasource' } }, - withType(value): { type: value }, - }, - }, - templating+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withList(value): { templating+: { list: (if std.isArray(value) - then value - else [value]) } }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withListMixin(value): { templating+: { list+: (if std.isArray(value) - then value - else [value]) } }, - list+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Ref to a DataSource instance' } }, - withDatasource(value): { datasource: value }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Ref to a DataSource instance' } }, - withDatasourceMixin(value): { datasource+: value }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The plugin type-id' } }, - withType(value): { datasource+: { type: value } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specific datasource instance' } }, - withUid(value): { datasource+: { uid: value } }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withDescription(value): { description: value }, - '#withError': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withError(value): { 'error': value }, - '#withErrorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withErrorMixin(value): { 'error'+: value }, - '#withGlobal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withGlobal(value=true): { global: value }, - '#withHide': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: 'integer' }], help: '' } }, - withHide(value): { hide: value }, - '#withId': { 'function': { args: [{ default: '00000000-0000-0000-0000-000000000000', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value='00000000-0000-0000-0000-000000000000'): { id: value }, - '#withIndex': { 'function': { args: [{ default: -1, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withIndex(value=-1): { index: value }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLabel(value): { label: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, - withQuery(value): { query: value }, - '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, - withQueryMixin(value): { query+: value }, - '#withRootStateKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRootStateKey(value): { rootStateKey: value }, - '#withSkipUrlSync': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSkipUrlSync(value=true): { skipUrlSync: value }, - '#withState': { 'function': { args: [{ default: null, enums: ['NotStarted', 'Loading', 'Streaming', 'Done', 'Error'], name: 'value', type: 'string' }], help: '' } }, - withState(value): { state: value }, - '#withType': { 'function': { args: [{ default: null, enums: ['query', 'adhoc', 'constant', 'datasource', 'interval', 'textbox', 'custom', 'system'], name: 'value', type: 'string' }], help: 'FROM: packages/grafana-data/src/types/templateVars.ts\nTODO docs\nTODO this implies some wider pattern/discriminated union, probably?' } }, - withType(value): { type: value }, - }, - }, -} -+ (import '../custom/dashboard.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet deleted file mode 100644 index e8f823a..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet +++ /dev/null @@ -1,341 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel', name: 'panel' }, - panelOptions+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Panel title.' } }, - withTitle(value): { title: value }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Description.' } }, - withDescription(value): { description: value }, - '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether to display the panel without a background.' } }, - withTransparent(value=true): { transparent: value }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, - withLinks(value): { links: (if std.isArray(value) - then value - else [value]) }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, - withLinksMixin(value): { links+: (if std.isArray(value) - then value - else [value]) }, - '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of template variable to repeat for.' } }, - withRepeat(value): { repeat: value }, - '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: 'string' }], help: "Direction to repeat in if 'repeat' is set.\n\"h\" for horizontal, \"v\" for vertical.\nTODO this is probably optional" } }, - withRepeatDirection(value='h'): { repeatDirection: value }, - '#withPluginVersion': { 'function': { args: [], help: '' } }, - withPluginVersion(): { pluginVersion: 'v10.0.0' }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The panel plugin type id. May not be empty.' } }, - withType(value): { type: value }, - }, - queryOptions+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'The datasource used in all targets.' } }, - withDatasource(value): { datasource: value }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'The datasource used in all targets.' } }, - withDatasourceMixin(value): { datasource+: value }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'TODO docs' } }, - withMaxDataPoints(value): { maxDataPoints: value }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, - withInterval(value): { interval: value }, - '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, - withTimeFrom(value): { timeFrom: value }, - '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, - withTimeShift(value): { timeShift: value }, - '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTargets(value): { targets: (if std.isArray(value) - then value - else [value]) }, - '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTargetsMixin(value): { targets+: (if std.isArray(value) - then value - else [value]) }, - '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTransformations(value): { transformations: (if std.isArray(value) - then value - else [value]) }, - '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTransformationsMixin(value): { transformations+: (if std.isArray(value) - then value - else [value]) }, - }, - standardOptions+: - { - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Numeric Options' } }, - withUnit(value): { fieldConfig+: { defaults+: { unit: value } } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMin(value): { fieldConfig+: { defaults+: { min: value } } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMax(value): { fieldConfig+: { defaults+: { max: value } } }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Significant digits (for display)' } }, - withDecimals(value): { fieldConfig+: { defaults+: { decimals: value } } }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The display value for this field. This supports template variables blank is auto' } }, - withDisplayName(value): { fieldConfig+: { defaults+: { displayName: value } } }, - color+: - { - '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Stores the fixed color value if mode is fixed' } }, - withFixedColor(value): { fieldConfig+: { defaults+: { color+: { fixedColor: value } } } }, - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The main color scheme mode' } }, - withMode(value): { fieldConfig+: { defaults+: { color+: { mode: value } } } }, - '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSeriesBy(value): { fieldConfig+: { defaults+: { color+: { seriesBy: value } } } }, - }, - '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Alternative to empty string' } }, - withNoValue(value): { fieldConfig+: { defaults+: { noValue: value } } }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The behavior when clicking on a result' } }, - withLinks(value): { fieldConfig+: { defaults+: { links: (if std.isArray(value) - then value - else [value]) } } }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The behavior when clicking on a result' } }, - withLinksMixin(value): { fieldConfig+: { defaults+: { links+: (if std.isArray(value) - then value - else [value]) } } }, - '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Convert input values into a display string' } }, - withMappings(value): { fieldConfig+: { defaults+: { mappings: (if std.isArray(value) - then value - else [value]) } } }, - '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Convert input values into a display string' } }, - withMappingsMixin(value): { fieldConfig+: { defaults+: { mappings+: (if std.isArray(value) - then value - else [value]) } } }, - '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withOverrides(value): { fieldConfig+: { overrides: (if std.isArray(value) - then value - else [value]) } }, - '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withOverridesMixin(value): { fieldConfig+: { overrides+: (if std.isArray(value) - then value - else [value]) } }, - thresholds+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { fieldConfig+: { defaults+: { thresholds+: { mode: value } } } }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withSteps(value): { fieldConfig+: { defaults+: { thresholds+: { steps: (if std.isArray(value) - then value - else [value]) } } } }, - '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withStepsMixin(value): { fieldConfig+: { defaults+: { thresholds+: { steps+: (if std.isArray(value) - then value - else [value]) } } } }, - }, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { datasource+: { type: value } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUid(value): { datasource+: { uid: value } }, - }, - libraryPanel+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { libraryPanel+: { name: value } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUid(value): { libraryPanel+: { uid: value } }, - }, - gridPos+: - { - '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, - withH(value=9): { gridPos+: { h: value } }, - '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if fixed' } }, - withStatic(value=true): { gridPos+: { static: value } }, - '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, - withW(value=12): { gridPos+: { w: value } }, - '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel x' } }, - withX(value=0): { gridPos+: { x: value } }, - '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel y' } }, - withY(value=0): { gridPos+: { y: value } }, - }, - link+: - { - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsDropdown(value=true): { asDropdown: value }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { icon: value }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIncludeVars(value=true): { includeVars: value }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withKeepTime(value=true): { keepTime: value }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTags(value): { tags: (if std.isArray(value) - then value - else [value]) }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTagsMixin(value): { tags+: (if std.isArray(value) - then value - else [value]) }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTargetBlank(value=true): { targetBlank: value }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTitle(value): { title: value }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTooltip(value): { tooltip: value }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { type: value }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUrl(value): { url: value }, - }, - transformation+: - { - '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Disabled transformations are skipped' } }, - withDisabled(value=true): { disabled: value }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFilter(value): { filter: value }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFilterMixin(value): { filter+: value }, - filter+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value=''): { filter+: { id: value } }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withOptions(value): { filter+: { options: value } }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique identifier of transformer' } }, - withId(value): { id: value }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, - withOptions(value): { options: value }, - }, - valueMapping+: - { - ValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - RangeMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'to and from are `number | null` in current ts, really not sure what to do' } }, - withFrom(value): { options+: { from: value } }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResult(value): { options+: { result: value } }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResultMixin(value): { options+: { result+: value } }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withColor(value): { options+: { result+: { color: value } } }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { options+: { result+: { icon: value } } }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withIndex(value): { options+: { result+: { index: value } } }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withText(value): { options+: { result+: { text: value } } }, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withTo(value): { options+: { to: value } }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - RegexMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPattern(value): { options+: { pattern: value } }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResult(value): { options+: { result: value } }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResultMixin(value): { options+: { result+: value } }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withColor(value): { options+: { result+: { color: value } } }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { options+: { result+: { icon: value } } }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withIndex(value): { options+: { result+: { index: value } } }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withText(value): { options+: { result+: { text: value } } }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - SpecialValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false'], name: 'value', type: 'string' }], help: '' } }, - withMatch(value): { options+: { match: value } }, - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPattern(value): { options+: { pattern: value } }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResult(value): { options+: { result: value } }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResultMixin(value): { options+: { result+: value } }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withColor(value): { options+: { result+: { color: value } } }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { options+: { result+: { icon: value } } }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withIndex(value): { options+: { result+: { index: value } } }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withText(value): { options+: { result+: { text: value } } }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - }, - thresholdStep+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withColor(value): { color: value }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Threshold index, an old property that is not needed an should only appear in older dashboards' } }, - withIndex(value): { index: value }, - '#withState': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO are the values here enumerable into a disjunction?\nSome seem to be listed in typescript comment' } }, - withState(value): { state: value }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'TODO docs\nFIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON' } }, - withValue(value): { value: value }, - }, - fieldOverride+: - { - '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMatcher(value): { matcher: value }, - '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMatcherMixin(value): { matcher+: value }, - matcher+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value=''): { matcher+: { id: value } }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withOptions(value): { matcher+: { options: value } }, - }, - '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withProperties(value): { properties: (if std.isArray(value) - then value - else [value]) }, - '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPropertiesMixin(value): { properties+: (if std.isArray(value) - then value - else [value]) }, - properties+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value=''): { id: value }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withValue(value): { value: value }, - }, - }, -} -+ (import '../custom/panel.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet deleted file mode 100644 index 09fe462..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet +++ /dev/null @@ -1,20 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.alertGroups', name: 'alertGroups' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'alertGroups' }, - }, - options+: - { - '#withAlertmanager': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the alertmanager used as a source for alerts' } }, - withAlertmanager(value): { options+: { alertmanager: value } }, - '#withExpandAll': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Expand all alert groups by default' } }, - withExpandAll(value=true): { options+: { expandAll: value } }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Comma-separated list of values used to filter alert results' } }, - withLabels(value): { options+: { labels: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet deleted file mode 100644 index f434c32..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.annotationsList', name: 'annotationsList' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'annolist' }, - }, - options+: - { - '#withLimit': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLimit(value=10): { options+: { limit: value } }, - '#withNavigateAfter': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: 'string' }], help: '' } }, - withNavigateAfter(value='10m'): { options+: { navigateAfter: value } }, - '#withNavigateBefore': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: 'string' }], help: '' } }, - withNavigateBefore(value='10m'): { options+: { navigateBefore: value } }, - '#withNavigateToPanel': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withNavigateToPanel(value=true): { options+: { navigateToPanel: value } }, - '#withOnlyFromThisDashboard': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withOnlyFromThisDashboard(value=true): { options+: { onlyFromThisDashboard: value } }, - '#withOnlyInTimeRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withOnlyInTimeRange(value=true): { options+: { onlyInTimeRange: value } }, - '#withShowTags': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowTags(value=true): { options+: { showTags: value } }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowTime(value=true): { options+: { showTime: value } }, - '#withShowUser': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowUser(value=true): { options+: { showUser: value } }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTags(value): { options+: { tags: (if std.isArray(value) - then value - else [value]) } }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTagsMixin(value): { options+: { tags+: (if std.isArray(value) - then value - else [value]) } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet deleted file mode 100644 index ceef0ef..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet +++ /dev/null @@ -1,157 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.barChart', name: 'barChart' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'barchart' }, - }, - fieldConfig+: - { - defaults+: - { - custom+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: 'integer' }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, - withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, - }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withBarRadius': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'number' }], help: 'Controls the radius of each bar.' } }, - withBarRadius(value=0): { options+: { barRadius: value } }, - '#withBarWidth': { 'function': { args: [{ default: 0.96999999999999997, enums: null, name: 'value', type: 'number' }], help: 'Controls the width of bars. 1 = Max width, 0 = Min width.' } }, - withBarWidth(value=0.96999999999999997): { options+: { barWidth: value } }, - '#withColorByField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Use the color value for a sibling field to color each bar value.' } }, - withColorByField(value): { options+: { colorByField: value } }, - '#withFullHighlight': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Enables mode which highlights the entire bar area and shows tooltip when cursor\nhovers over highlighted area' } }, - withFullHighlight(value=true): { options+: { fullHighlight: value } }, - '#withGroupWidth': { 'function': { args: [{ default: 0.69999999999999996, enums: null, name: 'value', type: 'number' }], help: 'Controls the width of groups. 1 = max with, 0 = min width.' } }, - withGroupWidth(value=0.69999999999999996): { options+: { groupWidth: value } }, - '#withOrientation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the orientation of the bar chart, either vertical or horizontal.' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'This controls whether values are shown on top or to the left of bars.' } }, - withShowValue(value): { options+: { showValue: value } }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls whether bars are stacked or not, either normally or in percent mode.' } }, - withStacking(value): { options+: { stacking: value } }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Manually select which field from the dataset to represent the x field.' } }, - withXField(value): { options+: { xField: value } }, - '#withXTickLabelMaxLength': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Sets the max length that a label can have before it is truncated.' } }, - withXTickLabelMaxLength(value): { options+: { xTickLabelMaxLength: value } }, - '#withXTickLabelRotation': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Controls the rotation of the x axis labels.' } }, - withXTickLabelRotation(value=0): { options+: { xTickLabelRotation: value } }, - '#withXTickLabelSpacing': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Controls the spacing between x axis labels.\nnegative values indicate backwards skipping behavior' } }, - withXTickLabelSpacing(value=0): { options+: { xTickLabelSpacing: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet deleted file mode 100644 index 1596a28..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet +++ /dev/null @@ -1,58 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.barGauge', name: 'barGauge' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'bargauge' }, - }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptions(value): { options+: { reduceOptions: value } }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { options+: { reduceOptions+: { fields: value } } }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, - withLimit(value): { options+: { reduceOptions+: { limit: value } } }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, - withValues(value=true): { options+: { reduceOptions+: { values: value } } }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['basic', 'lcd', 'gradient'], name: 'value', type: 'string' }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, - withDisplayMode(value): { options+: { displayMode: value } }, - '#withMinVizHeight': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMinVizHeight(value=10): { options+: { minVizHeight: value } }, - '#withMinVizWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMinVizWidth(value=0): { options+: { minVizWidth: value } }, - '#withShowUnfilled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowUnfilled(value=true): { options+: { showUnfilled: value } }, - '#withValueMode': { 'function': { args: [{ default: null, enums: ['color', 'text', 'hidden'], name: 'value', type: 'string' }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, - withValueMode(value): { options+: { valueMode: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet deleted file mode 100644 index 8d9e6ef..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet +++ /dev/null @@ -1,11 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.candlestick', name: 'candlestick' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'candlestick' }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet deleted file mode 100644 index 4814e32..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet +++ /dev/null @@ -1,11 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.canvas', name: 'canvas' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'canvas' }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet deleted file mode 100644 index 9c981c2..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.dashboardList', name: 'dashboardList' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'dashlist' }, - }, - options+: - { - '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withFolderId(value): { options+: { folderId: value } }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIncludeVars(value=true): { options+: { includeVars: value } }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withKeepTime(value=true): { options+: { keepTime: value } }, - '#withMaxItems': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMaxItems(value=10): { options+: { maxItems: value } }, - '#withQuery': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, - withQuery(value=''): { options+: { query: value } }, - '#withShowHeadings': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowHeadings(value=true): { options+: { showHeadings: value } }, - '#withShowRecentlyViewed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowRecentlyViewed(value=true): { options+: { showRecentlyViewed: value } }, - '#withShowSearch': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowSearch(value=true): { options+: { showSearch: value } }, - '#withShowStarred': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowStarred(value=true): { options+: { showStarred: value } }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTags(value): { options+: { tags: (if std.isArray(value) - then value - else [value]) } }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTagsMixin(value): { options+: { tags+: (if std.isArray(value) - then value - else [value]) } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet deleted file mode 100644 index e8d7558..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet +++ /dev/null @@ -1,16 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.datagrid', name: 'datagrid' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'datagrid' }, - }, - options+: - { - '#withSelectedSeries': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withSelectedSeries(value=0): { options+: { selectedSeries: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet deleted file mode 100644 index da8c70e..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet +++ /dev/null @@ -1,29 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.debug', name: 'debug' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'debug' }, - }, - options+: - { - '#withCounters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCounters(value): { options+: { counters: value } }, - '#withCountersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCountersMixin(value): { options+: { counters+: value } }, - counters+: - { - '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withDataChanged(value=true): { options+: { counters+: { dataChanged: value } } }, - '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withRender(value=true): { options+: { counters+: { render: value } } }, - '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSchemaChanged(value=true): { options+: { counters+: { schemaChanged: value } } }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { mode: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet deleted file mode 100644 index a45c39c..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet +++ /dev/null @@ -1,52 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.gauge', name: 'gauge' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'gauge' }, - }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptions(value): { options+: { reduceOptions: value } }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { options+: { reduceOptions+: { fields: value } } }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, - withLimit(value): { options+: { reduceOptions+: { limit: value } } }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, - withValues(value=true): { options+: { reduceOptions+: { values: value } } }, - }, - '#withShowThresholdLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowThresholdLabels(value=true): { options+: { showThresholdLabels: value } }, - '#withShowThresholdMarkers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowThresholdMarkers(value=true): { options+: { showThresholdMarkers: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet deleted file mode 100644 index a0f8aeb..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet +++ /dev/null @@ -1,155 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.geomap', name: 'geomap' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'geomap' }, - }, - options+: - { - '#withBasemap': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withBasemap(value): { options+: { basemap: value } }, - '#withBasemapMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withBasemapMixin(value): { options+: { basemap+: value } }, - basemap+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Custom options depending on the type' } }, - withConfig(value): { options+: { basemap+: { config: value } } }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { options+: { basemap+: { filterData: value } } }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLocation(value): { options+: { basemap+: { location: value } } }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLocationMixin(value): { options+: { basemap+: { location+: value } } }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { options+: { basemap+: { location+: { gazetteer: value } } } }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field mappings' } }, - withGeohash(value): { options+: { basemap+: { location+: { geohash: value } } } }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLatitude(value): { options+: { basemap+: { location+: { latitude: value } } } }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLongitude(value): { options+: { basemap+: { location+: { longitude: value } } } }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLookup(value): { options+: { basemap+: { location+: { lookup: value } } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { basemap+: { location+: { mode: value } } } }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withWkt(value): { options+: { basemap+: { location+: { wkt: value } } } }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'configured unique display name' } }, - withName(value): { options+: { basemap+: { name: value } } }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { options+: { basemap+: { opacity: value } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { options+: { basemap+: { tooltip: value } } }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { options+: { basemap+: { type: value } } }, - }, - '#withControls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withControls(value): { options+: { controls: value } }, - '#withControlsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withControlsMixin(value): { options+: { controls+: value } }, - controls+: - { - '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'let the mouse wheel zoom' } }, - withMouseWheelZoom(value=true): { options+: { controls+: { mouseWheelZoom: value } } }, - '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Lower right' } }, - withShowAttribution(value=true): { options+: { controls+: { showAttribution: value } } }, - '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show debug' } }, - withShowDebug(value=true): { options+: { controls+: { showDebug: value } } }, - '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show measure' } }, - withShowMeasure(value=true): { options+: { controls+: { showMeasure: value } } }, - '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Scale options' } }, - withShowScale(value=true): { options+: { controls+: { showScale: value } } }, - '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Zoom (upper left)' } }, - withShowZoom(value=true): { options+: { controls+: { showZoom: value } } }, - }, - '#withLayers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withLayers(value): { options+: { layers: (if std.isArray(value) - then value - else [value]) } }, - '#withLayersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withLayersMixin(value): { options+: { layers+: (if std.isArray(value) - then value - else [value]) } }, - layers+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Custom options depending on the type' } }, - withConfig(value): { config: value }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { filterData: value }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLocation(value): { location: value }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLocationMixin(value): { location+: value }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { location+: { gazetteer: value } }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field mappings' } }, - withGeohash(value): { location+: { geohash: value } }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLatitude(value): { location+: { latitude: value } }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLongitude(value): { location+: { longitude: value } }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLookup(value): { location+: { lookup: value } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { location+: { mode: value } }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withWkt(value): { location+: { wkt: value } }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'configured unique display name' } }, - withName(value): { name: value }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { opacity: value }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { tooltip: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - }, - '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withView(value): { options+: { view: value } }, - '#withViewMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withViewMixin(value): { options+: { view+: value } }, - view+: - { - '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAllLayers(value=true): { options+: { view+: { allLayers: value } } }, - '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value='zero'): { options+: { view+: { id: value } } }, - '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLastOnly(value=true): { options+: { view+: { lastOnly: value } } }, - '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLat(value=0): { options+: { view+: { lat: value } } }, - '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLayer(value): { options+: { view+: { layer: value } } }, - '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLon(value=0): { options+: { view+: { lon: value } } }, - '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMaxZoom(value): { options+: { view+: { maxZoom: value } } }, - '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMinZoom(value): { options+: { view+: { minZoom: value } } }, - '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withPadding(value): { options+: { view+: { padding: value } } }, - '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShared(value=true): { options+: { view+: { shared: value } } }, - '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withZoom(value=1): { options+: { view+: { zoom: value } } }, - }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet deleted file mode 100644 index 24b141c..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet +++ /dev/null @@ -1,266 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.heatmap', name: 'heatmap' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'heatmap' }, - }, - fieldConfig+: - { - defaults+: - { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - }, - }, - }, - options+: - { - '#withCalculate': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the heatmap should be calculated from data' } }, - withCalculate(value=true): { options+: { calculate: value } }, - '#withCalculation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCalculation(value): { options+: { calculation: value } }, - '#withCalculationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCalculationMixin(value): { options+: { calculation+: value } }, - calculation+: - { - '#withXBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withXBuckets(value): { options+: { calculation+: { xBuckets: value } } }, - '#withXBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withXBucketsMixin(value): { options+: { calculation+: { xBuckets+: value } } }, - xBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { calculation+: { xBuckets+: { mode: value } } } }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScale(value): { options+: { calculation+: { xBuckets+: { scale: value } } } }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleMixin(value): { options+: { calculation+: { xBuckets+: { scale+: value } } } }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { options+: { calculation+: { xBuckets+: { scale+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { options+: { calculation+: { xBuckets+: { scale+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { options+: { calculation+: { xBuckets+: { scale+: { type: value } } } } }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { options+: { calculation+: { xBuckets+: { value: value } } } }, - }, - '#withYBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withYBuckets(value): { options+: { calculation+: { yBuckets: value } } }, - '#withYBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withYBucketsMixin(value): { options+: { calculation+: { yBuckets+: value } } }, - yBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { calculation+: { yBuckets+: { mode: value } } } }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScale(value): { options+: { calculation+: { yBuckets+: { scale: value } } } }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleMixin(value): { options+: { calculation+: { yBuckets+: { scale+: value } } } }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { options+: { calculation+: { yBuckets+: { scale+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { options+: { calculation+: { yBuckets+: { scale+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { options+: { calculation+: { yBuckets+: { scale+: { type: value } } } } }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { options+: { calculation+: { yBuckets+: { value: value } } } }, - }, - }, - '#withCellGap': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls gap between cells' } }, - withCellGap(value=1): { options+: { cellGap: value } }, - '#withCellRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls cell radius' } }, - withCellRadius(value): { options+: { cellRadius: value } }, - '#withCellValues': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value unit' } }, - withCellValues(value={}): { options+: { cellValues: value } }, - '#withCellValuesMixin': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value unit' } }, - withCellValuesMixin(value): { options+: { cellValues+: value } }, - cellValues+: - { - '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, - withCellValues(value): { options+: { cellValues+: { CellValues: value } } }, - '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, - withCellValuesMixin(value): { options+: { cellValues+: { CellValues+: value } } }, - CellValues+: - { - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for cell values' } }, - withDecimals(value): { options+: { cellValues+: { decimals: value } } }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the cell value unit' } }, - withUnit(value): { options+: { cellValues+: { unit: value } } }, - }, - }, - '#withColor': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: 'object' }], help: 'Controls the color options' } }, - withColor(value={ exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }): { options+: { color: value } }, - '#withColorMixin': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: 'object' }], help: 'Controls the color options' } }, - withColorMixin(value): { options+: { color+: value } }, - color+: - { - '#withHeatmapColorOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, - withHeatmapColorOptions(value): { options+: { color+: { HeatmapColorOptions: value } } }, - '#withHeatmapColorOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, - withHeatmapColorOptionsMixin(value): { options+: { color+: { HeatmapColorOptions+: value } } }, - HeatmapColorOptions+: - { - '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the exponent when scale is set to exponential' } }, - withExponent(value): { options+: { color+: { exponent: value } } }, - '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color fill when in opacity mode' } }, - withFill(value): { options+: { color+: { fill: value } } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the color scale' } }, - withMax(value): { options+: { color+: { max: value } } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the color scale' } }, - withMin(value): { options+: { color+: { min: value } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: 'string' }], help: 'Controls the color mode of the heatmap' } }, - withMode(value): { options+: { color+: { mode: value } } }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the color scheme' } }, - withReverse(value=true): { options+: { color+: { reverse: value } } }, - '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: 'string' }], help: 'Controls the color scale of the heatmap' } }, - withScale(value): { options+: { color+: { scale: value } } }, - '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color scheme used' } }, - withScheme(value): { options+: { color+: { scheme: value } } }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Controls the number of color steps' } }, - withSteps(value): { options+: { color+: { steps: value } } }, - }, - }, - '#withExemplars': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, - withExemplars(value): { options+: { exemplars: value } }, - '#withExemplarsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, - withExemplarsMixin(value): { options+: { exemplars+: value } }, - exemplars+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the color of the exemplar markers' } }, - withColor(value): { options+: { exemplars+: { color: value } } }, - }, - '#withFilterValues': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: 'object' }], help: 'Filters values between a given range' } }, - withFilterValues(value={ le: 1.0000000000000001e-09 }): { options+: { filterValues: value } }, - '#withFilterValuesMixin': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: 'object' }], help: 'Filters values between a given range' } }, - withFilterValuesMixin(value): { options+: { filterValues+: value } }, - filterValues+: - { - '#withFilterValueRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, - withFilterValueRange(value): { options+: { filterValues+: { FilterValueRange: value } } }, - '#withFilterValueRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, - withFilterValueRangeMixin(value): { options+: { filterValues+: { FilterValueRange+: value } } }, - FilterValueRange+: - { - '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values greater than or equal to the given value' } }, - withGe(value): { options+: { filterValues+: { ge: value } } }, - '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values less than or equal to the given value' } }, - withLe(value): { options+: { filterValues+: { le: value } } }, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the legend is shown' } }, - withShow(value=true): { options+: { legend+: { show: value } } }, - }, - '#withRowsFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, - withRowsFrame(value): { options+: { rowsFrame: value } }, - '#withRowsFrameMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, - withRowsFrameMixin(value): { options+: { rowsFrame+: value } }, - rowsFrame+: - { - '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: 'string' }], help: '' } }, - withLayout(value): { options+: { rowsFrame+: { layout: value } } }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the name of the cell when not calculating from data' } }, - withValue(value): { options+: { rowsFrame+: { value: value } } }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '| *{\n\tlayout: ui.HeatmapCellLayout & "auto" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\n}\nControls the display of the value in the cell' } }, - withShowValue(value): { options+: { showValue: value } }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip is shown' } }, - withShow(value=true): { options+: { tooltip+: { show: value } } }, - '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, - withYHistogram(value=true): { options+: { tooltip+: { yHistogram: value } } }, - }, - '#withYAxis': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, - withYAxis(value): { options+: { yAxis: value } }, - '#withYAxisMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, - withYAxisMixin(value): { options+: { yAxis+: value } }, - yAxis+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { options+: { yAxis+: { axisCenteredZero: value } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { options+: { yAxis+: { axisColorMode: value } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { options+: { yAxis+: { axisGridShow: value } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { options+: { yAxis+: { axisLabel: value } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { options+: { yAxis+: { axisPlacement: value } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { options+: { yAxis+: { axisSoftMax: value } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { options+: { yAxis+: { axisSoftMin: value } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { options+: { yAxis+: { axisWidth: value } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { options+: { yAxis+: { scaleDistribution: value } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { options+: { yAxis+: { scaleDistribution+: value } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { options+: { yAxis+: { scaleDistribution+: { linearThreshold: value } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { options+: { yAxis+: { scaleDistribution+: { log: value } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { options+: { yAxis+: { scaleDistribution+: { type: value } } } }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for yAxis values' } }, - withDecimals(value): { options+: { yAxis+: { decimals: value } } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the yAxis' } }, - withMax(value): { options+: { yAxis+: { max: value } } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the yAxis' } }, - withMin(value): { options+: { yAxis+: { min: value } } }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the yAxis' } }, - withReverse(value=true): { options+: { yAxis+: { reverse: value } } }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the yAxis unit' } }, - withUnit(value): { options+: { yAxis+: { unit: value } } }, - }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet deleted file mode 100644 index 36f46eb..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet +++ /dev/null @@ -1,119 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.histogram', name: 'histogram' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'histogram' }, - }, - fieldConfig+: - { - defaults+: - { - custom+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: 'integer' }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, - withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withBucketOffset': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Offset buckets by this amount' } }, - withBucketOffset(value=0): { options+: { bucketOffset: value } }, - '#withBucketSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Size of each bucket' } }, - withBucketSize(value): { options+: { bucketSize: value } }, - '#withCombine': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Combines multiple series into a single histogram' } }, - withCombine(value=true): { options+: { combine: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet deleted file mode 100644 index cd95ac5..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet +++ /dev/null @@ -1,30 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.logs', name: 'logs' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'logs' }, - }, - options+: - { - '#withDedupStrategy': { 'function': { args: [{ default: null, enums: ['none', 'exact', 'numbers', 'signature'], name: 'value', type: 'string' }], help: '' } }, - withDedupStrategy(value): { options+: { dedupStrategy: value } }, - '#withEnableLogDetails': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withEnableLogDetails(value=true): { options+: { enableLogDetails: value } }, - '#withPrettifyLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withPrettifyLogMessage(value=true): { options+: { prettifyLogMessage: value } }, - '#withShowCommonLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowCommonLabels(value=true): { options+: { showCommonLabels: value } }, - '#withShowLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLabels(value=true): { options+: { showLabels: value } }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowTime(value=true): { options+: { showTime: value } }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: ['Descending', 'Ascending'], name: 'value', type: 'string' }], help: '' } }, - withSortOrder(value): { options+: { sortOrder: value } }, - '#withWrapLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withWrapLogMessage(value=true): { options+: { wrapLogMessage: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet deleted file mode 100644 index 1c44759..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet +++ /dev/null @@ -1,18 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.news', name: 'news' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'news' }, - }, - options+: - { - '#withFeedUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'empty/missing will default to grafana blog' } }, - withFeedUrl(value): { options+: { feedUrl: value } }, - '#withShowImage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowImage(value=true): { options+: { showImage: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet deleted file mode 100644 index 73facc5..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet +++ /dev/null @@ -1,51 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.nodeGraph', name: 'nodeGraph' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'nodeGraph' }, - }, - options+: - { - '#withEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withEdges(value): { options+: { edges: value } }, - '#withEdgesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withEdgesMixin(value): { options+: { edges+: value } }, - edges+: - { - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { options+: { edges+: { mainStatUnit: value } } }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { options+: { edges+: { secondaryStatUnit: value } } }, - }, - '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withNodes(value): { options+: { nodes: value } }, - '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withNodesMixin(value): { options+: { nodes+: value } }, - nodes+: - { - '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcs(value): { options+: { nodes+: { arcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcsMixin(value): { options+: { nodes+: { arcs+: (if std.isArray(value) - then value - else [value]) } } }, - arcs+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The color of the arc.' } }, - withColor(value): { color: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, - withField(value): { field: value }, - }, - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { options+: { nodes+: { mainStatUnit: value } } }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { options+: { nodes+: { secondaryStatUnit: value } } }, - }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet deleted file mode 100644 index 4854949..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet +++ /dev/null @@ -1,130 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.pieChart', name: 'pieChart' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'piechart' }, - }, - fieldConfig+: - { - defaults+: - { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - }, - }, - }, - options+: - { - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptions(value): { options+: { reduceOptions: value } }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { options+: { reduceOptions+: { fields: value } } }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, - withLimit(value): { options+: { reduceOptions+: { limit: value } } }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, - withValues(value=true): { options+: { reduceOptions+: { values: value } } }, - }, - '#withDisplayLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDisplayLabels(value): { options+: { displayLabels: (if std.isArray(value) - then value - else [value]) } }, - '#withDisplayLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDisplayLabelsMixin(value): { options+: { displayLabels+: (if std.isArray(value) - then value - else [value]) } }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withValues(value): { options+: { legend+: { values: (if std.isArray(value) - then value - else [value]) } } }, - '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withValuesMixin(value): { options+: { legend+: { values+: (if std.isArray(value) - then value - else [value]) } } }, - }, - '#withPieType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: 'string' }], help: 'Select the pie chart display style.' } }, - withPieType(value): { options+: { pieType: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet deleted file mode 100644 index d6b5f8b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet +++ /dev/null @@ -1,56 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.stat', name: 'stat' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'stat' }, - }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptions(value): { options+: { reduceOptions: value } }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { options+: { reduceOptions+: { fields: value } } }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, - withLimit(value): { options+: { reduceOptions+: { limit: value } } }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, - withValues(value=true): { options+: { reduceOptions+: { values: value } } }, - }, - '#withColorMode': { 'function': { args: [{ default: null, enums: ['value', 'background', 'background_solid', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withColorMode(value): { options+: { colorMode: value } }, - '#withGraphMode': { 'function': { args: [{ default: null, enums: ['none', 'line', 'area'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withGraphMode(value): { options+: { graphMode: value } }, - '#withJustifyMode': { 'function': { args: [{ default: null, enums: ['auto', 'center'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withJustifyMode(value): { options+: { justifyMode: value } }, - '#withTextMode': { 'function': { args: [{ default: null, enums: ['auto', 'value', 'value_and_name', 'name', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withTextMode(value): { options+: { textMode: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet deleted file mode 100644 index 1e75e69..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet +++ /dev/null @@ -1,98 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.stateTimeline', name: 'stateTimeline' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'state-timeline' }, - }, - fieldConfig+: - { - defaults+: - { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withFillOpacity(value=70): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withLineWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLineWidth(value=0): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezone(value): { options+: { timezone: (if std.isArray(value) - then value - else [value]) } }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) - then value - else [value]) } }, - '#withAlignValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls value alignment on the timelines' } }, - withAlignValue(value): { options+: { alignValue: value } }, - '#withMergeValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Merge equal consecutive values' } }, - withMergeValues(value=true): { options+: { mergeValues: value } }, - '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Controls the row height' } }, - withRowHeight(value=0.90000000000000002): { options+: { rowHeight: value } }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Show timeline values on chart' } }, - withShowValue(value): { options+: { showValue: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet deleted file mode 100644 index 9fe7e6b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet +++ /dev/null @@ -1,96 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.statusHistory', name: 'statusHistory' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'status-history' }, - }, - fieldConfig+: - { - defaults+: - { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withFillOpacity(value=70): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezone(value): { options+: { timezone: (if std.isArray(value) - then value - else [value]) } }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) - then value - else [value]) } }, - '#withColWidth': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Controls the column width' } }, - withColWidth(value=0.90000000000000002): { options+: { colWidth: value } }, - '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Set the height of the rows' } }, - withRowHeight(value=0.90000000000000002): { options+: { rowHeight: value } }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Show values on the columns' } }, - withShowValue(value): { options+: { showValue: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet deleted file mode 100644 index a09d2d7..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet +++ /dev/null @@ -1,73 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.table', name: 'table' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'table' }, - }, - options+: - { - '#withCellHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the height of the rows' } }, - withCellHeight(value): { options+: { cellHeight: value } }, - '#withFooter': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: 'object' }], help: 'Controls footer options' } }, - withFooter(value={ countRows: false, reducer: [], show: false }): { options+: { footer: value } }, - '#withFooterMixin': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: 'object' }], help: 'Controls footer options' } }, - withFooterMixin(value): { options+: { footer+: value } }, - footer+: - { - '#withTableFooterOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Footer options' } }, - withTableFooterOptions(value): { options+: { footer+: { TableFooterOptions: value } } }, - '#withTableFooterOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Footer options' } }, - withTableFooterOptionsMixin(value): { options+: { footer+: { TableFooterOptions+: value } } }, - TableFooterOptions+: - { - '#withCountRows': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withCountRows(value=true): { options+: { footer+: { countRows: value } } }, - '#withEnablePagination': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withEnablePagination(value=true): { options+: { footer+: { enablePagination: value } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFields(value): { options+: { footer+: { fields: (if std.isArray(value) - then value - else [value]) } } }, - '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFieldsMixin(value): { options+: { footer+: { fields+: (if std.isArray(value) - then value - else [value]) } } }, - '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withReducer(value): { options+: { footer+: { reducer: (if std.isArray(value) - then value - else [value]) } } }, - '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withReducerMixin(value): { options+: { footer+: { reducer+: (if std.isArray(value) - then value - else [value]) } } }, - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShow(value=true): { options+: { footer+: { show: value } } }, - }, - }, - '#withFrameIndex': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'number' }], help: 'Represents the index of the selected frame' } }, - withFrameIndex(value=0): { options+: { frameIndex: value } }, - '#withShowHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls whether the panel should show the header' } }, - withShowHeader(value=true): { options+: { showHeader: value } }, - '#withShowTypeIcons': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls whether the header should show icons for the column types' } }, - withShowTypeIcons(value=true): { options+: { showTypeIcons: value } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Used to control row sorting' } }, - withSortBy(value): { options+: { sortBy: (if std.isArray(value) - then value - else [value]) } }, - '#withSortByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Used to control row sorting' } }, - withSortByMixin(value): { options+: { sortBy+: (if std.isArray(value) - then value - else [value]) } }, - sortBy+: - { - '#withDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag used to indicate descending sort order' } }, - withDesc(value=true): { desc: value }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the display name of the field to sort by' } }, - withDisplayName(value): { displayName: value }, - }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet deleted file mode 100644 index fe1101b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet +++ /dev/null @@ -1,31 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.text', name: 'text' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'text' }, - }, - options+: - { - '#withCode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCode(value): { options+: { code: value } }, - '#withCodeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCodeMixin(value): { options+: { code+: value } }, - code+: - { - '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: 'string' }], help: '' } }, - withLanguage(value='plaintext'): { options+: { code+: { language: value } } }, - '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLineNumbers(value=true): { options+: { code+: { showLineNumbers: value } } }, - '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowMiniMap(value=true): { options+: { code+: { showMiniMap: value } } }, - }, - '#withContent': { 'function': { args: [{ default: '# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)', enums: null, name: 'value', type: 'string' }], help: '' } }, - withContent(value='# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)'): { options+: { content: value } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { mode: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet deleted file mode 100644 index 8c034d5..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet +++ /dev/null @@ -1,188 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.timeSeries', name: 'timeSeries' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'timeseries' }, - }, - fieldConfig+: - { - defaults+: - { - custom+: - { - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLineColor(value): { fieldConfig+: { defaults+: { custom+: { lineColor: value } } } }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withLineInterpolation(value): { fieldConfig+: { defaults+: { custom+: { lineInterpolation: value } } } }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyle(value): { fieldConfig+: { defaults+: { custom+: { lineStyle: value } } } }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: value } } } }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDash(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash: (if std.isArray(value) - then value - else [value]) } } } } }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDashMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash+: (if std.isArray(value) - then value - else [value]) } } } } }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, - withFill(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { fill: value } } } } }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLineWidth(value): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { fieldConfig+: { defaults+: { custom+: { spanNulls: value } } } }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { fieldConfig+: { defaults+: { custom+: { spanNulls+: value } } } }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFillBelowTo(value): { fieldConfig+: { defaults+: { custom+: { fillBelowTo: value } } } }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFillColor(value): { fieldConfig+: { defaults+: { custom+: { fillColor: value } } } }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withFillOpacity(value): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPointColor(value): { fieldConfig+: { defaults+: { custom+: { pointColor: value } } } }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withPointSize(value): { fieldConfig+: { defaults+: { custom+: { pointSize: value } } } }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPointSymbol(value): { fieldConfig+: { defaults+: { custom+: { pointSymbol: value } } } }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withShowPoints(value): { fieldConfig+: { defaults+: { custom+: { showPoints: value } } } }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: 'integer' }], help: 'TODO docs' } }, - withBarAlignment(value): { fieldConfig+: { defaults+: { custom+: { barAlignment: value } } } }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withBarMaxWidth(value): { fieldConfig+: { defaults+: { custom+: { barMaxWidth: value } } } }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withBarWidthFactor(value): { fieldConfig+: { defaults+: { custom+: { barWidthFactor: value } } } }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withStacking(value): { fieldConfig+: { defaults+: { custom+: { stacking: value } } } }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withStackingMixin(value): { fieldConfig+: { defaults+: { custom+: { stacking+: value } } } }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withGroup(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { group: value } } } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { mode: value } } } } }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withDrawStyle(value): { fieldConfig+: { defaults+: { custom+: { drawStyle: value } } } }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withTransform(value): { fieldConfig+: { defaults+: { custom+: { transform: value } } } }, - }, - }, - }, - options+: - { - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezone(value): { options+: { timezone: (if std.isArray(value) - then value - else [value]) } }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) - then value - else [value]) } }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet deleted file mode 100644 index 51e3173..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet +++ /dev/null @@ -1,182 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.trend', name: 'trend' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'trend' }, - }, - fieldConfig+: - { - defaults+: - { - custom+: - { - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLineColor(value): { fieldConfig+: { defaults+: { custom+: { lineColor: value } } } }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withLineInterpolation(value): { fieldConfig+: { defaults+: { custom+: { lineInterpolation: value } } } }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyle(value): { fieldConfig+: { defaults+: { custom+: { lineStyle: value } } } }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: value } } } }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDash(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash: (if std.isArray(value) - then value - else [value]) } } } } }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDashMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash+: (if std.isArray(value) - then value - else [value]) } } } } }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, - withFill(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { fill: value } } } } }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLineWidth(value): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { fieldConfig+: { defaults+: { custom+: { spanNulls: value } } } }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { fieldConfig+: { defaults+: { custom+: { spanNulls+: value } } } }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFillBelowTo(value): { fieldConfig+: { defaults+: { custom+: { fillBelowTo: value } } } }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFillColor(value): { fieldConfig+: { defaults+: { custom+: { fillColor: value } } } }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withFillOpacity(value): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPointColor(value): { fieldConfig+: { defaults+: { custom+: { pointColor: value } } } }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withPointSize(value): { fieldConfig+: { defaults+: { custom+: { pointSize: value } } } }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPointSymbol(value): { fieldConfig+: { defaults+: { custom+: { pointSymbol: value } } } }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withShowPoints(value): { fieldConfig+: { defaults+: { custom+: { showPoints: value } } } }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: 'integer' }], help: 'TODO docs' } }, - withBarAlignment(value): { fieldConfig+: { defaults+: { custom+: { barAlignment: value } } } }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withBarMaxWidth(value): { fieldConfig+: { defaults+: { custom+: { barMaxWidth: value } } } }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withBarWidthFactor(value): { fieldConfig+: { defaults+: { custom+: { barWidthFactor: value } } } }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withStacking(value): { fieldConfig+: { defaults+: { custom+: { stacking: value } } } }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withStackingMixin(value): { fieldConfig+: { defaults+: { custom+: { stacking+: value } } } }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withGroup(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { group: value } } } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { mode: value } } } } }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withDrawStyle(value): { fieldConfig+: { defaults+: { custom+: { drawStyle: value } } } }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withTransform(value): { fieldConfig+: { defaults+: { custom+: { transform: value } } } }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the x field to use (defaults to first number)' } }, - withXField(value): { options+: { xField: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet deleted file mode 100644 index 4128b6c..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet +++ /dev/null @@ -1,211 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.xyChart', name: 'xyChart' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'xychart' }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withDims': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDims(value): { options+: { dims: value } }, - '#withDimsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDimsMixin(value): { options+: { dims+: value } }, - dims+: - { - '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExclude(value): { options+: { dims+: { exclude: (if std.isArray(value) - then value - else [value]) } } }, - '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExcludeMixin(value): { options+: { dims+: { exclude+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withFrame(value): { options+: { dims+: { frame: value } } }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withX(value): { options+: { dims+: { x: value } } }, - }, - '#withSeries': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withSeries(value): { options+: { series: (if std.isArray(value) - then value - else [value]) } }, - '#withSeriesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withSeriesMixin(value): { options+: { series+: (if std.isArray(value) - then value - else [value]) } }, - series+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { hideFrom: value }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { hideFrom+: value }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { hideFrom+: { legend: value } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { hideFrom+: { tooltip: value } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { hideFrom+: { viz: value } }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { axisCenteredZero: value }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { axisColorMode: value }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { axisGridShow: value }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { axisLabel: value }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { axisPlacement: value }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { axisSoftMax: value }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { axisSoftMin: value }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { axisWidth: value }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { scaleDistribution: value }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { scaleDistribution+: value }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { scaleDistribution+: { linearThreshold: value } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { scaleDistribution+: { log: value } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { scaleDistribution+: { type: value } }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withLabel(value): { label: value }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLabelValue(value): { labelValue: value }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLabelValueMixin(value): { labelValue+: value }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { labelValue+: { field: value } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { labelValue+: { fixed: value } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { labelValue+: { mode: value } }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLineColor(value): { lineColor: value }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLineColorMixin(value): { lineColor+: value }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { lineColor+: { field: value } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { lineColor+: { fixed: value } }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyle(value): { lineStyle: value }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyleMixin(value): { lineStyle+: value }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDash(value): { lineStyle+: { dash: (if std.isArray(value) - then value - else [value]) } }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDashMixin(value): { lineStyle+: { dash+: (if std.isArray(value) - then value - else [value]) } }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, - withFill(value): { lineStyle+: { fill: value } }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLineWidth(value): { lineWidth: value }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointColor(value): { pointColor: value }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointColorMixin(value): { pointColor+: value }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { pointColor+: { field: value } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { pointColor+: { fixed: value } }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointSize(value): { pointSize: value }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointSizeMixin(value): { pointSize+: value }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { pointSize+: { field: value } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withFixed(value): { pointSize+: { fixed: value } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMax(value): { pointSize+: { max: value } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMin(value): { pointSize+: { min: value } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { pointSize+: { mode: value } }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, - withShow(value): { show: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withX(value): { x: value }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withY(value): { y: value }, - }, - '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: 'string' }], help: '' } }, - withSeriesMapping(value): { options+: { seriesMapping: value } }, - }, -} -+ { panelOptions+: { '#withType':: {} } } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet deleted file mode 100644 index f7cf1bb..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet +++ /dev/null @@ -1,27 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.loki', name: 'loki' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: 'string' }], help: '' } }, - withEditorMode(value): { editorMode: value }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The LogQL query.' } }, - withExpr(value): { expr: value }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '@deprecated, now use queryType.' } }, - withInstant(value=true): { instant: value }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Used to override the name of the series.' } }, - withLegendFormat(value): { legendFormat: value }, - '#withMaxLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Used to limit the number of log rows returned.' } }, - withMaxLines(value): { maxLines: value }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '@deprecated, now use queryType.' } }, - withRange(value=true): { range: value }, - '#withResolution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Used to scale the interval value.' } }, - withResolution(value): { resolution: value }, -} -+ (import '../../custom/query/loki.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet deleted file mode 100644 index 19196ce..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet +++ /dev/null @@ -1,29 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.prometheus', name: 'prometheus' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: 'string' }], help: '' } }, - withEditorMode(value): { editorMode: value }, - '#withExemplar': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Execute an additional query to identify interesting raw samples relevant for the given expr' } }, - withExemplar(value=true): { exemplar: value }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The actual expression/query that will be evaluated by Prometheus' } }, - withExpr(value): { expr: value }, - '#withFormat': { 'function': { args: [{ default: null, enums: ['time_series', 'table', 'heatmap'], name: 'value', type: 'string' }], help: '' } }, - withFormat(value): { format: value }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Returns only the latest value that Prometheus has scraped for the requested time series' } }, - withInstant(value=true): { instant: value }, - '#withIntervalFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '@deprecated Used to specify how many times to divide max data points by. We use max data points under query options\nSee https://github.com/grafana/grafana/issues/48081' } }, - withIntervalFactor(value): { intervalFactor: value }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname' } }, - withLegendFormat(value): { legendFormat: value }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series' } }, - withRange(value=true): { range: value }, -} -+ (import '../../custom/query/prometheus.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet deleted file mode 100644 index 40a4eaf..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet +++ /dev/null @@ -1,54 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.tempo', name: 'tempo' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFilters(value): { filters: (if std.isArray(value) - then value - else [value]) }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFiltersMixin(value): { filters+: (if std.isArray(value) - then value - else [value]) }, - filters+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, - withId(value): { id: value }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, - withOperator(value): { operator: value }, - '#withScope': { 'function': { args: [{ default: null, enums: ['unscoped', 'resource', 'span'], name: 'value', type: 'string' }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, - withScope(value): { scope: value }, - '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, - withTag(value): { tag: value }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The value for the search filter' } }, - withValue(value): { value: value }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The value for the search filter' } }, - withValueMixin(value): { value+: value }, - '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, - withValueType(value): { valueType: value }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Defines the maximum number of traces that are returned from Tempo' } }, - withLimit(value): { limit: value }, - '#withMaxDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMaxDuration(value): { maxDuration: value }, - '#withMinDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMinDuration(value): { minDuration: value }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TraceQL query or trace ID' } }, - withQuery(value): { query: value }, - '#withSearch': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true' } }, - withSearch(value): { search: value }, - '#withServiceMapQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}' } }, - withServiceMapQuery(value): { serviceMapQuery: value }, - '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Query traces by service name' } }, - withServiceName(value): { serviceName: value }, - '#withSpanName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Query traces by span name' } }, - withSpanName(value): { spanName: value }, -} -+ (import '../../custom/query/tempo.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet deleted file mode 100644 index 0620a22..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet +++ /dev/null @@ -1,44 +0,0 @@ -local util = import './util/main.libsonnet'; -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new dashboard with a title.', - args=[d.arg('title', d.T.string)] - ), - new(title): - self.withTitle(title) - + self.withSchemaVersion() - + self.withTimezone('utc') - + self.time.withFrom('now-6h') - + self.time.withTo('now'), - - withPanels(value): { - _panels:: if std.isArray(value) then value else [value], - panels: util.panel.setPanelIDs(self._panels), - }, - withPanelsMixin(value): { - _panels+:: if std.isArray(value) then value else [value], - panels: util.panel.setPanelIDs(self._panels), - }, - - graphTooltip+: { - // 0 - Default - // 1 - Shared crosshair - // 2 - Shared tooltip - '#withSharedCrosshair':: d.func.new( - 'Share crosshair on all panels.', - ), - withSharedCrosshair(): - { graphTooltip: 1 }, - - '#withSharedTooltip':: d.func.new( - 'Share crosshair and tooltip on all panels.', - ), - withSharedTooltip(): - { graphTooltip: 2 }, - }, -} -+ (import './dashboard/annotation.libsonnet') -+ (import './dashboard/link.libsonnet') -+ (import './dashboard/variable.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet deleted file mode 100644 index 0e7cf08..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet +++ /dev/null @@ -1,125 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -// match name/title to reduce diff in docs -local panelNames = { - alertgroups: 'alertGroups', - annolist: 'annotationsList', - barchart: 'barChart', - bargauge: 'barGauge', - dashlist: 'dashboardList', - nodeGraph: 'nodeGraph', - piechart: 'pieChart', - 'state-timeline': 'stateTimeline', - 'status-history': 'statusHistory', - timeseries: 'timeSeries', - xychart: 'xyChart', -}; - -local getPanelName(type) = - std.get(panelNames, type, type); - -{ - '#new':: d.func.new( - 'Creates a new %s panel with a title.' % getPanelName(self.panelOptions.withType().type), - args=[d.arg('title', d.T.string)] - ), - new(title): - self.panelOptions.withTitle(title) - + self.panelOptions.withType() - + self.panelOptions.withPluginVersion() - // Default to Mixed datasource so panels can be datasource agnostic, this - // requires query targets to explicitly set datasource, which is a lot more - // interesting from a reusability standpoint. - + self.datasource.withType('datasource') - + self.datasource.withUid('-- Mixed --'), - - link+: { '#':: d.package.newSub('link', '') }, - thresholdStep+: { '#':: d.package.newSub('thresholdStep', '') }, - transformation+: { '#':: d.package.newSub('transformation', '') }, - valueMapping+: { '#':: d.package.newSub('valueMapping', '') }, - - panelOptions+: { - '#withPluginVersion': {}, - }, - - local overrides = super.fieldOverride, - local commonOverrideFunctions = { - '#new':: d.fn( - '`new` creates a new override of type `%s`.' % self.type, - args=[ - d.arg('value', d.T.string), - ] - ), - new(value): - overrides.matcher.withId(self.type) - + overrides.matcher.withOptions(value), - - '#withProperty':: d.fn( - ||| - `withProperty` adds a property that needs to be overridden. This function can - be called multiple time, adding more properties. - |||, - args=[ - d.arg('id', d.T.string), - d.arg('value', d.T.any), - ] - ), - withProperty(id, value): - overrides.withPropertiesMixin([ - overrides.properties.withId(id) - + overrides.properties.withValue(value), - ]), - - '#withPropertiesFromOptions':: d.fn( - ||| - `withPropertiesFromOptions` takes an object with properties that need to be - overridden. See example code above. - |||, - args=[ - d.arg('options', d.T.object), - ] - ), - withPropertiesFromOptions(options): - local infunc(input, path=[]) = - std.foldl( - function(acc, p) - acc + ( - if std.isObject(input[p]) - then infunc(input[p], path=path + [p]) - else - overrides.withPropertiesMixin([ - overrides.properties.withId(std.join('.', path + [p])) - + overrides.properties.withValue(input[p]), - ]) - ), - std.objectFields(input), - {} - ); - infunc(options.fieldConfig.defaults), - }, - fieldOverride: - { - '#':: d.package.newSub( - 'fieldOverride', - ||| - Overrides allow you to customize visualization settings for specific fields or - series. This is accomplished by adding an override rule that targets - a particular set of fields and that can each define multiple options. - - ```jsonnet - fieldOverride.byType.new('number') - + fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') - ) - ``` - ||| - ), - byName: commonOverrideFunctions { type:: 'byName' }, - byRegexp: commonOverrideFunctions { type:: 'byRegexp' }, - byType: commonOverrideFunctions { type:: 'byType' }, - byQuery: commonOverrideFunctions { type:: 'byQuery' }, - // TODO: byValue takes more complex `options` than string - byValue: commonOverrideFunctions { type:: 'byValue' }, - }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet deleted file mode 100644 index cf0b333..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet +++ /dev/null @@ -1,11 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new row panel with a title.', - args=[d.arg('title', d.T.string)] - ), - new(title): - self.withTitle(title) - + self.withType(), -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet deleted file mode 100644 index 6ee05ce..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet +++ /dev/null @@ -1,134 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - local root = self, - - local rowPanelHeight = 1, - local gridWidth = 24, - - // Calculates the number of rows for a set of panels. - countRows(panels, panelWidth): - std.ceil(std.length(panels) / std.floor(gridWidth / panelWidth)), - - // Calculates gridPos for a panel based on its index, width and height. - gridPosForIndex(index, panelWidth, panelHeight, startY): { - local panelsPerRow = std.floor(gridWidth / panelWidth), - local row = std.floor(index / panelsPerRow), - local col = std.mod(index, panelsPerRow), - gridPos: { - w: panelWidth, - h: panelHeight, - x: panelWidth * col, - y: startY + (panelHeight * row) + row, - }, - }, - - // Configures gridPos for each panel in a grid with equal width and equal height. - makePanelGrid(panels, panelWidth, panelHeight, startY): - std.mapWithIndex( - function(i, panel) - panel + root.gridPosForIndex(i, panelWidth, panelHeight, startY), - panels - ), - - '#makeGrid':: d.func.new( - ||| - `makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` - and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, - then all panels below it will be folded into the row. - - This function will use the full grid of 24 columns, setting `panelWidth` to a value - that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) - Other value for `panelWidth` will leave a gap on the far right. - |||, - args=[ - d.arg('panels', d.T.array), - d.arg('panelWidth', d.T.number), - d.arg('panelHeight', d.T.number), - ], - ), - makeGrid(panels, panelWidth=8, panelHeight=8): - // Get indexes for all Row panels - local rowIndexes = [ - i - for i in std.range(0, std.length(panels) - 1) - if panels[i].type == 'row' - ]; - - // Group panels below each Row panel - local rowGroups = - std.mapWithIndex( - function(i, r) { - header: - { - // Set initial values to ensure a value is set - // may be overridden at per Row panel - collapsed: false, - panels: [], - } - + panels[r], - panels: - self.header.panels // prepend panels that are part of the Row panel - + (if i == std.length(rowIndexes) - 1 // last rowIndex - then panels[r + 1:] - else panels[r + 1:rowIndexes[i + 1]]), - rows: root.countRows(self.panels, panelWidth), - }, - rowIndexes - ); - - // Loop over rowGroups - std.foldl( - function(acc, rowGroup) acc { - local y = acc.nexty, - nexty: y // previous y - + (rowGroup.rows * panelHeight) // height of all rows - + rowGroup.rows // plus 1 for each row - + acc.lastRowPanelHeight, - - lastRowPanelHeight: rowPanelHeight, // set height for next round - - // Create a grid per group - local panels = root.makePanelGrid(rowGroup.panels, panelWidth, panelHeight, y + 1), - - panels+: - [ - // Add row header aka the Row panel - rowGroup.header { - gridPos: { - w: gridWidth, // always full length - h: rowPanelHeight, // always 1 height - x: 0, // always at beginning - y: y, - }, - panels: - // If row is collapsed, then store panels inside Row panel - if rowGroup.header.collapsed - then panels - else [], - }, - ] - + ( - // If row is not collapsed, then expose panels directly - if !rowGroup.header.collapsed - then panels - else [] - ), - }, - rowGroups, - { - // Get panels that come before the rowGroups - local panelsBeforeRowGroups = - if std.length(rowIndexes) != 0 - then panels[0:rowIndexes[0]] - else panels, // matches all panels if no Row panels found - local rows = root.countRows(panelsBeforeRowGroups, panelWidth), - nexty: (rows * panelHeight) + rows, - - lastRowPanelHeight: 0, // starts without a row panel - - // Create a grid for the panels that come before the rowGroups - panels: root.makePanelGrid(panelsBeforeRowGroups, panelWidth, panelHeight, 0), - } - ).panels, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet deleted file mode 100644 index f985360..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet +++ /dev/null @@ -1,51 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - local this = self, - - '#setPanelIDs':: d.func.new( - ||| - `setPanelIDs` ensures that all `panels` have a unique ID, this functions is used in - `dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent - experience. - - used in ../dashboard.libsonnet - |||, - args=[ - d.arg('panels', d.T.array), - ] - ), - setPanelIDs(panels): - local infunc(panels, start=1) = - std.foldl( - function(acc, panel) - acc { - index: // Track the index to ensure no duplicates exist. - acc.index - + 1 - + (if panel.type == 'row' - && 'panels' in panel - then std.length(panel.panels) - else 0), - - panels+: [ - panel { id: acc.index } - + ( - if panel.type == 'row' - && 'panels' in panel - then { - panels: - infunc( - panel.panels, - acc.index + 1 - ), - } - else {} - ), - ], - }, - panels, - { index: start, panels: [] } - ).panels; - infunc(panels), -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md deleted file mode 100644 index de1f82e..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# grafonnet - -Jsonnet library for rendering Grafana resources - -## Install - -``` -jb install github.com/grafana/grafonnet/gen/grafonnet-v10.0.0@main -``` - -## Usage - -```jsonnet -local grafonnet = import "github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet" -``` - -## Subpackages - -* [dashboard](grafonnet/dashboard/index.md) -* [librarypanel](grafonnet/librarypanel.md) -* [panel](grafonnet/panel/index.md) -* [playlist](grafonnet/playlist.md) -* [preferences](grafonnet/preferences.md) -* [publicdashboard](grafonnet/publicdashboard.md) -* [query](grafonnet/query/index.md) -* [serviceaccount](grafonnet/serviceaccount.md) -* [team](grafonnet/team.md) -* [util](grafonnet/util.md) - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/librarypanel.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/librarypanel.md deleted file mode 100644 index 3ae7e2d..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/librarypanel.md +++ /dev/null @@ -1,256 +0,0 @@ -# librarypanel - -grafonnet.librarypanel - -## Index - -* [`fn withDescription(value)`](#fn-withdescription) -* [`fn withFolderUid(value)`](#fn-withfolderuid) -* [`fn withMeta(value)`](#fn-withmeta) -* [`fn withMetaMixin(value)`](#fn-withmetamixin) -* [`fn withModel(value)`](#fn-withmodel) -* [`fn withModelMixin(value)`](#fn-withmodelmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withSchemaVersion(value)`](#fn-withschemaversion) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUid(value)`](#fn-withuid) -* [`fn withVersion(value)`](#fn-withversion) -* [`obj meta`](#obj-meta) - * [`fn withConnectedDashboards(value)`](#fn-metawithconnecteddashboards) - * [`fn withCreated(value)`](#fn-metawithcreated) - * [`fn withCreatedBy(value)`](#fn-metawithcreatedby) - * [`fn withCreatedByMixin(value)`](#fn-metawithcreatedbymixin) - * [`fn withFolderName(value)`](#fn-metawithfoldername) - * [`fn withFolderUid(value)`](#fn-metawithfolderuid) - * [`fn withUpdated(value)`](#fn-metawithupdated) - * [`fn withUpdatedBy(value)`](#fn-metawithupdatedby) - * [`fn withUpdatedByMixin(value)`](#fn-metawithupdatedbymixin) - * [`obj createdBy`](#obj-metacreatedby) - * [`fn withAvatarUrl(value)`](#fn-metacreatedbywithavatarurl) - * [`fn withId(value)`](#fn-metacreatedbywithid) - * [`fn withName(value)`](#fn-metacreatedbywithname) - * [`obj updatedBy`](#obj-metaupdatedby) - * [`fn withAvatarUrl(value)`](#fn-metaupdatedbywithavatarurl) - * [`fn withId(value)`](#fn-metaupdatedbywithid) - * [`fn withName(value)`](#fn-metaupdatedbywithname) - -## Fields - -### fn withDescription - -```ts -withDescription(value) -``` - -Panel description - -### fn withFolderUid - -```ts -withFolderUid(value) -``` - -Folder UID - -### fn withMeta - -```ts -withMeta(value) -``` - - - -### fn withMetaMixin - -```ts -withMetaMixin(value) -``` - - - -### fn withModel - -```ts -withModel(value) -``` - -TODO: should be the same panel schema defined in dashboard -Typescript: Omit; - -### fn withModelMixin - -```ts -withModelMixin(value) -``` - -TODO: should be the same panel schema defined in dashboard -Typescript: Omit; - -### fn withName - -```ts -withName(value) -``` - -Panel name (also saved in the model) - -### fn withSchemaVersion - -```ts -withSchemaVersion(value) -``` - -Dashboard version when this was saved (zero if unknown) - -### fn withType - -```ts -withType(value) -``` - -The panel type (from inside the model) - -### fn withUid - -```ts -withUid(value) -``` - -Library element UID - -### fn withVersion - -```ts -withVersion(value) -``` - -panel version, incremented each time the dashboard is updated. - -### obj meta - - -#### fn meta.withConnectedDashboards - -```ts -withConnectedDashboards(value) -``` - - - -#### fn meta.withCreated - -```ts -withCreated(value) -``` - - - -#### fn meta.withCreatedBy - -```ts -withCreatedBy(value) -``` - - - -#### fn meta.withCreatedByMixin - -```ts -withCreatedByMixin(value) -``` - - - -#### fn meta.withFolderName - -```ts -withFolderName(value) -``` - - - -#### fn meta.withFolderUid - -```ts -withFolderUid(value) -``` - - - -#### fn meta.withUpdated - -```ts -withUpdated(value) -``` - - - -#### fn meta.withUpdatedBy - -```ts -withUpdatedBy(value) -``` - - - -#### fn meta.withUpdatedByMixin - -```ts -withUpdatedByMixin(value) -``` - - - -#### obj meta.createdBy - - -##### fn meta.createdBy.withAvatarUrl - -```ts -withAvatarUrl(value) -``` - - - -##### fn meta.createdBy.withId - -```ts -withId(value) -``` - - - -##### fn meta.createdBy.withName - -```ts -withName(value) -``` - - - -#### obj meta.updatedBy - - -##### fn meta.updatedBy.withAvatarUrl - -```ts -withAvatarUrl(value) -``` - - - -##### fn meta.updatedBy.withId - -```ts -withId(value) -``` - - - -##### fn meta.updatedBy.withName - -```ts -withName(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/index.md deleted file mode 100644 index 57b7256..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/index.md +++ /dev/null @@ -1,497 +0,0 @@ -# alertGroups - -grafonnet.panel.alertGroups - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withAlertmanager(value)`](#fn-optionswithalertmanager) - * [`fn withExpandAll(value=true)`](#fn-optionswithexpandall) - * [`fn withLabels(value)`](#fn-optionswithlabels) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new alertGroups panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withAlertmanager - -```ts -withAlertmanager(value) -``` - -Name of the alertmanager used as a source for alerts - -#### fn options.withExpandAll - -```ts -withExpandAll(value=true) -``` - -Expand all alert groups by default - -#### fn options.withLabels - -```ts -withLabels(value) -``` - -Comma-separated list of values used to filter alert results - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/index.md deleted file mode 100644 index 2508c4b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/index.md +++ /dev/null @@ -1,569 +0,0 @@ -# annotationsList - -grafonnet.panel.annotationsList - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withLimit(value=10)`](#fn-optionswithlimit) - * [`fn withNavigateAfter(value="10m")`](#fn-optionswithnavigateafter) - * [`fn withNavigateBefore(value="10m")`](#fn-optionswithnavigatebefore) - * [`fn withNavigateToPanel(value=true)`](#fn-optionswithnavigatetopanel) - * [`fn withOnlyFromThisDashboard(value=true)`](#fn-optionswithonlyfromthisdashboard) - * [`fn withOnlyInTimeRange(value=true)`](#fn-optionswithonlyintimerange) - * [`fn withShowTags(value=true)`](#fn-optionswithshowtags) - * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) - * [`fn withShowUser(value=true)`](#fn-optionswithshowuser) - * [`fn withTags(value)`](#fn-optionswithtags) - * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new annotationsList panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withLimit - -```ts -withLimit(value=10) -``` - - - -#### fn options.withNavigateAfter - -```ts -withNavigateAfter(value="10m") -``` - - - -#### fn options.withNavigateBefore - -```ts -withNavigateBefore(value="10m") -``` - - - -#### fn options.withNavigateToPanel - -```ts -withNavigateToPanel(value=true) -``` - - - -#### fn options.withOnlyFromThisDashboard - -```ts -withOnlyFromThisDashboard(value=true) -``` - - - -#### fn options.withOnlyInTimeRange - -```ts -withOnlyInTimeRange(value=true) -``` - - - -#### fn options.withShowTags - -```ts -withShowTags(value=true) -``` - - - -#### fn options.withShowTime - -```ts -withShowTime(value=true) -``` - - - -#### fn options.withShowUser - -```ts -withShowUser(value=true) -``` - - - -#### fn options.withTags - -```ts -withTags(value) -``` - - - -#### fn options.withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/index.md deleted file mode 100644 index 25345d8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/index.md +++ /dev/null @@ -1,1030 +0,0 @@ -# barChart - -grafonnet.panel.barChart - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withBarRadius(value=0)`](#fn-optionswithbarradius) - * [`fn withBarWidth(value=0.97)`](#fn-optionswithbarwidth) - * [`fn withColorByField(value)`](#fn-optionswithcolorbyfield) - * [`fn withFullHighlight(value=true)`](#fn-optionswithfullhighlight) - * [`fn withGroupWidth(value=0.7)`](#fn-optionswithgroupwidth) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withStacking(value)`](#fn-optionswithstacking) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withXField(value)`](#fn-optionswithxfield) - * [`fn withXTickLabelMaxLength(value)`](#fn-optionswithxticklabelmaxlength) - * [`fn withXTickLabelRotation(value=0)`](#fn-optionswithxticklabelrotation) - * [`fn withXTickLabelSpacing(value=0)`](#fn-optionswithxticklabelspacing) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new barChart panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```ts -withAxisCenteredZero(value=true) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```ts -withAxisColorMode(value) -``` - -TODO docs - -Accepted values for `value` are "text", "series" - -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```ts -withAxisGridShow(value=true) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```ts -withAxisLabel(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```ts -withAxisPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" - -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```ts -withAxisSoftMax(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```ts -withAxisSoftMin(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```ts -withAxisWidth(value) -``` - - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```ts -withFillOpacity(value=80) -``` - -Controls the fill opacity of the bars. - -###### fn fieldConfig.defaults.custom.withGradientMode - -```ts -withGradientMode(value) -``` - -Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. -Gradient appearance is influenced by the Fill opacity setting. - -###### fn fieldConfig.defaults.custom.withHideFrom - -```ts -withHideFrom(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```ts -withHideFromMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineWidth - -```ts -withLineWidth(value=1) -``` - -Controls line width of the bars. - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```ts -withScaleDistribution(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```ts -withScaleDistributionMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```ts -withThresholdsStyle(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```ts -withThresholdsStyleMixin(value) -``` - -TODO docs - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```ts -withLegend(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```ts -withTooltip(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```ts -withViz(value=true) -``` - - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```ts -withLinearThreshold(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```ts -withLog(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "log", "ordinal", "symlog" - -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "off", "line", "dashed", "area", "line+area", "dashed+area", "series" - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withBarRadius - -```ts -withBarRadius(value=0) -``` - -Controls the radius of each bar. - -#### fn options.withBarWidth - -```ts -withBarWidth(value=0.97) -``` - -Controls the width of bars. 1 = Max width, 0 = Min width. - -#### fn options.withColorByField - -```ts -withColorByField(value) -``` - -Use the color value for a sibling field to color each bar value. - -#### fn options.withFullHighlight - -```ts -withFullHighlight(value=true) -``` - -Enables mode which highlights the entire bar area and shows tooltip when cursor -hovers over highlighted area - -#### fn options.withGroupWidth - -```ts -withGroupWidth(value=0.7) -``` - -Controls the width of groups. 1 = max with, 0 = min width. - -#### fn options.withLegend - -```ts -withLegend(value) -``` - -TODO docs - -#### fn options.withLegendMixin - -```ts -withLegendMixin(value) -``` - -TODO docs - -#### fn options.withOrientation - -```ts -withOrientation(value) -``` - -Controls the orientation of the bar chart, either vertical or horizontal. - -#### fn options.withShowValue - -```ts -withShowValue(value) -``` - -This controls whether values are shown on top or to the left of bars. - -#### fn options.withStacking - -```ts -withStacking(value) -``` - -Controls whether bars are stacked or not, either normally or in percent mode. - -#### fn options.withText - -```ts -withText(value) -``` - -TODO docs - -#### fn options.withTextMixin - -```ts -withTextMixin(value) -``` - -TODO docs - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - -TODO docs - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - -TODO docs - -#### fn options.withXField - -```ts -withXField(value) -``` - -Manually select which field from the dataset to represent the x field. - -#### fn options.withXTickLabelMaxLength - -```ts -withXTickLabelMaxLength(value) -``` - -Sets the max length that a label can have before it is truncated. - -#### fn options.withXTickLabelRotation - -```ts -withXTickLabelRotation(value=0) -``` - -Controls the rotation of the x axis labels. - -#### fn options.withXTickLabelSpacing - -```ts -withXTickLabelSpacing(value=0) -``` - -Controls the spacing between x axis labels. -negative values indicate backwards skipping behavior - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```ts -withAsTable(value=true) -``` - - - -##### fn options.legend.withCalcs - -```ts -withCalcs(value) -``` - - - -##### fn options.legend.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - - - -##### fn options.legend.withDisplayMode - -```ts -withDisplayMode(value) -``` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility - -Accepted values for `value` are "list", "table", "hidden" - -##### fn options.legend.withIsVisible - -```ts -withIsVisible(value=true) -``` - - - -##### fn options.legend.withPlacement - -```ts -withPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "bottom", "right" - -##### fn options.legend.withShowLegend - -```ts -withShowLegend(value=true) -``` - - - -##### fn options.legend.withSortBy - -```ts -withSortBy(value) -``` - - - -##### fn options.legend.withSortDesc - -```ts -withSortDesc(value=true) -``` - - - -##### fn options.legend.withWidth - -```ts -withWidth(value) -``` - - - -#### obj options.text - - -##### fn options.text.withTitleSize - -```ts -withTitleSize(value) -``` - -Explicit title text size - -##### fn options.text.withValueSize - -```ts -withValueSize(value) -``` - -Explicit value text size - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "single", "multi", "none" - -##### fn options.tooltip.withSort - -```ts -withSort(value) -``` - -TODO docs - -Accepted values for `value` are "asc", "desc", "none" - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/index.md deleted file mode 100644 index dba2c98..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/index.md +++ /dev/null @@ -1,638 +0,0 @@ -# barGauge - -grafonnet.panel.barGauge - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDisplayMode(value)`](#fn-optionswithdisplaymode) - * [`fn withMinVizHeight(value=10)`](#fn-optionswithminvizheight) - * [`fn withMinVizWidth(value=0)`](#fn-optionswithminvizwidth) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withShowUnfilled(value=true)`](#fn-optionswithshowunfilled) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withValueMode(value)`](#fn-optionswithvaluemode) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new barGauge panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withDisplayMode - -```ts -withDisplayMode(value) -``` - -Enum expressing the possible display modes -for the bar gauge component of Grafana UI - -Accepted values for `value` are "basic", "lcd", "gradient" - -#### fn options.withMinVizHeight - -```ts -withMinVizHeight(value=10) -``` - - - -#### fn options.withMinVizWidth - -```ts -withMinVizWidth(value=0) -``` - - - -#### fn options.withOrientation - -```ts -withOrientation(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "vertical", "horizontal" - -#### fn options.withReduceOptions - -```ts -withReduceOptions(value) -``` - -TODO docs - -#### fn options.withReduceOptionsMixin - -```ts -withReduceOptionsMixin(value) -``` - -TODO docs - -#### fn options.withShowUnfilled - -```ts -withShowUnfilled(value=true) -``` - - - -#### fn options.withText - -```ts -withText(value) -``` - -TODO docs - -#### fn options.withTextMixin - -```ts -withTextMixin(value) -``` - -TODO docs - -#### fn options.withValueMode - -```ts -withValueMode(value) -``` - -Allows for the table cell gauge display type to set the gauge mode. - -Accepted values for `value` are "color", "text", "hidden" - -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```ts -withCalcs(value) -``` - -When !values, pick one value for the whole field - -##### fn options.reduceOptions.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - -When !values, pick one value for the whole field - -##### fn options.reduceOptions.withFields - -```ts -withFields(value) -``` - -Which fields to show. By default this is only numeric fields - -##### fn options.reduceOptions.withLimit - -```ts -withLimit(value) -``` - -if showing all values limit - -##### fn options.reduceOptions.withValues - -```ts -withValues(value=true) -``` - -If true show each row value - -#### obj options.text - - -##### fn options.text.withTitleSize - -```ts -withTitleSize(value) -``` - -Explicit title text size - -##### fn options.text.withValueSize - -```ts -withValueSize(value) -``` - -Explicit value text size - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/index.md deleted file mode 100644 index 1a26063..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/index.md +++ /dev/null @@ -1,466 +0,0 @@ -# candlestick - -grafonnet.panel.candlestick - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new candlestick panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/candlestick/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/index.md deleted file mode 100644 index 8a61cc7..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/index.md +++ /dev/null @@ -1,466 +0,0 @@ -# canvas - -grafonnet.panel.canvas - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new canvas panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/canvas/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/index.md deleted file mode 100644 index 63b0fd6..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/index.md +++ /dev/null @@ -1,569 +0,0 @@ -# dashboardList - -grafonnet.panel.dashboardList - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withFolderId(value)`](#fn-optionswithfolderid) - * [`fn withIncludeVars(value=true)`](#fn-optionswithincludevars) - * [`fn withKeepTime(value=true)`](#fn-optionswithkeeptime) - * [`fn withMaxItems(value=10)`](#fn-optionswithmaxitems) - * [`fn withQuery(value="")`](#fn-optionswithquery) - * [`fn withShowHeadings(value=true)`](#fn-optionswithshowheadings) - * [`fn withShowRecentlyViewed(value=true)`](#fn-optionswithshowrecentlyviewed) - * [`fn withShowSearch(value=true)`](#fn-optionswithshowsearch) - * [`fn withShowStarred(value=true)`](#fn-optionswithshowstarred) - * [`fn withTags(value)`](#fn-optionswithtags) - * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new dashboardList panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withFolderId - -```ts -withFolderId(value) -``` - - - -#### fn options.withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -#### fn options.withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -#### fn options.withMaxItems - -```ts -withMaxItems(value=10) -``` - - - -#### fn options.withQuery - -```ts -withQuery(value="") -``` - - - -#### fn options.withShowHeadings - -```ts -withShowHeadings(value=true) -``` - - - -#### fn options.withShowRecentlyViewed - -```ts -withShowRecentlyViewed(value=true) -``` - - - -#### fn options.withShowSearch - -```ts -withShowSearch(value=true) -``` - - - -#### fn options.withShowStarred - -```ts -withShowStarred(value=true) -``` - - - -#### fn options.withTags - -```ts -withTags(value) -``` - - - -#### fn options.withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/dashboardList/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/index.md deleted file mode 100644 index 30aa0f9..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/index.md +++ /dev/null @@ -1,479 +0,0 @@ -# datagrid - -grafonnet.panel.datagrid - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withSelectedSeries(value=0)`](#fn-optionswithselectedseries) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new datagrid panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withSelectedSeries - -```ts -withSelectedSeries(value=0) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/datagrid/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/index.md deleted file mode 100644 index 1a1ae73..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/index.md +++ /dev/null @@ -1,530 +0,0 @@ -# debug - -grafonnet.panel.debug - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCounters(value)`](#fn-optionswithcounters) - * [`fn withCountersMixin(value)`](#fn-optionswithcountersmixin) - * [`fn withMode(value)`](#fn-optionswithmode) - * [`obj counters`](#obj-optionscounters) - * [`fn withDataChanged(value=true)`](#fn-optionscounterswithdatachanged) - * [`fn withRender(value=true)`](#fn-optionscounterswithrender) - * [`fn withSchemaChanged(value=true)`](#fn-optionscounterswithschemachanged) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new debug panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withCounters - -```ts -withCounters(value) -``` - - - -#### fn options.withCountersMixin - -```ts -withCountersMixin(value) -``` - - - -#### fn options.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "render", "events", "cursor", "State", "ThrowError" - -#### obj options.counters - - -##### fn options.counters.withDataChanged - -```ts -withDataChanged(value=true) -``` - - - -##### fn options.counters.withRender - -```ts -withRender(value=true) -``` - - - -##### fn options.counters.withSchemaChanged - -```ts -withSchemaChanged(value=true) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/debug/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/index.md deleted file mode 100644 index d2526a2..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/index.md +++ /dev/null @@ -1,606 +0,0 @@ -# gauge - -grafonnet.panel.gauge - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withShowThresholdLabels(value=true)`](#fn-optionswithshowthresholdlabels) - * [`fn withShowThresholdMarkers(value=true)`](#fn-optionswithshowthresholdmarkers) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new gauge panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withOrientation - -```ts -withOrientation(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "vertical", "horizontal" - -#### fn options.withReduceOptions - -```ts -withReduceOptions(value) -``` - -TODO docs - -#### fn options.withReduceOptionsMixin - -```ts -withReduceOptionsMixin(value) -``` - -TODO docs - -#### fn options.withShowThresholdLabels - -```ts -withShowThresholdLabels(value=true) -``` - - - -#### fn options.withShowThresholdMarkers - -```ts -withShowThresholdMarkers(value=true) -``` - - - -#### fn options.withText - -```ts -withText(value) -``` - -TODO docs - -#### fn options.withTextMixin - -```ts -withTextMixin(value) -``` - -TODO docs - -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```ts -withCalcs(value) -``` - -When !values, pick one value for the whole field - -##### fn options.reduceOptions.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - -When !values, pick one value for the whole field - -##### fn options.reduceOptions.withFields - -```ts -withFields(value) -``` - -Which fields to show. By default this is only numeric fields - -##### fn options.reduceOptions.withLimit - -```ts -withLimit(value) -``` - -if showing all values limit - -##### fn options.reduceOptions.withValues - -```ts -withValues(value=true) -``` - -If true show each row value - -#### obj options.text - - -##### fn options.text.withTitleSize - -```ts -withTitleSize(value) -``` - -Explicit title text size - -##### fn options.text.withValueSize - -```ts -withValueSize(value) -``` - -Explicit value text size - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/gauge/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/index.md deleted file mode 100644 index cdb26bb..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/index.md +++ /dev/null @@ -1,1030 +0,0 @@ -# geomap - -grafonnet.panel.geomap - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withBasemap(value)`](#fn-optionswithbasemap) - * [`fn withBasemapMixin(value)`](#fn-optionswithbasemapmixin) - * [`fn withControls(value)`](#fn-optionswithcontrols) - * [`fn withControlsMixin(value)`](#fn-optionswithcontrolsmixin) - * [`fn withLayers(value)`](#fn-optionswithlayers) - * [`fn withLayersMixin(value)`](#fn-optionswithlayersmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withView(value)`](#fn-optionswithview) - * [`fn withViewMixin(value)`](#fn-optionswithviewmixin) - * [`obj basemap`](#obj-optionsbasemap) - * [`fn withConfig(value)`](#fn-optionsbasemapwithconfig) - * [`fn withFilterData(value)`](#fn-optionsbasemapwithfilterdata) - * [`fn withLocation(value)`](#fn-optionsbasemapwithlocation) - * [`fn withLocationMixin(value)`](#fn-optionsbasemapwithlocationmixin) - * [`fn withName(value)`](#fn-optionsbasemapwithname) - * [`fn withOpacity(value)`](#fn-optionsbasemapwithopacity) - * [`fn withTooltip(value=true)`](#fn-optionsbasemapwithtooltip) - * [`fn withType(value)`](#fn-optionsbasemapwithtype) - * [`obj location`](#obj-optionsbasemaplocation) - * [`fn withGazetteer(value)`](#fn-optionsbasemaplocationwithgazetteer) - * [`fn withGeohash(value)`](#fn-optionsbasemaplocationwithgeohash) - * [`fn withLatitude(value)`](#fn-optionsbasemaplocationwithlatitude) - * [`fn withLongitude(value)`](#fn-optionsbasemaplocationwithlongitude) - * [`fn withLookup(value)`](#fn-optionsbasemaplocationwithlookup) - * [`fn withMode(value)`](#fn-optionsbasemaplocationwithmode) - * [`fn withWkt(value)`](#fn-optionsbasemaplocationwithwkt) - * [`obj controls`](#obj-optionscontrols) - * [`fn withMouseWheelZoom(value=true)`](#fn-optionscontrolswithmousewheelzoom) - * [`fn withShowAttribution(value=true)`](#fn-optionscontrolswithshowattribution) - * [`fn withShowDebug(value=true)`](#fn-optionscontrolswithshowdebug) - * [`fn withShowMeasure(value=true)`](#fn-optionscontrolswithshowmeasure) - * [`fn withShowScale(value=true)`](#fn-optionscontrolswithshowscale) - * [`fn withShowZoom(value=true)`](#fn-optionscontrolswithshowzoom) - * [`obj layers`](#obj-optionslayers) - * [`fn withConfig(value)`](#fn-optionslayerswithconfig) - * [`fn withFilterData(value)`](#fn-optionslayerswithfilterdata) - * [`fn withLocation(value)`](#fn-optionslayerswithlocation) - * [`fn withLocationMixin(value)`](#fn-optionslayerswithlocationmixin) - * [`fn withName(value)`](#fn-optionslayerswithname) - * [`fn withOpacity(value)`](#fn-optionslayerswithopacity) - * [`fn withTooltip(value=true)`](#fn-optionslayerswithtooltip) - * [`fn withType(value)`](#fn-optionslayerswithtype) - * [`obj location`](#obj-optionslayerslocation) - * [`fn withGazetteer(value)`](#fn-optionslayerslocationwithgazetteer) - * [`fn withGeohash(value)`](#fn-optionslayerslocationwithgeohash) - * [`fn withLatitude(value)`](#fn-optionslayerslocationwithlatitude) - * [`fn withLongitude(value)`](#fn-optionslayerslocationwithlongitude) - * [`fn withLookup(value)`](#fn-optionslayerslocationwithlookup) - * [`fn withMode(value)`](#fn-optionslayerslocationwithmode) - * [`fn withWkt(value)`](#fn-optionslayerslocationwithwkt) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`obj view`](#obj-optionsview) - * [`fn withAllLayers(value=true)`](#fn-optionsviewwithalllayers) - * [`fn withId(value="zero")`](#fn-optionsviewwithid) - * [`fn withLastOnly(value=true)`](#fn-optionsviewwithlastonly) - * [`fn withLat(value=0)`](#fn-optionsviewwithlat) - * [`fn withLayer(value)`](#fn-optionsviewwithlayer) - * [`fn withLon(value=0)`](#fn-optionsviewwithlon) - * [`fn withMaxZoom(value)`](#fn-optionsviewwithmaxzoom) - * [`fn withMinZoom(value)`](#fn-optionsviewwithminzoom) - * [`fn withPadding(value)`](#fn-optionsviewwithpadding) - * [`fn withShared(value=true)`](#fn-optionsviewwithshared) - * [`fn withZoom(value=1)`](#fn-optionsviewwithzoom) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new geomap panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withBasemap - -```ts -withBasemap(value) -``` - - - -#### fn options.withBasemapMixin - -```ts -withBasemapMixin(value) -``` - - - -#### fn options.withControls - -```ts -withControls(value) -``` - - - -#### fn options.withControlsMixin - -```ts -withControlsMixin(value) -``` - - - -#### fn options.withLayers - -```ts -withLayers(value) -``` - - - -#### fn options.withLayersMixin - -```ts -withLayersMixin(value) -``` - - - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - - - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - - - -#### fn options.withView - -```ts -withView(value) -``` - - - -#### fn options.withViewMixin - -```ts -withViewMixin(value) -``` - - - -#### obj options.basemap - - -##### fn options.basemap.withConfig - -```ts -withConfig(value) -``` - -Custom options depending on the type - -##### fn options.basemap.withFilterData - -```ts -withFilterData(value) -``` - -Defines a frame MatcherConfig that may filter data for the given layer - -##### fn options.basemap.withLocation - -```ts -withLocation(value) -``` - - - -##### fn options.basemap.withLocationMixin - -```ts -withLocationMixin(value) -``` - - - -##### fn options.basemap.withName - -```ts -withName(value) -``` - -configured unique display name - -##### fn options.basemap.withOpacity - -```ts -withOpacity(value) -``` - -Common properties: -https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html -Layer opacity (0-1) - -##### fn options.basemap.withTooltip - -```ts -withTooltip(value=true) -``` - -Check tooltip (defaults to true) - -##### fn options.basemap.withType - -```ts -withType(value) -``` - - - -##### obj options.basemap.location - - -###### fn options.basemap.location.withGazetteer - -```ts -withGazetteer(value) -``` - -Path to Gazetteer - -###### fn options.basemap.location.withGeohash - -```ts -withGeohash(value) -``` - -Field mappings - -###### fn options.basemap.location.withLatitude - -```ts -withLatitude(value) -``` - - - -###### fn options.basemap.location.withLongitude - -```ts -withLongitude(value) -``` - - - -###### fn options.basemap.location.withLookup - -```ts -withLookup(value) -``` - - - -###### fn options.basemap.location.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "auto", "geohash", "coords", "lookup" - -###### fn options.basemap.location.withWkt - -```ts -withWkt(value) -``` - - - -#### obj options.controls - - -##### fn options.controls.withMouseWheelZoom - -```ts -withMouseWheelZoom(value=true) -``` - -let the mouse wheel zoom - -##### fn options.controls.withShowAttribution - -```ts -withShowAttribution(value=true) -``` - -Lower right - -##### fn options.controls.withShowDebug - -```ts -withShowDebug(value=true) -``` - -Show debug - -##### fn options.controls.withShowMeasure - -```ts -withShowMeasure(value=true) -``` - -Show measure - -##### fn options.controls.withShowScale - -```ts -withShowScale(value=true) -``` - -Scale options - -##### fn options.controls.withShowZoom - -```ts -withShowZoom(value=true) -``` - -Zoom (upper left) - -#### obj options.layers - - -##### fn options.layers.withConfig - -```ts -withConfig(value) -``` - -Custom options depending on the type - -##### fn options.layers.withFilterData - -```ts -withFilterData(value) -``` - -Defines a frame MatcherConfig that may filter data for the given layer - -##### fn options.layers.withLocation - -```ts -withLocation(value) -``` - - - -##### fn options.layers.withLocationMixin - -```ts -withLocationMixin(value) -``` - - - -##### fn options.layers.withName - -```ts -withName(value) -``` - -configured unique display name - -##### fn options.layers.withOpacity - -```ts -withOpacity(value) -``` - -Common properties: -https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html -Layer opacity (0-1) - -##### fn options.layers.withTooltip - -```ts -withTooltip(value=true) -``` - -Check tooltip (defaults to true) - -##### fn options.layers.withType - -```ts -withType(value) -``` - - - -##### obj options.layers.location - - -###### fn options.layers.location.withGazetteer - -```ts -withGazetteer(value) -``` - -Path to Gazetteer - -###### fn options.layers.location.withGeohash - -```ts -withGeohash(value) -``` - -Field mappings - -###### fn options.layers.location.withLatitude - -```ts -withLatitude(value) -``` - - - -###### fn options.layers.location.withLongitude - -```ts -withLongitude(value) -``` - - - -###### fn options.layers.location.withLookup - -```ts -withLookup(value) -``` - - - -###### fn options.layers.location.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "auto", "geohash", "coords", "lookup" - -###### fn options.layers.location.withWkt - -```ts -withWkt(value) -``` - - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "none", "details" - -#### obj options.view - - -##### fn options.view.withAllLayers - -```ts -withAllLayers(value=true) -``` - - - -##### fn options.view.withId - -```ts -withId(value="zero") -``` - - - -##### fn options.view.withLastOnly - -```ts -withLastOnly(value=true) -``` - - - -##### fn options.view.withLat - -```ts -withLat(value=0) -``` - - - -##### fn options.view.withLayer - -```ts -withLayer(value) -``` - - - -##### fn options.view.withLon - -```ts -withLon(value=0) -``` - - - -##### fn options.view.withMaxZoom - -```ts -withMaxZoom(value) -``` - - - -##### fn options.view.withMinZoom - -```ts -withMinZoom(value) -``` - - - -##### fn options.view.withPadding - -```ts -withPadding(value) -``` - - - -##### fn options.view.withShared - -```ts -withShared(value=true) -``` - - - -##### fn options.view.withZoom - -```ts -withZoom(value=1) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/geomap/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/index.md deleted file mode 100644 index d05e6df..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/index.md +++ /dev/null @@ -1,1420 +0,0 @@ -# heatmap - -grafonnet.panel.heatmap - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCalculate(value=true)`](#fn-optionswithcalculate) - * [`fn withCalculation(value)`](#fn-optionswithcalculation) - * [`fn withCalculationMixin(value)`](#fn-optionswithcalculationmixin) - * [`fn withCellGap(value=1)`](#fn-optionswithcellgap) - * [`fn withCellRadius(value)`](#fn-optionswithcellradius) - * [`fn withCellValues(value={})`](#fn-optionswithcellvalues) - * [`fn withCellValuesMixin(value={})`](#fn-optionswithcellvaluesmixin) - * [`fn withColor(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64})`](#fn-optionswithcolor) - * [`fn withColorMixin(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64})`](#fn-optionswithcolormixin) - * [`fn withExemplars(value)`](#fn-optionswithexemplars) - * [`fn withExemplarsMixin(value)`](#fn-optionswithexemplarsmixin) - * [`fn withFilterValues(value={"le": 0.000000001})`](#fn-optionswithfiltervalues) - * [`fn withFilterValuesMixin(value={"le": 0.000000001})`](#fn-optionswithfiltervaluesmixin) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withRowsFrame(value)`](#fn-optionswithrowsframe) - * [`fn withRowsFrameMixin(value)`](#fn-optionswithrowsframemixin) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withYAxis(value)`](#fn-optionswithyaxis) - * [`fn withYAxisMixin(value)`](#fn-optionswithyaxismixin) - * [`obj calculation`](#obj-optionscalculation) - * [`fn withXBuckets(value)`](#fn-optionscalculationwithxbuckets) - * [`fn withXBucketsMixin(value)`](#fn-optionscalculationwithxbucketsmixin) - * [`fn withYBuckets(value)`](#fn-optionscalculationwithybuckets) - * [`fn withYBucketsMixin(value)`](#fn-optionscalculationwithybucketsmixin) - * [`obj xBuckets`](#obj-optionscalculationxbuckets) - * [`fn withMode(value)`](#fn-optionscalculationxbucketswithmode) - * [`fn withScale(value)`](#fn-optionscalculationxbucketswithscale) - * [`fn withScaleMixin(value)`](#fn-optionscalculationxbucketswithscalemixin) - * [`fn withValue(value)`](#fn-optionscalculationxbucketswithvalue) - * [`obj scale`](#obj-optionscalculationxbucketsscale) - * [`fn withLinearThreshold(value)`](#fn-optionscalculationxbucketsscalewithlinearthreshold) - * [`fn withLog(value)`](#fn-optionscalculationxbucketsscalewithlog) - * [`fn withType(value)`](#fn-optionscalculationxbucketsscalewithtype) - * [`obj yBuckets`](#obj-optionscalculationybuckets) - * [`fn withMode(value)`](#fn-optionscalculationybucketswithmode) - * [`fn withScale(value)`](#fn-optionscalculationybucketswithscale) - * [`fn withScaleMixin(value)`](#fn-optionscalculationybucketswithscalemixin) - * [`fn withValue(value)`](#fn-optionscalculationybucketswithvalue) - * [`obj scale`](#obj-optionscalculationybucketsscale) - * [`fn withLinearThreshold(value)`](#fn-optionscalculationybucketsscalewithlinearthreshold) - * [`fn withLog(value)`](#fn-optionscalculationybucketsscalewithlog) - * [`fn withType(value)`](#fn-optionscalculationybucketsscalewithtype) - * [`obj cellValues`](#obj-optionscellvalues) - * [`fn withCellValues(value)`](#fn-optionscellvalueswithcellvalues) - * [`fn withCellValuesMixin(value)`](#fn-optionscellvalueswithcellvaluesmixin) - * [`obj CellValues`](#obj-optionscellvaluescellvalues) - * [`fn withDecimals(value)`](#fn-optionscellvaluescellvalueswithdecimals) - * [`fn withUnit(value)`](#fn-optionscellvaluescellvalueswithunit) - * [`obj color`](#obj-optionscolor) - * [`fn withHeatmapColorOptions(value)`](#fn-optionscolorwithheatmapcoloroptions) - * [`fn withHeatmapColorOptionsMixin(value)`](#fn-optionscolorwithheatmapcoloroptionsmixin) - * [`obj HeatmapColorOptions`](#obj-optionscolorheatmapcoloroptions) - * [`fn withExponent(value)`](#fn-optionscolorheatmapcoloroptionswithexponent) - * [`fn withFill(value)`](#fn-optionscolorheatmapcoloroptionswithfill) - * [`fn withMax(value)`](#fn-optionscolorheatmapcoloroptionswithmax) - * [`fn withMin(value)`](#fn-optionscolorheatmapcoloroptionswithmin) - * [`fn withMode(value)`](#fn-optionscolorheatmapcoloroptionswithmode) - * [`fn withReverse(value=true)`](#fn-optionscolorheatmapcoloroptionswithreverse) - * [`fn withScale(value)`](#fn-optionscolorheatmapcoloroptionswithscale) - * [`fn withScheme(value)`](#fn-optionscolorheatmapcoloroptionswithscheme) - * [`fn withSteps(value)`](#fn-optionscolorheatmapcoloroptionswithsteps) - * [`obj exemplars`](#obj-optionsexemplars) - * [`fn withColor(value)`](#fn-optionsexemplarswithcolor) - * [`obj filterValues`](#obj-optionsfiltervalues) - * [`fn withFilterValueRange(value)`](#fn-optionsfiltervalueswithfiltervaluerange) - * [`fn withFilterValueRangeMixin(value)`](#fn-optionsfiltervalueswithfiltervaluerangemixin) - * [`obj FilterValueRange`](#obj-optionsfiltervaluesfiltervaluerange) - * [`fn withGe(value)`](#fn-optionsfiltervaluesfiltervaluerangewithge) - * [`fn withLe(value)`](#fn-optionsfiltervaluesfiltervaluerangewithle) - * [`obj legend`](#obj-optionslegend) - * [`fn withShow(value=true)`](#fn-optionslegendwithshow) - * [`obj rowsFrame`](#obj-optionsrowsframe) - * [`fn withLayout(value)`](#fn-optionsrowsframewithlayout) - * [`fn withValue(value)`](#fn-optionsrowsframewithvalue) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withShow(value=true)`](#fn-optionstooltipwithshow) - * [`fn withYHistogram(value=true)`](#fn-optionstooltipwithyhistogram) - * [`obj yAxis`](#obj-optionsyaxis) - * [`fn withAxisCenteredZero(value=true)`](#fn-optionsyaxiswithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-optionsyaxiswithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-optionsyaxiswithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-optionsyaxiswithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-optionsyaxiswithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-optionsyaxiswithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-optionsyaxiswithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-optionsyaxiswithaxiswidth) - * [`fn withDecimals(value)`](#fn-optionsyaxiswithdecimals) - * [`fn withMax(value)`](#fn-optionsyaxiswithmax) - * [`fn withMin(value)`](#fn-optionsyaxiswithmin) - * [`fn withReverse(value=true)`](#fn-optionsyaxiswithreverse) - * [`fn withScaleDistribution(value)`](#fn-optionsyaxiswithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-optionsyaxiswithscaledistributionmixin) - * [`fn withUnit(value)`](#fn-optionsyaxiswithunit) - * [`obj scaleDistribution`](#obj-optionsyaxisscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-optionsyaxisscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-optionsyaxisscaledistributionwithlog) - * [`fn withType(value)`](#fn-optionsyaxisscaledistributionwithtype) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new heatmap panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```ts -withHideFrom(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```ts -withHideFromMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```ts -withScaleDistribution(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```ts -withScaleDistributionMixin(value) -``` - -TODO docs - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```ts -withLegend(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```ts -withTooltip(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```ts -withViz(value=true) -``` - - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```ts -withLinearThreshold(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```ts -withLog(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "log", "ordinal", "symlog" - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withCalculate - -```ts -withCalculate(value=true) -``` - -Controls if the heatmap should be calculated from data - -#### fn options.withCalculation - -```ts -withCalculation(value) -``` - - - -#### fn options.withCalculationMixin - -```ts -withCalculationMixin(value) -``` - - - -#### fn options.withCellGap - -```ts -withCellGap(value=1) -``` - -Controls gap between cells - -#### fn options.withCellRadius - -```ts -withCellRadius(value) -``` - -Controls cell radius - -#### fn options.withCellValues - -```ts -withCellValues(value={}) -``` - -Controls cell value unit - -#### fn options.withCellValuesMixin - -```ts -withCellValuesMixin(value={}) -``` - -Controls cell value unit - -#### fn options.withColor - -```ts -withColor(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}) -``` - -Controls the color options - -#### fn options.withColorMixin - -```ts -withColorMixin(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}) -``` - -Controls the color options - -#### fn options.withExemplars - -```ts -withExemplars(value) -``` - -Controls exemplar options - -#### fn options.withExemplarsMixin - -```ts -withExemplarsMixin(value) -``` - -Controls exemplar options - -#### fn options.withFilterValues - -```ts -withFilterValues(value={"le": 0.000000001}) -``` - -Filters values between a given range - -#### fn options.withFilterValuesMixin - -```ts -withFilterValuesMixin(value={"le": 0.000000001}) -``` - -Filters values between a given range - -#### fn options.withLegend - -```ts -withLegend(value) -``` - -Controls legend options - -#### fn options.withLegendMixin - -```ts -withLegendMixin(value) -``` - -Controls legend options - -#### fn options.withRowsFrame - -```ts -withRowsFrame(value) -``` - -Controls frame rows options - -#### fn options.withRowsFrameMixin - -```ts -withRowsFrameMixin(value) -``` - -Controls frame rows options - -#### fn options.withShowValue - -```ts -withShowValue(value) -``` - -| *{ - layout: ui.HeatmapCellLayout & "auto" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed -} -Controls the display of the value in the cell - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - -Controls tooltip options - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - -Controls tooltip options - -#### fn options.withYAxis - -```ts -withYAxis(value) -``` - -Configuration options for the yAxis - -#### fn options.withYAxisMixin - -```ts -withYAxisMixin(value) -``` - -Configuration options for the yAxis - -#### obj options.calculation - - -##### fn options.calculation.withXBuckets - -```ts -withXBuckets(value) -``` - - - -##### fn options.calculation.withXBucketsMixin - -```ts -withXBucketsMixin(value) -``` - - - -##### fn options.calculation.withYBuckets - -```ts -withYBuckets(value) -``` - - - -##### fn options.calculation.withYBucketsMixin - -```ts -withYBucketsMixin(value) -``` - - - -##### obj options.calculation.xBuckets - - -###### fn options.calculation.xBuckets.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "size", "count" - -###### fn options.calculation.xBuckets.withScale - -```ts -withScale(value) -``` - -TODO docs - -###### fn options.calculation.xBuckets.withScaleMixin - -```ts -withScaleMixin(value) -``` - -TODO docs - -###### fn options.calculation.xBuckets.withValue - -```ts -withValue(value) -``` - -The number of buckets to use for the axis in the heatmap - -###### obj options.calculation.xBuckets.scale - - -####### fn options.calculation.xBuckets.scale.withLinearThreshold - -```ts -withLinearThreshold(value) -``` - - - -####### fn options.calculation.xBuckets.scale.withLog - -```ts -withLog(value) -``` - - - -####### fn options.calculation.xBuckets.scale.withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "log", "ordinal", "symlog" - -##### obj options.calculation.yBuckets - - -###### fn options.calculation.yBuckets.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "size", "count" - -###### fn options.calculation.yBuckets.withScale - -```ts -withScale(value) -``` - -TODO docs - -###### fn options.calculation.yBuckets.withScaleMixin - -```ts -withScaleMixin(value) -``` - -TODO docs - -###### fn options.calculation.yBuckets.withValue - -```ts -withValue(value) -``` - -The number of buckets to use for the axis in the heatmap - -###### obj options.calculation.yBuckets.scale - - -####### fn options.calculation.yBuckets.scale.withLinearThreshold - -```ts -withLinearThreshold(value) -``` - - - -####### fn options.calculation.yBuckets.scale.withLog - -```ts -withLog(value) -``` - - - -####### fn options.calculation.yBuckets.scale.withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "log", "ordinal", "symlog" - -#### obj options.cellValues - - -##### fn options.cellValues.withCellValues - -```ts -withCellValues(value) -``` - -Controls cell value options - -##### fn options.cellValues.withCellValuesMixin - -```ts -withCellValuesMixin(value) -``` - -Controls cell value options - -##### obj options.cellValues.CellValues - - -###### fn options.cellValues.CellValues.withDecimals - -```ts -withDecimals(value) -``` - -Controls the number of decimals for cell values - -###### fn options.cellValues.CellValues.withUnit - -```ts -withUnit(value) -``` - -Controls the cell value unit - -#### obj options.color - - -##### fn options.color.withHeatmapColorOptions - -```ts -withHeatmapColorOptions(value) -``` - -Controls various color options - -##### fn options.color.withHeatmapColorOptionsMixin - -```ts -withHeatmapColorOptionsMixin(value) -``` - -Controls various color options - -##### obj options.color.HeatmapColorOptions - - -###### fn options.color.HeatmapColorOptions.withExponent - -```ts -withExponent(value) -``` - -Controls the exponent when scale is set to exponential - -###### fn options.color.HeatmapColorOptions.withFill - -```ts -withFill(value) -``` - -Controls the color fill when in opacity mode - -###### fn options.color.HeatmapColorOptions.withMax - -```ts -withMax(value) -``` - -Sets the maximum value for the color scale - -###### fn options.color.HeatmapColorOptions.withMin - -```ts -withMin(value) -``` - -Sets the minimum value for the color scale - -###### fn options.color.HeatmapColorOptions.withMode - -```ts -withMode(value) -``` - -Controls the color mode of the heatmap - -Accepted values for `value` are "opacity", "scheme" - -###### fn options.color.HeatmapColorOptions.withReverse - -```ts -withReverse(value=true) -``` - -Reverses the color scheme - -###### fn options.color.HeatmapColorOptions.withScale - -```ts -withScale(value) -``` - -Controls the color scale of the heatmap - -Accepted values for `value` are "linear", "exponential" - -###### fn options.color.HeatmapColorOptions.withScheme - -```ts -withScheme(value) -``` - -Controls the color scheme used - -###### fn options.color.HeatmapColorOptions.withSteps - -```ts -withSteps(value) -``` - -Controls the number of color steps - -#### obj options.exemplars - - -##### fn options.exemplars.withColor - -```ts -withColor(value) -``` - -Sets the color of the exemplar markers - -#### obj options.filterValues - - -##### fn options.filterValues.withFilterValueRange - -```ts -withFilterValueRange(value) -``` - -Controls the value filter range - -##### fn options.filterValues.withFilterValueRangeMixin - -```ts -withFilterValueRangeMixin(value) -``` - -Controls the value filter range - -##### obj options.filterValues.FilterValueRange - - -###### fn options.filterValues.FilterValueRange.withGe - -```ts -withGe(value) -``` - -Sets the filter range to values greater than or equal to the given value - -###### fn options.filterValues.FilterValueRange.withLe - -```ts -withLe(value) -``` - -Sets the filter range to values less than or equal to the given value - -#### obj options.legend - - -##### fn options.legend.withShow - -```ts -withShow(value=true) -``` - -Controls if the legend is shown - -#### obj options.rowsFrame - - -##### fn options.rowsFrame.withLayout - -```ts -withLayout(value) -``` - - - -Accepted values for `value` are "le", "ge", "unknown", "auto" - -##### fn options.rowsFrame.withValue - -```ts -withValue(value) -``` - -Sets the name of the cell when not calculating from data - -#### obj options.tooltip - - -##### fn options.tooltip.withShow - -```ts -withShow(value=true) -``` - -Controls if the tooltip is shown - -##### fn options.tooltip.withYHistogram - -```ts -withYHistogram(value=true) -``` - -Controls if the tooltip shows a histogram of the y-axis values - -#### obj options.yAxis - - -##### fn options.yAxis.withAxisCenteredZero - -```ts -withAxisCenteredZero(value=true) -``` - - - -##### fn options.yAxis.withAxisColorMode - -```ts -withAxisColorMode(value) -``` - -TODO docs - -Accepted values for `value` are "text", "series" - -##### fn options.yAxis.withAxisGridShow - -```ts -withAxisGridShow(value=true) -``` - - - -##### fn options.yAxis.withAxisLabel - -```ts -withAxisLabel(value) -``` - - - -##### fn options.yAxis.withAxisPlacement - -```ts -withAxisPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" - -##### fn options.yAxis.withAxisSoftMax - -```ts -withAxisSoftMax(value) -``` - - - -##### fn options.yAxis.withAxisSoftMin - -```ts -withAxisSoftMin(value) -``` - - - -##### fn options.yAxis.withAxisWidth - -```ts -withAxisWidth(value) -``` - - - -##### fn options.yAxis.withDecimals - -```ts -withDecimals(value) -``` - -Controls the number of decimals for yAxis values - -##### fn options.yAxis.withMax - -```ts -withMax(value) -``` - -Sets the maximum value for the yAxis - -##### fn options.yAxis.withMin - -```ts -withMin(value) -``` - -Sets the minimum value for the yAxis - -##### fn options.yAxis.withReverse - -```ts -withReverse(value=true) -``` - -Reverses the yAxis - -##### fn options.yAxis.withScaleDistribution - -```ts -withScaleDistribution(value) -``` - -TODO docs - -##### fn options.yAxis.withScaleDistributionMixin - -```ts -withScaleDistributionMixin(value) -``` - -TODO docs - -##### fn options.yAxis.withUnit - -```ts -withUnit(value) -``` - -Sets the yAxis unit - -##### obj options.yAxis.scaleDistribution - - -###### fn options.yAxis.scaleDistribution.withLinearThreshold - -```ts -withLinearThreshold(value) -``` - - - -###### fn options.yAxis.scaleDistribution.withLog - -```ts -withLog(value) -``` - - - -###### fn options.yAxis.scaleDistribution.withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "log", "ordinal", "symlog" - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/heatmap/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/index.md deleted file mode 100644 index aa80fc6..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/index.md +++ /dev/null @@ -1,874 +0,0 @@ -# histogram - -grafonnet.panel.histogram - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withBucketOffset(value=0)`](#fn-optionswithbucketoffset) - * [`fn withBucketSize(value)`](#fn-optionswithbucketsize) - * [`fn withCombine(value=true)`](#fn-optionswithcombine) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new histogram panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```ts -withAxisCenteredZero(value=true) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```ts -withAxisColorMode(value) -``` - -TODO docs - -Accepted values for `value` are "text", "series" - -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```ts -withAxisGridShow(value=true) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```ts -withAxisLabel(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```ts -withAxisPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" - -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```ts -withAxisSoftMax(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```ts -withAxisSoftMin(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```ts -withAxisWidth(value) -``` - - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```ts -withFillOpacity(value=80) -``` - -Controls the fill opacity of the bars. - -###### fn fieldConfig.defaults.custom.withGradientMode - -```ts -withGradientMode(value) -``` - -Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. -Gradient appearance is influenced by the Fill opacity setting. - -###### fn fieldConfig.defaults.custom.withHideFrom - -```ts -withHideFrom(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```ts -withHideFromMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineWidth - -```ts -withLineWidth(value=1) -``` - -Controls line width of the bars. - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```ts -withScaleDistribution(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```ts -withScaleDistributionMixin(value) -``` - -TODO docs - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```ts -withLegend(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```ts -withTooltip(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```ts -withViz(value=true) -``` - - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```ts -withLinearThreshold(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```ts -withLog(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "log", "ordinal", "symlog" - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withBucketOffset - -```ts -withBucketOffset(value=0) -``` - -Offset buckets by this amount - -#### fn options.withBucketSize - -```ts -withBucketSize(value) -``` - -Size of each bucket - -#### fn options.withCombine - -```ts -withCombine(value=true) -``` - -Combines multiple series into a single histogram - -#### fn options.withLegend - -```ts -withLegend(value) -``` - -TODO docs - -#### fn options.withLegendMixin - -```ts -withLegendMixin(value) -``` - -TODO docs - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - -TODO docs - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - -TODO docs - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```ts -withAsTable(value=true) -``` - - - -##### fn options.legend.withCalcs - -```ts -withCalcs(value) -``` - - - -##### fn options.legend.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - - - -##### fn options.legend.withDisplayMode - -```ts -withDisplayMode(value) -``` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility - -Accepted values for `value` are "list", "table", "hidden" - -##### fn options.legend.withIsVisible - -```ts -withIsVisible(value=true) -``` - - - -##### fn options.legend.withPlacement - -```ts -withPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "bottom", "right" - -##### fn options.legend.withShowLegend - -```ts -withShowLegend(value=true) -``` - - - -##### fn options.legend.withSortBy - -```ts -withSortBy(value) -``` - - - -##### fn options.legend.withSortDesc - -```ts -withSortDesc(value=true) -``` - - - -##### fn options.legend.withWidth - -```ts -withWidth(value) -``` - - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "single", "multi", "none" - -##### fn options.tooltip.withSort - -```ts -withSort(value) -``` - -TODO docs - -Accepted values for `value` are "asc", "desc", "none" - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/histogram/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/index.md deleted file mode 100644 index c1ba847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/index.md +++ /dev/null @@ -1,546 +0,0 @@ -# logs - -grafonnet.panel.logs - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDedupStrategy(value)`](#fn-optionswithdedupstrategy) - * [`fn withEnableLogDetails(value=true)`](#fn-optionswithenablelogdetails) - * [`fn withPrettifyLogMessage(value=true)`](#fn-optionswithprettifylogmessage) - * [`fn withShowCommonLabels(value=true)`](#fn-optionswithshowcommonlabels) - * [`fn withShowLabels(value=true)`](#fn-optionswithshowlabels) - * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) - * [`fn withSortOrder(value)`](#fn-optionswithsortorder) - * [`fn withWrapLogMessage(value=true)`](#fn-optionswithwraplogmessage) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new logs panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withDedupStrategy - -```ts -withDedupStrategy(value) -``` - - - -Accepted values for `value` are "none", "exact", "numbers", "signature" - -#### fn options.withEnableLogDetails - -```ts -withEnableLogDetails(value=true) -``` - - - -#### fn options.withPrettifyLogMessage - -```ts -withPrettifyLogMessage(value=true) -``` - - - -#### fn options.withShowCommonLabels - -```ts -withShowCommonLabels(value=true) -``` - - - -#### fn options.withShowLabels - -```ts -withShowLabels(value=true) -``` - - - -#### fn options.withShowTime - -```ts -withShowTime(value=true) -``` - - - -#### fn options.withSortOrder - -```ts -withSortOrder(value) -``` - - - -Accepted values for `value` are "Descending", "Ascending" - -#### fn options.withWrapLogMessage - -```ts -withWrapLogMessage(value=true) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/logs/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/index.md deleted file mode 100644 index 30ea93b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/index.md +++ /dev/null @@ -1,488 +0,0 @@ -# news - -grafonnet.panel.news - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withFeedUrl(value)`](#fn-optionswithfeedurl) - * [`fn withShowImage(value=true)`](#fn-optionswithshowimage) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new news panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withFeedUrl - -```ts -withFeedUrl(value) -``` - -empty/missing will default to grafana blog - -#### fn options.withShowImage - -```ts -withShowImage(value=true) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/news/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/index.md deleted file mode 100644 index 628eee2..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/index.md +++ /dev/null @@ -1,590 +0,0 @@ -# nodeGraph - -grafonnet.panel.nodeGraph - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withEdges(value)`](#fn-optionswithedges) - * [`fn withEdgesMixin(value)`](#fn-optionswithedgesmixin) - * [`fn withNodes(value)`](#fn-optionswithnodes) - * [`fn withNodesMixin(value)`](#fn-optionswithnodesmixin) - * [`obj edges`](#obj-optionsedges) - * [`fn withMainStatUnit(value)`](#fn-optionsedgeswithmainstatunit) - * [`fn withSecondaryStatUnit(value)`](#fn-optionsedgeswithsecondarystatunit) - * [`obj nodes`](#obj-optionsnodes) - * [`fn withArcs(value)`](#fn-optionsnodeswitharcs) - * [`fn withArcsMixin(value)`](#fn-optionsnodeswitharcsmixin) - * [`fn withMainStatUnit(value)`](#fn-optionsnodeswithmainstatunit) - * [`fn withSecondaryStatUnit(value)`](#fn-optionsnodeswithsecondarystatunit) - * [`obj arcs`](#obj-optionsnodesarcs) - * [`fn withColor(value)`](#fn-optionsnodesarcswithcolor) - * [`fn withField(value)`](#fn-optionsnodesarcswithfield) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new nodeGraph panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withEdges - -```ts -withEdges(value) -``` - - - -#### fn options.withEdgesMixin - -```ts -withEdgesMixin(value) -``` - - - -#### fn options.withNodes - -```ts -withNodes(value) -``` - - - -#### fn options.withNodesMixin - -```ts -withNodesMixin(value) -``` - - - -#### obj options.edges - - -##### fn options.edges.withMainStatUnit - -```ts -withMainStatUnit(value) -``` - -Unit for the main stat to override what ever is set in the data frame. - -##### fn options.edges.withSecondaryStatUnit - -```ts -withSecondaryStatUnit(value) -``` - -Unit for the secondary stat to override what ever is set in the data frame. - -#### obj options.nodes - - -##### fn options.nodes.withArcs - -```ts -withArcs(value) -``` - -Define which fields are shown as part of the node arc (colored circle around the node). - -##### fn options.nodes.withArcsMixin - -```ts -withArcsMixin(value) -``` - -Define which fields are shown as part of the node arc (colored circle around the node). - -##### fn options.nodes.withMainStatUnit - -```ts -withMainStatUnit(value) -``` - -Unit for the main stat to override what ever is set in the data frame. - -##### fn options.nodes.withSecondaryStatUnit - -```ts -withSecondaryStatUnit(value) -``` - -Unit for the secondary stat to override what ever is set in the data frame. - -##### obj options.nodes.arcs - - -###### fn options.nodes.arcs.withColor - -```ts -withColor(value) -``` - -The color of the arc. - -###### fn options.nodes.arcs.withField - -```ts -withField(value) -``` - -Field from which to get the value. Values should be less than 1, representing fraction of a circle. - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/nodeGraph/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/index.md deleted file mode 100644 index f8c8211..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/index.md +++ /dev/null @@ -1,857 +0,0 @@ -# pieChart - -grafonnet.panel.pieChart - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDisplayLabels(value)`](#fn-optionswithdisplaylabels) - * [`fn withDisplayLabelsMixin(value)`](#fn-optionswithdisplaylabelsmixin) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withPieType(value)`](#fn-optionswithpietype) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withValues(value)`](#fn-optionslegendwithvalues) - * [`fn withValuesMixin(value)`](#fn-optionslegendwithvaluesmixin) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new pieChart panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```ts -withHideFrom(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```ts -withHideFromMixin(value) -``` - -TODO docs - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```ts -withLegend(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```ts -withTooltip(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```ts -withViz(value=true) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withDisplayLabels - -```ts -withDisplayLabels(value) -``` - - - -#### fn options.withDisplayLabelsMixin - -```ts -withDisplayLabelsMixin(value) -``` - - - -#### fn options.withLegend - -```ts -withLegend(value) -``` - - - -#### fn options.withLegendMixin - -```ts -withLegendMixin(value) -``` - - - -#### fn options.withOrientation - -```ts -withOrientation(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "vertical", "horizontal" - -#### fn options.withPieType - -```ts -withPieType(value) -``` - -Select the pie chart display style. - -Accepted values for `value` are "pie", "donut" - -#### fn options.withReduceOptions - -```ts -withReduceOptions(value) -``` - -TODO docs - -#### fn options.withReduceOptionsMixin - -```ts -withReduceOptionsMixin(value) -``` - -TODO docs - -#### fn options.withText - -```ts -withText(value) -``` - -TODO docs - -#### fn options.withTextMixin - -```ts -withTextMixin(value) -``` - -TODO docs - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - -TODO docs - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - -TODO docs - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```ts -withAsTable(value=true) -``` - - - -##### fn options.legend.withCalcs - -```ts -withCalcs(value) -``` - - - -##### fn options.legend.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - - - -##### fn options.legend.withDisplayMode - -```ts -withDisplayMode(value) -``` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility - -Accepted values for `value` are "list", "table", "hidden" - -##### fn options.legend.withIsVisible - -```ts -withIsVisible(value=true) -``` - - - -##### fn options.legend.withPlacement - -```ts -withPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "bottom", "right" - -##### fn options.legend.withShowLegend - -```ts -withShowLegend(value=true) -``` - - - -##### fn options.legend.withSortBy - -```ts -withSortBy(value) -``` - - - -##### fn options.legend.withSortDesc - -```ts -withSortDesc(value=true) -``` - - - -##### fn options.legend.withValues - -```ts -withValues(value) -``` - - - -##### fn options.legend.withValuesMixin - -```ts -withValuesMixin(value) -``` - - - -##### fn options.legend.withWidth - -```ts -withWidth(value) -``` - - - -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```ts -withCalcs(value) -``` - -When !values, pick one value for the whole field - -##### fn options.reduceOptions.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - -When !values, pick one value for the whole field - -##### fn options.reduceOptions.withFields - -```ts -withFields(value) -``` - -Which fields to show. By default this is only numeric fields - -##### fn options.reduceOptions.withLimit - -```ts -withLimit(value) -``` - -if showing all values limit - -##### fn options.reduceOptions.withValues - -```ts -withValues(value=true) -``` - -If true show each row value - -#### obj options.text - - -##### fn options.text.withTitleSize - -```ts -withTitleSize(value) -``` - -Explicit title text size - -##### fn options.text.withValueSize - -```ts -withValueSize(value) -``` - -Explicit value text size - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "single", "multi", "none" - -##### fn options.tooltip.withSort - -```ts -withSort(value) -``` - -TODO docs - -Accepted values for `value` are "asc", "desc", "none" - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/pieChart/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/index.md deleted file mode 100644 index d9759dc..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/index.md +++ /dev/null @@ -1,632 +0,0 @@ -# stat - -grafonnet.panel.stat - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withColorMode(value)`](#fn-optionswithcolormode) - * [`fn withGraphMode(value)`](#fn-optionswithgraphmode) - * [`fn withJustifyMode(value)`](#fn-optionswithjustifymode) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withTextMode(value)`](#fn-optionswithtextmode) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new stat panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withColorMode - -```ts -withColorMode(value) -``` - -TODO docs - -Accepted values for `value` are "value", "background", "background_solid", "none" - -#### fn options.withGraphMode - -```ts -withGraphMode(value) -``` - -TODO docs - -Accepted values for `value` are "none", "line", "area" - -#### fn options.withJustifyMode - -```ts -withJustifyMode(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "center" - -#### fn options.withOrientation - -```ts -withOrientation(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "vertical", "horizontal" - -#### fn options.withReduceOptions - -```ts -withReduceOptions(value) -``` - -TODO docs - -#### fn options.withReduceOptionsMixin - -```ts -withReduceOptionsMixin(value) -``` - -TODO docs - -#### fn options.withText - -```ts -withText(value) -``` - -TODO docs - -#### fn options.withTextMixin - -```ts -withTextMixin(value) -``` - -TODO docs - -#### fn options.withTextMode - -```ts -withTextMode(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "value", "value_and_name", "name", "none" - -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```ts -withCalcs(value) -``` - -When !values, pick one value for the whole field - -##### fn options.reduceOptions.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - -When !values, pick one value for the whole field - -##### fn options.reduceOptions.withFields - -```ts -withFields(value) -``` - -Which fields to show. By default this is only numeric fields - -##### fn options.reduceOptions.withLimit - -```ts -withLimit(value) -``` - -if showing all values limit - -##### fn options.reduceOptions.withValues - -```ts -withValues(value=true) -``` - -If true show each row value - -#### obj options.text - - -##### fn options.text.withTitleSize - -```ts -withTitleSize(value) -``` - -Explicit title text size - -##### fn options.text.withValueSize - -```ts -withValueSize(value) -``` - -Explicit value text size - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stat/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/index.md deleted file mode 100644 index b26903c..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/index.md +++ /dev/null @@ -1,764 +0,0 @@ -# stateTimeline - -grafonnet.panel.stateTimeline - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=0)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withAlignValue(value)`](#fn-optionswithalignvalue) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withMergeValues(value=true)`](#fn-optionswithmergevalues) - * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withTimezone(value)`](#fn-optionswithtimezone) - * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new stateTimeline panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```ts -withFillOpacity(value=70) -``` - - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```ts -withHideFrom(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```ts -withHideFromMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineWidth - -```ts -withLineWidth(value=0) -``` - - - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```ts -withLegend(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```ts -withTooltip(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```ts -withViz(value=true) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withAlignValue - -```ts -withAlignValue(value) -``` - -Controls value alignment on the timelines - -#### fn options.withLegend - -```ts -withLegend(value) -``` - -TODO docs - -#### fn options.withLegendMixin - -```ts -withLegendMixin(value) -``` - -TODO docs - -#### fn options.withMergeValues - -```ts -withMergeValues(value=true) -``` - -Merge equal consecutive values - -#### fn options.withRowHeight - -```ts -withRowHeight(value=0.9) -``` - -Controls the row height - -#### fn options.withShowValue - -```ts -withShowValue(value) -``` - -Show timeline values on chart - -#### fn options.withTimezone - -```ts -withTimezone(value) -``` - - - -#### fn options.withTimezoneMixin - -```ts -withTimezoneMixin(value) -``` - - - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - -TODO docs - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - -TODO docs - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```ts -withAsTable(value=true) -``` - - - -##### fn options.legend.withCalcs - -```ts -withCalcs(value) -``` - - - -##### fn options.legend.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - - - -##### fn options.legend.withDisplayMode - -```ts -withDisplayMode(value) -``` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility - -Accepted values for `value` are "list", "table", "hidden" - -##### fn options.legend.withIsVisible - -```ts -withIsVisible(value=true) -``` - - - -##### fn options.legend.withPlacement - -```ts -withPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "bottom", "right" - -##### fn options.legend.withShowLegend - -```ts -withShowLegend(value=true) -``` - - - -##### fn options.legend.withSortBy - -```ts -withSortBy(value) -``` - - - -##### fn options.legend.withSortDesc - -```ts -withSortDesc(value=true) -``` - - - -##### fn options.legend.withWidth - -```ts -withWidth(value) -``` - - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "single", "multi", "none" - -##### fn options.tooltip.withSort - -```ts -withSort(value) -``` - -TODO docs - -Accepted values for `value` are "asc", "desc", "none" - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/stateTimeline/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/index.md deleted file mode 100644 index 296caa8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/index.md +++ /dev/null @@ -1,755 +0,0 @@ -# statusHistory - -grafonnet.panel.statusHistory - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withColWidth(value=0.9)`](#fn-optionswithcolwidth) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withTimezone(value)`](#fn-optionswithtimezone) - * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new statusHistory panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```ts -withFillOpacity(value=70) -``` - - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```ts -withHideFrom(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```ts -withHideFromMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineWidth - -```ts -withLineWidth(value=1) -``` - - - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```ts -withLegend(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```ts -withTooltip(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```ts -withViz(value=true) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withColWidth - -```ts -withColWidth(value=0.9) -``` - -Controls the column width - -#### fn options.withLegend - -```ts -withLegend(value) -``` - -TODO docs - -#### fn options.withLegendMixin - -```ts -withLegendMixin(value) -``` - -TODO docs - -#### fn options.withRowHeight - -```ts -withRowHeight(value=0.9) -``` - -Set the height of the rows - -#### fn options.withShowValue - -```ts -withShowValue(value) -``` - -Show values on the columns - -#### fn options.withTimezone - -```ts -withTimezone(value) -``` - - - -#### fn options.withTimezoneMixin - -```ts -withTimezoneMixin(value) -``` - - - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - -TODO docs - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - -TODO docs - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```ts -withAsTable(value=true) -``` - - - -##### fn options.legend.withCalcs - -```ts -withCalcs(value) -``` - - - -##### fn options.legend.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - - - -##### fn options.legend.withDisplayMode - -```ts -withDisplayMode(value) -``` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility - -Accepted values for `value` are "list", "table", "hidden" - -##### fn options.legend.withIsVisible - -```ts -withIsVisible(value=true) -``` - - - -##### fn options.legend.withPlacement - -```ts -withPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "bottom", "right" - -##### fn options.legend.withShowLegend - -```ts -withShowLegend(value=true) -``` - - - -##### fn options.legend.withSortBy - -```ts -withSortBy(value) -``` - - - -##### fn options.legend.withSortDesc - -```ts -withSortDesc(value=true) -``` - - - -##### fn options.legend.withWidth - -```ts -withWidth(value) -``` - - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "single", "multi", "none" - -##### fn options.tooltip.withSort - -```ts -withSort(value) -``` - -TODO docs - -Accepted values for `value` are "asc", "desc", "none" - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/statusHistory/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/index.md deleted file mode 100644 index 1ec2b22..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/index.md +++ /dev/null @@ -1,653 +0,0 @@ -# table - -grafonnet.panel.table - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCellHeight(value)`](#fn-optionswithcellheight) - * [`fn withFooter(value={"countRows": false,"reducer": [],"show": false})`](#fn-optionswithfooter) - * [`fn withFooterMixin(value={"countRows": false,"reducer": [],"show": false})`](#fn-optionswithfootermixin) - * [`fn withFrameIndex(value=0)`](#fn-optionswithframeindex) - * [`fn withShowHeader(value=true)`](#fn-optionswithshowheader) - * [`fn withShowTypeIcons(value=true)`](#fn-optionswithshowtypeicons) - * [`fn withSortBy(value)`](#fn-optionswithsortby) - * [`fn withSortByMixin(value)`](#fn-optionswithsortbymixin) - * [`obj footer`](#obj-optionsfooter) - * [`fn withTableFooterOptions(value)`](#fn-optionsfooterwithtablefooteroptions) - * [`fn withTableFooterOptionsMixin(value)`](#fn-optionsfooterwithtablefooteroptionsmixin) - * [`obj TableFooterOptions`](#obj-optionsfootertablefooteroptions) - * [`fn withCountRows(value=true)`](#fn-optionsfootertablefooteroptionswithcountrows) - * [`fn withEnablePagination(value=true)`](#fn-optionsfootertablefooteroptionswithenablepagination) - * [`fn withFields(value)`](#fn-optionsfootertablefooteroptionswithfields) - * [`fn withFieldsMixin(value)`](#fn-optionsfootertablefooteroptionswithfieldsmixin) - * [`fn withReducer(value)`](#fn-optionsfootertablefooteroptionswithreducer) - * [`fn withReducerMixin(value)`](#fn-optionsfootertablefooteroptionswithreducermixin) - * [`fn withShow(value=true)`](#fn-optionsfootertablefooteroptionswithshow) - * [`obj sortBy`](#obj-optionssortby) - * [`fn withDesc(value=true)`](#fn-optionssortbywithdesc) - * [`fn withDisplayName(value)`](#fn-optionssortbywithdisplayname) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new table panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withCellHeight - -```ts -withCellHeight(value) -``` - -Controls the height of the rows - -#### fn options.withFooter - -```ts -withFooter(value={"countRows": false,"reducer": [],"show": false}) -``` - -Controls footer options - -#### fn options.withFooterMixin - -```ts -withFooterMixin(value={"countRows": false,"reducer": [],"show": false}) -``` - -Controls footer options - -#### fn options.withFrameIndex - -```ts -withFrameIndex(value=0) -``` - -Represents the index of the selected frame - -#### fn options.withShowHeader - -```ts -withShowHeader(value=true) -``` - -Controls whether the panel should show the header - -#### fn options.withShowTypeIcons - -```ts -withShowTypeIcons(value=true) -``` - -Controls whether the header should show icons for the column types - -#### fn options.withSortBy - -```ts -withSortBy(value) -``` - -Used to control row sorting - -#### fn options.withSortByMixin - -```ts -withSortByMixin(value) -``` - -Used to control row sorting - -#### obj options.footer - - -##### fn options.footer.withTableFooterOptions - -```ts -withTableFooterOptions(value) -``` - -Footer options - -##### fn options.footer.withTableFooterOptionsMixin - -```ts -withTableFooterOptionsMixin(value) -``` - -Footer options - -##### obj options.footer.TableFooterOptions - - -###### fn options.footer.TableFooterOptions.withCountRows - -```ts -withCountRows(value=true) -``` - - - -###### fn options.footer.TableFooterOptions.withEnablePagination - -```ts -withEnablePagination(value=true) -``` - - - -###### fn options.footer.TableFooterOptions.withFields - -```ts -withFields(value) -``` - - - -###### fn options.footer.TableFooterOptions.withFieldsMixin - -```ts -withFieldsMixin(value) -``` - - - -###### fn options.footer.TableFooterOptions.withReducer - -```ts -withReducer(value) -``` - - - -###### fn options.footer.TableFooterOptions.withReducerMixin - -```ts -withReducerMixin(value) -``` - - - -###### fn options.footer.TableFooterOptions.withShow - -```ts -withShow(value=true) -``` - - - -#### obj options.sortBy - - -##### fn options.sortBy.withDesc - -```ts -withDesc(value=true) -``` - -Flag used to indicate descending sort order - -##### fn options.sortBy.withDisplayName - -```ts -withDisplayName(value) -``` - -Sets the display name of the field to sort by - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/table/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/index.md deleted file mode 100644 index 0c98f46..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/index.md +++ /dev/null @@ -1,541 +0,0 @@ -# text - -grafonnet.panel.text - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCode(value)`](#fn-optionswithcode) - * [`fn withCodeMixin(value)`](#fn-optionswithcodemixin) - * [`fn withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)")`](#fn-optionswithcontent) - * [`fn withMode(value)`](#fn-optionswithmode) - * [`obj code`](#obj-optionscode) - * [`fn withLanguage(value="plaintext")`](#fn-optionscodewithlanguage) - * [`fn withShowLineNumbers(value=true)`](#fn-optionscodewithshowlinenumbers) - * [`fn withShowMiniMap(value=true)`](#fn-optionscodewithshowminimap) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new text panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withCode - -```ts -withCode(value) -``` - - - -#### fn options.withCodeMixin - -```ts -withCodeMixin(value) -``` - - - -#### fn options.withContent - -```ts -withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)") -``` - - - -#### fn options.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "html", "markdown", "code" - -#### obj options.code - - -##### fn options.code.withLanguage - -```ts -withLanguage(value="plaintext") -``` - - - -Accepted values for `value` are "plaintext", "yaml", "xml", "typescript", "sql", "go", "markdown", "html", "json" - -##### fn options.code.withShowLineNumbers - -```ts -withShowLineNumbers(value=true) -``` - - - -##### fn options.code.withShowMiniMap - -```ts -withShowMiniMap(value=true) -``` - - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/text/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/index.md deleted file mode 100644 index 9f9d02e..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/index.md +++ /dev/null @@ -1,1141 +0,0 @@ -# timeSeries - -grafonnet.panel.timeSeries - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) - * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) - * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) - * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) - * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) - * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) - * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) - * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) - * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) - * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) - * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withTimezone(value)`](#fn-optionswithtimezone) - * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new timeSeries panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```ts -withAxisCenteredZero(value=true) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```ts -withAxisColorMode(value) -``` - -TODO docs - -Accepted values for `value` are "text", "series" - -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```ts -withAxisGridShow(value=true) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```ts -withAxisLabel(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```ts -withAxisPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" - -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```ts -withAxisSoftMax(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```ts -withAxisSoftMin(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```ts -withAxisWidth(value) -``` - - - -###### fn fieldConfig.defaults.custom.withBarAlignment - -```ts -withBarAlignment(value) -``` - -TODO docs - -Accepted values for `value` are -1, 0, 1 - -###### fn fieldConfig.defaults.custom.withBarMaxWidth - -```ts -withBarMaxWidth(value) -``` - - - -###### fn fieldConfig.defaults.custom.withBarWidthFactor - -```ts -withBarWidthFactor(value) -``` - - - -###### fn fieldConfig.defaults.custom.withDrawStyle - -```ts -withDrawStyle(value) -``` - -TODO docs - -Accepted values for `value` are "line", "bars", "points" - -###### fn fieldConfig.defaults.custom.withFillBelowTo - -```ts -withFillBelowTo(value) -``` - - - -###### fn fieldConfig.defaults.custom.withFillColor - -```ts -withFillColor(value) -``` - - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```ts -withFillOpacity(value) -``` - - - -###### fn fieldConfig.defaults.custom.withGradientMode - -```ts -withGradientMode(value) -``` - -TODO docs - -Accepted values for `value` are "none", "opacity", "hue", "scheme" - -###### fn fieldConfig.defaults.custom.withHideFrom - -```ts -withHideFrom(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```ts -withHideFromMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineColor - -```ts -withLineColor(value) -``` - - - -###### fn fieldConfig.defaults.custom.withLineInterpolation - -```ts -withLineInterpolation(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "smooth", "stepBefore", "stepAfter" - -###### fn fieldConfig.defaults.custom.withLineStyle - -```ts -withLineStyle(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineStyleMixin - -```ts -withLineStyleMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineWidth - -```ts -withLineWidth(value) -``` - - - -###### fn fieldConfig.defaults.custom.withPointColor - -```ts -withPointColor(value) -``` - - - -###### fn fieldConfig.defaults.custom.withPointSize - -```ts -withPointSize(value) -``` - - - -###### fn fieldConfig.defaults.custom.withPointSymbol - -```ts -withPointSymbol(value) -``` - - - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```ts -withScaleDistribution(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```ts -withScaleDistributionMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withShowPoints - -```ts -withShowPoints(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "never", "always" - -###### fn fieldConfig.defaults.custom.withSpanNulls - -```ts -withSpanNulls(value) -``` - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds - -###### fn fieldConfig.defaults.custom.withSpanNullsMixin - -```ts -withSpanNullsMixin(value) -``` - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds - -###### fn fieldConfig.defaults.custom.withStacking - -```ts -withStacking(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withStackingMixin - -```ts -withStackingMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```ts -withThresholdsStyle(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```ts -withThresholdsStyleMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withTransform - -```ts -withTransform(value) -``` - -TODO docs - -Accepted values for `value` are "constant", "negative-Y" - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```ts -withLegend(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```ts -withTooltip(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```ts -withViz(value=true) -``` - - - -###### obj fieldConfig.defaults.custom.lineStyle - - -####### fn fieldConfig.defaults.custom.lineStyle.withDash - -```ts -withDash(value) -``` - - - -####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin - -```ts -withDashMixin(value) -``` - - - -####### fn fieldConfig.defaults.custom.lineStyle.withFill - -```ts -withFill(value) -``` - - - -Accepted values for `value` are "solid", "dash", "dot", "square" - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```ts -withLinearThreshold(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```ts -withLog(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "log", "ordinal", "symlog" - -###### obj fieldConfig.defaults.custom.stacking - - -####### fn fieldConfig.defaults.custom.stacking.withGroup - -```ts -withGroup(value) -``` - - - -####### fn fieldConfig.defaults.custom.stacking.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "none", "normal", "percent" - -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "off", "line", "dashed", "area", "line+area", "dashed+area", "series" - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withLegend - -```ts -withLegend(value) -``` - -TODO docs - -#### fn options.withLegendMixin - -```ts -withLegendMixin(value) -``` - -TODO docs - -#### fn options.withTimezone - -```ts -withTimezone(value) -``` - - - -#### fn options.withTimezoneMixin - -```ts -withTimezoneMixin(value) -``` - - - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - -TODO docs - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - -TODO docs - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```ts -withAsTable(value=true) -``` - - - -##### fn options.legend.withCalcs - -```ts -withCalcs(value) -``` - - - -##### fn options.legend.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - - - -##### fn options.legend.withDisplayMode - -```ts -withDisplayMode(value) -``` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility - -Accepted values for `value` are "list", "table", "hidden" - -##### fn options.legend.withIsVisible - -```ts -withIsVisible(value=true) -``` - - - -##### fn options.legend.withPlacement - -```ts -withPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "bottom", "right" - -##### fn options.legend.withShowLegend - -```ts -withShowLegend(value=true) -``` - - - -##### fn options.legend.withSortBy - -```ts -withSortBy(value) -``` - - - -##### fn options.legend.withSortDesc - -```ts -withSortDesc(value=true) -``` - - - -##### fn options.legend.withWidth - -```ts -withWidth(value) -``` - - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "single", "multi", "none" - -##### fn options.tooltip.withSort - -```ts -withSort(value) -``` - -TODO docs - -Accepted values for `value` are "asc", "desc", "none" - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/timeSeries/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/index.md deleted file mode 100644 index a47c1ed..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/index.md +++ /dev/null @@ -1,1132 +0,0 @@ -# trend - -grafonnet.panel.trend - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) - * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) - * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) - * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) - * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) - * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) - * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) - * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) - * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) - * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) - * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withXField(value)`](#fn-optionswithxfield) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new trend panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```ts -withAxisCenteredZero(value=true) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```ts -withAxisColorMode(value) -``` - -TODO docs - -Accepted values for `value` are "text", "series" - -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```ts -withAxisGridShow(value=true) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```ts -withAxisLabel(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```ts -withAxisPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" - -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```ts -withAxisSoftMax(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```ts -withAxisSoftMin(value) -``` - - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```ts -withAxisWidth(value) -``` - - - -###### fn fieldConfig.defaults.custom.withBarAlignment - -```ts -withBarAlignment(value) -``` - -TODO docs - -Accepted values for `value` are -1, 0, 1 - -###### fn fieldConfig.defaults.custom.withBarMaxWidth - -```ts -withBarMaxWidth(value) -``` - - - -###### fn fieldConfig.defaults.custom.withBarWidthFactor - -```ts -withBarWidthFactor(value) -``` - - - -###### fn fieldConfig.defaults.custom.withDrawStyle - -```ts -withDrawStyle(value) -``` - -TODO docs - -Accepted values for `value` are "line", "bars", "points" - -###### fn fieldConfig.defaults.custom.withFillBelowTo - -```ts -withFillBelowTo(value) -``` - - - -###### fn fieldConfig.defaults.custom.withFillColor - -```ts -withFillColor(value) -``` - - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```ts -withFillOpacity(value) -``` - - - -###### fn fieldConfig.defaults.custom.withGradientMode - -```ts -withGradientMode(value) -``` - -TODO docs - -Accepted values for `value` are "none", "opacity", "hue", "scheme" - -###### fn fieldConfig.defaults.custom.withHideFrom - -```ts -withHideFrom(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```ts -withHideFromMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineColor - -```ts -withLineColor(value) -``` - - - -###### fn fieldConfig.defaults.custom.withLineInterpolation - -```ts -withLineInterpolation(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "smooth", "stepBefore", "stepAfter" - -###### fn fieldConfig.defaults.custom.withLineStyle - -```ts -withLineStyle(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineStyleMixin - -```ts -withLineStyleMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withLineWidth - -```ts -withLineWidth(value) -``` - - - -###### fn fieldConfig.defaults.custom.withPointColor - -```ts -withPointColor(value) -``` - - - -###### fn fieldConfig.defaults.custom.withPointSize - -```ts -withPointSize(value) -``` - - - -###### fn fieldConfig.defaults.custom.withPointSymbol - -```ts -withPointSymbol(value) -``` - - - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```ts -withScaleDistribution(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```ts -withScaleDistributionMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withShowPoints - -```ts -withShowPoints(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "never", "always" - -###### fn fieldConfig.defaults.custom.withSpanNulls - -```ts -withSpanNulls(value) -``` - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds - -###### fn fieldConfig.defaults.custom.withSpanNullsMixin - -```ts -withSpanNullsMixin(value) -``` - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds - -###### fn fieldConfig.defaults.custom.withStacking - -```ts -withStacking(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withStackingMixin - -```ts -withStackingMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```ts -withThresholdsStyle(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```ts -withThresholdsStyleMixin(value) -``` - -TODO docs - -###### fn fieldConfig.defaults.custom.withTransform - -```ts -withTransform(value) -``` - -TODO docs - -Accepted values for `value` are "constant", "negative-Y" - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```ts -withLegend(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```ts -withTooltip(value=true) -``` - - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```ts -withViz(value=true) -``` - - - -###### obj fieldConfig.defaults.custom.lineStyle - - -####### fn fieldConfig.defaults.custom.lineStyle.withDash - -```ts -withDash(value) -``` - - - -####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin - -```ts -withDashMixin(value) -``` - - - -####### fn fieldConfig.defaults.custom.lineStyle.withFill - -```ts -withFill(value) -``` - - - -Accepted values for `value` are "solid", "dash", "dot", "square" - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```ts -withLinearThreshold(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```ts -withLog(value) -``` - - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "log", "ordinal", "symlog" - -###### obj fieldConfig.defaults.custom.stacking - - -####### fn fieldConfig.defaults.custom.stacking.withGroup - -```ts -withGroup(value) -``` - - - -####### fn fieldConfig.defaults.custom.stacking.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "none", "normal", "percent" - -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "off", "line", "dashed", "area", "line+area", "dashed+area", "series" - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withLegend - -```ts -withLegend(value) -``` - -TODO docs - -#### fn options.withLegendMixin - -```ts -withLegendMixin(value) -``` - -TODO docs - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - -TODO docs - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - -TODO docs - -#### fn options.withXField - -```ts -withXField(value) -``` - -Name of the x field to use (defaults to first number) - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```ts -withAsTable(value=true) -``` - - - -##### fn options.legend.withCalcs - -```ts -withCalcs(value) -``` - - - -##### fn options.legend.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - - - -##### fn options.legend.withDisplayMode - -```ts -withDisplayMode(value) -``` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility - -Accepted values for `value` are "list", "table", "hidden" - -##### fn options.legend.withIsVisible - -```ts -withIsVisible(value=true) -``` - - - -##### fn options.legend.withPlacement - -```ts -withPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "bottom", "right" - -##### fn options.legend.withShowLegend - -```ts -withShowLegend(value=true) -``` - - - -##### fn options.legend.withSortBy - -```ts -withSortBy(value) -``` - - - -##### fn options.legend.withSortDesc - -```ts -withSortDesc(value=true) -``` - - - -##### fn options.legend.withWidth - -```ts -withWidth(value) -``` - - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "single", "multi", "none" - -##### fn options.tooltip.withSort - -```ts -withSort(value) -``` - -TODO docs - -Accepted values for `value` are "asc", "desc", "none" - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/trend/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/fieldOverride.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/fieldOverride.md deleted file mode 100644 index 3e2667b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/fieldOverride.md +++ /dev/null @@ -1,194 +0,0 @@ -# fieldOverride - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```ts -new(value) -``` - -`new` creates a new override of type `byName`. - -#### fn byName.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byName.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byQuery - - -#### fn byQuery.new - -```ts -new(value) -``` - -`new` creates a new override of type `byQuery`. - -#### fn byQuery.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byQuery.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byRegexp - - -#### fn byRegexp.new - -```ts -new(value) -``` - -`new` creates a new override of type `byRegexp`. - -#### fn byRegexp.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byRegexp.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byType - - -#### fn byType.new - -```ts -new(value) -``` - -`new` creates a new override of type `byType`. - -#### fn byType.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byType.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - - -### obj byValue - - -#### fn byValue.new - -```ts -new(value) -``` - -`new` creates a new override of type `byValue`. - -#### fn byValue.withPropertiesFromOptions - -```ts -withPropertiesFromOptions(options) -``` - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - - -#### fn byValue.withProperty - -```ts -withProperty(id, value) -``` - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/index.md deleted file mode 100644 index 6c37d74..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/index.md +++ /dev/null @@ -1,1207 +0,0 @@ -# xyChart - -grafonnet.panel.xyChart - -## Subpackages - -* [fieldOverride](fieldOverride.md) -* [link](link.md) -* [thresholdStep](thresholdStep.md) -* [transformation](transformation.md) -* [valueMapping](valueMapping.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDims(value)`](#fn-optionswithdims) - * [`fn withDimsMixin(value)`](#fn-optionswithdimsmixin) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withSeries(value)`](#fn-optionswithseries) - * [`fn withSeriesMapping(value)`](#fn-optionswithseriesmapping) - * [`fn withSeriesMixin(value)`](#fn-optionswithseriesmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj dims`](#obj-optionsdims) - * [`fn withExclude(value)`](#fn-optionsdimswithexclude) - * [`fn withExcludeMixin(value)`](#fn-optionsdimswithexcludemixin) - * [`fn withFrame(value)`](#fn-optionsdimswithframe) - * [`fn withX(value)`](#fn-optionsdimswithx) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj series`](#obj-optionsseries) - * [`fn withAxisCenteredZero(value=true)`](#fn-optionsserieswithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-optionsserieswithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-optionsserieswithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-optionsserieswithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-optionsserieswithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-optionsserieswithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-optionsserieswithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-optionsserieswithaxiswidth) - * [`fn withHideFrom(value)`](#fn-optionsserieswithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-optionsserieswithhidefrommixin) - * [`fn withLabel(value)`](#fn-optionsserieswithlabel) - * [`fn withLabelValue(value)`](#fn-optionsserieswithlabelvalue) - * [`fn withLabelValueMixin(value)`](#fn-optionsserieswithlabelvaluemixin) - * [`fn withLineColor(value)`](#fn-optionsserieswithlinecolor) - * [`fn withLineColorMixin(value)`](#fn-optionsserieswithlinecolormixin) - * [`fn withLineStyle(value)`](#fn-optionsserieswithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-optionsserieswithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-optionsserieswithlinewidth) - * [`fn withName(value)`](#fn-optionsserieswithname) - * [`fn withPointColor(value)`](#fn-optionsserieswithpointcolor) - * [`fn withPointColorMixin(value)`](#fn-optionsserieswithpointcolormixin) - * [`fn withPointSize(value)`](#fn-optionsserieswithpointsize) - * [`fn withPointSizeMixin(value)`](#fn-optionsserieswithpointsizemixin) - * [`fn withScaleDistribution(value)`](#fn-optionsserieswithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-optionsserieswithscaledistributionmixin) - * [`fn withShow(value)`](#fn-optionsserieswithshow) - * [`fn withX(value)`](#fn-optionsserieswithx) - * [`fn withY(value)`](#fn-optionsserieswithy) - * [`obj hideFrom`](#obj-optionsserieshidefrom) - * [`fn withLegend(value=true)`](#fn-optionsserieshidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-optionsserieshidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-optionsserieshidefromwithviz) - * [`obj labelValue`](#obj-optionsserieslabelvalue) - * [`fn withField(value)`](#fn-optionsserieslabelvaluewithfield) - * [`fn withFixed(value)`](#fn-optionsserieslabelvaluewithfixed) - * [`fn withMode(value)`](#fn-optionsserieslabelvaluewithmode) - * [`obj lineColor`](#obj-optionsserieslinecolor) - * [`fn withField(value)`](#fn-optionsserieslinecolorwithfield) - * [`fn withFixed(value)`](#fn-optionsserieslinecolorwithfixed) - * [`obj lineStyle`](#obj-optionsserieslinestyle) - * [`fn withDash(value)`](#fn-optionsserieslinestylewithdash) - * [`fn withDashMixin(value)`](#fn-optionsserieslinestylewithdashmixin) - * [`fn withFill(value)`](#fn-optionsserieslinestylewithfill) - * [`obj pointColor`](#obj-optionsseriespointcolor) - * [`fn withField(value)`](#fn-optionsseriespointcolorwithfield) - * [`fn withFixed(value)`](#fn-optionsseriespointcolorwithfixed) - * [`obj pointSize`](#obj-optionsseriespointsize) - * [`fn withField(value)`](#fn-optionsseriespointsizewithfield) - * [`fn withFixed(value)`](#fn-optionsseriespointsizewithfixed) - * [`fn withMax(value)`](#fn-optionsseriespointsizewithmax) - * [`fn withMin(value)`](#fn-optionsseriespointsizewithmin) - * [`fn withMode(value)`](#fn-optionsseriespointsizewithmode) - * [`obj scaleDistribution`](#obj-optionsseriesscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-optionsseriesscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-optionsseriesscaledistributionwithlog) - * [`fn withType(value)`](#fn-optionsseriesscaledistributionwithtype) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(value)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```ts -new(title) -``` - -Creates a new xyChart panel with a title. - -### obj datasource - - -#### fn datasource.withType - -```ts -withType(value) -``` - - - -#### fn datasource.withUid - -```ts -withUid(value) -``` - - - -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```ts -withName(value) -``` - - - -#### fn libraryPanel.withUid - -```ts -withUid(value) -``` - - - -### obj options - - -#### fn options.withDims - -```ts -withDims(value) -``` - - - -#### fn options.withDimsMixin - -```ts -withDimsMixin(value) -``` - - - -#### fn options.withLegend - -```ts -withLegend(value) -``` - -TODO docs - -#### fn options.withLegendMixin - -```ts -withLegendMixin(value) -``` - -TODO docs - -#### fn options.withSeries - -```ts -withSeries(value) -``` - - - -#### fn options.withSeriesMapping - -```ts -withSeriesMapping(value) -``` - - - -Accepted values for `value` are "auto", "manual" - -#### fn options.withSeriesMixin - -```ts -withSeriesMixin(value) -``` - - - -#### fn options.withTooltip - -```ts -withTooltip(value) -``` - -TODO docs - -#### fn options.withTooltipMixin - -```ts -withTooltipMixin(value) -``` - -TODO docs - -#### obj options.dims - - -##### fn options.dims.withExclude - -```ts -withExclude(value) -``` - - - -##### fn options.dims.withExcludeMixin - -```ts -withExcludeMixin(value) -``` - - - -##### fn options.dims.withFrame - -```ts -withFrame(value) -``` - - - -##### fn options.dims.withX - -```ts -withX(value) -``` - - - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```ts -withAsTable(value=true) -``` - - - -##### fn options.legend.withCalcs - -```ts -withCalcs(value) -``` - - - -##### fn options.legend.withCalcsMixin - -```ts -withCalcsMixin(value) -``` - - - -##### fn options.legend.withDisplayMode - -```ts -withDisplayMode(value) -``` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility - -Accepted values for `value` are "list", "table", "hidden" - -##### fn options.legend.withIsVisible - -```ts -withIsVisible(value=true) -``` - - - -##### fn options.legend.withPlacement - -```ts -withPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "bottom", "right" - -##### fn options.legend.withShowLegend - -```ts -withShowLegend(value=true) -``` - - - -##### fn options.legend.withSortBy - -```ts -withSortBy(value) -``` - - - -##### fn options.legend.withSortDesc - -```ts -withSortDesc(value=true) -``` - - - -##### fn options.legend.withWidth - -```ts -withWidth(value) -``` - - - -#### obj options.series - - -##### fn options.series.withAxisCenteredZero - -```ts -withAxisCenteredZero(value=true) -``` - - - -##### fn options.series.withAxisColorMode - -```ts -withAxisColorMode(value) -``` - -TODO docs - -Accepted values for `value` are "text", "series" - -##### fn options.series.withAxisGridShow - -```ts -withAxisGridShow(value=true) -``` - - - -##### fn options.series.withAxisLabel - -```ts -withAxisLabel(value) -``` - - - -##### fn options.series.withAxisPlacement - -```ts -withAxisPlacement(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "top", "right", "bottom", "left", "hidden" - -##### fn options.series.withAxisSoftMax - -```ts -withAxisSoftMax(value) -``` - - - -##### fn options.series.withAxisSoftMin - -```ts -withAxisSoftMin(value) -``` - - - -##### fn options.series.withAxisWidth - -```ts -withAxisWidth(value) -``` - - - -##### fn options.series.withHideFrom - -```ts -withHideFrom(value) -``` - -TODO docs - -##### fn options.series.withHideFromMixin - -```ts -withHideFromMixin(value) -``` - -TODO docs - -##### fn options.series.withLabel - -```ts -withLabel(value) -``` - -TODO docs - -Accepted values for `value` are "auto", "never", "always" - -##### fn options.series.withLabelValue - -```ts -withLabelValue(value) -``` - - - -##### fn options.series.withLabelValueMixin - -```ts -withLabelValueMixin(value) -``` - - - -##### fn options.series.withLineColor - -```ts -withLineColor(value) -``` - - - -##### fn options.series.withLineColorMixin - -```ts -withLineColorMixin(value) -``` - - - -##### fn options.series.withLineStyle - -```ts -withLineStyle(value) -``` - -TODO docs - -##### fn options.series.withLineStyleMixin - -```ts -withLineStyleMixin(value) -``` - -TODO docs - -##### fn options.series.withLineWidth - -```ts -withLineWidth(value) -``` - - - -##### fn options.series.withName - -```ts -withName(value) -``` - - - -##### fn options.series.withPointColor - -```ts -withPointColor(value) -``` - - - -##### fn options.series.withPointColorMixin - -```ts -withPointColorMixin(value) -``` - - - -##### fn options.series.withPointSize - -```ts -withPointSize(value) -``` - - - -##### fn options.series.withPointSizeMixin - -```ts -withPointSizeMixin(value) -``` - - - -##### fn options.series.withScaleDistribution - -```ts -withScaleDistribution(value) -``` - -TODO docs - -##### fn options.series.withScaleDistributionMixin - -```ts -withScaleDistributionMixin(value) -``` - -TODO docs - -##### fn options.series.withShow - -```ts -withShow(value) -``` - - - -Accepted values for `value` are "points", "lines", "points+lines" - -##### fn options.series.withX - -```ts -withX(value) -``` - - - -##### fn options.series.withY - -```ts -withY(value) -``` - - - -##### obj options.series.hideFrom - - -###### fn options.series.hideFrom.withLegend - -```ts -withLegend(value=true) -``` - - - -###### fn options.series.hideFrom.withTooltip - -```ts -withTooltip(value=true) -``` - - - -###### fn options.series.hideFrom.withViz - -```ts -withViz(value=true) -``` - - - -##### obj options.series.labelValue - - -###### fn options.series.labelValue.withField - -```ts -withField(value) -``` - -fixed: T -- will be added by each element - -###### fn options.series.labelValue.withFixed - -```ts -withFixed(value) -``` - - - -###### fn options.series.labelValue.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "fixed", "field", "template" - -##### obj options.series.lineColor - - -###### fn options.series.lineColor.withField - -```ts -withField(value) -``` - -fixed: T -- will be added by each element - -###### fn options.series.lineColor.withFixed - -```ts -withFixed(value) -``` - - - -##### obj options.series.lineStyle - - -###### fn options.series.lineStyle.withDash - -```ts -withDash(value) -``` - - - -###### fn options.series.lineStyle.withDashMixin - -```ts -withDashMixin(value) -``` - - - -###### fn options.series.lineStyle.withFill - -```ts -withFill(value) -``` - - - -Accepted values for `value` are "solid", "dash", "dot", "square" - -##### obj options.series.pointColor - - -###### fn options.series.pointColor.withField - -```ts -withField(value) -``` - -fixed: T -- will be added by each element - -###### fn options.series.pointColor.withFixed - -```ts -withFixed(value) -``` - - - -##### obj options.series.pointSize - - -###### fn options.series.pointSize.withField - -```ts -withField(value) -``` - -fixed: T -- will be added by each element - -###### fn options.series.pointSize.withFixed - -```ts -withFixed(value) -``` - - - -###### fn options.series.pointSize.withMax - -```ts -withMax(value) -``` - - - -###### fn options.series.pointSize.withMin - -```ts -withMin(value) -``` - - - -###### fn options.series.pointSize.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "linear", "quad" - -##### obj options.series.scaleDistribution - - -###### fn options.series.scaleDistribution.withLinearThreshold - -```ts -withLinearThreshold(value) -``` - - - -###### fn options.series.scaleDistribution.withLog - -```ts -withLog(value) -``` - - - -###### fn options.series.scaleDistribution.withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "linear", "log", "ordinal", "symlog" - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```ts -withMode(value) -``` - -TODO docs - -Accepted values for `value` are "single", "multi", "none" - -##### fn options.tooltip.withSort - -```ts -withSort(value) -``` - -TODO docs - -Accepted values for `value` are "asc", "desc", "none" - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```ts -withDescription(value) -``` - -Description. - -#### fn panelOptions.withLinks - -```ts -withLinks(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -Panel links. -TODO fill this out - seems there are a couple variants? - -#### fn panelOptions.withRepeat - -```ts -withRepeat(value) -``` - -Name of template variable to repeat for. - -#### fn panelOptions.withRepeatDirection - -```ts -withRepeatDirection(value="h") -``` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional - -Accepted values for `value` are "h", "v" - -#### fn panelOptions.withTitle - -```ts -withTitle(value) -``` - -Panel title. - -#### fn panelOptions.withTransparent - -```ts -withTransparent(value=true) -``` - -Whether to display the panel without a background. - -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```ts -withDatasource(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withDatasourceMixin - -```ts -withDatasourceMixin(value) -``` - -The datasource used in all targets. - -#### fn queryOptions.withInterval - -```ts -withInterval(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withMaxDataPoints - -```ts -withMaxDataPoints(value) -``` - -TODO docs - -#### fn queryOptions.withTargets - -```ts -withTargets(value) -``` - -TODO docs - -#### fn queryOptions.withTargetsMixin - -```ts -withTargetsMixin(value) -``` - -TODO docs - -#### fn queryOptions.withTimeFrom - -```ts -withTimeFrom(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTimeShift - -```ts -withTimeShift(value) -``` - -TODO docs -TODO tighter constraint - -#### fn queryOptions.withTransformations - -```ts -withTransformations(value) -``` - - - -#### fn queryOptions.withTransformationsMixin - -```ts -withTransformationsMixin(value) -``` - - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```ts -withDecimals(value) -``` - -Significant digits (for display) - -#### fn standardOptions.withDisplayName - -```ts -withDisplayName(value) -``` - -The display value for this field. This supports template variables blank is auto - -#### fn standardOptions.withLinks - -```ts -withLinks(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withLinksMixin - -```ts -withLinksMixin(value) -``` - -The behavior when clicking on a result - -#### fn standardOptions.withMappings - -```ts -withMappings(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMappingsMixin - -```ts -withMappingsMixin(value) -``` - -Convert input values into a display string - -#### fn standardOptions.withMax - -```ts -withMax(value) -``` - - - -#### fn standardOptions.withMin - -```ts -withMin(value) -``` - - - -#### fn standardOptions.withNoValue - -```ts -withNoValue(value) -``` - -Alternative to empty string - -#### fn standardOptions.withOverrides - -```ts -withOverrides(value) -``` - - - -#### fn standardOptions.withOverridesMixin - -```ts -withOverridesMixin(value) -``` - - - -#### fn standardOptions.withUnit - -```ts -withUnit(value) -``` - -Numeric Options - -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```ts -withFixedColor(value) -``` - -Stores the fixed color value if mode is fixed - -##### fn standardOptions.color.withMode - -```ts -withMode(value) -``` - -The main color scheme mode - -##### fn standardOptions.color.withSeriesBy - -```ts -withSeriesBy(value) -``` - -TODO docs - -Accepted values for `value` are "min", "max", "last" - -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```ts -withMode(value) -``` - - - -Accepted values for `value` are "absolute", "percentage" - -##### fn standardOptions.thresholds.withSteps - -```ts -withSteps(value) -``` - -Must be sorted by 'value', first value is always -Infinity - -##### fn standardOptions.thresholds.withStepsMixin - -```ts -withStepsMixin(value) -``` - -Must be sorted by 'value', first value is always -Infinity diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/link.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/link.md deleted file mode 100644 index b2f02b8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/link.md +++ /dev/null @@ -1,109 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```ts -withAsDropdown(value=true) -``` - - - -### fn withIcon - -```ts -withIcon(value) -``` - - - -### fn withIncludeVars - -```ts -withIncludeVars(value=true) -``` - - - -### fn withKeepTime - -```ts -withKeepTime(value=true) -``` - - - -### fn withTags - -```ts -withTags(value) -``` - - - -### fn withTagsMixin - -```ts -withTagsMixin(value) -``` - - - -### fn withTargetBlank - -```ts -withTargetBlank(value=true) -``` - - - -### fn withTitle - -```ts -withTitle(value) -``` - - - -### fn withTooltip - -```ts -withTooltip(value) -``` - - - -### fn withType - -```ts -withType(value) -``` - -TODO docs - -Accepted values for `value` are "link", "dashboards" - -### fn withUrl - -```ts -withUrl(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/thresholdStep.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/thresholdStep.md deleted file mode 100644 index 9d6af42..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/thresholdStep.md +++ /dev/null @@ -1,47 +0,0 @@ -# thresholdStep - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```ts -withColor(value) -``` - -TODO docs - -### fn withIndex - -```ts -withIndex(value) -``` - -Threshold index, an old property that is not needed an should only appear in older dashboards - -### fn withState - -```ts -withState(value) -``` - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment - -### fn withValue - -```ts -withValue(value) -``` - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/transformation.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/transformation.md deleted file mode 100644 index f1cc847..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/transformation.md +++ /dev/null @@ -1,76 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```ts -withDisabled(value=true) -``` - -Disabled transformations are skipped - -### fn withFilter - -```ts -withFilter(value) -``` - - - -### fn withFilterMixin - -```ts -withFilterMixin(value) -``` - - - -### fn withId - -```ts -withId(value) -``` - -Unique identifier of transformer - -### fn withOptions - -```ts -withOptions(value) -``` - -Options to be passed to the transformer -Valid options depend on the transformer id - -### obj filter - - -#### fn filter.withId - -```ts -withId(value="") -``` - - - -#### fn filter.withOptions - -```ts -withOptions(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/valueMapping.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/valueMapping.md deleted file mode 100644 index a6bbdb3..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/xyChart/valueMapping.md +++ /dev/null @@ -1,365 +0,0 @@ -# valueMapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RangeMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RangeMap.withType - -```ts -withType(value) -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```ts -withFrom(value) -``` - -to and from are `number | null` in current ts, really not sure what to do - -##### fn RangeMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RangeMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### fn RangeMap.options.withTo - -```ts -withTo(value) -``` - - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RangeMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RangeMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RangeMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn RegexMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn RegexMap.withType - -```ts -withType(value) -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn RegexMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn RegexMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn RegexMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn RegexMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn RegexMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn SpecialValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn SpecialValueMap.withType - -```ts -withType(value) -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```ts -withMatch(value) -``` - - - -Accepted values for `value` are "true", "false" - -##### fn SpecialValueMap.options.withPattern - -```ts -withPattern(value) -``` - - - -##### fn SpecialValueMap.options.withResult - -```ts -withResult(value) -``` - -TODO docs - -##### fn SpecialValueMap.options.withResultMixin - -```ts -withResultMixin(value) -``` - -TODO docs - -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```ts -withColor(value) -``` - - - -###### fn SpecialValueMap.options.result.withIcon - -```ts -withIcon(value) -``` - - - -###### fn SpecialValueMap.options.result.withIndex - -```ts -withIndex(value) -``` - - - -###### fn SpecialValueMap.options.result.withText - -```ts -withText(value) -``` - - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```ts -withOptions(value) -``` - - - -#### fn ValueMap.withOptionsMixin - -```ts -withOptionsMixin(value) -``` - - - -#### fn ValueMap.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/playlist.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/playlist.md deleted file mode 100644 index f4b3dba..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/playlist.md +++ /dev/null @@ -1,97 +0,0 @@ -# playlist - -grafonnet.playlist - -## Index - -* [`fn withInterval(value="5m")`](#fn-withinterval) -* [`fn withItems(value)`](#fn-withitems) -* [`fn withItemsMixin(value)`](#fn-withitemsmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withUid(value)`](#fn-withuid) -* [`obj items`](#obj-items) - * [`fn withTitle(value)`](#fn-itemswithtitle) - * [`fn withType(value)`](#fn-itemswithtype) - * [`fn withValue(value)`](#fn-itemswithvalue) - -## Fields - -### fn withInterval - -```ts -withInterval(value="5m") -``` - -Interval sets the time between switching views in a playlist. -FIXME: Is this based on a standardized format or what options are available? Can datemath be used? - -### fn withItems - -```ts -withItems(value) -``` - -The ordered list of items that the playlist will iterate over. -FIXME! This should not be optional, but changing it makes the godegen awkward - -### fn withItemsMixin - -```ts -withItemsMixin(value) -``` - -The ordered list of items that the playlist will iterate over. -FIXME! This should not be optional, but changing it makes the godegen awkward - -### fn withName - -```ts -withName(value) -``` - -Name of the playlist. - -### fn withUid - -```ts -withUid(value) -``` - -Unique playlist identifier. Generated on creation, either by the -creator of the playlist of by the application. - -### obj items - - -#### fn items.withTitle - -```ts -withTitle(value) -``` - -Title is an unused property -- it will be removed in the future - -#### fn items.withType - -```ts -withType(value) -``` - -Type of the item. - -Accepted values for `value` are "dashboard_by_uid", "dashboard_by_id", "dashboard_by_tag" - -#### fn items.withValue - -```ts -withValue(value) -``` - -Value depends on type and describes the playlist item. - - - dashboard_by_id: The value is an internal numerical identifier set by Grafana. This - is not portable as the numerical identifier is non-deterministic between different instances. - Will be replaced by dashboard_by_uid in the future. (deprecated) - - dashboard_by_tag: The value is a tag which is set on any number of dashboards. All - dashboards behind the tag will be added to the playlist. - - dashboard_by_uid: The value is the dashboard UID diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/preferences.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/preferences.md deleted file mode 100644 index b1f8ca7..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/preferences.md +++ /dev/null @@ -1,85 +0,0 @@ -# preferences - -grafonnet.preferences - -## Index - -* [`fn withHomeDashboardUID(value)`](#fn-withhomedashboarduid) -* [`fn withLanguage(value)`](#fn-withlanguage) -* [`fn withQueryHistory(value)`](#fn-withqueryhistory) -* [`fn withQueryHistoryMixin(value)`](#fn-withqueryhistorymixin) -* [`fn withTheme(value)`](#fn-withtheme) -* [`fn withTimezone(value)`](#fn-withtimezone) -* [`fn withWeekStart(value)`](#fn-withweekstart) -* [`obj queryHistory`](#obj-queryhistory) - * [`fn withHomeTab(value)`](#fn-queryhistorywithhometab) - -## Fields - -### fn withHomeDashboardUID - -```ts -withHomeDashboardUID(value) -``` - -UID for the home dashboard - -### fn withLanguage - -```ts -withLanguage(value) -``` - -Selected language (beta) - -### fn withQueryHistory - -```ts -withQueryHistory(value) -``` - - - -### fn withQueryHistoryMixin - -```ts -withQueryHistoryMixin(value) -``` - - - -### fn withTheme - -```ts -withTheme(value) -``` - -light, dark, empty is default - -### fn withTimezone - -```ts -withTimezone(value) -``` - -The timezone selection -TODO: this should use the timezone defined in common - -### fn withWeekStart - -```ts -withWeekStart(value) -``` - -day of the week (sunday, monday, etc) - -### obj queryHistory - - -#### fn queryHistory.withHomeTab - -```ts -withHomeTab(value) -``` - -one of: '' | 'query' | 'starred'; diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/elasticsearch.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/elasticsearch.md deleted file mode 100644 index 5122e70..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/elasticsearch.md +++ /dev/null @@ -1,2620 +0,0 @@ -# elasticsearch - -grafonnet.query.elasticsearch - -## Index - -* [`fn withAlias(value)`](#fn-withalias) -* [`fn withBucketAggs(value)`](#fn-withbucketaggs) -* [`fn withBucketAggsMixin(value)`](#fn-withbucketaggsmixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withMetrics(value)`](#fn-withmetrics) -* [`fn withMetricsMixin(value)`](#fn-withmetricsmixin) -* [`fn withQuery(value)`](#fn-withquery) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withTimeField(value)`](#fn-withtimefield) -* [`obj bucketAggs`](#obj-bucketaggs) - * [`obj DateHistogram`](#obj-bucketaggsdatehistogram) - * [`fn withField(value)`](#fn-bucketaggsdatehistogramwithfield) - * [`fn withId(value)`](#fn-bucketaggsdatehistogramwithid) - * [`fn withSettings(value)`](#fn-bucketaggsdatehistogramwithsettings) - * [`fn withSettingsMixin(value)`](#fn-bucketaggsdatehistogramwithsettingsmixin) - * [`fn withType(value)`](#fn-bucketaggsdatehistogramwithtype) - * [`obj settings`](#obj-bucketaggsdatehistogramsettings) - * [`fn withInterval(value)`](#fn-bucketaggsdatehistogramsettingswithinterval) - * [`fn withMinDocCount(value)`](#fn-bucketaggsdatehistogramsettingswithmindoccount) - * [`fn withOffset(value)`](#fn-bucketaggsdatehistogramsettingswithoffset) - * [`fn withTimeZone(value)`](#fn-bucketaggsdatehistogramsettingswithtimezone) - * [`fn withTrimEdges(value)`](#fn-bucketaggsdatehistogramsettingswithtrimedges) - * [`obj Filters`](#obj-bucketaggsfilters) - * [`fn withId(value)`](#fn-bucketaggsfilterswithid) - * [`fn withSettings(value)`](#fn-bucketaggsfilterswithsettings) - * [`fn withSettingsMixin(value)`](#fn-bucketaggsfilterswithsettingsmixin) - * [`fn withType(value)`](#fn-bucketaggsfilterswithtype) - * [`obj settings`](#obj-bucketaggsfilterssettings) - * [`fn withFilters(value)`](#fn-bucketaggsfilterssettingswithfilters) - * [`fn withFiltersMixin(value)`](#fn-bucketaggsfilterssettingswithfiltersmixin) - * [`obj filters`](#obj-bucketaggsfilterssettingsfilters) - * [`fn withLabel(value)`](#fn-bucketaggsfilterssettingsfilterswithlabel) - * [`fn withQuery(value)`](#fn-bucketaggsfilterssettingsfilterswithquery) - * [`obj GeoHashGrid`](#obj-bucketaggsgeohashgrid) - * [`fn withField(value)`](#fn-bucketaggsgeohashgridwithfield) - * [`fn withId(value)`](#fn-bucketaggsgeohashgridwithid) - * [`fn withSettings(value)`](#fn-bucketaggsgeohashgridwithsettings) - * [`fn withSettingsMixin(value)`](#fn-bucketaggsgeohashgridwithsettingsmixin) - * [`fn withType(value)`](#fn-bucketaggsgeohashgridwithtype) - * [`obj settings`](#obj-bucketaggsgeohashgridsettings) - * [`fn withPrecision(value)`](#fn-bucketaggsgeohashgridsettingswithprecision) - * [`obj Histogram`](#obj-bucketaggshistogram) - * [`fn withField(value)`](#fn-bucketaggshistogramwithfield) - * [`fn withId(value)`](#fn-bucketaggshistogramwithid) - * [`fn withSettings(value)`](#fn-bucketaggshistogramwithsettings) - * [`fn withSettingsMixin(value)`](#fn-bucketaggshistogramwithsettingsmixin) - * [`fn withType(value)`](#fn-bucketaggshistogramwithtype) - * [`obj settings`](#obj-bucketaggshistogramsettings) - * [`fn withInterval(value)`](#fn-bucketaggshistogramsettingswithinterval) - * [`fn withMinDocCount(value)`](#fn-bucketaggshistogramsettingswithmindoccount) - * [`obj Nested`](#obj-bucketaggsnested) - * [`fn withField(value)`](#fn-bucketaggsnestedwithfield) - * [`fn withId(value)`](#fn-bucketaggsnestedwithid) - * [`fn withSettings(value)`](#fn-bucketaggsnestedwithsettings) - * [`fn withSettingsMixin(value)`](#fn-bucketaggsnestedwithsettingsmixin) - * [`fn withType(value)`](#fn-bucketaggsnestedwithtype) - * [`obj Terms`](#obj-bucketaggsterms) - * [`fn withField(value)`](#fn-bucketaggstermswithfield) - * [`fn withId(value)`](#fn-bucketaggstermswithid) - * [`fn withSettings(value)`](#fn-bucketaggstermswithsettings) - * [`fn withSettingsMixin(value)`](#fn-bucketaggstermswithsettingsmixin) - * [`fn withType(value)`](#fn-bucketaggstermswithtype) - * [`obj settings`](#obj-bucketaggstermssettings) - * [`fn withMinDocCount(value)`](#fn-bucketaggstermssettingswithmindoccount) - * [`fn withMissing(value)`](#fn-bucketaggstermssettingswithmissing) - * [`fn withOrder(value)`](#fn-bucketaggstermssettingswithorder) - * [`fn withOrderBy(value)`](#fn-bucketaggstermssettingswithorderby) - * [`fn withSize(value)`](#fn-bucketaggstermssettingswithsize) -* [`obj metrics`](#obj-metrics) - * [`obj Count`](#obj-metricscount) - * [`fn withHide(value=true)`](#fn-metricscountwithhide) - * [`fn withId(value)`](#fn-metricscountwithid) - * [`fn withType(value)`](#fn-metricscountwithtype) - * [`obj MetricAggregationWithSettings`](#obj-metricsmetricaggregationwithsettings) - * [`obj Average`](#obj-metricsmetricaggregationwithsettingsaverage) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsaveragewithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsaveragewithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsaveragesettings) - * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsaveragesettingswithmissing) - * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsaveragesettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsaveragesettingswithscriptmixin) - * [`obj script`](#obj-metricsmetricaggregationwithsettingsaveragesettingsscript) - * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsaveragesettingsscriptwithinline) - * [`obj BucketScript`](#obj-metricsmetricaggregationwithsettingsbucketscript) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithid) - * [`fn withPipelineVariables(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithpipelinevariables) - * [`fn withPipelineVariablesMixin(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithpipelinevariablesmixin) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptwithtype) - * [`obj pipelineVariables`](#obj-metricsmetricaggregationwithsettingsbucketscriptpipelinevariables) - * [`fn withName(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptpipelinevariableswithname) - * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptpipelinevariableswithpipelineagg) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsbucketscriptsettings) - * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptsettingswithscriptmixin) - * [`obj script`](#obj-metricsmetricaggregationwithsettingsbucketscriptsettingsscript) - * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsbucketscriptsettingsscriptwithinline) - * [`obj CumulativeSum`](#obj-metricsmetricaggregationwithsettingscumulativesum) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithid) - * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumwithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingscumulativesumsettings) - * [`fn withFormat(value)`](#fn-metricsmetricaggregationwithsettingscumulativesumsettingswithformat) - * [`obj Derivative`](#obj-metricsmetricaggregationwithsettingsderivative) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsderivativewithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithid) - * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithpipelineagg) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsderivativewithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsderivativesettings) - * [`fn withUnit(value)`](#fn-metricsmetricaggregationwithsettingsderivativesettingswithunit) - * [`obj ExtendedStats`](#obj-metricsmetricaggregationwithsettingsextendedstats) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithid) - * [`fn withMeta(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithmeta) - * [`fn withMetaMixin(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithmetamixin) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatswithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsextendedstatssettings) - * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingswithmissing) - * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingswithscriptmixin) - * [`fn withSigma(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingswithsigma) - * [`obj script`](#obj-metricsmetricaggregationwithsettingsextendedstatssettingsscript) - * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsextendedstatssettingsscriptwithinline) - * [`obj Logs`](#obj-metricsmetricaggregationwithsettingslogs) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingslogswithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingslogswithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingslogswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingslogswithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingslogswithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingslogssettings) - * [`fn withLimit(value)`](#fn-metricsmetricaggregationwithsettingslogssettingswithlimit) - * [`obj Max`](#obj-metricsmetricaggregationwithsettingsmax) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsmaxwithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsmaxwithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsmaxsettings) - * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsmaxsettingswithmissing) - * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsmaxsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsmaxsettingswithscriptmixin) - * [`obj script`](#obj-metricsmetricaggregationwithsettingsmaxsettingsscript) - * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsmaxsettingsscriptwithinline) - * [`obj Min`](#obj-metricsmetricaggregationwithsettingsmin) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsminwithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsminwithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsminwithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsminwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsminwithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsminwithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsminsettings) - * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsminsettingswithmissing) - * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsminsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsminsettingswithscriptmixin) - * [`obj script`](#obj-metricsmetricaggregationwithsettingsminsettingsscript) - * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsminsettingsscriptwithinline) - * [`obj MovingAverage`](#obj-metricsmetricaggregationwithsettingsmovingaverage) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithid) - * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithpipelineagg) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsmovingaveragewithtype) - * [`obj MovingFunction`](#obj-metricsmetricaggregationwithsettingsmovingfunction) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithid) - * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionwithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsmovingfunctionsettings) - * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingswithscriptmixin) - * [`fn withShift(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingswithshift) - * [`fn withWindow(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingswithwindow) - * [`obj script`](#obj-metricsmetricaggregationwithsettingsmovingfunctionsettingsscript) - * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingsmovingfunctionsettingsscriptwithinline) - * [`obj Percentiles`](#obj-metricsmetricaggregationwithsettingspercentiles) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingspercentileswithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingspercentileswithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingspercentilessettings) - * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithmissing) - * [`fn withPercents(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithpercents) - * [`fn withPercentsMixin(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithpercentsmixin) - * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingswithscriptmixin) - * [`obj script`](#obj-metricsmetricaggregationwithsettingspercentilessettingsscript) - * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingspercentilessettingsscriptwithinline) - * [`obj Rate`](#obj-metricsmetricaggregationwithsettingsrate) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsratewithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsratewithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsratewithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsratewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsratewithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsratewithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsratesettings) - * [`fn withMode(value)`](#fn-metricsmetricaggregationwithsettingsratesettingswithmode) - * [`fn withUnit(value)`](#fn-metricsmetricaggregationwithsettingsratesettingswithunit) - * [`obj RawData`](#obj-metricsmetricaggregationwithsettingsrawdata) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsrawdatawithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsrawdatawithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsrawdatawithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsrawdatawithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsrawdatawithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsrawdatasettings) - * [`fn withSize(value)`](#fn-metricsmetricaggregationwithsettingsrawdatasettingswithsize) - * [`obj RawDocument`](#obj-metricsmetricaggregationwithsettingsrawdocument) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentwithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsrawdocumentsettings) - * [`fn withSize(value)`](#fn-metricsmetricaggregationwithsettingsrawdocumentsettingswithsize) - * [`obj SerialDiff`](#obj-metricsmetricaggregationwithsettingsserialdiff) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithid) - * [`fn withPipelineAgg(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffwithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsserialdiffsettings) - * [`fn withLag(value)`](#fn-metricsmetricaggregationwithsettingsserialdiffsettingswithlag) - * [`obj Sum`](#obj-metricsmetricaggregationwithsettingssum) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingssumwithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingssumwithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingssumwithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingssumwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingssumwithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingssumwithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingssumsettings) - * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingssumsettingswithmissing) - * [`fn withScript(value)`](#fn-metricsmetricaggregationwithsettingssumsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricsmetricaggregationwithsettingssumsettingswithscriptmixin) - * [`obj script`](#obj-metricsmetricaggregationwithsettingssumsettingsscript) - * [`fn withInline(value)`](#fn-metricsmetricaggregationwithsettingssumsettingsscriptwithinline) - * [`obj TopMetrics`](#obj-metricsmetricaggregationwithsettingstopmetrics) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingstopmetricswithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingstopmetricswithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingstopmetricswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingstopmetricswithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingstopmetricswithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingstopmetricssettings) - * [`fn withMetrics(value)`](#fn-metricsmetricaggregationwithsettingstopmetricssettingswithmetrics) - * [`fn withMetricsMixin(value)`](#fn-metricsmetricaggregationwithsettingstopmetricssettingswithmetricsmixin) - * [`fn withOrder(value)`](#fn-metricsmetricaggregationwithsettingstopmetricssettingswithorder) - * [`fn withOrderBy(value)`](#fn-metricsmetricaggregationwithsettingstopmetricssettingswithorderby) - * [`obj UniqueCount`](#obj-metricsmetricaggregationwithsettingsuniquecount) - * [`fn withField(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithfield) - * [`fn withHide(value=true)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithhide) - * [`fn withId(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithid) - * [`fn withSettings(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithsettingsmixin) - * [`fn withType(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountwithtype) - * [`obj settings`](#obj-metricsmetricaggregationwithsettingsuniquecountsettings) - * [`fn withMissing(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountsettingswithmissing) - * [`fn withPrecisionThreshold(value)`](#fn-metricsmetricaggregationwithsettingsuniquecountsettingswithprecisionthreshold) - * [`obj PipelineMetricAggregation`](#obj-metricspipelinemetricaggregation) - * [`obj BucketScript`](#obj-metricspipelinemetricaggregationbucketscript) - * [`fn withHide(value=true)`](#fn-metricspipelinemetricaggregationbucketscriptwithhide) - * [`fn withId(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithid) - * [`fn withPipelineVariables(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithpipelinevariables) - * [`fn withPipelineVariablesMixin(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithpipelinevariablesmixin) - * [`fn withSettings(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithsettingsmixin) - * [`fn withType(value)`](#fn-metricspipelinemetricaggregationbucketscriptwithtype) - * [`obj pipelineVariables`](#obj-metricspipelinemetricaggregationbucketscriptpipelinevariables) - * [`fn withName(value)`](#fn-metricspipelinemetricaggregationbucketscriptpipelinevariableswithname) - * [`fn withPipelineAgg(value)`](#fn-metricspipelinemetricaggregationbucketscriptpipelinevariableswithpipelineagg) - * [`obj settings`](#obj-metricspipelinemetricaggregationbucketscriptsettings) - * [`fn withScript(value)`](#fn-metricspipelinemetricaggregationbucketscriptsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricspipelinemetricaggregationbucketscriptsettingswithscriptmixin) - * [`obj script`](#obj-metricspipelinemetricaggregationbucketscriptsettingsscript) - * [`fn withInline(value)`](#fn-metricspipelinemetricaggregationbucketscriptsettingsscriptwithinline) - * [`obj CumulativeSum`](#obj-metricspipelinemetricaggregationcumulativesum) - * [`fn withField(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithfield) - * [`fn withHide(value=true)`](#fn-metricspipelinemetricaggregationcumulativesumwithhide) - * [`fn withId(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithid) - * [`fn withPipelineAgg(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithsettingsmixin) - * [`fn withType(value)`](#fn-metricspipelinemetricaggregationcumulativesumwithtype) - * [`obj settings`](#obj-metricspipelinemetricaggregationcumulativesumsettings) - * [`fn withFormat(value)`](#fn-metricspipelinemetricaggregationcumulativesumsettingswithformat) - * [`obj Derivative`](#obj-metricspipelinemetricaggregationderivative) - * [`fn withField(value)`](#fn-metricspipelinemetricaggregationderivativewithfield) - * [`fn withHide(value=true)`](#fn-metricspipelinemetricaggregationderivativewithhide) - * [`fn withId(value)`](#fn-metricspipelinemetricaggregationderivativewithid) - * [`fn withPipelineAgg(value)`](#fn-metricspipelinemetricaggregationderivativewithpipelineagg) - * [`fn withSettings(value)`](#fn-metricspipelinemetricaggregationderivativewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricspipelinemetricaggregationderivativewithsettingsmixin) - * [`fn withType(value)`](#fn-metricspipelinemetricaggregationderivativewithtype) - * [`obj settings`](#obj-metricspipelinemetricaggregationderivativesettings) - * [`fn withUnit(value)`](#fn-metricspipelinemetricaggregationderivativesettingswithunit) - * [`obj MovingAverage`](#obj-metricspipelinemetricaggregationmovingaverage) - * [`fn withField(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithfield) - * [`fn withHide(value=true)`](#fn-metricspipelinemetricaggregationmovingaveragewithhide) - * [`fn withId(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithid) - * [`fn withPipelineAgg(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithpipelineagg) - * [`fn withSettings(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithsettingsmixin) - * [`fn withType(value)`](#fn-metricspipelinemetricaggregationmovingaveragewithtype) - -## Fields - -### fn withAlias - -```ts -withAlias(value) -``` - -Alias pattern - -### fn withBucketAggs - -```ts -withBucketAggs(value) -``` - -List of bucket aggregations - -### fn withBucketAggsMixin - -```ts -withBucketAggsMixin(value) -``` - -List of bucket aggregations - -### fn withDatasource - -```ts -withDatasource(value) -``` - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null - -### fn withHide - -```ts -withHide(value=true) -``` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) - -### fn withMetrics - -```ts -withMetrics(value) -``` - -List of metric aggregations - -### fn withMetricsMixin - -```ts -withMetricsMixin(value) -``` - -List of metric aggregations - -### fn withQuery - -```ts -withQuery(value) -``` - -Lucene query - -### fn withQueryType - -```ts -withQueryType(value) -``` - -Specify the query flavor -TODO make this required and give it a default - -### fn withRefId - -```ts -withRefId(value) -``` - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. - -### fn withTimeField - -```ts -withTimeField(value) -``` - -Name of time field - -### obj bucketAggs - - -#### obj bucketAggs.DateHistogram - - -##### fn bucketAggs.DateHistogram.withField - -```ts -withField(value) -``` - - - -##### fn bucketAggs.DateHistogram.withId - -```ts -withId(value) -``` - - - -##### fn bucketAggs.DateHistogram.withSettings - -```ts -withSettings(value) -``` - - - -##### fn bucketAggs.DateHistogram.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -##### fn bucketAggs.DateHistogram.withType - -```ts -withType(value) -``` - - - -##### obj bucketAggs.DateHistogram.settings - - -###### fn bucketAggs.DateHistogram.settings.withInterval - -```ts -withInterval(value) -``` - - - -###### fn bucketAggs.DateHistogram.settings.withMinDocCount - -```ts -withMinDocCount(value) -``` - - - -###### fn bucketAggs.DateHistogram.settings.withOffset - -```ts -withOffset(value) -``` - - - -###### fn bucketAggs.DateHistogram.settings.withTimeZone - -```ts -withTimeZone(value) -``` - - - -###### fn bucketAggs.DateHistogram.settings.withTrimEdges - -```ts -withTrimEdges(value) -``` - - - -#### obj bucketAggs.Filters - - -##### fn bucketAggs.Filters.withId - -```ts -withId(value) -``` - - - -##### fn bucketAggs.Filters.withSettings - -```ts -withSettings(value) -``` - - - -##### fn bucketAggs.Filters.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -##### fn bucketAggs.Filters.withType - -```ts -withType(value) -``` - - - -##### obj bucketAggs.Filters.settings - - -###### fn bucketAggs.Filters.settings.withFilters - -```ts -withFilters(value) -``` - - - -###### fn bucketAggs.Filters.settings.withFiltersMixin - -```ts -withFiltersMixin(value) -``` - - - -###### obj bucketAggs.Filters.settings.filters - - -####### fn bucketAggs.Filters.settings.filters.withLabel - -```ts -withLabel(value) -``` - - - -####### fn bucketAggs.Filters.settings.filters.withQuery - -```ts -withQuery(value) -``` - - - -#### obj bucketAggs.GeoHashGrid - - -##### fn bucketAggs.GeoHashGrid.withField - -```ts -withField(value) -``` - - - -##### fn bucketAggs.GeoHashGrid.withId - -```ts -withId(value) -``` - - - -##### fn bucketAggs.GeoHashGrid.withSettings - -```ts -withSettings(value) -``` - - - -##### fn bucketAggs.GeoHashGrid.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -##### fn bucketAggs.GeoHashGrid.withType - -```ts -withType(value) -``` - - - -##### obj bucketAggs.GeoHashGrid.settings - - -###### fn bucketAggs.GeoHashGrid.settings.withPrecision - -```ts -withPrecision(value) -``` - - - -#### obj bucketAggs.Histogram - - -##### fn bucketAggs.Histogram.withField - -```ts -withField(value) -``` - - - -##### fn bucketAggs.Histogram.withId - -```ts -withId(value) -``` - - - -##### fn bucketAggs.Histogram.withSettings - -```ts -withSettings(value) -``` - - - -##### fn bucketAggs.Histogram.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -##### fn bucketAggs.Histogram.withType - -```ts -withType(value) -``` - - - -##### obj bucketAggs.Histogram.settings - - -###### fn bucketAggs.Histogram.settings.withInterval - -```ts -withInterval(value) -``` - - - -###### fn bucketAggs.Histogram.settings.withMinDocCount - -```ts -withMinDocCount(value) -``` - - - -#### obj bucketAggs.Nested - - -##### fn bucketAggs.Nested.withField - -```ts -withField(value) -``` - - - -##### fn bucketAggs.Nested.withId - -```ts -withId(value) -``` - - - -##### fn bucketAggs.Nested.withSettings - -```ts -withSettings(value) -``` - - - -##### fn bucketAggs.Nested.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -##### fn bucketAggs.Nested.withType - -```ts -withType(value) -``` - - - -#### obj bucketAggs.Terms - - -##### fn bucketAggs.Terms.withField - -```ts -withField(value) -``` - - - -##### fn bucketAggs.Terms.withId - -```ts -withId(value) -``` - - - -##### fn bucketAggs.Terms.withSettings - -```ts -withSettings(value) -``` - - - -##### fn bucketAggs.Terms.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -##### fn bucketAggs.Terms.withType - -```ts -withType(value) -``` - - - -##### obj bucketAggs.Terms.settings - - -###### fn bucketAggs.Terms.settings.withMinDocCount - -```ts -withMinDocCount(value) -``` - - - -###### fn bucketAggs.Terms.settings.withMissing - -```ts -withMissing(value) -``` - - - -###### fn bucketAggs.Terms.settings.withOrder - -```ts -withOrder(value) -``` - - - -Accepted values for `value` are "desc", "asc" - -###### fn bucketAggs.Terms.settings.withOrderBy - -```ts -withOrderBy(value) -``` - - - -###### fn bucketAggs.Terms.settings.withSize - -```ts -withSize(value) -``` - - - -### obj metrics - - -#### obj metrics.Count - - -##### fn metrics.Count.withHide - -```ts -withHide(value=true) -``` - - - -##### fn metrics.Count.withId - -```ts -withId(value) -``` - - - -##### fn metrics.Count.withType - -```ts -withType(value) -``` - - - -#### obj metrics.MetricAggregationWithSettings - - -##### obj metrics.MetricAggregationWithSettings.Average - - -###### fn metrics.MetricAggregationWithSettings.Average.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Average.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Average.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Average.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Average.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Average.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.Average.settings - - -####### fn metrics.MetricAggregationWithSettings.Average.settings.withMissing - -```ts -withMissing(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Average.settings.withScript - -```ts -withScript(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Average.settings.withScriptMixin - -```ts -withScriptMixin(value) -``` - - - -####### obj metrics.MetricAggregationWithSettings.Average.settings.script - - -######## fn metrics.MetricAggregationWithSettings.Average.settings.script.withInline - -```ts -withInline(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.BucketScript - - -###### fn metrics.MetricAggregationWithSettings.BucketScript.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.BucketScript.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.BucketScript.withPipelineVariables - -```ts -withPipelineVariables(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.BucketScript.withPipelineVariablesMixin - -```ts -withPipelineVariablesMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.BucketScript.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.BucketScript.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.BucketScript.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.BucketScript.pipelineVariables - - -####### fn metrics.MetricAggregationWithSettings.BucketScript.pipelineVariables.withName - -```ts -withName(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.BucketScript.pipelineVariables.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.BucketScript.settings - - -####### fn metrics.MetricAggregationWithSettings.BucketScript.settings.withScript - -```ts -withScript(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.BucketScript.settings.withScriptMixin - -```ts -withScriptMixin(value) -``` - - - -####### obj metrics.MetricAggregationWithSettings.BucketScript.settings.script - - -######## fn metrics.MetricAggregationWithSettings.BucketScript.settings.script.withInline - -```ts -withInline(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.CumulativeSum - - -###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.CumulativeSum.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.CumulativeSum.settings - - -####### fn metrics.MetricAggregationWithSettings.CumulativeSum.settings.withFormat - -```ts -withFormat(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.Derivative - - -###### fn metrics.MetricAggregationWithSettings.Derivative.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Derivative.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Derivative.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Derivative.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Derivative.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Derivative.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Derivative.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.Derivative.settings - - -####### fn metrics.MetricAggregationWithSettings.Derivative.settings.withUnit - -```ts -withUnit(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.ExtendedStats - - -###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withMeta - -```ts -withMeta(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withMetaMixin - -```ts -withMetaMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.ExtendedStats.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.ExtendedStats.settings - - -####### fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.withMissing - -```ts -withMissing(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.withScript - -```ts -withScript(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.withScriptMixin - -```ts -withScriptMixin(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.withSigma - -```ts -withSigma(value) -``` - - - -####### obj metrics.MetricAggregationWithSettings.ExtendedStats.settings.script - - -######## fn metrics.MetricAggregationWithSettings.ExtendedStats.settings.script.withInline - -```ts -withInline(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.Logs - - -###### fn metrics.MetricAggregationWithSettings.Logs.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Logs.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Logs.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Logs.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Logs.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.Logs.settings - - -####### fn metrics.MetricAggregationWithSettings.Logs.settings.withLimit - -```ts -withLimit(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.Max - - -###### fn metrics.MetricAggregationWithSettings.Max.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Max.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Max.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Max.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Max.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Max.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.Max.settings - - -####### fn metrics.MetricAggregationWithSettings.Max.settings.withMissing - -```ts -withMissing(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Max.settings.withScript - -```ts -withScript(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Max.settings.withScriptMixin - -```ts -withScriptMixin(value) -``` - - - -####### obj metrics.MetricAggregationWithSettings.Max.settings.script - - -######## fn metrics.MetricAggregationWithSettings.Max.settings.script.withInline - -```ts -withInline(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.Min - - -###### fn metrics.MetricAggregationWithSettings.Min.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Min.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Min.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Min.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Min.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Min.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.Min.settings - - -####### fn metrics.MetricAggregationWithSettings.Min.settings.withMissing - -```ts -withMissing(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Min.settings.withScript - -```ts -withScript(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Min.settings.withScriptMixin - -```ts -withScriptMixin(value) -``` - - - -####### obj metrics.MetricAggregationWithSettings.Min.settings.script - - -######## fn metrics.MetricAggregationWithSettings.Min.settings.script.withInline - -```ts -withInline(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.MovingAverage - - -###### fn metrics.MetricAggregationWithSettings.MovingAverage.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingAverage.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingAverage.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingAverage.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingAverage.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingAverage.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingAverage.withType - -```ts -withType(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.MovingFunction - - -###### fn metrics.MetricAggregationWithSettings.MovingFunction.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingFunction.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingFunction.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingFunction.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingFunction.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingFunction.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.MovingFunction.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.MovingFunction.settings - - -####### fn metrics.MetricAggregationWithSettings.MovingFunction.settings.withScript - -```ts -withScript(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.MovingFunction.settings.withScriptMixin - -```ts -withScriptMixin(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.MovingFunction.settings.withShift - -```ts -withShift(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.MovingFunction.settings.withWindow - -```ts -withWindow(value) -``` - - - -####### obj metrics.MetricAggregationWithSettings.MovingFunction.settings.script - - -######## fn metrics.MetricAggregationWithSettings.MovingFunction.settings.script.withInline - -```ts -withInline(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.Percentiles - - -###### fn metrics.MetricAggregationWithSettings.Percentiles.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Percentiles.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Percentiles.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Percentiles.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Percentiles.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Percentiles.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.Percentiles.settings - - -####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withMissing - -```ts -withMissing(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withPercents - -```ts -withPercents(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withPercentsMixin - -```ts -withPercentsMixin(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withScript - -```ts -withScript(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Percentiles.settings.withScriptMixin - -```ts -withScriptMixin(value) -``` - - - -####### obj metrics.MetricAggregationWithSettings.Percentiles.settings.script - - -######## fn metrics.MetricAggregationWithSettings.Percentiles.settings.script.withInline - -```ts -withInline(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.Rate - - -###### fn metrics.MetricAggregationWithSettings.Rate.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Rate.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Rate.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Rate.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Rate.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Rate.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.Rate.settings - - -####### fn metrics.MetricAggregationWithSettings.Rate.settings.withMode - -```ts -withMode(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Rate.settings.withUnit - -```ts -withUnit(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.RawData - - -###### fn metrics.MetricAggregationWithSettings.RawData.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.RawData.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.RawData.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.RawData.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.RawData.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.RawData.settings - - -####### fn metrics.MetricAggregationWithSettings.RawData.settings.withSize - -```ts -withSize(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.RawDocument - - -###### fn metrics.MetricAggregationWithSettings.RawDocument.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.RawDocument.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.RawDocument.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.RawDocument.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.RawDocument.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.RawDocument.settings - - -####### fn metrics.MetricAggregationWithSettings.RawDocument.settings.withSize - -```ts -withSize(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.SerialDiff - - -###### fn metrics.MetricAggregationWithSettings.SerialDiff.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.SerialDiff.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.SerialDiff.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.SerialDiff.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.SerialDiff.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.SerialDiff.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.SerialDiff.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.SerialDiff.settings - - -####### fn metrics.MetricAggregationWithSettings.SerialDiff.settings.withLag - -```ts -withLag(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.Sum - - -###### fn metrics.MetricAggregationWithSettings.Sum.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Sum.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Sum.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Sum.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Sum.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.Sum.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.Sum.settings - - -####### fn metrics.MetricAggregationWithSettings.Sum.settings.withMissing - -```ts -withMissing(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Sum.settings.withScript - -```ts -withScript(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.Sum.settings.withScriptMixin - -```ts -withScriptMixin(value) -``` - - - -####### obj metrics.MetricAggregationWithSettings.Sum.settings.script - - -######## fn metrics.MetricAggregationWithSettings.Sum.settings.script.withInline - -```ts -withInline(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.TopMetrics - - -###### fn metrics.MetricAggregationWithSettings.TopMetrics.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.TopMetrics.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.TopMetrics.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.TopMetrics.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.TopMetrics.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.TopMetrics.settings - - -####### fn metrics.MetricAggregationWithSettings.TopMetrics.settings.withMetrics - -```ts -withMetrics(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.TopMetrics.settings.withMetricsMixin - -```ts -withMetricsMixin(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.TopMetrics.settings.withOrder - -```ts -withOrder(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.TopMetrics.settings.withOrderBy - -```ts -withOrderBy(value) -``` - - - -##### obj metrics.MetricAggregationWithSettings.UniqueCount - - -###### fn metrics.MetricAggregationWithSettings.UniqueCount.withField - -```ts -withField(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.UniqueCount.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.MetricAggregationWithSettings.UniqueCount.withId - -```ts -withId(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.UniqueCount.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.UniqueCount.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.MetricAggregationWithSettings.UniqueCount.withType - -```ts -withType(value) -``` - - - -###### obj metrics.MetricAggregationWithSettings.UniqueCount.settings - - -####### fn metrics.MetricAggregationWithSettings.UniqueCount.settings.withMissing - -```ts -withMissing(value) -``` - - - -####### fn metrics.MetricAggregationWithSettings.UniqueCount.settings.withPrecisionThreshold - -```ts -withPrecisionThreshold(value) -``` - - - -#### obj metrics.PipelineMetricAggregation - - -##### obj metrics.PipelineMetricAggregation.BucketScript - - -###### fn metrics.PipelineMetricAggregation.BucketScript.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.PipelineMetricAggregation.BucketScript.withId - -```ts -withId(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.BucketScript.withPipelineVariables - -```ts -withPipelineVariables(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.BucketScript.withPipelineVariablesMixin - -```ts -withPipelineVariablesMixin(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.BucketScript.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.BucketScript.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.BucketScript.withType - -```ts -withType(value) -``` - - - -###### obj metrics.PipelineMetricAggregation.BucketScript.pipelineVariables - - -####### fn metrics.PipelineMetricAggregation.BucketScript.pipelineVariables.withName - -```ts -withName(value) -``` - - - -####### fn metrics.PipelineMetricAggregation.BucketScript.pipelineVariables.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### obj metrics.PipelineMetricAggregation.BucketScript.settings - - -####### fn metrics.PipelineMetricAggregation.BucketScript.settings.withScript - -```ts -withScript(value) -``` - - - -####### fn metrics.PipelineMetricAggregation.BucketScript.settings.withScriptMixin - -```ts -withScriptMixin(value) -``` - - - -####### obj metrics.PipelineMetricAggregation.BucketScript.settings.script - - -######## fn metrics.PipelineMetricAggregation.BucketScript.settings.script.withInline - -```ts -withInline(value) -``` - - - -##### obj metrics.PipelineMetricAggregation.CumulativeSum - - -###### fn metrics.PipelineMetricAggregation.CumulativeSum.withField - -```ts -withField(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.CumulativeSum.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.PipelineMetricAggregation.CumulativeSum.withId - -```ts -withId(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.CumulativeSum.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.CumulativeSum.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.CumulativeSum.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.CumulativeSum.withType - -```ts -withType(value) -``` - - - -###### obj metrics.PipelineMetricAggregation.CumulativeSum.settings - - -####### fn metrics.PipelineMetricAggregation.CumulativeSum.settings.withFormat - -```ts -withFormat(value) -``` - - - -##### obj metrics.PipelineMetricAggregation.Derivative - - -###### fn metrics.PipelineMetricAggregation.Derivative.withField - -```ts -withField(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.Derivative.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.PipelineMetricAggregation.Derivative.withId - -```ts -withId(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.Derivative.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.Derivative.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.Derivative.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.Derivative.withType - -```ts -withType(value) -``` - - - -###### obj metrics.PipelineMetricAggregation.Derivative.settings - - -####### fn metrics.PipelineMetricAggregation.Derivative.settings.withUnit - -```ts -withUnit(value) -``` - - - -##### obj metrics.PipelineMetricAggregation.MovingAverage - - -###### fn metrics.PipelineMetricAggregation.MovingAverage.withField - -```ts -withField(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.MovingAverage.withHide - -```ts -withHide(value=true) -``` - - - -###### fn metrics.PipelineMetricAggregation.MovingAverage.withId - -```ts -withId(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.MovingAverage.withPipelineAgg - -```ts -withPipelineAgg(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.MovingAverage.withSettings - -```ts -withSettings(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.MovingAverage.withSettingsMixin - -```ts -withSettingsMixin(value) -``` - - - -###### fn metrics.PipelineMetricAggregation.MovingAverage.withType - -```ts -withType(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/index.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/index.md deleted file mode 100644 index 1ad7c17..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/index.md +++ /dev/null @@ -1,16 +0,0 @@ -# query - -grafonnet.query - -## Subpackages - -* [azureMonitor](azureMonitor.md) -* [cloudWatch](cloudWatch.md) -* [elasticsearch](elasticsearch.md) -* [grafanaPyroscope](grafanaPyroscope.md) -* [loki](loki.md) -* [parca](parca.md) -* [prometheus](prometheus.md) -* [tempo](tempo.md) -* [testData](testData.md) - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/tempo.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/tempo.md deleted file mode 100644 index 5ed6b39..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/tempo.md +++ /dev/null @@ -1,217 +0,0 @@ -# tempo - -grafonnet.query.tempo - -## Index - -* [`fn new(datasource, query, filters)`](#fn-new) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withFilters(value)`](#fn-withfilters) -* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withLimit(value)`](#fn-withlimit) -* [`fn withMaxDuration(value)`](#fn-withmaxduration) -* [`fn withMinDuration(value)`](#fn-withminduration) -* [`fn withQuery(value)`](#fn-withquery) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withSearch(value)`](#fn-withsearch) -* [`fn withServiceMapQuery(value)`](#fn-withservicemapquery) -* [`fn withServiceName(value)`](#fn-withservicename) -* [`fn withSpanName(value)`](#fn-withspanname) -* [`obj filters`](#obj-filters) - * [`fn withId(value)`](#fn-filterswithid) - * [`fn withOperator(value)`](#fn-filterswithoperator) - * [`fn withScope(value)`](#fn-filterswithscope) - * [`fn withTag(value)`](#fn-filterswithtag) - * [`fn withValue(value)`](#fn-filterswithvalue) - * [`fn withValueMixin(value)`](#fn-filterswithvaluemixin) - * [`fn withValueType(value)`](#fn-filterswithvaluetype) - -## Fields - -### fn new - -```ts -new(datasource, query, filters) -``` - -Creates a new tempo query target for panels. - -### fn withDatasource - -```ts -withDatasource(value) -``` - -Set the datasource for this query. - -### fn withFilters - -```ts -withFilters(value) -``` - - - -### fn withFiltersMixin - -```ts -withFiltersMixin(value) -``` - - - -### fn withHide - -```ts -withHide(value=true) -``` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) - -### fn withLimit - -```ts -withLimit(value) -``` - -Defines the maximum number of traces that are returned from Tempo - -### fn withMaxDuration - -```ts -withMaxDuration(value) -``` - -Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms - -### fn withMinDuration - -```ts -withMinDuration(value) -``` - -Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms - -### fn withQuery - -```ts -withQuery(value) -``` - -TraceQL query or trace ID - -### fn withQueryType - -```ts -withQueryType(value) -``` - -Specify the query flavor -TODO make this required and give it a default - -### fn withRefId - -```ts -withRefId(value) -``` - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. - -### fn withSearch - -```ts -withSearch(value) -``` - -Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true - -### fn withServiceMapQuery - -```ts -withServiceMapQuery(value) -``` - -Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"} - -### fn withServiceName - -```ts -withServiceName(value) -``` - -Query traces by service name - -### fn withSpanName - -```ts -withSpanName(value) -``` - -Query traces by span name - -### obj filters - - -#### fn filters.withId - -```ts -withId(value) -``` - -Uniquely identify the filter, will not be used in the query generation - -#### fn filters.withOperator - -```ts -withOperator(value) -``` - -The operator that connects the tag to the value, for example: =, >, !=, =~ - -#### fn filters.withScope - -```ts -withScope(value) -``` - -static fields are pre-set in the UI, dynamic fields are added by the user - -Accepted values for `value` are "unscoped", "resource", "span" - -#### fn filters.withTag - -```ts -withTag(value) -``` - -The tag for the search filter, for example: .http.status_code, .service.name, status - -#### fn filters.withValue - -```ts -withValue(value) -``` - -The value for the search filter - -#### fn filters.withValueMixin - -```ts -withValueMixin(value) -``` - -The value for the search filter - -#### fn filters.withValueType - -```ts -withValueType(value) -``` - -The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/testData.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/testData.md deleted file mode 100644 index a160fee..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/testData.md +++ /dev/null @@ -1,619 +0,0 @@ -# testData - -grafonnet.query.testData - -## Index - -* [`fn withAlias(value)`](#fn-withalias) -* [`fn withChannel(value)`](#fn-withchannel) -* [`fn withCsvContent(value)`](#fn-withcsvcontent) -* [`fn withCsvFileName(value)`](#fn-withcsvfilename) -* [`fn withCsvWave(value)`](#fn-withcsvwave) -* [`fn withCsvWaveMixin(value)`](#fn-withcsvwavemixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withErrorType(value)`](#fn-witherrortype) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withLabels(value)`](#fn-withlabels) -* [`fn withLevelColumn(value=true)`](#fn-withlevelcolumn) -* [`fn withLines(value)`](#fn-withlines) -* [`fn withNodes(value)`](#fn-withnodes) -* [`fn withNodesMixin(value)`](#fn-withnodesmixin) -* [`fn withPoints(value)`](#fn-withpoints) -* [`fn withPointsMixin(value)`](#fn-withpointsmixin) -* [`fn withPulseWave(value)`](#fn-withpulsewave) -* [`fn withPulseWaveMixin(value)`](#fn-withpulsewavemixin) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRawFrameContent(value)`](#fn-withrawframecontent) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withScenarioId(value)`](#fn-withscenarioid) -* [`fn withSeriesCount(value)`](#fn-withseriescount) -* [`fn withSim(value)`](#fn-withsim) -* [`fn withSimMixin(value)`](#fn-withsimmixin) -* [`fn withSpanCount(value)`](#fn-withspancount) -* [`fn withStream(value)`](#fn-withstream) -* [`fn withStreamMixin(value)`](#fn-withstreammixin) -* [`fn withStringInput(value)`](#fn-withstringinput) -* [`fn withUsa(value)`](#fn-withusa) -* [`fn withUsaMixin(value)`](#fn-withusamixin) -* [`obj csvWave`](#obj-csvwave) - * [`fn withLabels(value)`](#fn-csvwavewithlabels) - * [`fn withName(value)`](#fn-csvwavewithname) - * [`fn withTimeStep(value)`](#fn-csvwavewithtimestep) - * [`fn withValuesCSV(value)`](#fn-csvwavewithvaluescsv) -* [`obj nodes`](#obj-nodes) - * [`fn withCount(value)`](#fn-nodeswithcount) - * [`fn withType(value)`](#fn-nodeswithtype) -* [`obj pulseWave`](#obj-pulsewave) - * [`fn withOffCount(value)`](#fn-pulsewavewithoffcount) - * [`fn withOffValue(value)`](#fn-pulsewavewithoffvalue) - * [`fn withOnCount(value)`](#fn-pulsewavewithoncount) - * [`fn withOnValue(value)`](#fn-pulsewavewithonvalue) - * [`fn withTimeStep(value)`](#fn-pulsewavewithtimestep) -* [`obj sim`](#obj-sim) - * [`fn withConfig(value)`](#fn-simwithconfig) - * [`fn withConfigMixin(value)`](#fn-simwithconfigmixin) - * [`fn withKey(value)`](#fn-simwithkey) - * [`fn withKeyMixin(value)`](#fn-simwithkeymixin) - * [`fn withLast(value=true)`](#fn-simwithlast) - * [`fn withStream(value=true)`](#fn-simwithstream) - * [`obj key`](#obj-simkey) - * [`fn withTick(value)`](#fn-simkeywithtick) - * [`fn withType(value)`](#fn-simkeywithtype) - * [`fn withUid(value)`](#fn-simkeywithuid) -* [`obj stream`](#obj-stream) - * [`fn withBands(value)`](#fn-streamwithbands) - * [`fn withNoise(value)`](#fn-streamwithnoise) - * [`fn withSpeed(value)`](#fn-streamwithspeed) - * [`fn withSpread(value)`](#fn-streamwithspread) - * [`fn withType(value)`](#fn-streamwithtype) - * [`fn withUrl(value)`](#fn-streamwithurl) -* [`obj usa`](#obj-usa) - * [`fn withFields(value)`](#fn-usawithfields) - * [`fn withFieldsMixin(value)`](#fn-usawithfieldsmixin) - * [`fn withMode(value)`](#fn-usawithmode) - * [`fn withPeriod(value)`](#fn-usawithperiod) - * [`fn withStates(value)`](#fn-usawithstates) - * [`fn withStatesMixin(value)`](#fn-usawithstatesmixin) - -## Fields - -### fn withAlias - -```ts -withAlias(value) -``` - - - -### fn withChannel - -```ts -withChannel(value) -``` - - - -### fn withCsvContent - -```ts -withCsvContent(value) -``` - - - -### fn withCsvFileName - -```ts -withCsvFileName(value) -``` - - - -### fn withCsvWave - -```ts -withCsvWave(value) -``` - - - -### fn withCsvWaveMixin - -```ts -withCsvWaveMixin(value) -``` - - - -### fn withDatasource - -```ts -withDatasource(value) -``` - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null - -### fn withErrorType - -```ts -withErrorType(value) -``` - - - -Accepted values for `value` are "server_panic", "frontend_exception", "frontend_observable" - -### fn withHide - -```ts -withHide(value=true) -``` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) - -### fn withLabels - -```ts -withLabels(value) -``` - - - -### fn withLevelColumn - -```ts -withLevelColumn(value=true) -``` - - - -### fn withLines - -```ts -withLines(value) -``` - - - -### fn withNodes - -```ts -withNodes(value) -``` - - - -### fn withNodesMixin - -```ts -withNodesMixin(value) -``` - - - -### fn withPoints - -```ts -withPoints(value) -``` - - - -### fn withPointsMixin - -```ts -withPointsMixin(value) -``` - - - -### fn withPulseWave - -```ts -withPulseWave(value) -``` - - - -### fn withPulseWaveMixin - -```ts -withPulseWaveMixin(value) -``` - - - -### fn withQueryType - -```ts -withQueryType(value) -``` - -Specify the query flavor -TODO make this required and give it a default - -### fn withRawFrameContent - -```ts -withRawFrameContent(value) -``` - - - -### fn withRefId - -```ts -withRefId(value) -``` - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. - -### fn withScenarioId - -```ts -withScenarioId(value) -``` - - - -Accepted values for `value` are "random_walk", "slow_query", "random_walk_with_error", "random_walk_table", "exponential_heatmap_bucket_data", "linear_heatmap_bucket_data", "no_data_points", "datapoints_outside_range", "csv_metric_values", "predictable_pulse", "predictable_csv_wave", "streaming_client", "simulation", "usa", "live", "grafana_api", "arrow", "annotations", "table_static", "server_error_500", "logs", "node_graph", "flame_graph", "raw_frame", "csv_file", "csv_content", "trace", "manual_entry", "variables-query" - -### fn withSeriesCount - -```ts -withSeriesCount(value) -``` - - - -### fn withSim - -```ts -withSim(value) -``` - - - -### fn withSimMixin - -```ts -withSimMixin(value) -``` - - - -### fn withSpanCount - -```ts -withSpanCount(value) -``` - - - -### fn withStream - -```ts -withStream(value) -``` - - - -### fn withStreamMixin - -```ts -withStreamMixin(value) -``` - - - -### fn withStringInput - -```ts -withStringInput(value) -``` - - - -### fn withUsa - -```ts -withUsa(value) -``` - - - -### fn withUsaMixin - -```ts -withUsaMixin(value) -``` - - - -### obj csvWave - - -#### fn csvWave.withLabels - -```ts -withLabels(value) -``` - - - -#### fn csvWave.withName - -```ts -withName(value) -``` - - - -#### fn csvWave.withTimeStep - -```ts -withTimeStep(value) -``` - - - -#### fn csvWave.withValuesCSV - -```ts -withValuesCSV(value) -``` - - - -### obj nodes - - -#### fn nodes.withCount - -```ts -withCount(value) -``` - - - -#### fn nodes.withType - -```ts -withType(value) -``` - - - -Accepted values for `value` are "random", "response", "random edges" - -### obj pulseWave - - -#### fn pulseWave.withOffCount - -```ts -withOffCount(value) -``` - - - -#### fn pulseWave.withOffValue - -```ts -withOffValue(value) -``` - - - -#### fn pulseWave.withOnCount - -```ts -withOnCount(value) -``` - - - -#### fn pulseWave.withOnValue - -```ts -withOnValue(value) -``` - - - -#### fn pulseWave.withTimeStep - -```ts -withTimeStep(value) -``` - - - -### obj sim - - -#### fn sim.withConfig - -```ts -withConfig(value) -``` - - - -#### fn sim.withConfigMixin - -```ts -withConfigMixin(value) -``` - - - -#### fn sim.withKey - -```ts -withKey(value) -``` - - - -#### fn sim.withKeyMixin - -```ts -withKeyMixin(value) -``` - - - -#### fn sim.withLast - -```ts -withLast(value=true) -``` - - - -#### fn sim.withStream - -```ts -withStream(value=true) -``` - - - -#### obj sim.key - - -##### fn sim.key.withTick - -```ts -withTick(value) -``` - - - -##### fn sim.key.withType - -```ts -withType(value) -``` - - - -##### fn sim.key.withUid - -```ts -withUid(value) -``` - - - -### obj stream - - -#### fn stream.withBands - -```ts -withBands(value) -``` - - - -#### fn stream.withNoise - -```ts -withNoise(value) -``` - - - -#### fn stream.withSpeed - -```ts -withSpeed(value) -``` - - - -#### fn stream.withSpread - -```ts -withSpread(value) -``` - - - -#### fn stream.withType - -```ts -withType(value) -``` - - - -Accepted values for `value` are "signal", "logs", "fetch" - -#### fn stream.withUrl - -```ts -withUrl(value) -``` - - - -### obj usa - - -#### fn usa.withFields - -```ts -withFields(value) -``` - - - -#### fn usa.withFieldsMixin - -```ts -withFieldsMixin(value) -``` - - - -#### fn usa.withMode - -```ts -withMode(value) -``` - - - -#### fn usa.withPeriod - -```ts -withPeriod(value) -``` - - - -#### fn usa.withStates - -```ts -withStates(value) -``` - - - -#### fn usa.withStatesMixin - -```ts -withStatesMixin(value) -``` - - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/serviceaccount.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/serviceaccount.md deleted file mode 100644 index 719227b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/serviceaccount.md +++ /dev/null @@ -1,120 +0,0 @@ -# serviceaccount - -grafonnet.serviceaccount - -## Index - -* [`fn withAccessControl(value)`](#fn-withaccesscontrol) -* [`fn withAccessControlMixin(value)`](#fn-withaccesscontrolmixin) -* [`fn withAvatarUrl(value)`](#fn-withavatarurl) -* [`fn withId(value)`](#fn-withid) -* [`fn withIsDisabled(value=true)`](#fn-withisdisabled) -* [`fn withLogin(value)`](#fn-withlogin) -* [`fn withName(value)`](#fn-withname) -* [`fn withOrgId(value)`](#fn-withorgid) -* [`fn withRole(value)`](#fn-withrole) -* [`fn withTeams(value)`](#fn-withteams) -* [`fn withTeamsMixin(value)`](#fn-withteamsmixin) -* [`fn withTokens(value)`](#fn-withtokens) - -## Fields - -### fn withAccessControl - -```ts -withAccessControl(value) -``` - -AccessControl metadata associated with a given resource. - -### fn withAccessControlMixin - -```ts -withAccessControlMixin(value) -``` - -AccessControl metadata associated with a given resource. - -### fn withAvatarUrl - -```ts -withAvatarUrl(value) -``` - -AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front -of the service account. - -### fn withId - -```ts -withId(value) -``` - -ID is the unique identifier of the service account in the database. - -### fn withIsDisabled - -```ts -withIsDisabled(value=true) -``` - -IsDisabled indicates if the service account is disabled. - -### fn withLogin - -```ts -withLogin(value) -``` - -Login of the service account. - -### fn withName - -```ts -withName(value) -``` - -Name of the service account. - -### fn withOrgId - -```ts -withOrgId(value) -``` - -OrgId is the ID of an organisation the service account belongs to. - -### fn withRole - -```ts -withRole(value) -``` - -OrgRole is a Grafana Organization Role which can be 'Viewer', 'Editor', 'Admin'. - -Accepted values for `value` are "Admin", "Editor", "Viewer" - -### fn withTeams - -```ts -withTeams(value) -``` - -Teams is a list of teams the service account belongs to. - -### fn withTeamsMixin - -```ts -withTeamsMixin(value) -``` - -Teams is a list of teams the service account belongs to. - -### fn withTokens - -```ts -withTokens(value) -``` - -Tokens is the number of active tokens for the service account. -Tokens are used to authenticate the service account against Grafana. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/team.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/team.md deleted file mode 100644 index d9b935f..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/team.md +++ /dev/null @@ -1,82 +0,0 @@ -# team - -grafonnet.team - -## Index - -* [`fn withAccessControl(value)`](#fn-withaccesscontrol) -* [`fn withAccessControlMixin(value)`](#fn-withaccesscontrolmixin) -* [`fn withAvatarUrl(value)`](#fn-withavatarurl) -* [`fn withEmail(value)`](#fn-withemail) -* [`fn withMemberCount(value)`](#fn-withmembercount) -* [`fn withName(value)`](#fn-withname) -* [`fn withOrgId(value)`](#fn-withorgid) -* [`fn withPermission(value)`](#fn-withpermission) - -## Fields - -### fn withAccessControl - -```ts -withAccessControl(value) -``` - -AccessControl metadata associated with a given resource. - -### fn withAccessControlMixin - -```ts -withAccessControlMixin(value) -``` - -AccessControl metadata associated with a given resource. - -### fn withAvatarUrl - -```ts -withAvatarUrl(value) -``` - -AvatarUrl is the team's avatar URL. - -### fn withEmail - -```ts -withEmail(value) -``` - -Email of the team. - -### fn withMemberCount - -```ts -withMemberCount(value) -``` - -MemberCount is the number of the team members. - -### fn withName - -```ts -withName(value) -``` - -Name of the team. - -### fn withOrgId - -```ts -withOrgId(value) -``` - -OrgId is the ID of an organisation the team belongs to. - -### fn withPermission - -```ts -withPermission(value) -``` - - - -Accepted values for `value` are 0, 1, 2, 4 diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/util.md b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/util.md deleted file mode 100644 index c4c31ef..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/util.md +++ /dev/null @@ -1,81 +0,0 @@ -# util - -Helper functions that work well with Grafonnet. - -## Index - -* [`obj dashboard`](#obj-dashboard) - * [`fn getOptionsForCustomQuery(query)`](#fn-dashboardgetoptionsforcustomquery) -* [`obj grid`](#obj-grid) - * [`fn makeGrid(panels, panelWidth, panelHeight)`](#fn-gridmakegrid) -* [`obj panel`](#obj-panel) - * [`fn setPanelIDs(panels)`](#fn-panelsetpanelids) -* [`obj string`](#obj-string) - * [`fn slugify(string)`](#fn-stringslugify) - -## Fields - -### obj dashboard - - -#### fn dashboard.getOptionsForCustomQuery - -```ts -getOptionsForCustomQuery(query) -``` - -`getOptionsForCustomQuery` provides values for the `options` and `current` fields. -These are required for template variables of type 'custom'but do not automatically -get populated by Grafana when importing a dashboard from JSON. - -This is a bit of a hack and should always be called on functions that set `type` on -a template variable. Ideally Grafana populates these fields from the `query` value -but this provides a backwards compatible solution. - - -### obj grid - - -#### fn grid.makeGrid - -```ts -makeGrid(panels, panelWidth, panelHeight) -``` - -`makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` -and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, -then all panels below it will be folded into the row. - -This function will use the full grid of 24 columns, setting `panelWidth` to a value -that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) -Other value for `panelWidth` will leave a gap on the far right. - - -### obj panel - - -#### fn panel.setPanelIDs - -```ts -setPanelIDs(panels) -``` - -`setPanelIDs` ensures that all `panels` have a unique ID, this functions is used in -`dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent -experience. - -used in ../dashboard.libsonnet - - -### obj string - - -#### fn string.slugify - -```ts -slugify(string) -``` - -`slugify` will create a simple slug from `string`, keeping only alphanumeric -characters and replacing spaces with dashes. - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet deleted file mode 100644 index 29cd9bc..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet +++ /dev/null @@ -1,23 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { - filename: 'main.libsonnet', - help: 'Jsonnet library for rendering Grafana resources', - 'import': 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet', - installTemplate: 'jb install %(url)s@%(version)s', - name: 'grafonnet', - url: 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0', - usageTemplate: 'local %(name)s = import "%(import)s"', - version: 'main', - }, - dashboard: import 'clean/dashboard.libsonnet', - librarypanel: import 'raw/librarypanel.libsonnet', - playlist: import 'raw/playlist.libsonnet', - preferences: import 'raw/preferences.libsonnet', - publicdashboard: import 'raw/publicdashboard.libsonnet', - serviceaccount: import 'raw/serviceaccount.libsonnet', - team: import 'raw/team.libsonnet', - panel: import 'panel.libsonnet', - query: import 'query.libsonnet', - util: import 'custom/util/main.libsonnet', -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet deleted file mode 100644 index d90e1b6..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet +++ /dev/null @@ -1,30 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel', name: 'panel' }, - candlestick: import 'clean/panel/candlestick.libsonnet', - canvas: import 'clean/panel/canvas.libsonnet', - alertGroups: import 'clean/panel/alertGroups.libsonnet', - annotationsList: import 'clean/panel/annotationsList.libsonnet', - barChart: import 'clean/panel/barChart.libsonnet', - barGauge: import 'clean/panel/barGauge.libsonnet', - dashboardList: import 'clean/panel/dashboardList.libsonnet', - datagrid: import 'clean/panel/datagrid.libsonnet', - debug: import 'clean/panel/debug.libsonnet', - gauge: import 'clean/panel/gauge.libsonnet', - geomap: import 'clean/panel/geomap.libsonnet', - heatmap: import 'clean/panel/heatmap.libsonnet', - histogram: import 'clean/panel/histogram.libsonnet', - logs: import 'clean/panel/logs.libsonnet', - news: import 'clean/panel/news.libsonnet', - nodeGraph: import 'clean/panel/nodeGraph.libsonnet', - pieChart: import 'clean/panel/pieChart.libsonnet', - stat: import 'clean/panel/stat.libsonnet', - stateTimeline: import 'clean/panel/stateTimeline.libsonnet', - statusHistory: import 'clean/panel/statusHistory.libsonnet', - table: import 'clean/panel/table.libsonnet', - text: import 'clean/panel/text.libsonnet', - timeSeries: import 'clean/panel/timeSeries.libsonnet', - trend: import 'clean/panel/trend.libsonnet', - xyChart: import 'clean/panel/xyChart.libsonnet', - row: import 'raw/panel/row.libsonnet', -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet deleted file mode 100644 index fbbe20c..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet +++ /dev/null @@ -1,13 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query', name: 'query' }, - azureMonitor: import 'raw/query/azureMonitor.libsonnet', - cloudWatch: import 'raw/query/cloudWatch.libsonnet', - elasticsearch: import 'raw/query/elasticsearch.libsonnet', - loki: import 'clean/query/loki.libsonnet', - parca: import 'raw/query/parca.libsonnet', - grafanaPyroscope: import 'raw/query/grafanaPyroscope.libsonnet', - prometheus: import 'clean/query/prometheus.libsonnet', - tempo: import 'clean/query/tempo.libsonnet', - testData: import 'raw/query/testData.libsonnet', -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet deleted file mode 100644 index 0caa322..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet +++ /dev/null @@ -1,296 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.dashboard', name: 'dashboard' }, - '#withAnnotations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO -- should not be a public interface on its own, but required for Veneer' } }, - withAnnotations(value): { annotations: value }, - '#withAnnotationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO -- should not be a public interface on its own, but required for Veneer' } }, - withAnnotationsMixin(value): { annotations+: value }, - annotations+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withList(value): { annotations+: { list: (if std.isArray(value) - then value - else [value]) } }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withListMixin(value): { annotations+: { list+: (if std.isArray(value) - then value - else [value]) } }, - list+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: Should be DataSourceRef' } }, - withDatasource(value): { datasource: value }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: Should be DataSourceRef' } }, - withDatasourceMixin(value): { datasource+: value }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { datasource+: { type: value } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUid(value): { datasource+: { uid: value } }, - }, - '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'When enabled the annotation query is issued with every dashboard refresh' } }, - withEnable(value=true): { enable: value }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFilter(value): { filter: value }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFilterMixin(value): { filter+: value }, - filter+: - { - '#withExclude': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Should the specified panels be included or excluded' } }, - withExclude(value=true): { filter+: { exclude: value } }, - '#withIds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel IDs that should be included or excluded' } }, - withIds(value): { filter+: { ids: (if std.isArray(value) - then value - else [value]) } }, - '#withIdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel IDs that should be included or excluded' } }, - withIdsMixin(value): { filter+: { ids+: (if std.isArray(value) - then value - else [value]) } }, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Annotation queries can be toggled on or off at the top of the dashboard.\nWhen hide is true, the toggle is not shown in the dashboard.' } }, - withHide(value=true): { hide: value }, - '#withIconColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Color to use for the annotation event markers' } }, - withIconColor(value): { iconColor: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of annotation.' } }, - withName(value): { name: value }, - '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTarget(value): { target: value }, - '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTargetMixin(value): { target+: value }, - target+: - { - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withLimit(value): { target+: { limit: value } }, - '#withMatchAny': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withMatchAny(value=true): { target+: { matchAny: value } }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTags(value): { target+: { tags: (if std.isArray(value) - then value - else [value]) } }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTagsMixin(value): { target+: { tags+: (if std.isArray(value) - then value - else [value]) } }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withType(value): { target+: { type: value } }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO -- this should not exist here, it is based on the --grafana-- datasource' } }, - withType(value): { type: value }, - }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Description of dashboard.' } }, - withDescription(value): { description: value }, - '#withEditable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether a dashboard is editable or not.' } }, - withEditable(value=true): { editable: value }, - '#withFiscalYearStartMonth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'The month that the fiscal year starts on. 0 = January, 11 = December' } }, - withFiscalYearStartMonth(value=0): { fiscalYearStartMonth: value }, - '#withGnetId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'For dashboards imported from the https://grafana.com/grafana/dashboards/ portal' } }, - withGnetId(value): { gnetId: value }, - '#withGraphTooltip': { 'function': { args: [{ default: 0, enums: [0, 1, 2], name: 'value', type: 'integer' }], help: '0 for no shared crosshair or tooltip (default).\n1 for shared crosshair.\n2 for shared crosshair AND shared tooltip.' } }, - withGraphTooltip(value=0): { graphTooltip: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Unique numeric identifier for the dashboard.\nTODO must isolate or remove identifiers local to a Grafana instance...?' } }, - withId(value): { id: value }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withLinks(value): { links: (if std.isArray(value) - then value - else [value]) }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withLinksMixin(value): { links+: (if std.isArray(value) - then value - else [value]) }, - links+: - { - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsDropdown(value=true): { asDropdown: value }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { icon: value }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIncludeVars(value=true): { includeVars: value }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withKeepTime(value=true): { keepTime: value }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTags(value): { tags: (if std.isArray(value) - then value - else [value]) }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTagsMixin(value): { tags+: (if std.isArray(value) - then value - else [value]) }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTargetBlank(value=true): { targetBlank: value }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTitle(value): { title: value }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTooltip(value): { tooltip: value }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { type: value }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUrl(value): { url: value }, - }, - '#withLiveNow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'When set to true, the dashboard will redraw panels at an interval matching the pixel width.\nThis will keep data "moving left" regardless of the query refresh rate. This setting helps\navoid dashboards presenting stale live data' } }, - withLiveNow(value=true): { liveNow: value }, - '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPanels(value): { panels: (if std.isArray(value) - then value - else [value]) }, - '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPanelsMixin(value): { panels+: (if std.isArray(value) - then value - else [value]) }, - '#withRefresh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, - withRefresh(value): { refresh: value }, - '#withRefreshMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, - withRefreshMixin(value): { refresh+: value }, - '#withRevision': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'This property should only be used in dashboards defined by plugins. It is a quick check\nto see if the version has changed since the last time. Unclear why using the version property\nis insufficient.' } }, - withRevision(value): { revision: value }, - '#withSchemaVersion': { 'function': { args: [{ default: 36, enums: null, name: 'value', type: 'integer' }], help: "Version of the JSON schema, incremented each time a Grafana update brings\nchanges to said schema.\nTODO this is the existing schema numbering system. It will be replaced by Thema's themaVersion" } }, - withSchemaVersion(value=36): { schemaVersion: value }, - '#withSnapshot': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withSnapshot(value): { snapshot: value }, - '#withSnapshotMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withSnapshotMixin(value): { snapshot+: value }, - snapshot+: - { - '#withCreated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withCreated(value): { snapshot+: { created: value } }, - '#withExpires': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withExpires(value): { snapshot+: { expires: value } }, - '#withExternal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'TODO docs' } }, - withExternal(value=true): { snapshot+: { external: value } }, - '#withExternalUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withExternalUrl(value): { snapshot+: { externalUrl: value } }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'TODO docs' } }, - withId(value): { snapshot+: { id: value } }, - '#withKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withKey(value): { snapshot+: { key: value } }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withName(value): { snapshot+: { name: value } }, - '#withOrgId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'TODO docs' } }, - withOrgId(value): { snapshot+: { orgId: value } }, - '#withUpdated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withUpdated(value): { snapshot+: { updated: value } }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withUrl(value): { snapshot+: { url: value } }, - '#withUserId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'TODO docs' } }, - withUserId(value): { snapshot+: { userId: value } }, - }, - '#withStyle': { 'function': { args: [{ default: 'dark', enums: ['dark', 'light'], name: 'value', type: 'string' }], help: 'Theme of dashboard.' } }, - withStyle(value='dark'): { style: value }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Tags associated with dashboard.' } }, - withTags(value): { tags: (if std.isArray(value) - then value - else [value]) }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Tags associated with dashboard.' } }, - withTagsMixin(value): { tags+: (if std.isArray(value) - then value - else [value]) }, - '#withTemplating': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTemplating(value): { templating: value }, - '#withTemplatingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTemplatingMixin(value): { templating+: value }, - templating+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withList(value): { templating+: { list: (if std.isArray(value) - then value - else [value]) } }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withListMixin(value): { templating+: { list+: (if std.isArray(value) - then value - else [value]) } }, - list+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Ref to a DataSource instance' } }, - withDatasource(value): { datasource: value }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Ref to a DataSource instance' } }, - withDatasourceMixin(value): { datasource+: value }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The plugin type-id' } }, - withType(value): { datasource+: { type: value } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specific datasource instance' } }, - withUid(value): { datasource+: { uid: value } }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withDescription(value): { description: value }, - '#withError': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withError(value): { 'error': value }, - '#withErrorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withErrorMixin(value): { 'error'+: value }, - '#withGlobal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withGlobal(value=true): { global: value }, - '#withHide': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: 'integer' }], help: '' } }, - withHide(value): { hide: value }, - '#withId': { 'function': { args: [{ default: '00000000-0000-0000-0000-000000000000', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value='00000000-0000-0000-0000-000000000000'): { id: value }, - '#withIndex': { 'function': { args: [{ default: -1, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withIndex(value=-1): { index: value }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLabel(value): { label: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, - withQuery(value): { query: value }, - '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, - withQueryMixin(value): { query+: value }, - '#withRootStateKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRootStateKey(value): { rootStateKey: value }, - '#withSkipUrlSync': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSkipUrlSync(value=true): { skipUrlSync: value }, - '#withState': { 'function': { args: [{ default: null, enums: ['NotStarted', 'Loading', 'Streaming', 'Done', 'Error'], name: 'value', type: 'string' }], help: '' } }, - withState(value): { state: value }, - '#withType': { 'function': { args: [{ default: null, enums: ['query', 'adhoc', 'constant', 'datasource', 'interval', 'textbox', 'custom', 'system'], name: 'value', type: 'string' }], help: 'FROM: packages/grafana-data/src/types/templateVars.ts\nTODO docs\nTODO this implies some wider pattern/discriminated union, probably?' } }, - withType(value): { type: value }, - }, - }, - '#withTime': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Time range for dashboard, e.g. last 6 hours, last 7 days, etc' } }, - withTime(value): { time: value }, - '#withTimeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Time range for dashboard, e.g. last 6 hours, last 7 days, etc' } }, - withTimeMixin(value): { time+: value }, - time+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: 'string' }], help: '' } }, - withFrom(value='now-6h'): { time+: { from: value } }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: 'string' }], help: '' } }, - withTo(value='now'): { time+: { to: value } }, - }, - '#withTimepicker': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs\nTODO this appears to be spread all over in the frontend. Concepts will likely need tidying in tandem with schema changes' } }, - withTimepicker(value): { timepicker: value }, - '#withTimepickerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs\nTODO this appears to be spread all over in the frontend. Concepts will likely need tidying in tandem with schema changes' } }, - withTimepickerMixin(value): { timepicker+: value }, - timepicker+: - { - '#withCollapse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is collapsed or not.' } }, - withCollapse(value=true): { timepicker+: { collapse: value } }, - '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is enabled or not.' } }, - withEnable(value=true): { timepicker+: { enable: value } }, - '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether timepicker is visible or not.' } }, - withHidden(value=true): { timepicker+: { hidden: value } }, - '#withRefreshIntervals': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: 'array' }], help: 'Selectable intervals for auto-refresh.' } }, - withRefreshIntervals(value): { timepicker+: { refresh_intervals: (if std.isArray(value) - then value - else [value]) } }, - '#withRefreshIntervalsMixin': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: 'array' }], help: 'Selectable intervals for auto-refresh.' } }, - withRefreshIntervalsMixin(value): { timepicker+: { refresh_intervals+: (if std.isArray(value) - then value - else [value]) } }, - '#withTimeOptions': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTimeOptions(value): { timepicker+: { time_options: (if std.isArray(value) - then value - else [value]) } }, - '#withTimeOptionsMixin': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTimeOptionsMixin(value): { timepicker+: { time_options+: (if std.isArray(value) - then value - else [value]) } }, - }, - '#withTimezone': { 'function': { args: [{ default: 'browser', enums: null, name: 'value', type: 'string' }], help: 'Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc".' } }, - withTimezone(value='browser'): { timezone: value }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Title of dashboard.' } }, - withTitle(value): { title: value }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique dashboard identifier that can be generated by anyone. string (8-40)' } }, - withUid(value): { uid: value }, - '#withVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Version of the dashboard, incremented each time the dashboard is updated.' } }, - withVersion(value): { version: value }, - '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withWeekStart(value): { weekStart: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet deleted file mode 100644 index f3e4255..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet +++ /dev/null @@ -1,65 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.librarypanel', name: 'librarypanel' }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Panel description' } }, - withDescription(value): { description: value }, - '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Folder UID' } }, - withFolderUid(value): { folderUid: value }, - '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMeta(value): { meta: value }, - '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMetaMixin(value): { meta+: value }, - meta+: - { - '#withConnectedDashboards': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withConnectedDashboards(value): { meta+: { connectedDashboards: value } }, - '#withCreated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withCreated(value): { meta+: { created: value } }, - '#withCreatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCreatedBy(value): { meta+: { createdBy: value } }, - '#withCreatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCreatedByMixin(value): { meta+: { createdBy+: value } }, - createdBy+: - { - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAvatarUrl(value): { meta+: { createdBy+: { avatarUrl: value } } }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withId(value): { meta+: { createdBy+: { id: value } } }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { meta+: { createdBy+: { name: value } } }, - }, - '#withFolderName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFolderName(value): { meta+: { folderName: value } }, - '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFolderUid(value): { meta+: { folderUid: value } }, - '#withUpdated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUpdated(value): { meta+: { updated: value } }, - '#withUpdatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withUpdatedBy(value): { meta+: { updatedBy: value } }, - '#withUpdatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withUpdatedByMixin(value): { meta+: { updatedBy+: value } }, - updatedBy+: - { - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAvatarUrl(value): { meta+: { updatedBy+: { avatarUrl: value } } }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withId(value): { meta+: { updatedBy+: { id: value } } }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { meta+: { updatedBy+: { name: value } } }, - }, - }, - '#withModel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: "TODO: should be the same panel schema defined in dashboard\nTypescript: Omit;" } }, - withModel(value): { model: value }, - '#withModelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: "TODO: should be the same panel schema defined in dashboard\nTypescript: Omit;" } }, - withModelMixin(value): { model+: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Panel name (also saved in the model)' } }, - withName(value): { name: value }, - '#withSchemaVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Dashboard version when this was saved (zero if unknown)' } }, - withSchemaVersion(value): { schemaVersion: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The panel type (from inside the model)' } }, - withType(value): { type: value }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Library element UID' } }, - withUid(value): { uid: value }, - '#withVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'panel version, incremented each time the dashboard is updated.' } }, - withVersion(value): { version: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet deleted file mode 100644 index fd5cb72..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet +++ /dev/null @@ -1,407 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel', name: 'panel' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'The datasource used in all targets.' } }, - withDatasource(value): { datasource: value }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'The datasource used in all targets.' } }, - withDatasourceMixin(value): { datasource+: value }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { datasource+: { type: value } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUid(value): { datasource+: { uid: value } }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Description.' } }, - withDescription(value): { description: value }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfig(value): { fieldConfig: value }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfigMixin(value): { fieldConfig+: value }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaults(value): { fieldConfig+: { defaults: value } }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, - defaults+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withColor(value): { fieldConfig+: { defaults+: { color: value } } }, - '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withColorMixin(value): { fieldConfig+: { defaults+: { color+: value } } }, - color+: - { - '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Stores the fixed color value if mode is fixed' } }, - withFixedColor(value): { fieldConfig+: { defaults+: { color+: { fixedColor: value } } } }, - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The main color scheme mode' } }, - withMode(value): { fieldConfig+: { defaults+: { color+: { mode: value } } } }, - '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSeriesBy(value): { fieldConfig+: { defaults+: { color+: { seriesBy: value } } } }, - }, - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'custom is specified by the PanelFieldConfig field\nin panel plugin schemas.' } }, - withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'custom is specified by the PanelFieldConfig field\nin panel plugin schemas.' } }, - withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Significant digits (for display)' } }, - withDecimals(value): { fieldConfig+: { defaults+: { decimals: value } } }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Human readable field metadata' } }, - withDescription(value): { fieldConfig+: { defaults+: { description: value } } }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The display value for this field. This supports template variables blank is auto' } }, - withDisplayName(value): { fieldConfig+: { defaults+: { displayName: value } } }, - '#withDisplayNameFromDS': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'This can be used by data sources that return and explicit naming structure for values and labels\nWhen this property is configured, this value is used rather than the default naming strategy.' } }, - withDisplayNameFromDS(value): { fieldConfig+: { defaults+: { displayNameFromDS: value } } }, - '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'True if data source field supports ad-hoc filters' } }, - withFilterable(value=true): { fieldConfig+: { defaults+: { filterable: value } } }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The behavior when clicking on a result' } }, - withLinks(value): { fieldConfig+: { defaults+: { links: (if std.isArray(value) - then value - else [value]) } } }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The behavior when clicking on a result' } }, - withLinksMixin(value): { fieldConfig+: { defaults+: { links+: (if std.isArray(value) - then value - else [value]) } } }, - '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Convert input values into a display string' } }, - withMappings(value): { fieldConfig+: { defaults+: { mappings: (if std.isArray(value) - then value - else [value]) } } }, - '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Convert input values into a display string' } }, - withMappingsMixin(value): { fieldConfig+: { defaults+: { mappings+: (if std.isArray(value) - then value - else [value]) } } }, - mappings+: - { - ValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - RangeMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'to and from are `number | null` in current ts, really not sure what to do' } }, - withFrom(value): { options+: { from: value } }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResult(value): { options+: { result: value } }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResultMixin(value): { options+: { result+: value } }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withColor(value): { options+: { result+: { color: value } } }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { options+: { result+: { icon: value } } }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withIndex(value): { options+: { result+: { index: value } } }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withText(value): { options+: { result+: { text: value } } }, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withTo(value): { options+: { to: value } }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - RegexMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPattern(value): { options+: { pattern: value } }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResult(value): { options+: { result: value } }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResultMixin(value): { options+: { result+: value } }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withColor(value): { options+: { result+: { color: value } } }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { options+: { result+: { icon: value } } }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withIndex(value): { options+: { result+: { index: value } } }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withText(value): { options+: { result+: { text: value } } }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - SpecialValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false'], name: 'value', type: 'string' }], help: '' } }, - withMatch(value): { options+: { match: value } }, - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPattern(value): { options+: { pattern: value } }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResult(value): { options+: { result: value } }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withResultMixin(value): { options+: { result+: value } }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withColor(value): { options+: { result+: { color: value } } }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { options+: { result+: { icon: value } } }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withIndex(value): { options+: { result+: { index: value } } }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withText(value): { options+: { result+: { text: value } } }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMax(value): { fieldConfig+: { defaults+: { max: value } } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMin(value): { fieldConfig+: { defaults+: { min: value } } }, - '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Alternative to empty string' } }, - withNoValue(value): { fieldConfig+: { defaults+: { noValue: value } } }, - '#withPath': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'An explicit path to the field in the datasource. When the frame meta includes a path,\nThis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used to update the results' } }, - withPath(value): { fieldConfig+: { defaults+: { path: value } } }, - '#withThresholds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withThresholds(value): { fieldConfig+: { defaults+: { thresholds: value } } }, - '#withThresholdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withThresholdsMixin(value): { fieldConfig+: { defaults+: { thresholds+: value } } }, - thresholds+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { fieldConfig+: { defaults+: { thresholds+: { mode: value } } } }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withSteps(value): { fieldConfig+: { defaults+: { thresholds+: { steps: (if std.isArray(value) - then value - else [value]) } } } }, - '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withStepsMixin(value): { fieldConfig+: { defaults+: { thresholds+: { steps+: (if std.isArray(value) - then value - else [value]) } } } }, - steps+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs' } }, - withColor(value): { color: value }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Threshold index, an old property that is not needed an should only appear in older dashboards' } }, - withIndex(value): { index: value }, - '#withState': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO are the values here enumerable into a disjunction?\nSome seem to be listed in typescript comment' } }, - withState(value): { state: value }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'TODO docs\nFIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON' } }, - withValue(value): { value: value }, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Numeric Options' } }, - withUnit(value): { fieldConfig+: { defaults+: { unit: value } } }, - '#withWriteable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'True if data source can write a value to the path. Auth/authz are supported separately' } }, - withWriteable(value=true): { fieldConfig+: { defaults+: { writeable: value } } }, - }, - '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withOverrides(value): { fieldConfig+: { overrides: (if std.isArray(value) - then value - else [value]) } }, - '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withOverridesMixin(value): { fieldConfig+: { overrides+: (if std.isArray(value) - then value - else [value]) } }, - overrides+: - { - '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMatcher(value): { matcher: value }, - '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMatcherMixin(value): { matcher+: value }, - matcher+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value=''): { matcher+: { id: value } }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withOptions(value): { matcher+: { options: value } }, - }, - '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withProperties(value): { properties: (if std.isArray(value) - then value - else [value]) }, - '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPropertiesMixin(value): { properties+: (if std.isArray(value) - then value - else [value]) }, - properties+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value=''): { id: value }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withValue(value): { value: value }, - }, - }, - }, - '#withGridPos': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withGridPos(value): { gridPos: value }, - '#withGridPosMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withGridPosMixin(value): { gridPos+: value }, - gridPos+: - { - '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, - withH(value=9): { gridPos+: { h: value } }, - '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if fixed' } }, - withStatic(value=true): { gridPos+: { static: value } }, - '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, - withW(value=12): { gridPos+: { w: value } }, - '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel x' } }, - withX(value=0): { gridPos+: { x: value } }, - '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel y' } }, - withY(value=0): { gridPos+: { y: value } }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'TODO docs' } }, - withId(value): { id: value }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, - withInterval(value): { interval: value }, - '#withLibraryPanel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLibraryPanel(value): { libraryPanel: value }, - '#withLibraryPanelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLibraryPanelMixin(value): { libraryPanel+: value }, - libraryPanel+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { libraryPanel+: { name: value } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUid(value): { libraryPanel+: { uid: value } }, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, - withLinks(value): { links: (if std.isArray(value) - then value - else [value]) }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, - withLinksMixin(value): { links+: (if std.isArray(value) - then value - else [value]) }, - links+: - { - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsDropdown(value=true): { asDropdown: value }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withIcon(value): { icon: value }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIncludeVars(value=true): { includeVars: value }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withKeepTime(value=true): { keepTime: value }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTags(value): { tags: (if std.isArray(value) - then value - else [value]) }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTagsMixin(value): { tags+: (if std.isArray(value) - then value - else [value]) }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTargetBlank(value=true): { targetBlank: value }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTitle(value): { title: value }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTooltip(value): { tooltip: value }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { type: value }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUrl(value): { url: value }, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'TODO docs' } }, - withMaxDataPoints(value): { maxDataPoints: value }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'options is specified by the PanelOptions field in panel\nplugin schemas.' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'options is specified by the PanelOptions field in panel\nplugin schemas.' } }, - withOptionsMixin(value): { options+: value }, - '#withPluginVersion': { 'function': { args: [], help: '' } }, - withPluginVersion(): { pluginVersion: 'v10.0.0' }, - '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of template variable to repeat for.' } }, - withRepeat(value): { repeat: value }, - '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: 'string' }], help: "Direction to repeat in if 'repeat' is set.\n\"h\" for horizontal, \"v\" for vertical.\nTODO this is probably optional" } }, - withRepeatDirection(value='h'): { repeatDirection: value }, - '#withRepeatPanelId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Id of the repeating panel.' } }, - withRepeatPanelId(value): { repeatPanelId: value }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTags(value): { tags: (if std.isArray(value) - then value - else [value]) }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTagsMixin(value): { tags+: (if std.isArray(value) - then value - else [value]) }, - '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTargets(value): { targets: (if std.isArray(value) - then value - else [value]) }, - '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTargetsMixin(value): { targets+: (if std.isArray(value) - then value - else [value]) }, - '#withThresholds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs - seems to be an old field from old dashboard alerts?' } }, - withThresholds(value): { thresholds: (if std.isArray(value) - then value - else [value]) }, - '#withThresholdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs - seems to be an old field from old dashboard alerts?' } }, - withThresholdsMixin(value): { thresholds+: (if std.isArray(value) - then value - else [value]) }, - '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, - withTimeFrom(value): { timeFrom: value }, - '#withTimeRegions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTimeRegions(value): { timeRegions: (if std.isArray(value) - then value - else [value]) }, - '#withTimeRegionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'TODO docs' } }, - withTimeRegionsMixin(value): { timeRegions+: (if std.isArray(value) - then value - else [value]) }, - '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TODO docs\nTODO tighter constraint' } }, - withTimeShift(value): { timeShift: value }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Panel title.' } }, - withTitle(value): { title: value }, - '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTransformations(value): { transformations: (if std.isArray(value) - then value - else [value]) }, - '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTransformationsMixin(value): { transformations+: (if std.isArray(value) - then value - else [value]) }, - transformations+: - { - '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Disabled transformations are skipped' } }, - withDisabled(value=true): { disabled: value }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFilter(value): { filter: value }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFilterMixin(value): { filter+: value }, - filter+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value=''): { filter+: { id: value } }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withOptions(value): { filter+: { options: value } }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique identifier of transformer' } }, - withId(value): { id: value }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, - withOptions(value): { options: value }, - }, - '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Whether to display the panel without a background.' } }, - withTransparent(value=true): { transparent: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The panel plugin type id. May not be empty.' } }, - withType(value): { type: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet deleted file mode 100644 index bbf840b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet +++ /dev/null @@ -1,19 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.alertGroups', name: 'alertGroups' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withAlertmanager': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the alertmanager used as a source for alerts' } }, - withAlertmanager(value): { options+: { alertmanager: value } }, - '#withExpandAll': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Expand all alert groups by default' } }, - withExpandAll(value=true): { options+: { expandAll: value } }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Comma-separated list of values used to filter alert results' } }, - withLabels(value): { options+: { labels: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'alertGroups' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet deleted file mode 100644 index d88a367..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet +++ /dev/null @@ -1,39 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.annotationsList', name: 'annotationsList' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withLimit': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLimit(value=10): { options+: { limit: value } }, - '#withNavigateAfter': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: 'string' }], help: '' } }, - withNavigateAfter(value='10m'): { options+: { navigateAfter: value } }, - '#withNavigateBefore': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: 'string' }], help: '' } }, - withNavigateBefore(value='10m'): { options+: { navigateBefore: value } }, - '#withNavigateToPanel': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withNavigateToPanel(value=true): { options+: { navigateToPanel: value } }, - '#withOnlyFromThisDashboard': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withOnlyFromThisDashboard(value=true): { options+: { onlyFromThisDashboard: value } }, - '#withOnlyInTimeRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withOnlyInTimeRange(value=true): { options+: { onlyInTimeRange: value } }, - '#withShowTags': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowTags(value=true): { options+: { showTags: value } }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowTime(value=true): { options+: { showTime: value } }, - '#withShowUser': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowUser(value=true): { options+: { showUser: value } }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTags(value): { options+: { tags: (if std.isArray(value) - then value - else [value]) } }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTagsMixin(value): { options+: { tags+: (if std.isArray(value) - then value - else [value]) } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'annolist' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet deleted file mode 100644 index 5163d5f..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet +++ /dev/null @@ -1,168 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.barChart', name: 'barChart' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfig(value): { fieldConfig: value }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfigMixin(value): { fieldConfig+: value }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaults(value): { fieldConfig+: { defaults: value } }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, - custom+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: 'integer' }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, - withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withBarRadius': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'number' }], help: 'Controls the radius of each bar.' } }, - withBarRadius(value=0): { options+: { barRadius: value } }, - '#withBarWidth': { 'function': { args: [{ default: 0.96999999999999997, enums: null, name: 'value', type: 'number' }], help: 'Controls the width of bars. 1 = Max width, 0 = Min width.' } }, - withBarWidth(value=0.96999999999999997): { options+: { barWidth: value } }, - '#withColorByField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Use the color value for a sibling field to color each bar value.' } }, - withColorByField(value): { options+: { colorByField: value } }, - '#withFullHighlight': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Enables mode which highlights the entire bar area and shows tooltip when cursor\nhovers over highlighted area' } }, - withFullHighlight(value=true): { options+: { fullHighlight: value } }, - '#withGroupWidth': { 'function': { args: [{ default: 0.69999999999999996, enums: null, name: 'value', type: 'number' }], help: 'Controls the width of groups. 1 = max with, 0 = min width.' } }, - withGroupWidth(value=0.69999999999999996): { options+: { groupWidth: value } }, - '#withOrientation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the orientation of the bar chart, either vertical or horizontal.' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'This controls whether values are shown on top or to the left of bars.' } }, - withShowValue(value): { options+: { showValue: value } }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls whether bars are stacked or not, either normally or in percent mode.' } }, - withStacking(value): { options+: { stacking: value } }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Manually select which field from the dataset to represent the x field.' } }, - withXField(value): { options+: { xField: value } }, - '#withXTickLabelMaxLength': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Sets the max length that a label can have before it is truncated.' } }, - withXTickLabelMaxLength(value): { options+: { xTickLabelMaxLength: value } }, - '#withXTickLabelRotation': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Controls the rotation of the x axis labels.' } }, - withXTickLabelRotation(value=0): { options+: { xTickLabelRotation: value } }, - '#withXTickLabelSpacing': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Controls the spacing between x axis labels.\nnegative values indicate backwards skipping behavior' } }, - withXTickLabelSpacing(value=0): { options+: { xTickLabelSpacing: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'barchart' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet deleted file mode 100644 index 094ec96..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet +++ /dev/null @@ -1,57 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.barGauge', name: 'barGauge' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptions(value): { options+: { reduceOptions: value } }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { options+: { reduceOptions+: { fields: value } } }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, - withLimit(value): { options+: { reduceOptions+: { limit: value } } }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, - withValues(value=true): { options+: { reduceOptions+: { values: value } } }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['basic', 'lcd', 'gradient'], name: 'value', type: 'string' }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, - withDisplayMode(value): { options+: { displayMode: value } }, - '#withMinVizHeight': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMinVizHeight(value=10): { options+: { minVizHeight: value } }, - '#withMinVizWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMinVizWidth(value=0): { options+: { minVizWidth: value } }, - '#withShowUnfilled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowUnfilled(value=true): { options+: { showUnfilled: value } }, - '#withValueMode': { 'function': { args: [{ default: null, enums: ['color', 'text', 'hidden'], name: 'value', type: 'string' }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, - withValueMode(value): { options+: { valueMode: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'bargauge' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet deleted file mode 100644 index 5a06bc0..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet +++ /dev/null @@ -1,6 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.candlestick', name: 'candlestick' }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'candlestick' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet deleted file mode 100644 index 48e4eca..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet +++ /dev/null @@ -1,6 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.canvas', name: 'canvas' }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'canvas' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet deleted file mode 100644 index 55afdd9..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet +++ /dev/null @@ -1,39 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.dashboardList', name: 'dashboardList' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withFolderId(value): { options+: { folderId: value } }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIncludeVars(value=true): { options+: { includeVars: value } }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withKeepTime(value=true): { options+: { keepTime: value } }, - '#withMaxItems': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMaxItems(value=10): { options+: { maxItems: value } }, - '#withQuery': { 'function': { args: [{ default: '', enums: null, name: 'value', type: 'string' }], help: '' } }, - withQuery(value=''): { options+: { query: value } }, - '#withShowHeadings': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowHeadings(value=true): { options+: { showHeadings: value } }, - '#withShowRecentlyViewed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowRecentlyViewed(value=true): { options+: { showRecentlyViewed: value } }, - '#withShowSearch': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowSearch(value=true): { options+: { showSearch: value } }, - '#withShowStarred': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowStarred(value=true): { options+: { showStarred: value } }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTags(value): { options+: { tags: (if std.isArray(value) - then value - else [value]) } }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTagsMixin(value): { options+: { tags+: (if std.isArray(value) - then value - else [value]) } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'dashlist' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet deleted file mode 100644 index a7eeb44..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet +++ /dev/null @@ -1,15 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.datagrid', name: 'datagrid' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withSelectedSeries': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withSelectedSeries(value=0): { options+: { selectedSeries: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'datagrid' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet deleted file mode 100644 index b3f01fb..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet +++ /dev/null @@ -1,43 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.debug', name: 'debug' }, - '#withDebugMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: 'string' }], help: '' } }, - withDebugMode(value): { DebugMode: value }, - '#withUpdateConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withUpdateConfig(value): { UpdateConfig: value }, - '#withUpdateConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withUpdateConfigMixin(value): { UpdateConfig+: value }, - UpdateConfig+: - { - '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withDataChanged(value=true): { UpdateConfig+: { dataChanged: value } }, - '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withRender(value=true): { UpdateConfig+: { render: value } }, - '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSchemaChanged(value=true): { UpdateConfig+: { schemaChanged: value } }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withCounters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCounters(value): { options+: { counters: value } }, - '#withCountersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCountersMixin(value): { options+: { counters+: value } }, - counters+: - { - '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withDataChanged(value=true): { options+: { counters+: { dataChanged: value } } }, - '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withRender(value=true): { options+: { counters+: { render: value } } }, - '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSchemaChanged(value=true): { options+: { counters+: { schemaChanged: value } } }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { mode: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'debug' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet deleted file mode 100644 index 8a5d39a..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet +++ /dev/null @@ -1,51 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.gauge', name: 'gauge' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptions(value): { options+: { reduceOptions: value } }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { options+: { reduceOptions+: { fields: value } } }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, - withLimit(value): { options+: { reduceOptions+: { limit: value } } }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, - withValues(value=true): { options+: { reduceOptions+: { values: value } } }, - }, - '#withShowThresholdLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowThresholdLabels(value=true): { options+: { showThresholdLabels: value } }, - '#withShowThresholdMarkers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowThresholdMarkers(value=true): { options+: { showThresholdMarkers: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'gauge' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet deleted file mode 100644 index 838945e..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet +++ /dev/null @@ -1,215 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.geomap', name: 'geomap' }, - '#withControlsOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withControlsOptions(value): { ControlsOptions: value }, - '#withControlsOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withControlsOptionsMixin(value): { ControlsOptions+: value }, - ControlsOptions+: - { - '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'let the mouse wheel zoom' } }, - withMouseWheelZoom(value=true): { ControlsOptions+: { mouseWheelZoom: value } }, - '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Lower right' } }, - withShowAttribution(value=true): { ControlsOptions+: { showAttribution: value } }, - '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show debug' } }, - withShowDebug(value=true): { ControlsOptions+: { showDebug: value } }, - '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show measure' } }, - withShowMeasure(value=true): { ControlsOptions+: { showMeasure: value } }, - '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Scale options' } }, - withShowScale(value=true): { ControlsOptions+: { showScale: value } }, - '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Zoom (upper left)' } }, - withShowZoom(value=true): { ControlsOptions+: { showZoom: value } }, - }, - '#withMapCenterID': { 'function': { args: [{ default: null, enums: ['zero', 'coords', 'fit'], name: 'value', type: 'string' }], help: '' } }, - withMapCenterID(value): { MapCenterID: value }, - '#withMapViewConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMapViewConfig(value): { MapViewConfig: value }, - '#withMapViewConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMapViewConfigMixin(value): { MapViewConfig+: value }, - MapViewConfig+: - { - '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAllLayers(value=true): { MapViewConfig+: { allLayers: value } }, - '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value='zero'): { MapViewConfig+: { id: value } }, - '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLastOnly(value=true): { MapViewConfig+: { lastOnly: value } }, - '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLat(value=0): { MapViewConfig+: { lat: value } }, - '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLayer(value): { MapViewConfig+: { layer: value } }, - '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLon(value=0): { MapViewConfig+: { lon: value } }, - '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMaxZoom(value): { MapViewConfig+: { maxZoom: value } }, - '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMinZoom(value): { MapViewConfig+: { minZoom: value } }, - '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withPadding(value): { MapViewConfig+: { padding: value } }, - '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShared(value=true): { MapViewConfig+: { shared: value } }, - '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withZoom(value=1): { MapViewConfig+: { zoom: value } }, - }, - '#withTooltipMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: 'string' }], help: '' } }, - withTooltipMode(value): { TooltipMode: value }, - '#withTooltipOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withTooltipOptions(value): { TooltipOptions: value }, - '#withTooltipOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withTooltipOptionsMixin(value): { TooltipOptions+: value }, - TooltipOptions+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { TooltipOptions+: { mode: value } }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withBasemap': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withBasemap(value): { options+: { basemap: value } }, - '#withBasemapMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withBasemapMixin(value): { options+: { basemap+: value } }, - basemap+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Custom options depending on the type' } }, - withConfig(value): { options+: { basemap+: { config: value } } }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { options+: { basemap+: { filterData: value } } }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLocation(value): { options+: { basemap+: { location: value } } }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLocationMixin(value): { options+: { basemap+: { location+: value } } }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { options+: { basemap+: { location+: { gazetteer: value } } } }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field mappings' } }, - withGeohash(value): { options+: { basemap+: { location+: { geohash: value } } } }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLatitude(value): { options+: { basemap+: { location+: { latitude: value } } } }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLongitude(value): { options+: { basemap+: { location+: { longitude: value } } } }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLookup(value): { options+: { basemap+: { location+: { lookup: value } } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { basemap+: { location+: { mode: value } } } }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withWkt(value): { options+: { basemap+: { location+: { wkt: value } } } }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'configured unique display name' } }, - withName(value): { options+: { basemap+: { name: value } } }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { options+: { basemap+: { opacity: value } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { options+: { basemap+: { tooltip: value } } }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { options+: { basemap+: { type: value } } }, - }, - '#withControls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withControls(value): { options+: { controls: value } }, - '#withControlsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withControlsMixin(value): { options+: { controls+: value } }, - controls+: - { - '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'let the mouse wheel zoom' } }, - withMouseWheelZoom(value=true): { options+: { controls+: { mouseWheelZoom: value } } }, - '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Lower right' } }, - withShowAttribution(value=true): { options+: { controls+: { showAttribution: value } } }, - '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show debug' } }, - withShowDebug(value=true): { options+: { controls+: { showDebug: value } } }, - '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Show measure' } }, - withShowMeasure(value=true): { options+: { controls+: { showMeasure: value } } }, - '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Scale options' } }, - withShowScale(value=true): { options+: { controls+: { showScale: value } } }, - '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Zoom (upper left)' } }, - withShowZoom(value=true): { options+: { controls+: { showZoom: value } } }, - }, - '#withLayers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withLayers(value): { options+: { layers: (if std.isArray(value) - then value - else [value]) } }, - '#withLayersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withLayersMixin(value): { options+: { layers+: (if std.isArray(value) - then value - else [value]) } }, - layers+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Custom options depending on the type' } }, - withConfig(value): { config: value }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { filterData: value }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLocation(value): { location: value }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLocationMixin(value): { location+: value }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { location+: { gazetteer: value } }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field mappings' } }, - withGeohash(value): { location+: { geohash: value } }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLatitude(value): { location+: { latitude: value } }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLongitude(value): { location+: { longitude: value } }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLookup(value): { location+: { lookup: value } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { location+: { mode: value } }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withWkt(value): { location+: { wkt: value } }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'configured unique display name' } }, - withName(value): { name: value }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { opacity: value }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { tooltip: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - }, - '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withView(value): { options+: { view: value } }, - '#withViewMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withViewMixin(value): { options+: { view+: value } }, - view+: - { - '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAllLayers(value=true): { options+: { view+: { allLayers: value } } }, - '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value='zero'): { options+: { view+: { id: value } } }, - '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLastOnly(value=true): { options+: { view+: { lastOnly: value } } }, - '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLat(value=0): { options+: { view+: { lat: value } } }, - '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLayer(value): { options+: { view+: { layer: value } } }, - '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLon(value=0): { options+: { view+: { lon: value } } }, - '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMaxZoom(value): { options+: { view+: { maxZoom: value } } }, - '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withMinZoom(value): { options+: { view+: { minZoom: value } } }, - '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withPadding(value): { options+: { view+: { padding: value } } }, - '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShared(value=true): { options+: { view+: { shared: value } } }, - '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withZoom(value=1): { options+: { view+: { zoom: value } } }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'geomap' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet deleted file mode 100644 index 89dceaf..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet +++ /dev/null @@ -1,414 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.heatmap', name: 'heatmap' }, - '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, - withCellValues(value): { CellValues: value }, - '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, - withCellValuesMixin(value): { CellValues+: value }, - CellValues+: - { - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for cell values' } }, - withDecimals(value): { CellValues+: { decimals: value } }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the cell value unit' } }, - withUnit(value): { CellValues+: { unit: value } }, - }, - '#withExemplarConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, - withExemplarConfig(value): { ExemplarConfig: value }, - '#withExemplarConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, - withExemplarConfigMixin(value): { ExemplarConfig+: value }, - ExemplarConfig+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the color of the exemplar markers' } }, - withColor(value): { ExemplarConfig+: { color: value } }, - }, - '#withFilterValueRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, - withFilterValueRange(value): { FilterValueRange: value }, - '#withFilterValueRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, - withFilterValueRangeMixin(value): { FilterValueRange+: value }, - FilterValueRange+: - { - '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values greater than or equal to the given value' } }, - withGe(value): { FilterValueRange+: { ge: value } }, - '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values less than or equal to the given value' } }, - withLe(value): { FilterValueRange+: { le: value } }, - }, - '#withHeatmapColorMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: 'string' }], help: 'Controls the color mode of the heatmap' } }, - withHeatmapColorMode(value): { HeatmapColorMode: value }, - '#withHeatmapColorOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, - withHeatmapColorOptions(value): { HeatmapColorOptions: value }, - '#withHeatmapColorOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, - withHeatmapColorOptionsMixin(value): { HeatmapColorOptions+: value }, - HeatmapColorOptions+: - { - '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the exponent when scale is set to exponential' } }, - withExponent(value): { HeatmapColorOptions+: { exponent: value } }, - '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color fill when in opacity mode' } }, - withFill(value): { HeatmapColorOptions+: { fill: value } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the color scale' } }, - withMax(value): { HeatmapColorOptions+: { max: value } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the color scale' } }, - withMin(value): { HeatmapColorOptions+: { min: value } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: 'string' }], help: 'Controls the color mode of the heatmap' } }, - withMode(value): { HeatmapColorOptions+: { mode: value } }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the color scheme' } }, - withReverse(value=true): { HeatmapColorOptions+: { reverse: value } }, - '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: 'string' }], help: 'Controls the color scale of the heatmap' } }, - withScale(value): { HeatmapColorOptions+: { scale: value } }, - '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color scheme used' } }, - withScheme(value): { HeatmapColorOptions+: { scheme: value } }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Controls the number of color steps' } }, - withSteps(value): { HeatmapColorOptions+: { steps: value } }, - }, - '#withHeatmapColorScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: 'string' }], help: 'Controls the color scale of the heatmap' } }, - withHeatmapColorScale(value): { HeatmapColorScale: value }, - '#withHeatmapLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, - withHeatmapLegend(value): { HeatmapLegend: value }, - '#withHeatmapLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, - withHeatmapLegendMixin(value): { HeatmapLegend+: value }, - HeatmapLegend+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the legend is shown' } }, - withShow(value=true): { HeatmapLegend+: { show: value } }, - }, - '#withHeatmapTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, - withHeatmapTooltip(value): { HeatmapTooltip: value }, - '#withHeatmapTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, - withHeatmapTooltipMixin(value): { HeatmapTooltip+: value }, - HeatmapTooltip+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip is shown' } }, - withShow(value=true): { HeatmapTooltip+: { show: value } }, - '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, - withYHistogram(value=true): { HeatmapTooltip+: { yHistogram: value } }, - }, - '#withRowsHeatmapOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, - withRowsHeatmapOptions(value): { RowsHeatmapOptions: value }, - '#withRowsHeatmapOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, - withRowsHeatmapOptionsMixin(value): { RowsHeatmapOptions+: value }, - RowsHeatmapOptions+: - { - '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: 'string' }], help: '' } }, - withLayout(value): { RowsHeatmapOptions+: { layout: value } }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the name of the cell when not calculating from data' } }, - withValue(value): { RowsHeatmapOptions+: { value: value } }, - }, - '#withYAxisConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, - withYAxisConfig(value): { YAxisConfig: value }, - '#withYAxisConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, - withYAxisConfigMixin(value): { YAxisConfig+: value }, - YAxisConfig+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { YAxisConfig+: { axisCenteredZero: value } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { YAxisConfig+: { axisColorMode: value } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { YAxisConfig+: { axisGridShow: value } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { YAxisConfig+: { axisLabel: value } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { YAxisConfig+: { axisPlacement: value } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { YAxisConfig+: { axisSoftMax: value } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { YAxisConfig+: { axisSoftMin: value } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { YAxisConfig+: { axisWidth: value } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { YAxisConfig+: { scaleDistribution: value } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { YAxisConfig+: { scaleDistribution+: value } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { YAxisConfig+: { scaleDistribution+: { linearThreshold: value } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { YAxisConfig+: { scaleDistribution+: { log: value } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { YAxisConfig+: { scaleDistribution+: { type: value } } }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for yAxis values' } }, - withDecimals(value): { YAxisConfig+: { decimals: value } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the yAxis' } }, - withMax(value): { YAxisConfig+: { max: value } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the yAxis' } }, - withMin(value): { YAxisConfig+: { min: value } }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the yAxis' } }, - withReverse(value=true): { YAxisConfig+: { reverse: value } }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the yAxis unit' } }, - withUnit(value): { YAxisConfig+: { unit: value } }, - }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfig(value): { fieldConfig: value }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfigMixin(value): { fieldConfig+: value }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaults(value): { fieldConfig+: { defaults: value } }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withCalculate': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the heatmap should be calculated from data' } }, - withCalculate(value=true): { options+: { calculate: value } }, - '#withCalculation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCalculation(value): { options+: { calculation: value } }, - '#withCalculationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCalculationMixin(value): { options+: { calculation+: value } }, - calculation+: - { - '#withXBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withXBuckets(value): { options+: { calculation+: { xBuckets: value } } }, - '#withXBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withXBucketsMixin(value): { options+: { calculation+: { xBuckets+: value } } }, - xBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { calculation+: { xBuckets+: { mode: value } } } }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScale(value): { options+: { calculation+: { xBuckets+: { scale: value } } } }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleMixin(value): { options+: { calculation+: { xBuckets+: { scale+: value } } } }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { options+: { calculation+: { xBuckets+: { scale+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { options+: { calculation+: { xBuckets+: { scale+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { options+: { calculation+: { xBuckets+: { scale+: { type: value } } } } }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { options+: { calculation+: { xBuckets+: { value: value } } } }, - }, - '#withYBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withYBuckets(value): { options+: { calculation+: { yBuckets: value } } }, - '#withYBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withYBucketsMixin(value): { options+: { calculation+: { yBuckets+: value } } }, - yBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { calculation+: { yBuckets+: { mode: value } } } }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScale(value): { options+: { calculation+: { yBuckets+: { scale: value } } } }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleMixin(value): { options+: { calculation+: { yBuckets+: { scale+: value } } } }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { options+: { calculation+: { yBuckets+: { scale+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { options+: { calculation+: { yBuckets+: { scale+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { options+: { calculation+: { yBuckets+: { scale+: { type: value } } } } }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { options+: { calculation+: { yBuckets+: { value: value } } } }, - }, - }, - '#withCellGap': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls gap between cells' } }, - withCellGap(value=1): { options+: { cellGap: value } }, - '#withCellRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls cell radius' } }, - withCellRadius(value): { options+: { cellRadius: value } }, - '#withCellValues': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value unit' } }, - withCellValues(value={}): { options+: { cellValues: value } }, - '#withCellValuesMixin': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value unit' } }, - withCellValuesMixin(value): { options+: { cellValues+: value } }, - cellValues+: - { - '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, - withCellValues(value): { options+: { cellValues+: { CellValues: value } } }, - '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls cell value options' } }, - withCellValuesMixin(value): { options+: { cellValues+: { CellValues+: value } } }, - CellValues+: - { - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for cell values' } }, - withDecimals(value): { options+: { cellValues+: { decimals: value } } }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the cell value unit' } }, - withUnit(value): { options+: { cellValues+: { unit: value } } }, - }, - }, - '#withColor': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: 'object' }], help: 'Controls the color options' } }, - withColor(value={ exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }): { options+: { color: value } }, - '#withColorMixin': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: 'object' }], help: 'Controls the color options' } }, - withColorMixin(value): { options+: { color+: value } }, - color+: - { - '#withHeatmapColorOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, - withHeatmapColorOptions(value): { options+: { color+: { HeatmapColorOptions: value } } }, - '#withHeatmapColorOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls various color options' } }, - withHeatmapColorOptionsMixin(value): { options+: { color+: { HeatmapColorOptions+: value } } }, - HeatmapColorOptions+: - { - '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the exponent when scale is set to exponential' } }, - withExponent(value): { options+: { color+: { exponent: value } } }, - '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color fill when in opacity mode' } }, - withFill(value): { options+: { color+: { fill: value } } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the color scale' } }, - withMax(value): { options+: { color+: { max: value } } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the color scale' } }, - withMin(value): { options+: { color+: { min: value } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: 'string' }], help: 'Controls the color mode of the heatmap' } }, - withMode(value): { options+: { color+: { mode: value } } }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the color scheme' } }, - withReverse(value=true): { options+: { color+: { reverse: value } } }, - '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: 'string' }], help: 'Controls the color scale of the heatmap' } }, - withScale(value): { options+: { color+: { scale: value } } }, - '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the color scheme used' } }, - withScheme(value): { options+: { color+: { scheme: value } } }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Controls the number of color steps' } }, - withSteps(value): { options+: { color+: { steps: value } } }, - }, - }, - '#withExemplars': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, - withExemplars(value): { options+: { exemplars: value } }, - '#withExemplarsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls exemplar options' } }, - withExemplarsMixin(value): { options+: { exemplars+: value } }, - exemplars+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the color of the exemplar markers' } }, - withColor(value): { options+: { exemplars+: { color: value } } }, - }, - '#withFilterValues': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: 'object' }], help: 'Filters values between a given range' } }, - withFilterValues(value={ le: 1.0000000000000001e-09 }): { options+: { filterValues: value } }, - '#withFilterValuesMixin': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: 'object' }], help: 'Filters values between a given range' } }, - withFilterValuesMixin(value): { options+: { filterValues+: value } }, - filterValues+: - { - '#withFilterValueRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, - withFilterValueRange(value): { options+: { filterValues+: { FilterValueRange: value } } }, - '#withFilterValueRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls the value filter range' } }, - withFilterValueRangeMixin(value): { options+: { filterValues+: { FilterValueRange+: value } } }, - FilterValueRange+: - { - '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values greater than or equal to the given value' } }, - withGe(value): { options+: { filterValues+: { ge: value } } }, - '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the filter range to values less than or equal to the given value' } }, - withLe(value): { options+: { filterValues+: { le: value } } }, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls legend options' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the legend is shown' } }, - withShow(value=true): { options+: { legend+: { show: value } } }, - }, - '#withRowsFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, - withRowsFrame(value): { options+: { rowsFrame: value } }, - '#withRowsFrameMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls frame rows options' } }, - withRowsFrameMixin(value): { options+: { rowsFrame+: value } }, - rowsFrame+: - { - '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: 'string' }], help: '' } }, - withLayout(value): { options+: { rowsFrame+: { layout: value } } }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the name of the cell when not calculating from data' } }, - withValue(value): { options+: { rowsFrame+: { value: value } } }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '| *{\n\tlayout: ui.HeatmapCellLayout & "auto" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\n}\nControls the display of the value in the cell' } }, - withShowValue(value): { options+: { showValue: value } }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Controls tooltip options' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip is shown' } }, - withShow(value=true): { options+: { tooltip+: { show: value } } }, - '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, - withYHistogram(value=true): { options+: { tooltip+: { yHistogram: value } } }, - }, - '#withYAxis': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, - withYAxis(value): { options+: { yAxis: value } }, - '#withYAxisMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Configuration options for the yAxis' } }, - withYAxisMixin(value): { options+: { yAxis+: value } }, - yAxis+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { options+: { yAxis+: { axisCenteredZero: value } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { options+: { yAxis+: { axisColorMode: value } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { options+: { yAxis+: { axisGridShow: value } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { options+: { yAxis+: { axisLabel: value } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { options+: { yAxis+: { axisPlacement: value } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { options+: { yAxis+: { axisSoftMax: value } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { options+: { yAxis+: { axisSoftMin: value } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { options+: { yAxis+: { axisWidth: value } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { options+: { yAxis+: { scaleDistribution: value } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { options+: { yAxis+: { scaleDistribution+: value } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { options+: { yAxis+: { scaleDistribution+: { linearThreshold: value } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { options+: { yAxis+: { scaleDistribution+: { log: value } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { options+: { yAxis+: { scaleDistribution+: { type: value } } } }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Controls the number of decimals for yAxis values' } }, - withDecimals(value): { options+: { yAxis+: { decimals: value } } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the maximum value for the yAxis' } }, - withMax(value): { options+: { yAxis+: { max: value } } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Sets the minimum value for the yAxis' } }, - withMin(value): { options+: { yAxis+: { min: value } } }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Reverses the yAxis' } }, - withReverse(value=true): { options+: { yAxis+: { reverse: value } } }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the yAxis unit' } }, - withUnit(value): { options+: { yAxis+: { unit: value } } }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'heatmap' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet deleted file mode 100644 index 42215d6..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet +++ /dev/null @@ -1,130 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.histogram', name: 'histogram' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfig(value): { fieldConfig: value }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfigMixin(value): { fieldConfig+: value }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaults(value): { fieldConfig+: { defaults: value } }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, - custom+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: 'integer' }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, - withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withBucketOffset': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Offset buckets by this amount' } }, - withBucketOffset(value=0): { options+: { bucketOffset: value } }, - '#withBucketSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Size of each bucket' } }, - withBucketSize(value): { options+: { bucketSize: value } }, - '#withCombine': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Combines multiple series into a single histogram' } }, - withCombine(value=true): { options+: { combine: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'histogram' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet deleted file mode 100644 index e140795..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet +++ /dev/null @@ -1,29 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.logs', name: 'logs' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withDedupStrategy': { 'function': { args: [{ default: null, enums: ['none', 'exact', 'numbers', 'signature'], name: 'value', type: 'string' }], help: '' } }, - withDedupStrategy(value): { options+: { dedupStrategy: value } }, - '#withEnableLogDetails': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withEnableLogDetails(value=true): { options+: { enableLogDetails: value } }, - '#withPrettifyLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withPrettifyLogMessage(value=true): { options+: { prettifyLogMessage: value } }, - '#withShowCommonLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowCommonLabels(value=true): { options+: { showCommonLabels: value } }, - '#withShowLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLabels(value=true): { options+: { showLabels: value } }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowTime(value=true): { options+: { showTime: value } }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: ['Descending', 'Ascending'], name: 'value', type: 'string' }], help: '' } }, - withSortOrder(value): { options+: { sortOrder: value } }, - '#withWrapLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withWrapLogMessage(value=true): { options+: { wrapLogMessage: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'logs' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet deleted file mode 100644 index 34e5618..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet +++ /dev/null @@ -1,17 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.news', name: 'news' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withFeedUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'empty/missing will default to grafana blog' } }, - withFeedUrl(value): { options+: { feedUrl: value } }, - '#withShowImage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowImage(value=true): { options+: { showImage: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'news' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet deleted file mode 100644 index 402d35b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet +++ /dev/null @@ -1,98 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.nodeGraph', name: 'nodeGraph' }, - '#withArcOption': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withArcOption(value): { ArcOption: value }, - '#withArcOptionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withArcOptionMixin(value): { ArcOption+: value }, - ArcOption+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The color of the arc.' } }, - withColor(value): { ArcOption+: { color: value } }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, - withField(value): { ArcOption+: { field: value } }, - }, - '#withEdgeOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withEdgeOptions(value): { EdgeOptions: value }, - '#withEdgeOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withEdgeOptionsMixin(value): { EdgeOptions+: value }, - EdgeOptions+: - { - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { EdgeOptions+: { mainStatUnit: value } }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { EdgeOptions+: { secondaryStatUnit: value } }, - }, - '#withNodeOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withNodeOptions(value): { NodeOptions: value }, - '#withNodeOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withNodeOptionsMixin(value): { NodeOptions+: value }, - NodeOptions+: - { - '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcs(value): { NodeOptions+: { arcs: (if std.isArray(value) - then value - else [value]) } }, - '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcsMixin(value): { NodeOptions+: { arcs+: (if std.isArray(value) - then value - else [value]) } }, - arcs+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The color of the arc.' } }, - withColor(value): { color: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, - withField(value): { field: value }, - }, - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { NodeOptions+: { mainStatUnit: value } }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { NodeOptions+: { secondaryStatUnit: value } }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withEdges(value): { options+: { edges: value } }, - '#withEdgesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withEdgesMixin(value): { options+: { edges+: value } }, - edges+: - { - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { options+: { edges+: { mainStatUnit: value } } }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { options+: { edges+: { secondaryStatUnit: value } } }, - }, - '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withNodes(value): { options+: { nodes: value } }, - '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withNodesMixin(value): { options+: { nodes+: value } }, - nodes+: - { - '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcs(value): { options+: { nodes+: { arcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcsMixin(value): { options+: { nodes+: { arcs+: (if std.isArray(value) - then value - else [value]) } } }, - arcs+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The color of the arc.' } }, - withColor(value): { color: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, - withField(value): { field: value }, - }, - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { options+: { nodes+: { mainStatUnit: value } } }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { options+: { nodes+: { secondaryStatUnit: value } } }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'nodeGraph' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet deleted file mode 100644 index cb4be75..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet +++ /dev/null @@ -1,186 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.pieChart', name: 'pieChart' }, - '#withPieChartLabels': { 'function': { args: [{ default: null, enums: ['name', 'value', 'percent'], name: 'value', type: 'string' }], help: 'Select labels to display on the pie chart.\n - Name - The series or field name.\n - Percent - The percentage of the whole.\n - Value - The raw numerical value.' } }, - withPieChartLabels(value): { PieChartLabels: value }, - '#withPieChartLegendOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPieChartLegendOptions(value): { PieChartLegendOptions: value }, - '#withPieChartLegendOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPieChartLegendOptionsMixin(value): { PieChartLegendOptions+: value }, - PieChartLegendOptions+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { PieChartLegendOptions+: { asTable: value } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { PieChartLegendOptions+: { calcs: (if std.isArray(value) - then value - else [value]) } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { PieChartLegendOptions+: { calcs+: (if std.isArray(value) - then value - else [value]) } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { PieChartLegendOptions+: { displayMode: value } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { PieChartLegendOptions+: { isVisible: value } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { PieChartLegendOptions+: { placement: value } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { PieChartLegendOptions+: { showLegend: value } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { PieChartLegendOptions+: { sortBy: value } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { PieChartLegendOptions+: { sortDesc: value } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { PieChartLegendOptions+: { width: value } }, - '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withValues(value): { PieChartLegendOptions+: { values: (if std.isArray(value) - then value - else [value]) } }, - '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withValuesMixin(value): { PieChartLegendOptions+: { values+: (if std.isArray(value) - then value - else [value]) } }, - }, - '#withPieChartLegendValues': { 'function': { args: [{ default: null, enums: ['value', 'percent'], name: 'value', type: 'string' }], help: 'Select values to display in the legend.\n - Percent: The percentage of the whole.\n - Value: The raw numerical value.' } }, - withPieChartLegendValues(value): { PieChartLegendValues: value }, - '#withPieChartType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: 'string' }], help: 'Select the pie chart display style.' } }, - withPieChartType(value): { PieChartType: value }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfig(value): { fieldConfig: value }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfigMixin(value): { fieldConfig+: value }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaults(value): { fieldConfig+: { defaults: value } }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptions(value): { options+: { reduceOptions: value } }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { options+: { reduceOptions+: { fields: value } } }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, - withLimit(value): { options+: { reduceOptions+: { limit: value } } }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, - withValues(value=true): { options+: { reduceOptions+: { values: value } } }, - }, - '#withDisplayLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDisplayLabels(value): { options+: { displayLabels: (if std.isArray(value) - then value - else [value]) } }, - '#withDisplayLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDisplayLabelsMixin(value): { options+: { displayLabels+: (if std.isArray(value) - then value - else [value]) } }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withValues(value): { options+: { legend+: { values: (if std.isArray(value) - then value - else [value]) } } }, - '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withValuesMixin(value): { options+: { legend+: { values+: (if std.isArray(value) - then value - else [value]) } } }, - }, - '#withPieType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: 'string' }], help: 'Select the pie chart display style.' } }, - withPieType(value): { options+: { pieType: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'piechart' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet deleted file mode 100644 index 8855b79..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet +++ /dev/null @@ -1,51 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.row', name: 'row' }, - '#withCollapsed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withCollapsed(value=true): { collapsed: value }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Name of default datasource.' } }, - withDatasource(value): { datasource: value }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Name of default datasource.' } }, - withDatasourceMixin(value): { datasource+: value }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { datasource+: { type: value } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUid(value): { datasource+: { uid: value } }, - }, - '#withGridPos': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withGridPos(value): { gridPos: value }, - '#withGridPosMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withGridPosMixin(value): { gridPos+: value }, - gridPos+: - { - '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, - withH(value=9): { gridPos+: { h: value } }, - '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if fixed' } }, - withStatic(value=true): { gridPos+: { static: value } }, - '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: 'integer' }], help: 'Panel' } }, - withW(value=12): { gridPos+: { w: value } }, - '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel x' } }, - withX(value=0): { gridPos+: { x: value } }, - '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: 'Panel y' } }, - withY(value=0): { gridPos+: { y: value } }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withId(value): { id: value }, - '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPanels(value): { panels: (if std.isArray(value) - then value - else [value]) }, - '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPanelsMixin(value): { panels+: (if std.isArray(value) - then value - else [value]) }, - '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of template variable to repeat for.' } }, - withRepeat(value): { repeat: value }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTitle(value): { title: value }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'row' }, -} -+ (import '../../custom/row.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet deleted file mode 100644 index 5011674..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet +++ /dev/null @@ -1,55 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.stat', name: 'stat' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withText(value): { options+: { text: value } }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTextMixin(value): { options+: { text+: value } }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit title text size' } }, - withTitleSize(value): { options+: { text+: { titleSize: value } } }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'Explicit value text size' } }, - withValueSize(value): { options+: { text+: { valueSize: value } } }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withOrientation(value): { options+: { orientation: value } }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptions(value): { options+: { reduceOptions: value } }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { options+: { reduceOptions+: value } }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { options+: { reduceOptions+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { options+: { reduceOptions+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { options+: { reduceOptions+: { fields: value } } }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: 'if showing all values limit' } }, - withLimit(value): { options+: { reduceOptions+: { limit: value } } }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'If true show each row value' } }, - withValues(value=true): { options+: { reduceOptions+: { values: value } } }, - }, - '#withColorMode': { 'function': { args: [{ default: null, enums: ['value', 'background', 'background_solid', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withColorMode(value): { options+: { colorMode: value } }, - '#withGraphMode': { 'function': { args: [{ default: null, enums: ['none', 'line', 'area'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withGraphMode(value): { options+: { graphMode: value } }, - '#withJustifyMode': { 'function': { args: [{ default: null, enums: ['auto', 'center'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withJustifyMode(value): { options+: { justifyMode: value } }, - '#withTextMode': { 'function': { args: [{ default: null, enums: ['auto', 'value', 'value_and_name', 'name', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withTextMode(value): { options+: { textMode: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'stat' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet deleted file mode 100644 index 3fa3ca8..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet +++ /dev/null @@ -1,109 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.stateTimeline', name: 'stateTimeline' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfig(value): { fieldConfig: value }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfigMixin(value): { fieldConfig+: value }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaults(value): { fieldConfig+: { defaults: value } }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withFillOpacity(value=70): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withLineWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLineWidth(value=0): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezone(value): { options+: { timezone: (if std.isArray(value) - then value - else [value]) } }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) - then value - else [value]) } }, - '#withAlignValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls value alignment on the timelines' } }, - withAlignValue(value): { options+: { alignValue: value } }, - '#withMergeValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Merge equal consecutive values' } }, - withMergeValues(value=true): { options+: { mergeValues: value } }, - '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Controls the row height' } }, - withRowHeight(value=0.90000000000000002): { options+: { rowHeight: value } }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Show timeline values on chart' } }, - withShowValue(value): { options+: { showValue: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'state-timeline' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet deleted file mode 100644 index 2dbbf8a..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet +++ /dev/null @@ -1,107 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.statusHistory', name: 'statusHistory' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfig(value): { fieldConfig: value }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfigMixin(value): { fieldConfig+: value }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaults(value): { fieldConfig+: { defaults: value } }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withFillOpacity(value=70): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLineWidth(value=1): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezone(value): { options+: { timezone: (if std.isArray(value) - then value - else [value]) } }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) - then value - else [value]) } }, - '#withColWidth': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Controls the column width' } }, - withColWidth(value=0.90000000000000002): { options+: { colWidth: value } }, - '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: 'number' }], help: 'Set the height of the rows' } }, - withRowHeight(value=0.90000000000000002): { options+: { rowHeight: value } }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Show values on the columns' } }, - withShowValue(value): { options+: { showValue: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'status-history' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet deleted file mode 100644 index 19b9a19..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet +++ /dev/null @@ -1,72 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.table', name: 'table' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withCellHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Controls the height of the rows' } }, - withCellHeight(value): { options+: { cellHeight: value } }, - '#withFooter': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: 'object' }], help: 'Controls footer options' } }, - withFooter(value={ countRows: false, reducer: [], show: false }): { options+: { footer: value } }, - '#withFooterMixin': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: 'object' }], help: 'Controls footer options' } }, - withFooterMixin(value): { options+: { footer+: value } }, - footer+: - { - '#withTableFooterOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Footer options' } }, - withTableFooterOptions(value): { options+: { footer+: { TableFooterOptions: value } } }, - '#withTableFooterOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Footer options' } }, - withTableFooterOptionsMixin(value): { options+: { footer+: { TableFooterOptions+: value } } }, - TableFooterOptions+: - { - '#withCountRows': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withCountRows(value=true): { options+: { footer+: { countRows: value } } }, - '#withEnablePagination': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withEnablePagination(value=true): { options+: { footer+: { enablePagination: value } } }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFields(value): { options+: { footer+: { fields: (if std.isArray(value) - then value - else [value]) } } }, - '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFieldsMixin(value): { options+: { footer+: { fields+: (if std.isArray(value) - then value - else [value]) } } }, - '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withReducer(value): { options+: { footer+: { reducer: (if std.isArray(value) - then value - else [value]) } } }, - '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withReducerMixin(value): { options+: { footer+: { reducer+: (if std.isArray(value) - then value - else [value]) } } }, - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShow(value=true): { options+: { footer+: { show: value } } }, - }, - }, - '#withFrameIndex': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: 'number' }], help: 'Represents the index of the selected frame' } }, - withFrameIndex(value=0): { options+: { frameIndex: value } }, - '#withShowHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls whether the panel should show the header' } }, - withShowHeader(value=true): { options+: { showHeader: value } }, - '#withShowTypeIcons': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Controls whether the header should show icons for the column types' } }, - withShowTypeIcons(value=true): { options+: { showTypeIcons: value } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Used to control row sorting' } }, - withSortBy(value): { options+: { sortBy: (if std.isArray(value) - then value - else [value]) } }, - '#withSortByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Used to control row sorting' } }, - withSortByMixin(value): { options+: { sortBy+: (if std.isArray(value) - then value - else [value]) } }, - sortBy+: - { - '#withDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag used to indicate descending sort order' } }, - withDesc(value=true): { desc: value }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Sets the display name of the field to sort by' } }, - withDisplayName(value): { displayName: value }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'table' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet deleted file mode 100644 index 9e2dffb..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet +++ /dev/null @@ -1,47 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.text', name: 'text' }, - '#withCodeLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: 'string' }], help: '' } }, - withCodeLanguage(value='plaintext'): { CodeLanguage: value }, - '#withCodeOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCodeOptions(value): { CodeOptions: value }, - '#withCodeOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCodeOptionsMixin(value): { CodeOptions+: value }, - CodeOptions+: - { - '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: 'string' }], help: '' } }, - withLanguage(value='plaintext'): { CodeOptions+: { language: value } }, - '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLineNumbers(value=true): { CodeOptions+: { showLineNumbers: value } }, - '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowMiniMap(value=true): { CodeOptions+: { showMiniMap: value } }, - }, - '#withTextMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: 'string' }], help: '' } }, - withTextMode(value): { TextMode: value }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withCode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCode(value): { options+: { code: value } }, - '#withCodeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withCodeMixin(value): { options+: { code+: value } }, - code+: - { - '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: 'string' }], help: '' } }, - withLanguage(value='plaintext'): { options+: { code+: { language: value } } }, - '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLineNumbers(value=true): { options+: { code+: { showLineNumbers: value } } }, - '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowMiniMap(value=true): { options+: { code+: { showMiniMap: value } } }, - }, - '#withContent': { 'function': { args: [{ default: '# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)', enums: null, name: 'value', type: 'string' }], help: '' } }, - withContent(value='# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)'): { options+: { content: value } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { options+: { mode: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'text' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet deleted file mode 100644 index 25f726b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet +++ /dev/null @@ -1,199 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.timeSeries', name: 'timeSeries' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfig(value): { fieldConfig: value }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfigMixin(value): { fieldConfig+: value }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaults(value): { fieldConfig+: { defaults: value } }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, - custom+: - { - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLineColor(value): { fieldConfig+: { defaults+: { custom+: { lineColor: value } } } }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withLineInterpolation(value): { fieldConfig+: { defaults+: { custom+: { lineInterpolation: value } } } }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyle(value): { fieldConfig+: { defaults+: { custom+: { lineStyle: value } } } }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: value } } } }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDash(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash: (if std.isArray(value) - then value - else [value]) } } } } }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDashMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash+: (if std.isArray(value) - then value - else [value]) } } } } }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, - withFill(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { fill: value } } } } }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLineWidth(value): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { fieldConfig+: { defaults+: { custom+: { spanNulls: value } } } }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { fieldConfig+: { defaults+: { custom+: { spanNulls+: value } } } }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFillBelowTo(value): { fieldConfig+: { defaults+: { custom+: { fillBelowTo: value } } } }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFillColor(value): { fieldConfig+: { defaults+: { custom+: { fillColor: value } } } }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withFillOpacity(value): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPointColor(value): { fieldConfig+: { defaults+: { custom+: { pointColor: value } } } }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withPointSize(value): { fieldConfig+: { defaults+: { custom+: { pointSize: value } } } }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPointSymbol(value): { fieldConfig+: { defaults+: { custom+: { pointSymbol: value } } } }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withShowPoints(value): { fieldConfig+: { defaults+: { custom+: { showPoints: value } } } }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: 'integer' }], help: 'TODO docs' } }, - withBarAlignment(value): { fieldConfig+: { defaults+: { custom+: { barAlignment: value } } } }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withBarMaxWidth(value): { fieldConfig+: { defaults+: { custom+: { barMaxWidth: value } } } }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withBarWidthFactor(value): { fieldConfig+: { defaults+: { custom+: { barWidthFactor: value } } } }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withStacking(value): { fieldConfig+: { defaults+: { custom+: { stacking: value } } } }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withStackingMixin(value): { fieldConfig+: { defaults+: { custom+: { stacking+: value } } } }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withGroup(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { group: value } } } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { mode: value } } } } }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withDrawStyle(value): { fieldConfig+: { defaults+: { custom+: { drawStyle: value } } } }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withTransform(value): { fieldConfig+: { defaults+: { custom+: { transform: value } } } }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezone(value): { options+: { timezone: (if std.isArray(value) - then value - else [value]) } }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withTimezoneMixin(value): { options+: { timezone+: (if std.isArray(value) - then value - else [value]) } }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'timeseries' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet deleted file mode 100644 index d9c32f5..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet +++ /dev/null @@ -1,193 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.trend', name: 'trend' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfig(value): { fieldConfig: value }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withFieldConfigMixin(value): { fieldConfig+: value }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaults(value): { fieldConfig+: { defaults: value } }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDefaultsMixin(value): { fieldConfig+: { defaults+: value } }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withCustom(value): { fieldConfig+: { defaults+: { custom: value } } }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withCustomMixin(value): { fieldConfig+: { defaults+: { custom+: value } } }, - custom+: - { - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLineColor(value): { fieldConfig+: { defaults+: { custom+: { lineColor: value } } } }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withLineInterpolation(value): { fieldConfig+: { defaults+: { custom+: { lineInterpolation: value } } } }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyle(value): { fieldConfig+: { defaults+: { custom+: { lineStyle: value } } } }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: value } } } }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDash(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash: (if std.isArray(value) - then value - else [value]) } } } } }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDashMixin(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { dash+: (if std.isArray(value) - then value - else [value]) } } } } }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, - withFill(value): { fieldConfig+: { defaults+: { custom+: { lineStyle+: { fill: value } } } } }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLineWidth(value): { fieldConfig+: { defaults+: { custom+: { lineWidth: value } } } }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { fieldConfig+: { defaults+: { custom+: { spanNulls: value } } } }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { fieldConfig+: { defaults+: { custom+: { spanNulls+: value } } } }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFillBelowTo(value): { fieldConfig+: { defaults+: { custom+: { fillBelowTo: value } } } }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFillColor(value): { fieldConfig+: { defaults+: { custom+: { fillColor: value } } } }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withFillOpacity(value): { fieldConfig+: { defaults+: { custom+: { fillOpacity: value } } } }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPointColor(value): { fieldConfig+: { defaults+: { custom+: { pointColor: value } } } }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withPointSize(value): { fieldConfig+: { defaults+: { custom+: { pointSize: value } } } }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPointSymbol(value): { fieldConfig+: { defaults+: { custom+: { pointSymbol: value } } } }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withShowPoints(value): { fieldConfig+: { defaults+: { custom+: { showPoints: value } } } }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { fieldConfig+: { defaults+: { custom+: { axisCenteredZero: value } } } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { fieldConfig+: { defaults+: { custom+: { axisColorMode: value } } } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { fieldConfig+: { defaults+: { custom+: { axisGridShow: value } } } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { fieldConfig+: { defaults+: { custom+: { axisLabel: value } } } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { fieldConfig+: { defaults+: { custom+: { axisPlacement: value } } } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMax: value } } } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { fieldConfig+: { defaults+: { custom+: { axisSoftMin: value } } } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { fieldConfig+: { defaults+: { custom+: { axisWidth: value } } } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution: value } } } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: value } } } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { linearThreshold: value } } } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { log: value } } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { fieldConfig+: { defaults+: { custom+: { scaleDistribution+: { type: value } } } } }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: 'integer' }], help: 'TODO docs' } }, - withBarAlignment(value): { fieldConfig+: { defaults+: { custom+: { barAlignment: value } } } }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withBarMaxWidth(value): { fieldConfig+: { defaults+: { custom+: { barMaxWidth: value } } } }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withBarWidthFactor(value): { fieldConfig+: { defaults+: { custom+: { barWidthFactor: value } } } }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withStacking(value): { fieldConfig+: { defaults+: { custom+: { stacking: value } } } }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withStackingMixin(value): { fieldConfig+: { defaults+: { custom+: { stacking+: value } } } }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withGroup(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { group: value } } } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { stacking+: { mode: value } } } } }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { fieldConfig+: { defaults+: { custom+: { hideFrom: value } } } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { fieldConfig+: { defaults+: { custom+: { hideFrom+: value } } } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { legend: value } } } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { tooltip: value } } } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { fieldConfig+: { defaults+: { custom+: { hideFrom+: { viz: value } } } } }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withDrawStyle(value): { fieldConfig+: { defaults+: { custom+: { drawStyle: value } } } }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withGradientMode(value): { fieldConfig+: { defaults+: { custom+: { gradientMode: value } } } }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyle(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle: value } } } }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: value } } } }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { fieldConfig+: { defaults+: { custom+: { thresholdsStyle+: { mode: value } } } } }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withTransform(value): { fieldConfig+: { defaults+: { custom+: { transform: value } } } }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Identical to timeseries... except it does not have timezone settings' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Identical to timeseries... except it does not have timezone settings' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the x field to use (defaults to first number)' } }, - withXField(value): { options+: { xField: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'trend' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet deleted file mode 100644 index 98bfc58..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet +++ /dev/null @@ -1,487 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.xyChart', name: 'xyChart' }, - '#withScatterFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withScatterFieldConfig(value): { ScatterFieldConfig: value }, - '#withScatterFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withScatterFieldConfigMixin(value): { ScatterFieldConfig+: value }, - ScatterFieldConfig+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { ScatterFieldConfig+: { hideFrom: value } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { ScatterFieldConfig+: { hideFrom+: value } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { ScatterFieldConfig+: { hideFrom+: { legend: value } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { ScatterFieldConfig+: { hideFrom+: { tooltip: value } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { ScatterFieldConfig+: { hideFrom+: { viz: value } } }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { ScatterFieldConfig+: { axisCenteredZero: value } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { ScatterFieldConfig+: { axisColorMode: value } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { ScatterFieldConfig+: { axisGridShow: value } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { ScatterFieldConfig+: { axisLabel: value } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { ScatterFieldConfig+: { axisPlacement: value } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { ScatterFieldConfig+: { axisSoftMax: value } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { ScatterFieldConfig+: { axisSoftMin: value } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { ScatterFieldConfig+: { axisWidth: value } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { ScatterFieldConfig+: { scaleDistribution: value } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { ScatterFieldConfig+: { scaleDistribution+: value } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { ScatterFieldConfig+: { scaleDistribution+: { linearThreshold: value } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { ScatterFieldConfig+: { scaleDistribution+: { log: value } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { ScatterFieldConfig+: { scaleDistribution+: { type: value } } }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withLabel(value): { ScatterFieldConfig+: { label: value } }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLabelValue(value): { ScatterFieldConfig+: { labelValue: value } }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLabelValueMixin(value): { ScatterFieldConfig+: { labelValue+: value } }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { ScatterFieldConfig+: { labelValue+: { field: value } } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { ScatterFieldConfig+: { labelValue+: { fixed: value } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { ScatterFieldConfig+: { labelValue+: { mode: value } } }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLineColor(value): { ScatterFieldConfig+: { lineColor: value } }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLineColorMixin(value): { ScatterFieldConfig+: { lineColor+: value } }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { ScatterFieldConfig+: { lineColor+: { field: value } } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { ScatterFieldConfig+: { lineColor+: { fixed: value } } }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyle(value): { ScatterFieldConfig+: { lineStyle: value } }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyleMixin(value): { ScatterFieldConfig+: { lineStyle+: value } }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDash(value): { ScatterFieldConfig+: { lineStyle+: { dash: (if std.isArray(value) - then value - else [value]) } } }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDashMixin(value): { ScatterFieldConfig+: { lineStyle+: { dash+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, - withFill(value): { ScatterFieldConfig+: { lineStyle+: { fill: value } } }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLineWidth(value): { ScatterFieldConfig+: { lineWidth: value } }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointColor(value): { ScatterFieldConfig+: { pointColor: value } }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointColorMixin(value): { ScatterFieldConfig+: { pointColor+: value } }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { ScatterFieldConfig+: { pointColor+: { field: value } } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { ScatterFieldConfig+: { pointColor+: { fixed: value } } }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointSize(value): { ScatterFieldConfig+: { pointSize: value } }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointSizeMixin(value): { ScatterFieldConfig+: { pointSize+: value } }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { ScatterFieldConfig+: { pointSize+: { field: value } } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withFixed(value): { ScatterFieldConfig+: { pointSize+: { fixed: value } } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMax(value): { ScatterFieldConfig+: { pointSize+: { max: value } } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMin(value): { ScatterFieldConfig+: { pointSize+: { min: value } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { ScatterFieldConfig+: { pointSize+: { mode: value } } }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, - withShow(value): { ScatterFieldConfig+: { show: value } }, - }, - '#withScatterSeriesConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withScatterSeriesConfig(value): { ScatterSeriesConfig: value }, - '#withScatterSeriesConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withScatterSeriesConfigMixin(value): { ScatterSeriesConfig+: value }, - ScatterSeriesConfig+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { ScatterSeriesConfig+: { hideFrom: value } }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { ScatterSeriesConfig+: { hideFrom+: value } }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { ScatterSeriesConfig+: { hideFrom+: { legend: value } } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { ScatterSeriesConfig+: { hideFrom+: { tooltip: value } } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { ScatterSeriesConfig+: { hideFrom+: { viz: value } } }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { ScatterSeriesConfig+: { axisCenteredZero: value } }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { ScatterSeriesConfig+: { axisColorMode: value } }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { ScatterSeriesConfig+: { axisGridShow: value } }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { ScatterSeriesConfig+: { axisLabel: value } }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { ScatterSeriesConfig+: { axisPlacement: value } }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { ScatterSeriesConfig+: { axisSoftMax: value } }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { ScatterSeriesConfig+: { axisSoftMin: value } }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { ScatterSeriesConfig+: { axisWidth: value } }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { ScatterSeriesConfig+: { scaleDistribution: value } }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { ScatterSeriesConfig+: { scaleDistribution+: value } }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { ScatterSeriesConfig+: { scaleDistribution+: { linearThreshold: value } } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { ScatterSeriesConfig+: { scaleDistribution+: { log: value } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { ScatterSeriesConfig+: { scaleDistribution+: { type: value } } }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withLabel(value): { ScatterSeriesConfig+: { label: value } }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLabelValue(value): { ScatterSeriesConfig+: { labelValue: value } }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLabelValueMixin(value): { ScatterSeriesConfig+: { labelValue+: value } }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { ScatterSeriesConfig+: { labelValue+: { field: value } } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { ScatterSeriesConfig+: { labelValue+: { fixed: value } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { ScatterSeriesConfig+: { labelValue+: { mode: value } } }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLineColor(value): { ScatterSeriesConfig+: { lineColor: value } }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLineColorMixin(value): { ScatterSeriesConfig+: { lineColor+: value } }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { ScatterSeriesConfig+: { lineColor+: { field: value } } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { ScatterSeriesConfig+: { lineColor+: { fixed: value } } }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyle(value): { ScatterSeriesConfig+: { lineStyle: value } }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyleMixin(value): { ScatterSeriesConfig+: { lineStyle+: value } }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDash(value): { ScatterSeriesConfig+: { lineStyle+: { dash: (if std.isArray(value) - then value - else [value]) } } }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDashMixin(value): { ScatterSeriesConfig+: { lineStyle+: { dash+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, - withFill(value): { ScatterSeriesConfig+: { lineStyle+: { fill: value } } }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLineWidth(value): { ScatterSeriesConfig+: { lineWidth: value } }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointColor(value): { ScatterSeriesConfig+: { pointColor: value } }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointColorMixin(value): { ScatterSeriesConfig+: { pointColor+: value } }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { ScatterSeriesConfig+: { pointColor+: { field: value } } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { ScatterSeriesConfig+: { pointColor+: { fixed: value } } }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointSize(value): { ScatterSeriesConfig+: { pointSize: value } }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointSizeMixin(value): { ScatterSeriesConfig+: { pointSize+: value } }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { ScatterSeriesConfig+: { pointSize+: { field: value } } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withFixed(value): { ScatterSeriesConfig+: { pointSize+: { fixed: value } } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMax(value): { ScatterSeriesConfig+: { pointSize+: { max: value } } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMin(value): { ScatterSeriesConfig+: { pointSize+: { min: value } } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { ScatterSeriesConfig+: { pointSize+: { mode: value } } }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, - withShow(value): { ScatterSeriesConfig+: { show: value } }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { ScatterSeriesConfig+: { name: value } }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withX(value): { ScatterSeriesConfig+: { x: value } }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withY(value): { ScatterSeriesConfig+: { y: value } }, - }, - '#withScatterShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, - withScatterShow(value): { ScatterShow: value }, - '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: 'string' }], help: '' } }, - withSeriesMapping(value): { SeriesMapping: value }, - '#withXYDimensionConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withXYDimensionConfig(value): { XYDimensionConfig: value }, - '#withXYDimensionConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withXYDimensionConfigMixin(value): { XYDimensionConfig+: value }, - XYDimensionConfig+: - { - '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExclude(value): { XYDimensionConfig+: { exclude: (if std.isArray(value) - then value - else [value]) } }, - '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExcludeMixin(value): { XYDimensionConfig+: { exclude+: (if std.isArray(value) - then value - else [value]) } }, - '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withFrame(value): { XYDimensionConfig+: { frame: value } }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withX(value): { XYDimensionConfig+: { x: value } }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptions(value): { options: value }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOptionsMixin(value): { options+: value }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegend(value): { options+: { legend: value } }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLegendMixin(value): { options+: { legend+: value } }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAsTable(value=true): { options+: { legend+: { asTable: value } } }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcs(value): { options+: { legend+: { calcs: (if std.isArray(value) - then value - else [value]) } } }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCalcsMixin(value): { options+: { legend+: { calcs+: (if std.isArray(value) - then value - else [value]) } } }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { options+: { legend+: { displayMode: value } } }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withIsVisible(value=true): { options+: { legend+: { isVisible: value } } }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withPlacement(value): { options+: { legend+: { placement: value } } }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withShowLegend(value=true): { options+: { legend+: { showLegend: value } } }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSortBy(value): { options+: { legend+: { sortBy: value } } }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withSortDesc(value=true): { options+: { legend+: { sortDesc: value } } }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withWidth(value): { options+: { legend+: { width: value } } }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltip(value): { options+: { tooltip: value } }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withTooltipMixin(value): { options+: { tooltip+: value } }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withMode(value): { options+: { tooltip+: { mode: value } } }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withSort(value): { options+: { tooltip+: { sort: value } } }, - }, - '#withDims': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDims(value): { options+: { dims: value } }, - '#withDimsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withDimsMixin(value): { options+: { dims+: value } }, - dims+: - { - '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExclude(value): { options+: { dims+: { exclude: (if std.isArray(value) - then value - else [value]) } } }, - '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExcludeMixin(value): { options+: { dims+: { exclude+: (if std.isArray(value) - then value - else [value]) } } }, - '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withFrame(value): { options+: { dims+: { frame: value } } }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withX(value): { options+: { dims+: { x: value } } }, - }, - '#withSeries': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withSeries(value): { options+: { series: (if std.isArray(value) - then value - else [value]) } }, - '#withSeriesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withSeriesMixin(value): { options+: { series+: (if std.isArray(value) - then value - else [value]) } }, - series+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFrom(value): { hideFrom: value }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withHideFromMixin(value): { hideFrom+: value }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLegend(value=true): { hideFrom+: { legend: value } }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withTooltip(value=true): { hideFrom+: { tooltip: value } }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withViz(value=true): { hideFrom+: { viz: value } }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisCenteredZero(value=true): { axisCenteredZero: value }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisColorMode(value): { axisColorMode: value }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withAxisGridShow(value=true): { axisGridShow: value }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAxisLabel(value): { axisLabel: value }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withAxisPlacement(value): { axisPlacement: value }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMax(value): { axisSoftMax: value }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisSoftMin(value): { axisSoftMin: value }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withAxisWidth(value): { axisWidth: value }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistribution(value): { scaleDistribution: value }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { scaleDistribution+: value }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLinearThreshold(value): { scaleDistribution+: { linearThreshold: value } }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withLog(value): { scaleDistribution+: { log: value } }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withType(value): { scaleDistribution+: { type: value } }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: 'string' }], help: 'TODO docs' } }, - withLabel(value): { label: value }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLabelValue(value): { labelValue: value }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLabelValueMixin(value): { labelValue+: value }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { labelValue+: { field: value } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { labelValue+: { fixed: value } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { labelValue+: { mode: value } }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLineColor(value): { lineColor: value }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withLineColorMixin(value): { lineColor+: value }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { lineColor+: { field: value } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { lineColor+: { fixed: value } }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyle(value): { lineStyle: value }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'TODO docs' } }, - withLineStyleMixin(value): { lineStyle+: value }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDash(value): { lineStyle+: { dash: (if std.isArray(value) - then value - else [value]) } }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withDashMixin(value): { lineStyle+: { dash+: (if std.isArray(value) - then value - else [value]) } }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: 'string' }], help: '' } }, - withFill(value): { lineStyle+: { fill: value } }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLineWidth(value): { lineWidth: value }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointColor(value): { pointColor: value }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointColorMixin(value): { pointColor+: value }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { pointColor+: { field: value } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFixed(value): { pointColor+: { fixed: value } }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointSize(value): { pointSize: value }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPointSizeMixin(value): { pointSize+: value }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { pointSize+: { field: value } }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withFixed(value): { pointSize+: { fixed: value } }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMax(value): { pointSize+: { max: value } }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withMin(value): { pointSize+: { min: value } }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: 'string' }], help: '' } }, - withMode(value): { pointSize+: { mode: value } }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: 'string' }], help: '' } }, - withShow(value): { show: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withX(value): { x: value }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withY(value): { y: value }, - }, - '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: 'string' }], help: '' } }, - withSeriesMapping(value): { options+: { seriesMapping: value } }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { type: 'xychart' }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet deleted file mode 100644 index 9baeece..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet +++ /dev/null @@ -1,27 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.playlist', name: 'playlist' }, - '#withInterval': { 'function': { args: [{ default: '5m', enums: null, name: 'value', type: 'string' }], help: 'Interval sets the time between switching views in a playlist.\nFIXME: Is this based on a standardized format or what options are available? Can datemath be used?' } }, - withInterval(value='5m'): { interval: value }, - '#withItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The ordered list of items that the playlist will iterate over.\nFIXME! This should not be optional, but changing it makes the godegen awkward' } }, - withItems(value): { items: (if std.isArray(value) - then value - else [value]) }, - '#withItemsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'The ordered list of items that the playlist will iterate over.\nFIXME! This should not be optional, but changing it makes the godegen awkward' } }, - withItemsMixin(value): { items+: (if std.isArray(value) - then value - else [value]) }, - items+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Title is an unused property -- it will be removed in the future' } }, - withTitle(value): { title: value }, - '#withType': { 'function': { args: [{ default: null, enums: ['dashboard_by_uid', 'dashboard_by_id', 'dashboard_by_tag'], name: 'value', type: 'string' }], help: 'Type of the item.' } }, - withType(value): { type: value }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Value depends on type and describes the playlist item.\n\n - dashboard_by_id: The value is an internal numerical identifier set by Grafana. This\n is not portable as the numerical identifier is non-deterministic between different instances.\n Will be replaced by dashboard_by_uid in the future. (deprecated)\n - dashboard_by_tag: The value is a tag which is set on any number of dashboards. All\n dashboards behind the tag will be added to the playlist.\n - dashboard_by_uid: The value is the dashboard UID' } }, - withValue(value): { value: value }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the playlist.' } }, - withName(value): { name: value }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique playlist identifier. Generated on creation, either by the\ncreator of the playlist of by the application.' } }, - withUid(value): { uid: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet deleted file mode 100644 index 5aeea39..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet +++ /dev/null @@ -1,23 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.preferences', name: 'preferences' }, - '#withHomeDashboardUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'UID for the home dashboard' } }, - withHomeDashboardUID(value): { homeDashboardUID: value }, - '#withLanguage': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Selected language (beta)' } }, - withLanguage(value): { language: value }, - '#withQueryHistory': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withQueryHistory(value): { queryHistory: value }, - '#withQueryHistoryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withQueryHistoryMixin(value): { queryHistory+: value }, - queryHistory+: - { - '#withHomeTab': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "one of: '' | 'query' | 'starred';" } }, - withHomeTab(value): { queryHistory+: { homeTab: value } }, - }, - '#withTheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'light, dark, empty is default' } }, - withTheme(value): { theme: value }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The timezone selection\nTODO: this should use the timezone defined in common' } }, - withTimezone(value): { timezone: value }, - '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'day of the week (sunday, monday, etc)' } }, - withWeekStart(value): { weekStart: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet deleted file mode 100644 index 4e3e1b6..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet +++ /dev/null @@ -1,16 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.publicdashboard', name: 'publicdashboard' }, - '#withAccessToken': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique public access token' } }, - withAccessToken(value): { accessToken: value }, - '#withAnnotationsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag that indicates if annotations are enabled' } }, - withAnnotationsEnabled(value=true): { annotationsEnabled: value }, - '#withDashboardUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Dashboard unique identifier referenced by this public dashboard' } }, - withDashboardUid(value): { dashboardUid: value }, - '#withIsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag that indicates if the public dashboard is enabled' } }, - withIsEnabled(value=true): { isEnabled: value }, - '#withTimeSelectionEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Flag that indicates if the time range picker is enabled' } }, - withTimeSelectionEnabled(value=true): { timeSelectionEnabled: value }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Unique public dashboard identifier' } }, - withUid(value): { uid: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet deleted file mode 100644 index 1c50962..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet +++ /dev/null @@ -1,360 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.azureMonitor', name: 'azureMonitor' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withAzureLogAnalytics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Azure Monitor Logs sub-query properties' } }, - withAzureLogAnalytics(value): { azureLogAnalytics: value }, - '#withAzureLogAnalyticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Azure Monitor Logs sub-query properties' } }, - withAzureLogAnalyticsMixin(value): { azureLogAnalytics+: value }, - azureLogAnalytics+: - { - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'KQL query to be executed.' } }, - withQuery(value): { azureLogAnalytics+: { query: value } }, - '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use resources instead' } }, - withResource(value): { azureLogAnalytics+: { resource: value } }, - '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, - withResources(value): { azureLogAnalytics+: { resources: (if std.isArray(value) - then value - else [value]) } }, - '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, - withResourcesMixin(value): { azureLogAnalytics+: { resources+: (if std.isArray(value) - then value - else [value]) } }, - '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace'], name: 'value', type: 'string' }], help: '' } }, - withResultFormat(value): { azureLogAnalytics+: { resultFormat: value } }, - '#withWorkspace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Workspace ID. This was removed in Grafana 8, but remains for backwards compat' } }, - withWorkspace(value): { azureLogAnalytics+: { workspace: value } }, - }, - '#withAzureMonitor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withAzureMonitor(value): { azureMonitor: value }, - '#withAzureMonitorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withAzureMonitorMixin(value): { azureMonitor+: value }, - azureMonitor+: - { - '#withAggregation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric.' } }, - withAggregation(value): { azureMonitor+: { aggregation: value } }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail.' } }, - withAlias(value): { azureMonitor+: { alias: value } }, - '#withAllowedTimeGrainsMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Time grains that are supported by the metric.' } }, - withAllowedTimeGrainsMs(value): { azureMonitor+: { allowedTimeGrainsMs: (if std.isArray(value) - then value - else [value]) } }, - '#withAllowedTimeGrainsMsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Time grains that are supported by the metric.' } }, - withAllowedTimeGrainsMsMixin(value): { azureMonitor+: { allowedTimeGrainsMs+: (if std.isArray(value) - then value - else [value]) } }, - '#withCustomNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "Used as the value for the metricNamespace property when it's different from the resource namespace." } }, - withCustomNamespace(value): { azureMonitor+: { customNamespace: value } }, - '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, - withDimension(value): { azureMonitor+: { dimension: value } }, - '#withDimensionFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, - withDimensionFilter(value): { azureMonitor+: { dimensionFilter: value } }, - '#withDimensionFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, - withDimensionFilters(value): { azureMonitor+: { dimensionFilters: (if std.isArray(value) - then value - else [value]) } }, - '#withDimensionFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, - withDimensionFiltersMixin(value): { azureMonitor+: { dimensionFilters+: (if std.isArray(value) - then value - else [value]) } }, - dimensionFilters+: - { - '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of Dimension to be filtered on.' } }, - withDimension(value): { dimension: value }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated filter is deprecated in favour of filters to support multiselect.' } }, - withFilter(value): { filter: value }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Values to match with the filter.' } }, - withFilters(value): { filters: (if std.isArray(value) - then value - else [value]) }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Values to match with the filter.' } }, - withFiltersMixin(value): { filters+: (if std.isArray(value) - then value - else [value]) }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators." } }, - withOperator(value): { operator: value }, - }, - '#withMetricDefinition': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use metricNamespace instead' } }, - withMetricDefinition(value): { azureMonitor+: { metricDefinition: value } }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The metric to query data for within the specified metricNamespace. e.g. UsedCapacity' } }, - withMetricName(value): { azureMonitor+: { metricName: value } }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "metricNamespace is used as the resource type (or resource namespace).\nIt's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts\nKept the name of the variable as metricNamespace to avoid backward incompatibility issues." } }, - withMetricNamespace(value): { azureMonitor+: { metricNamespace: value } }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The Azure region containing the resource(s).' } }, - withRegion(value): { azureMonitor+: { region: value } }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use resources instead' } }, - withResourceGroup(value): { azureMonitor+: { resourceGroup: value } }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use resources instead' } }, - withResourceName(value): { azureMonitor+: { resourceName: value } }, - '#withResourceUri': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated Use resourceGroup, resourceName and metricNamespace instead' } }, - withResourceUri(value): { azureMonitor+: { resourceUri: value } }, - '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, - withResources(value): { azureMonitor+: { resources: (if std.isArray(value) - then value - else [value]) } }, - '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, - withResourcesMixin(value): { azureMonitor+: { resources+: (if std.isArray(value) - then value - else [value]) } }, - resources+: - { - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMetricNamespace(value): { metricNamespace: value }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRegion(value): { region: value }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResourceGroup(value): { resourceGroup: value }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResourceName(value): { resourceName: value }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSubscription(value): { subscription: value }, - }, - '#withTimeGrain': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The granularity of data points to be queried. Defaults to auto.' } }, - withTimeGrain(value): { azureMonitor+: { timeGrain: value } }, - '#withTimeGrainUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '@deprecated' } }, - withTimeGrainUnit(value): { azureMonitor+: { timeGrainUnit: value } }, - '#withTop': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Maximum number of records to return. Defaults to 10.' } }, - withTop(value): { azureMonitor+: { top: value } }, - }, - '#withAzureResourceGraph': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withAzureResourceGraph(value): { azureResourceGraph: value }, - '#withAzureResourceGraphMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withAzureResourceGraphMixin(value): { azureResourceGraph+: value }, - azureResourceGraph+: - { - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Azure Resource Graph KQL query to be executed.' } }, - withQuery(value): { azureResourceGraph+: { query: value } }, - '#withResultFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specifies the format results should be returned as. Defaults to table.' } }, - withResultFormat(value): { azureResourceGraph+: { resultFormat: value } }, - }, - '#withAzureTraces': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Application Insights Traces sub-query properties' } }, - withAzureTraces(value): { azureTraces: value }, - '#withAzureTracesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'Application Insights Traces sub-query properties' } }, - withAzureTracesMixin(value): { azureTraces+: value }, - azureTraces+: - { - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Filters for property values.' } }, - withFilters(value): { azureTraces+: { filters: (if std.isArray(value) - then value - else [value]) } }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Filters for property values.' } }, - withFiltersMixin(value): { azureTraces+: { filters+: (if std.isArray(value) - then value - else [value]) } }, - filters+: - { - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Values to filter by.' } }, - withFilters(value): { filters: (if std.isArray(value) - then value - else [value]) }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Values to filter by.' } }, - withFiltersMixin(value): { filters+: (if std.isArray(value) - then value - else [value]) }, - '#withOperation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Comparison operator to use. Either equals or not equals.' } }, - withOperation(value): { operation: value }, - '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Property name, auto-populated based on available traces.' } }, - withProperty(value): { property: value }, - }, - '#withOperationId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Operation ID. Used only for Traces queries.' } }, - withOperationId(value): { azureTraces+: { operationId: value } }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'KQL query to be executed.' } }, - withQuery(value): { azureTraces+: { query: value } }, - '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, - withResources(value): { azureTraces+: { resources: (if std.isArray(value) - then value - else [value]) } }, - '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Array of resource URIs to be queried.' } }, - withResourcesMixin(value): { azureTraces+: { resources+: (if std.isArray(value) - then value - else [value]) } }, - '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace'], name: 'value', type: 'string' }], help: '' } }, - withResultFormat(value): { azureTraces+: { resultFormat: value } }, - '#withTraceTypes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Types of events to filter by.' } }, - withTraceTypes(value): { azureTraces+: { traceTypes: (if std.isArray(value) - then value - else [value]) } }, - '#withTraceTypesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Types of events to filter by.' } }, - withTraceTypesMixin(value): { azureTraces+: { traceTypes+: (if std.isArray(value) - then value - else [value]) } }, - }, - '#withGrafanaTemplateVariableFn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withGrafanaTemplateVariableFn(value): { grafanaTemplateVariableFn: value }, - '#withGrafanaTemplateVariableFnMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withGrafanaTemplateVariableFnMixin(value): { grafanaTemplateVariableFn+: value }, - grafanaTemplateVariableFn+: - { - '#withAppInsightsMetricNameQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withAppInsightsMetricNameQuery(value): { grafanaTemplateVariableFn+: { AppInsightsMetricNameQuery: value } }, - '#withAppInsightsMetricNameQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withAppInsightsMetricNameQueryMixin(value): { grafanaTemplateVariableFn+: { AppInsightsMetricNameQuery+: value } }, - AppInsightsMetricNameQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['AppInsightsMetricNameQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - }, - '#withAppInsightsGroupByQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withAppInsightsGroupByQuery(value): { grafanaTemplateVariableFn+: { AppInsightsGroupByQuery: value } }, - '#withAppInsightsGroupByQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withAppInsightsGroupByQueryMixin(value): { grafanaTemplateVariableFn+: { AppInsightsGroupByQuery+: value } }, - AppInsightsGroupByQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['AppInsightsGroupByQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMetricName(value): { grafanaTemplateVariableFn+: { metricName: value } }, - }, - '#withSubscriptionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSubscriptionsQuery(value): { grafanaTemplateVariableFn+: { SubscriptionsQuery: value } }, - '#withSubscriptionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSubscriptionsQueryMixin(value): { grafanaTemplateVariableFn+: { SubscriptionsQuery+: value } }, - SubscriptionsQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['SubscriptionsQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - }, - '#withResourceGroupsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withResourceGroupsQuery(value): { grafanaTemplateVariableFn+: { ResourceGroupsQuery: value } }, - '#withResourceGroupsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withResourceGroupsQueryMixin(value): { grafanaTemplateVariableFn+: { ResourceGroupsQuery+: value } }, - ResourceGroupsQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['ResourceGroupsQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, - }, - '#withResourceNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withResourceNamesQuery(value): { grafanaTemplateVariableFn+: { ResourceNamesQuery: value } }, - '#withResourceNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withResourceNamesQueryMixin(value): { grafanaTemplateVariableFn+: { ResourceNamesQuery+: value } }, - ResourceNamesQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['ResourceNamesQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMetricNamespace(value): { grafanaTemplateVariableFn+: { metricNamespace: value } }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResourceGroup(value): { grafanaTemplateVariableFn+: { resourceGroup: value } }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, - }, - '#withMetricNamespaceQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMetricNamespaceQuery(value): { grafanaTemplateVariableFn+: { MetricNamespaceQuery: value } }, - '#withMetricNamespaceQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMetricNamespaceQueryMixin(value): { grafanaTemplateVariableFn+: { MetricNamespaceQuery+: value } }, - MetricNamespaceQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['MetricNamespaceQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMetricNamespace(value): { grafanaTemplateVariableFn+: { metricNamespace: value } }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResourceGroup(value): { grafanaTemplateVariableFn+: { resourceGroup: value } }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResourceName(value): { grafanaTemplateVariableFn+: { resourceName: value } }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, - }, - '#withMetricDefinitionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '@deprecated Use MetricNamespaceQuery instead' } }, - withMetricDefinitionsQuery(value): { grafanaTemplateVariableFn+: { MetricDefinitionsQuery: value } }, - '#withMetricDefinitionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '@deprecated Use MetricNamespaceQuery instead' } }, - withMetricDefinitionsQueryMixin(value): { grafanaTemplateVariableFn+: { MetricDefinitionsQuery+: value } }, - MetricDefinitionsQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['MetricDefinitionsQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMetricNamespace(value): { grafanaTemplateVariableFn+: { metricNamespace: value } }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResourceGroup(value): { grafanaTemplateVariableFn+: { resourceGroup: value } }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResourceName(value): { grafanaTemplateVariableFn+: { resourceName: value } }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, - }, - '#withMetricNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMetricNamesQuery(value): { grafanaTemplateVariableFn+: { MetricNamesQuery: value } }, - '#withMetricNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMetricNamesQueryMixin(value): { grafanaTemplateVariableFn+: { MetricNamesQuery+: value } }, - MetricNamesQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['MetricNamesQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMetricNamespace(value): { grafanaTemplateVariableFn+: { metricNamespace: value } }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResourceGroup(value): { grafanaTemplateVariableFn+: { resourceGroup: value } }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResourceName(value): { grafanaTemplateVariableFn+: { resourceName: value } }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, - }, - '#withWorkspacesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withWorkspacesQuery(value): { grafanaTemplateVariableFn+: { WorkspacesQuery: value } }, - '#withWorkspacesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withWorkspacesQueryMixin(value): { grafanaTemplateVariableFn+: { WorkspacesQuery+: value } }, - WorkspacesQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['WorkspacesQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSubscription(value): { grafanaTemplateVariableFn+: { subscription: value } }, - }, - '#withUnknownQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withUnknownQuery(value): { grafanaTemplateVariableFn+: { UnknownQuery: value } }, - '#withUnknownQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withUnknownQueryMixin(value): { grafanaTemplateVariableFn+: { UnknownQuery+: value } }, - UnknownQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawQuery(value): { grafanaTemplateVariableFn+: { rawQuery: value } }, - '#withKind': { 'function': { args: [{ default: null, enums: ['UnknownQuery'], name: 'value', type: 'string' }], help: '' } }, - withKind(value): { grafanaTemplateVariableFn+: { kind: value } }, - }, - }, - '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withNamespace(value): { namespace: value }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Azure Monitor query type.\nqueryType: #AzureQueryType' } }, - withRegion(value): { region: value }, - '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withResource(value): { resource: value }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Template variables params. These exist for backwards compatiblity with legacy template variables.' } }, - withResourceGroup(value): { resourceGroup: value }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Azure subscription containing the resource(s) to be queried.' } }, - withSubscription(value): { subscription: value }, - '#withSubscriptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, - withSubscriptions(value): { subscriptions: (if std.isArray(value) - then value - else [value]) }, - '#withSubscriptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, - withSubscriptionsMixin(value): { subscriptions+: (if std.isArray(value) - then value - else [value]) }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet deleted file mode 100644 index 3afc305..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet +++ /dev/null @@ -1,306 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.cloudWatch', name: 'cloudWatch' }, - CloudWatchAnnotationQuery+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, - withAccountId(value): { accountId: value }, - '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensions(value): { dimensions: value }, - '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensionsMixin(value): { dimensions+: value }, - '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Only show metrics that exactly match all defined dimension names.' } }, - withMatchExact(value=true): { matchExact: value }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the metric' } }, - withMetricName(value): { metricName: value }, - '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, - withNamespace(value): { namespace: value }, - '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, - withPeriod(value): { period: value }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'AWS region to query for the metric' } }, - withRegion(value): { region: value }, - '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, - withStatistic(value): { statistic: value }, - '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use statistic' } }, - withStatistics(value): { statistics: (if std.isArray(value) - then value - else [value]) }, - '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use statistic' } }, - withStatisticsMixin(value): { statistics+: (if std.isArray(value) - then value - else [value]) }, - '#withActionPrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Use this parameter to filter the results of the operation to only those alarms\nthat use a certain alarm action. For example, you could specify the ARN of\nan SNS topic to find all alarms that send notifications to that topic.\ne.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action`\nbut not match `arn:aws:sns:us-east-1:123456789012:your-app-action`' } }, - withActionPrefix(value): { actionPrefix: value }, - '#withAlarmNamePrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'An alarm name prefix. If you specify this parameter, you receive information\nabout all alarms that have names that start with this prefix.\ne.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu`' } }, - withAlarmNamePrefix(value): { alarmNamePrefix: value }, - '#withPrefixMatching': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix' } }, - withPrefixMatching(value=true): { prefixMatching: value }, - '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: 'string' }], help: '' } }, - withQueryMode(value): { queryMode: value }, - }, - CloudWatchLogsQuery+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The CloudWatch Logs Insights query to execute' } }, - withExpression(value): { expression: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withLogGroupNames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use logGroups' } }, - withLogGroupNames(value): { logGroupNames: (if std.isArray(value) - then value - else [value]) }, - '#withLogGroupNamesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use logGroups' } }, - withLogGroupNamesMixin(value): { logGroupNames+: (if std.isArray(value) - then value - else [value]) }, - '#withLogGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Log groups to query' } }, - withLogGroups(value): { logGroups: (if std.isArray(value) - then value - else [value]) }, - '#withLogGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Log groups to query' } }, - withLogGroupsMixin(value): { logGroups+: (if std.isArray(value) - then value - else [value]) }, - logGroups+: - { - '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'AccountId of the log group' } }, - withAccountId(value): { accountId: value }, - '#withAccountLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Label of the log group' } }, - withAccountLabel(value): { accountLabel: value }, - '#withArn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'ARN of the log group' } }, - withArn(value): { arn: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the log group' } }, - withName(value): { name: value }, - }, - '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: 'string' }], help: '' } }, - withQueryMode(value): { queryMode: value }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'AWS region to query for the logs' } }, - withRegion(value): { region: value }, - '#withStatsGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, - withStatsGroups(value): { statsGroups: (if std.isArray(value) - then value - else [value]) }, - '#withStatsGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, - withStatsGroupsMixin(value): { statsGroups+: (if std.isArray(value) - then value - else [value]) }, - }, - CloudWatchMetricsQuery+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, - withAccountId(value): { accountId: value }, - '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensions(value): { dimensions: value }, - '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensionsMixin(value): { dimensions+: value }, - '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Only show metrics that exactly match all defined dimension names.' } }, - withMatchExact(value=true): { matchExact: value }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the metric' } }, - withMetricName(value): { metricName: value }, - '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, - withNamespace(value): { namespace: value }, - '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, - withPeriod(value): { period: value }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'AWS region to query for the metric' } }, - withRegion(value): { region: value }, - '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, - withStatistic(value): { statistic: value }, - '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use statistic' } }, - withStatistics(value): { statistics: (if std.isArray(value) - then value - else [value]) }, - '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '@deprecated use statistic' } }, - withStatisticsMixin(value): { statistics+: (if std.isArray(value) - then value - else [value]) }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Deprecated: use label\n@deprecated use label' } }, - withAlias(value): { alias: value }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Math expression query' } }, - withExpression(value): { expression: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter.' } }, - withId(value): { id: value }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details.' } }, - withLabel(value): { label: value }, - '#withMetricEditorMode': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: 'integer' }], help: '' } }, - withMetricEditorMode(value): { metricEditorMode: value }, - '#withMetricQueryType': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: 'integer' }], help: '' } }, - withMetricQueryType(value): { metricQueryType: value }, - '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: 'string' }], help: '' } }, - withQueryMode(value): { queryMode: value }, - '#withSql': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSql(value): { sql: value }, - '#withSqlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSqlMixin(value): { sql+: value }, - sql+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'FROM part of the SQL expression' } }, - withFrom(value): { sql+: { from: value } }, - '#withFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'FROM part of the SQL expression' } }, - withFromMixin(value): { sql+: { from+: value } }, - from+: - { - '#withQueryEditorPropertyExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withQueryEditorPropertyExpression(value): { sql+: { from+: { QueryEditorPropertyExpression: value } } }, - '#withQueryEditorPropertyExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withQueryEditorPropertyExpressionMixin(value): { sql+: { from+: { QueryEditorPropertyExpression+: value } } }, - QueryEditorPropertyExpression+: - { - '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withProperty(value): { sql+: { from+: { property: value } } }, - '#withPropertyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPropertyMixin(value): { sql+: { from+: { property+: value } } }, - property+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { sql+: { from+: { property+: { name: value } } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['string'], name: 'value', type: 'string' }], help: '' } }, - withType(value): { sql+: { from+: { property+: { type: value } } } }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { sql+: { from+: { type: value } } }, - }, - '#withQueryEditorFunctionExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withQueryEditorFunctionExpression(value): { sql+: { from+: { QueryEditorFunctionExpression: value } } }, - '#withQueryEditorFunctionExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withQueryEditorFunctionExpressionMixin(value): { sql+: { from+: { QueryEditorFunctionExpression+: value } } }, - QueryEditorFunctionExpression+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { sql+: { from+: { name: value } } }, - '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withParameters(value): { sql+: { from+: { parameters: (if std.isArray(value) - then value - else [value]) } } }, - '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withParametersMixin(value): { sql+: { from+: { parameters+: (if std.isArray(value) - then value - else [value]) } } }, - parameters+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { sql+: { from+: { type: value } } }, - }, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withGroupBy(value): { sql+: { groupBy: value } }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withGroupByMixin(value): { sql+: { groupBy+: value } }, - groupBy+: - { - '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExpressions(value): { sql+: { groupBy+: { expressions: (if std.isArray(value) - then value - else [value]) } } }, - '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExpressionsMixin(value): { sql+: { groupBy+: { expressions+: (if std.isArray(value) - then value - else [value]) } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: 'string' }], help: '' } }, - withType(value): { sql+: { groupBy+: { type: value } } }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'LIMIT part of the SQL expression' } }, - withLimit(value): { sql+: { limit: value } }, - '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOrderBy(value): { sql+: { orderBy: value } }, - '#withOrderByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withOrderByMixin(value): { sql+: { orderBy+: value } }, - orderBy+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { sql+: { orderBy+: { name: value } } }, - '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withParameters(value): { sql+: { orderBy+: { parameters: (if std.isArray(value) - then value - else [value]) } } }, - '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withParametersMixin(value): { sql+: { orderBy+: { parameters+: (if std.isArray(value) - then value - else [value]) } } }, - parameters+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { sql+: { orderBy+: { type: value } } }, - }, - '#withOrderByDirection': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The sort order of the SQL expression, `ASC` or `DESC`' } }, - withOrderByDirection(value): { sql+: { orderByDirection: value } }, - '#withSelect': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSelect(value): { sql+: { select: value } }, - '#withSelectMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSelectMixin(value): { sql+: { select+: value } }, - select+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { sql+: { select+: { name: value } } }, - '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withParameters(value): { sql+: { select+: { parameters: (if std.isArray(value) - then value - else [value]) } } }, - '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withParametersMixin(value): { sql+: { select+: { parameters+: (if std.isArray(value) - then value - else [value]) } } }, - parameters+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { sql+: { select+: { type: value } } }, - }, - '#withWhere': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withWhere(value): { sql+: { where: value } }, - '#withWhereMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withWhereMixin(value): { sql+: { where+: value } }, - where+: - { - '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExpressions(value): { sql+: { where+: { expressions: (if std.isArray(value) - then value - else [value]) } } }, - '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withExpressionsMixin(value): { sql+: { where+: { expressions+: (if std.isArray(value) - then value - else [value]) } } }, - '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: 'string' }], help: '' } }, - withType(value): { sql+: { where+: { type: value } } }, - }, - }, - '#withSqlExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'When the metric query type is `metricQueryType` is set to `Query`, this field is used to specify the query string.' } }, - withSqlExpression(value): { sqlExpression: value }, - }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet deleted file mode 100644 index a18ae7c..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet +++ /dev/null @@ -1,758 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.elasticsearch', name: 'elasticsearch' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Alias pattern' } }, - withAlias(value): { alias: value }, - '#withBucketAggs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'List of bucket aggregations' } }, - withBucketAggs(value): { bucketAggs: (if std.isArray(value) - then value - else [value]) }, - '#withBucketAggsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'List of bucket aggregations' } }, - withBucketAggsMixin(value): { bucketAggs+: (if std.isArray(value) - then value - else [value]) }, - bucketAggs+: - { - DateHistogram+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInterval(value): { settings+: { interval: value } }, - '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMinDocCount(value): { settings+: { min_doc_count: value } }, - '#withOffset': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withOffset(value): { settings+: { offset: value } }, - '#withTimeZone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTimeZone(value): { settings+: { timeZone: value } }, - '#withTrimEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withTrimEdges(value): { settings+: { trimEdges: value } }, - }, - }, - Histogram+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInterval(value): { settings+: { interval: value } }, - '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMinDocCount(value): { settings+: { min_doc_count: value } }, - }, - }, - Terms+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMinDocCount(value): { settings+: { min_doc_count: value } }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMissing(value): { settings+: { missing: value } }, - '#withOrder': { 'function': { args: [{ default: null, enums: ['desc', 'asc'], name: 'value', type: 'string' }], help: '' } }, - withOrder(value): { settings+: { order: value } }, - '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withOrderBy(value): { settings+: { orderBy: value } }, - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSize(value): { settings+: { size: value } }, - }, - }, - Filters+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFilters(value): { settings+: { filters: (if std.isArray(value) - then value - else [value]) } }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFiltersMixin(value): { settings+: { filters+: (if std.isArray(value) - then value - else [value]) } }, - filters+: - { - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLabel(value): { label: value }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withQuery(value): { query: value }, - }, - }, - }, - GeoHashGrid+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withPrecision': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPrecision(value): { settings+: { precision: value } }, - }, - }, - Nested+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - }, - }, - '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'List of metric aggregations' } }, - withMetrics(value): { metrics: (if std.isArray(value) - then value - else [value]) }, - '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'List of metric aggregations' } }, - withMetricsMixin(value): { metrics+: (if std.isArray(value) - then value - else [value]) }, - metrics+: - { - Count+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - }, - PipelineMetricAggregation+: - { - MovingAverage+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - }, - Derivative+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUnit(value): { settings+: { unit: value } }, - }, - }, - CumulativeSum+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFormat(value): { settings+: { format: value } }, - }, - }, - BucketScript+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPipelineVariables(value): { pipelineVariables: (if std.isArray(value) - then value - else [value]) }, - '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPipelineVariablesMixin(value): { pipelineVariables+: (if std.isArray(value) - then value - else [value]) }, - pipelineVariables+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScript(value): { settings+: { script: value } }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScriptMixin(value): { settings+: { script+: value } }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInline(value): { settings+: { script+: { inline: value } } }, - }, - }, - }, - }, - MetricAggregationWithSettings+: - { - BucketScript+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPipelineVariables(value): { pipelineVariables: (if std.isArray(value) - then value - else [value]) }, - '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPipelineVariablesMixin(value): { pipelineVariables+: (if std.isArray(value) - then value - else [value]) }, - pipelineVariables+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScript(value): { settings+: { script: value } }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScriptMixin(value): { settings+: { script+: value } }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInline(value): { settings+: { script+: { inline: value } } }, - }, - }, - }, - CumulativeSum+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withFormat(value): { settings+: { format: value } }, - }, - }, - Derivative+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUnit(value): { settings+: { unit: value } }, - }, - }, - SerialDiff+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withLag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLag(value): { settings+: { lag: value } }, - }, - }, - RawData+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSize(value): { settings+: { size: value } }, - }, - }, - RawDocument+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSize(value): { settings+: { size: value } }, - }, - }, - UniqueCount+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMissing(value): { settings+: { missing: value } }, - '#withPrecisionThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPrecisionThreshold(value): { settings+: { precision_threshold: value } }, - }, - }, - Percentiles+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScript(value): { settings+: { script: value } }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScriptMixin(value): { settings+: { script+: value } }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInline(value): { settings+: { script+: { inline: value } } }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMissing(value): { settings+: { missing: value } }, - '#withPercents': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPercents(value): { settings+: { percents: (if std.isArray(value) - then value - else [value]) } }, - '#withPercentsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPercentsMixin(value): { settings+: { percents+: (if std.isArray(value) - then value - else [value]) } }, - }, - }, - ExtendedStats+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScript(value): { settings+: { script: value } }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScriptMixin(value): { settings+: { script+: value } }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInline(value): { settings+: { script+: { inline: value } } }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMissing(value): { settings+: { missing: value } }, - '#withSigma': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withSigma(value): { settings+: { sigma: value } }, - }, - '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMeta(value): { meta: value }, - '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withMetaMixin(value): { meta+: value }, - }, - Min+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScript(value): { settings+: { script: value } }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScriptMixin(value): { settings+: { script+: value } }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInline(value): { settings+: { script+: { inline: value } } }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMissing(value): { settings+: { missing: value } }, - }, - }, - Max+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScript(value): { settings+: { script: value } }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScriptMixin(value): { settings+: { script+: value } }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInline(value): { settings+: { script+: { inline: value } } }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMissing(value): { settings+: { missing: value } }, - }, - }, - Sum+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScript(value): { settings+: { script: value } }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScriptMixin(value): { settings+: { script+: value } }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInline(value): { settings+: { script+: { inline: value } } }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMissing(value): { settings+: { missing: value } }, - }, - }, - Average+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMissing(value): { settings+: { missing: value } }, - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScript(value): { settings+: { script: value } }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScriptMixin(value): { settings+: { script+: value } }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInline(value): { settings+: { script+: { inline: value } } }, - }, - }, - }, - MovingAverage+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - }, - MovingFunction+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPipelineAgg(value): { pipelineAgg: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScript(value): { settings+: { script: value } }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withScriptMixin(value): { settings+: { script+: value } }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withInline(value): { settings+: { script+: { inline: value } } }, - }, - '#withShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withShift(value): { settings+: { shift: value } }, - '#withWindow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withWindow(value): { settings+: { window: value } }, - }, - }, - Logs+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLimit(value): { settings+: { limit: value } }, - }, - }, - Rate+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withField(value): { field: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMode(value): { settings+: { mode: value } }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUnit(value): { settings+: { unit: value } }, - }, - }, - TopMetrics+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withHide(value=true): { hide: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withId(value): { id: value }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { type: value }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettings(value): { settings: value }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSettingsMixin(value): { settings+: value }, - settings+: - { - '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withMetrics(value): { settings+: { metrics: (if std.isArray(value) - then value - else [value]) } }, - '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withMetricsMixin(value): { settings+: { metrics+: (if std.isArray(value) - then value - else [value]) } }, - '#withOrder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withOrder(value): { settings+: { order: value } }, - '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withOrderBy(value): { settings+: { orderBy: value } }, - }, - }, - }, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Lucene query' } }, - withQuery(value): { query: value }, - '#withTimeField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of time field' } }, - withTimeField(value): { timeField: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet deleted file mode 100644 index 67fd282..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet +++ /dev/null @@ -1,26 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.grafanaPyroscope', name: 'grafanaPyroscope' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Allows to group the results.' } }, - withGroupBy(value): { groupBy: (if std.isArray(value) - then value - else [value]) }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Allows to group the results.' } }, - withGroupByMixin(value): { groupBy+: (if std.isArray(value) - then value - else [value]) }, - '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: 'string' }], help: 'Specifies the query label selectors.' } }, - withLabelSelector(value='{}'): { labelSelector: value }, - '#withMaxNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Sets the maximum number of nodes in the flamegraph.' } }, - withMaxNodes(value): { maxNodes: value }, - '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specifies the type of profile to query.' } }, - withProfileTypeId(value): { profileTypeId: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet deleted file mode 100644 index b150002..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet +++ /dev/null @@ -1,26 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.loki', name: 'loki' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: 'string' }], help: '' } }, - withEditorMode(value): { editorMode: value }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The LogQL query.' } }, - withExpr(value): { expr: value }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '@deprecated, now use queryType.' } }, - withInstant(value=true): { instant: value }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Used to override the name of the series.' } }, - withLegendFormat(value): { legendFormat: value }, - '#withMaxLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Used to limit the number of log rows returned.' } }, - withMaxLines(value): { maxLines: value }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '@deprecated, now use queryType.' } }, - withRange(value=true): { range: value }, - '#withResolution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Used to scale the interval value.' } }, - withResolution(value): { resolution: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet deleted file mode 100644 index 832453d..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet +++ /dev/null @@ -1,16 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.parca', name: 'parca' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: 'string' }], help: 'Specifies the query label selectors.' } }, - withLabelSelector(value='{}'): { labelSelector: value }, - '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specifies the type of profile to query.' } }, - withProfileTypeId(value): { profileTypeId: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet deleted file mode 100644 index 71adff6..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet +++ /dev/null @@ -1,28 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.prometheus', name: 'prometheus' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: 'string' }], help: '' } }, - withEditorMode(value): { editorMode: value }, - '#withExemplar': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Execute an additional query to identify interesting raw samples relevant for the given expr' } }, - withExemplar(value=true): { exemplar: value }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The actual expression/query that will be evaluated by Prometheus' } }, - withExpr(value): { expr: value }, - '#withFormat': { 'function': { args: [{ default: null, enums: ['time_series', 'table', 'heatmap'], name: 'value', type: 'string' }], help: '' } }, - withFormat(value): { format: value }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Returns only the latest value that Prometheus has scraped for the requested time series' } }, - withInstant(value=true): { instant: value }, - '#withIntervalFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '@deprecated Used to specify how many times to divide max data points by. We use max data points under query options\nSee https://github.com/grafana/grafana/issues/48081' } }, - withIntervalFactor(value): { intervalFactor: value }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname' } }, - withLegendFormat(value): { legendFormat: value }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series' } }, - withRange(value=true): { range: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet deleted file mode 100644 index f93e7fe..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet +++ /dev/null @@ -1,53 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.tempo', name: 'tempo' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFilters(value): { filters: (if std.isArray(value) - then value - else [value]) }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFiltersMixin(value): { filters+: (if std.isArray(value) - then value - else [value]) }, - filters+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, - withId(value): { id: value }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, - withOperator(value): { operator: value }, - '#withScope': { 'function': { args: [{ default: null, enums: ['unscoped', 'resource', 'span'], name: 'value', type: 'string' }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, - withScope(value): { scope: value }, - '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, - withTag(value): { tag: value }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The value for the search filter' } }, - withValue(value): { value: value }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The value for the search filter' } }, - withValueMixin(value): { value+: value }, - '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, - withValueType(value): { valueType: value }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Defines the maximum number of traces that are returned from Tempo' } }, - withLimit(value): { limit: value }, - '#withMaxDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMaxDuration(value): { maxDuration: value }, - '#withMinDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMinDuration(value): { minDuration: value }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'TraceQL query or trace ID' } }, - withQuery(value): { query: value }, - '#withSearch': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true' } }, - withSearch(value): { search: value }, - '#withServiceMapQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}' } }, - withServiceMapQuery(value): { serviceMapQuery: value }, - '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Query traces by service name' } }, - withServiceName(value): { serviceName: value }, - '#withSpanName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Query traces by span name' } }, - withSpanName(value): { spanName: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet deleted file mode 100644 index 0d78880..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet +++ /dev/null @@ -1,167 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.testData', name: 'testData' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { datasource: value }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { hide: value }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { queryType: value }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { refId: value }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withAlias(value): { alias: value }, - '#withChannel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withChannel(value): { channel: value }, - '#withCsvContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withCsvContent(value): { csvContent: value }, - '#withCsvFileName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withCsvFileName(value): { csvFileName: value }, - '#withCsvWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCsvWave(value): { csvWave: (if std.isArray(value) - then value - else [value]) }, - '#withCsvWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withCsvWaveMixin(value): { csvWave+: (if std.isArray(value) - then value - else [value]) }, - csvWave+: - { - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLabels(value): { labels: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withName(value): { name: value }, - '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withTimeStep(value): { timeStep: value }, - '#withValuesCSV': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withValuesCSV(value): { valuesCSV: value }, - }, - '#withErrorType': { 'function': { args: [{ default: null, enums: ['server_panic', 'frontend_exception', 'frontend_observable'], name: 'value', type: 'string' }], help: '' } }, - withErrorType(value): { errorType: value }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withLabels(value): { labels: value }, - '#withLevelColumn': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLevelColumn(value=true): { levelColumn: value }, - '#withLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withLines(value): { lines: value }, - '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withNodes(value): { nodes: value }, - '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withNodesMixin(value): { nodes+: value }, - nodes+: - { - '#withCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withCount(value): { nodes+: { count: value } }, - '#withType': { 'function': { args: [{ default: null, enums: ['random', 'response', 'random edges'], name: 'value', type: 'string' }], help: '' } }, - withType(value): { nodes+: { type: value } }, - }, - '#withPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPoints(value): { points: (if std.isArray(value) - then value - else [value]) }, - '#withPointsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withPointsMixin(value): { points+: (if std.isArray(value) - then value - else [value]) }, - '#withPulseWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPulseWave(value): { pulseWave: value }, - '#withPulseWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withPulseWaveMixin(value): { pulseWave+: value }, - pulseWave+: - { - '#withOffCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withOffCount(value): { pulseWave+: { offCount: value } }, - '#withOffValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withOffValue(value): { pulseWave+: { offValue: value } }, - '#withOnCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withOnCount(value): { pulseWave+: { onCount: value } }, - '#withOnValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withOnValue(value): { pulseWave+: { onValue: value } }, - '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withTimeStep(value): { pulseWave+: { timeStep: value } }, - }, - '#withRawFrameContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withRawFrameContent(value): { rawFrameContent: value }, - '#withScenarioId': { 'function': { args: [{ default: null, enums: ['random_walk', 'slow_query', 'random_walk_with_error', 'random_walk_table', 'exponential_heatmap_bucket_data', 'linear_heatmap_bucket_data', 'no_data_points', 'datapoints_outside_range', 'csv_metric_values', 'predictable_pulse', 'predictable_csv_wave', 'streaming_client', 'simulation', 'usa', 'live', 'grafana_api', 'arrow', 'annotations', 'table_static', 'server_error_500', 'logs', 'node_graph', 'flame_graph', 'raw_frame', 'csv_file', 'csv_content', 'trace', 'manual_entry', 'variables-query'], name: 'value', type: 'string' }], help: '' } }, - withScenarioId(value): { scenarioId: value }, - '#withSeriesCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withSeriesCount(value): { seriesCount: value }, - '#withSim': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSim(value): { sim: value }, - '#withSimMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withSimMixin(value): { sim+: value }, - sim+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withConfig(value): { sim+: { config: value } }, - '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withConfigMixin(value): { sim+: { config+: value } }, - '#withKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withKey(value): { sim+: { key: value } }, - '#withKeyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withKeyMixin(value): { sim+: { key+: value } }, - key+: - { - '#withTick': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'number' }], help: '' } }, - withTick(value): { sim+: { key+: { tick: value } } }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withType(value): { sim+: { key+: { type: value } } }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUid(value): { sim+: { key+: { uid: value } } }, - }, - '#withLast': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withLast(value=true): { sim+: { last: value } }, - '#withStream': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: '' } }, - withStream(value=true): { sim+: { stream: value } }, - }, - '#withSpanCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withSpanCount(value): { spanCount: value }, - '#withStream': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withStream(value): { stream: value }, - '#withStreamMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withStreamMixin(value): { stream+: value }, - stream+: - { - '#withBands': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withBands(value): { stream+: { bands: value } }, - '#withNoise': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withNoise(value): { stream+: { noise: value } }, - '#withSpeed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withSpeed(value): { stream+: { speed: value } }, - '#withSpread': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: '' } }, - withSpread(value): { stream+: { spread: value } }, - '#withType': { 'function': { args: [{ default: null, enums: ['signal', 'logs', 'fetch'], name: 'value', type: 'string' }], help: '' } }, - withType(value): { stream+: { type: value } }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withUrl(value): { stream+: { url: value } }, - }, - '#withStringInput': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withStringInput(value): { stringInput: value }, - '#withUsa': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withUsa(value): { usa: value }, - '#withUsaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: '' } }, - withUsaMixin(value): { usa+: value }, - usa+: - { - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFields(value): { usa+: { fields: (if std.isArray(value) - then value - else [value]) } }, - '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withFieldsMixin(value): { usa+: { fields+: (if std.isArray(value) - then value - else [value]) } }, - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withMode(value): { usa+: { mode: value } }, - '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: '' } }, - withPeriod(value): { usa+: { period: value } }, - '#withStates': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withStates(value): { usa+: { states: (if std.isArray(value) - then value - else [value]) } }, - '#withStatesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: '' } }, - withStatesMixin(value): { usa+: { states+: (if std.isArray(value) - then value - else [value]) } }, - }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet deleted file mode 100644 index d401e96..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet +++ /dev/null @@ -1,32 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.serviceaccount', name: 'serviceaccount' }, - '#withAccessControl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'AccessControl metadata associated with a given resource.' } }, - withAccessControl(value): { accessControl: value }, - '#withAccessControlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'AccessControl metadata associated with a given resource.' } }, - withAccessControlMixin(value): { accessControl+: value }, - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front\nof the service account." } }, - withAvatarUrl(value): { avatarUrl: value }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'ID is the unique identifier of the service account in the database.' } }, - withId(value): { id: value }, - '#withIsDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: 'boolean' }], help: 'IsDisabled indicates if the service account is disabled.' } }, - withIsDisabled(value=true): { isDisabled: value }, - '#withLogin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Login of the service account.' } }, - withLogin(value): { login: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the service account.' } }, - withName(value): { name: value }, - '#withOrgId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'OrgId is the ID of an organisation the service account belongs to.' } }, - withOrgId(value): { orgId: value }, - '#withRole': { 'function': { args: [{ default: null, enums: ['Admin', 'Editor', 'Viewer'], name: 'value', type: 'string' }], help: "OrgRole is a Grafana Organization Role which can be 'Viewer', 'Editor', 'Admin'." } }, - withRole(value): { role: value }, - '#withTeams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Teams is a list of teams the service account belongs to.' } }, - withTeams(value): { teams: (if std.isArray(value) - then value - else [value]) }, - '#withTeamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'array' }], help: 'Teams is a list of teams the service account belongs to.' } }, - withTeamsMixin(value): { teams+: (if std.isArray(value) - then value - else [value]) }, - '#withTokens': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'Tokens is the number of active tokens for the service account.\nTokens are used to authenticate the service account against Grafana.' } }, - withTokens(value): { tokens: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet deleted file mode 100644 index c8f7ff7..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet +++ /dev/null @@ -1,20 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.team', name: 'team' }, - '#withAccessControl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'AccessControl metadata associated with a given resource.' } }, - withAccessControl(value): { accessControl: value }, - '#withAccessControlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'object' }], help: 'AccessControl metadata associated with a given resource.' } }, - withAccessControlMixin(value): { accessControl+: value }, - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: "AvatarUrl is the team's avatar URL." } }, - withAvatarUrl(value): { avatarUrl: value }, - '#withEmail': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Email of the team.' } }, - withEmail(value): { email: value }, - '#withMemberCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'MemberCount is the number of the team members.' } }, - withMemberCount(value): { memberCount: value }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'string' }], help: 'Name of the team.' } }, - withName(value): { name: value }, - '#withOrgId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: 'integer' }], help: 'OrgId is the ID of an organisation the team belongs to.' } }, - withOrgId(value): { orgId: value }, - '#withPermission': { 'function': { args: [{ default: null, enums: [0, 1, 2, 4], name: 'value', type: 'integer' }], help: '' } }, - withPermission(value): { permission: value }, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet deleted file mode 100644 index 5b71419..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet +++ /dev/null @@ -1,401 +0,0 @@ -{ - local root = self, - - templates: { - package: ||| - # %(name)s - - %(content)s - |||, - - indexPage: ||| - # %(prefix)s%(name)s - - %(index)s - |||, - - index: ||| - ## Index - - %s - |||, - - sectionTitle: '%(abbr)s %(prefix)s%(name)s', - - sectionLink: '* [`%(abbr)s %(linkName)s`](#%(link)s)', - - value: '* `%(prefix)s%(name)s` (`%(type)s`): `"%(value)s"` - %(help)s', - - section: ||| - %(headerDepth)s %(title)s - - %(content)s - |||, - }, - - joinPathPrefixes(prefixes, sep='/'):: - std.join(sep, prefixes) - + (if std.length(prefixes) > 0 - then sep - else ''), - - joinPrefixes(prefixes, sep='.'):: - std.join(sep, prefixes) - + (if std.length(prefixes) > 0 - then sep - else ''), - - renderSectionTitle(section, prefixes):: - root.templates.sectionTitle % { - name: section.name, - abbr: section.type.abbr, - prefix: root.joinPrefixes(prefixes), - }, - - renderValues(values, prefixes=[]):: - if std.length(values) > 0 - then - std.join('\n', [ - root.templates.value - % value + { - prefix: root.joinPrefixes(prefixes), - } - for value in values - ]) + '\n' - else '', - - renderSections(sections, depth=0, prefixes=[]):: - if std.length(sections) > 0 - then - std.join('\n', [ - root.templates.section - % { - headerDepth: std.join('', [ - '#' - for d in std.range(0, depth + 2) - ]), - title: root.renderSectionTitle( - section, - prefixes, - ), - content: section.content, - } - + root.renderValues( - section.values, - prefixes + [section.name] - ) - + root.renderSections( - section.subSections, - depth + 1, - prefixes + [section.name] - ) - for section in sections - ]) - else '', - - renderPackage(package, path=''):: - (root.templates.package % package) - + ( - if std.length(package.subPackages) > 0 - then - '## Subpackages\n\n' - + std.join('\n', [ - '* [%(name)s](%(path)s)' % { - name: sub.name, - path: path + sub.name - + (if std.length(sub.subPackages) > 0 - then '/index.md' - else '.md'), - } - for sub in package.subPackages - ]) + '\n\n' - else '' - ) - + (if std.length(package.sections) > 0 - then (root.templates.index % root.index(package.sections)) - else '') - + (if std.length(package.values) > 0 - || std.length(package.sections) > 0 - then - '\n## Fields\n\n' - + root.renderValues(package.values) - + root.renderSections(package.sections) - else ''), - - index(sections, depth=0, prefixes=[]):: - std.join('\n', [ - std.join('', [ - ' ' - for d in std.range(0, (depth * 2) - 1) - ]) - + (root.templates.sectionLink % { - abbr: section.type.abbr, - linkName: section.linkName, - link: - std.asciiLower( - std.strReplace( - std.strReplace(root.renderSectionTitle(section, prefixes), '.', '') - , ' ', '-' - ) - ), - }) - + ( - if std.length(section.subSections) > 0 - then '\n' + root.index( - section.subSections, - depth + 1, - prefixes + [section.name] - ) - else '' - ) - for section in sections - ]), - - sections: { - base: { - subSections: [], - values: [], - }, - object(key, doc, obj, depth):: self.base { - name: std.strReplace(key, '#', ''), - - local processed = root.prepare(obj, depth=depth + 1), - - subSections: processed.sections, - - values: processed.values, - - type: { full: 'object', abbr: 'obj' }, - - abbr: self.type.abbr, - - doc: - if self.type.full in doc - then doc[self.type.full] - else { help: '' }, - - help: self.doc.help, - - linkName: self.name, - - content: - if self.help != '' - then self.help + '\n' - else '', - }, - - 'function'(key, doc):: self.base { - name: std.strReplace(key, '#', ''), - - type: { full: 'function', abbr: 'fn' }, - - abbr: self.type.abbr, - - doc: doc[self.type.full], - - help: self.doc.help, - - args: std.join(', ', [ - if arg.default != null - then std.join('=', [ - arg.name, - std.manifestJsonEx(arg.default, '', ''), - ]) - else arg.name - for arg in self.doc.args - ]), - - enums: std.join('', [ - if arg.enums != null - then '\n\nAccepted values for `%s` are ' % arg.name - + std.join(', ', [ - std.manifestJsonEx(item, '', '') - for item in arg.enums - ]) - else '' - for arg in self.doc.args - ]), - - linkName: '%(name)s(%(args)s)' % self, - - content: - (||| - ```ts - %(name)s(%(args)s) - ``` - - ||| % self) - + '%(help)s' % self - + '%(enums)s' % self, - // odd concatenation to prevent unintential newline changes - - }, - - value(key, doc, obj):: self.base { - name: std.strReplace(key, '#', ''), - type: doc.value.type, - help: doc.value.help, - value: obj, - }, - - package(doc, root):: { - name: doc.name, - content: - ||| - %(help)s - ||| % doc - + (if 'installTemplate' in doc - then ||| - - ## Install - - ``` - %(install)s - ``` - ||| % doc.installTemplate % doc - else '') - + (if 'usageTemplate' in doc - then ||| - - ## Usage - - ```jsonnet - %(usage)s - ``` - ||| % doc.usageTemplate % doc - else ''), - }, - }, - - prepare(obj, depth=0):: - std.foldl( - function(acc, key) - acc + - // Package definition - if key == '#' - then root.sections.package( - obj[key], - (depth == 0) - ) - - - // Field definition - else if std.startsWith(key, '#') - then ( - local realKey = key[1:]; - - if !std.isObject(obj[key]) - then - std.trace( - 'INFO: docstring "%s" cannot be parsed, ignored while rendering.' % key, - {} - ) - - else if 'value' in obj[key] - then { - values+: [root.sections.value( - key, - obj[key], - obj[realKey] - )], - } - else if 'function' in obj[key] - then { - functionSections+: [root.sections['function']( - key, - obj[key], - )], - } - else if 'object' in obj[key] - then { - objectSections+: [root.sections.object( - key, - obj[key], - obj[realKey], - depth - )], - } - else - std.trace( - 'INFO: docstring "%s" cannot be parsed, ignored while rendering.' % key, - {} - ) - ) - - // subPackage definition - else if std.isObject(obj[key]) && '#' in obj[key] - then { - subPackages+: [root.prepare(obj[key])], - } - - // undocumented object - else if std.isObject(obj[key]) && !('#' + key in obj) - then ( - local section = root.sections.object( - key, - {}, - obj[key], - depth - ); - // only add if has documented subSections or values - if std.length(section.subSections) > 0 - || std.length(section.values) > 0 - then { objectSections+: [section] } - else {} - ) - - else {}, - std.objectFieldsAll(obj), - { - functionSections: [], - objectSections: [], - - sections: - self.functionSections - + self.objectSections, - subPackages: [], - values: [], - } - ), - - renderIndexPage(package, prefixes):: - root.templates.indexPage % { - name: package.name, - prefix: root.joinPrefixes(prefixes), - index: std.join('\n', [ - '* [%(name)s](%(name)s.md)' % sub - for sub in package.subPackages - ]), - }, - - renderFiles(package, prefixes=[]): - local path = root.joinPathPrefixes(prefixes); - ( - if std.length(prefixes) == 0 - then { - [path + 'README.md']: root.renderPackage(package, package.name + '/'), - } - else if std.length(package.subPackages) > 0 - then { - [path + package.name + '/index.md']: root.renderPackage(package), - } - else { - [path + package.name + '.md']: root.renderPackage(package, package.name + '/'), - } - ) - + std.foldl( - function(acc, sub) - acc + sub, - [ - root.renderFiles( - sub, - prefixes=prefixes + [package.name] - ) - for sub in package.subPackages - ], - {} - ), - - render(obj): - self.renderFiles(self.prepare(obj)), -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet deleted file mode 100644 index 28571ac..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet +++ /dev/null @@ -1,39 +0,0 @@ -local d = import 'doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='ascii', - url='github.com/jsonnet-libs/xtd/ascii.libsonnet', - help='`ascii` implements helper functions for ascii characters', - ), - - local cp(c) = std.codepoint(c), - - '#isLower':: d.fn( - '`isLower` reports whether ASCII character `c` is a lower case letter', - [d.arg('c', d.T.string)] - ), - isLower(c): - if cp(c) >= 97 && cp(c) < 123 - then true - else false, - - '#isUpper':: d.fn( - '`isUpper` reports whether ASCII character `c` is a upper case letter', - [d.arg('c', d.T.string)] - ), - isUpper(c): - if cp(c) >= 65 && cp(c) < 91 - then true - else false, - - '#isNumber':: d.fn( - '`isNumber` reports whether character `c` is a number.', - [d.arg('c', d.T.string)] - ), - isNumber(c): - if std.isNumber(c) || (cp(c) >= 48 && cp(c) < 58) - then true - else false, - -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/date.libsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/date.libsonnet deleted file mode 100644 index e611ed4..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/date.libsonnet +++ /dev/null @@ -1,58 +0,0 @@ -local d = import 'doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='date', - url='github.com/jsonnet-libs/xtd/date.libsonnet', - help='`time` provides various date related functions.', - ), - - // Lookup tables for calendar calculations - local commonYearMonthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], - local commonYearMonthOffset = [0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5], - local leapYearMonthOffset = [0, 3, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6], - - // monthOffset looks up the offset to apply in day of week calculations based on the year and month - local monthOffset(year, month) = - if self.isLeapYear(year) - then leapYearMonthOffset[month - 1] - else commonYearMonthOffset[month - 1], - - '#isLeapYear': d.fn( - '`isLeapYear` returns true if the given year is a leap year.', - [d.arg('year', d.T.number)], - ), - isLeapYear(year):: year % 4 == 0 && (year % 100 != 0 || year % 400 == 0), - - '#dayOfWeek': d.fn( - '`dayOfWeek` returns the day of the week for the given date. 0=Sunday, 1=Monday, etc.', - [ - d.arg('year', d.T.number), - d.arg('month', d.T.number), - d.arg('day', d.T.number), - ], - ), - dayOfWeek(year, month, day):: - (day + monthOffset(year, month) + 5 * ((year - 1) % 4) + 4 * ((year - 1) % 100) + 6 * ((year - 1) % 400)) % 7, - - '#dayOfYear': d.fn( - ||| - `dayOfYear` calculates the ordinal day of the year based on the given date. The range of outputs is 1-365 - for common years, and 1-366 for leap years. - |||, - [ - d.arg('year', d.T.number), - d.arg('month', d.T.number), - d.arg('day', d.T.number), - ], - ), - dayOfYear(year, month, day):: - std.foldl( - function(a, b) a + b, - std.slice(commonYearMonthLength, 0, month - 1, 1), - 0 - ) + day + - if month > 2 && self.isLeapYear(year) - then 1 - else 0, -} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md deleted file mode 100644 index 37d7ed7..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -permalink: /ascii/ ---- - -# package ascii - -```jsonnet -local ascii = import "github.com/jsonnet-libs/xtd/ascii.libsonnet" -``` - -`ascii` implements helper functions for ascii characters - -## Index - -* [`fn isLower(c)`](#fn-islower) -* [`fn isNumber(c)`](#fn-isnumber) -* [`fn isUpper(c)`](#fn-isupper) - -## Fields - -### fn isLower - -```ts -isLower(c) -``` - -`isLower` reports whether ASCII character `c` is a lower case letter - -### fn isNumber - -```ts -isNumber(c) -``` - -`isNumber` reports whether character `c` is a number. - -### fn isUpper - -```ts -isUpper(c) -``` - -`isUpper` reports whether ASCII character `c` is a upper case letter \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/date.md b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/date.md deleted file mode 100644 index e2c9295..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/date.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -permalink: /date/ ---- - -# package date - -```jsonnet -local date = import "github.com/jsonnet-libs/xtd/date.libsonnet" -``` - -`time` provides various date related functions. - -## Index - -* [`fn dayOfWeek(year, month, day)`](#fn-dayofweek) -* [`fn dayOfYear(year, month, day)`](#fn-dayofyear) -* [`fn isLeapYear(year)`](#fn-isleapyear) - -## Fields - -### fn dayOfWeek - -```ts -dayOfWeek(year, month, day) -``` - -`dayOfWeek` returns the day of the week for the given date. 0=Sunday, 1=Monday, etc. - -### fn dayOfYear - -```ts -dayOfYear(year, month, day) -``` - -`dayOfYear` calculates the ordinal day of the year based on the given date. The range of outputs is 1-365 -for common years, and 1-366 for leap years. - - -### fn isLeapYear - -```ts -isLeapYear(year) -``` - -`isLeapYear` returns true if the given year is a leap year. \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet b/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet deleted file mode 100644 index c0ebe77..0000000 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet +++ /dev/null @@ -1,131 +0,0 @@ -local xtd = import '../main.libsonnet'; -local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; - -test.new(std.thisFile) - -+ test.case.new( - name='Leap Year commonYear', - test=test.expect.eq( - actual=xtd.date.isLeapYear(1995), - expected=false, - ) -) - -+ test.case.new( - name='Leap Year fourYearCycle', - test=test.expect.eq( - actual=xtd.date.isLeapYear(1996), - expected=true, - ) -) - -+ test.case.new( - name='Leap Year fourHundredYearCycle', - test=test.expect.eq( - actual=xtd.date.isLeapYear(2000), - expected=true, - ) -) - -+ test.case.new( - name='Leap Year hundredYearCycle', - test=test.expect.eq( - actual=xtd.date.isLeapYear(2100), - expected=false, - ) -) - -+ test.case.new( - name='Day Of Week leapYearStart', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2000, 1, 1), - expected=6, - ) -) - -+ test.case.new( - name='Day Of Week leapYearEnd', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2000, 12, 31), - expected=0, - ) -) - -+ test.case.new( - name='Day Of Week commonYearStart', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(1995, 1, 1), - expected=0, - ) -) - -+ test.case.new( - name='Day Of Week commonYearEnd', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2003, 12, 31), - expected=3, - ) -) - -+ test.case.new( - name='Day Of Week leapYearMid', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2024, 7, 19), - expected=5, - ) -) - -+ test.case.new( - name='Day Of Week commonYearMid', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2023, 6, 15), - expected=4, - ) -) -+ test.case.new( - name='Day Of Year leapYearStart', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2000, 1, 1), - expected=1, - ) -) - -+ test.case.new( - name='Day Of Year leapYearEnd', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2000, 12, 31), - expected=366, - ) -) - -+ test.case.new( - name='Day Of Year commonYearStart', - test=test.expect.eq( - actual=xtd.date.dayOfYear(1995, 1, 1), - expected=1, - ) -) - -+ test.case.new( - name='Day Of Year commonYearEnd', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2003, 12, 31), - expected=365, - ) -) - -+ test.case.new( - name='Day Of Year leapYearMid', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2024, 7, 19), - expected=201, - ) -) - -+ test.case.new( - name='Day Of Year commonYearMid', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2023, 6, 15), - expected=166, - ) -) diff --git a/pkg/server/testdata/grafonnet/vendor/grafonnet-v10.0.0 b/pkg/server/testdata/grafonnet/vendor/grafonnet-v10.0.0 deleted file mode 120000 index 3749c7b..0000000 --- a/pkg/server/testdata/grafonnet/vendor/grafonnet-v10.0.0 +++ /dev/null @@ -1 +0,0 @@ -github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 \ No newline at end of file diff --git a/pkg/server/testdata/jsonnetfile.json b/pkg/server/testdata/jsonnetfile.json new file mode 100644 index 0000000..9e1a3d5 --- /dev/null +++ b/pkg/server/testdata/jsonnetfile.json @@ -0,0 +1,33 @@ +{ + "version": 1, + "dependencies": [ + { + "source": { + "git": { + "remote": "https://github.com/grafana/jsonnet-libs.git", + "subdir": "ksonnet-util" + } + }, + "version": "master" + }, + { + "source": { + "git": { + "remote": "https://github.com/jsonnet-libs/k8s-libsonnet.git", + "subdir": "1.30" + } + }, + "version": "main" + }, + { + "source": { + "git": { + "remote": "https://github.com/grafana/grafonnet.git", + "subdir": "gen/grafonnet-latest" + } + }, + "version": "main" + } + ], + "legacyImports": true +} diff --git a/pkg/server/testdata/jsonnetfile.lock.json b/pkg/server/testdata/jsonnetfile.lock.json new file mode 100644 index 0000000..3822db0 --- /dev/null +++ b/pkg/server/testdata/jsonnetfile.lock.json @@ -0,0 +1,67 @@ +{ + "version": 1, + "dependencies": [ + { + "source": { + "git": { + "remote": "https://github.com/grafana/grafonnet.git", + "subdir": "gen/grafonnet-latest" + } + }, + "version": "5a8f3d6aa89b7e7513528371d2d1265aedc844bc", + "sum": "V9vAj21qJOc2DlMPDgB1eEjSQU4A+sAA4AXuJ6bd4xc=" + }, + { + "source": { + "git": { + "remote": "https://github.com/grafana/grafonnet.git", + "subdir": "gen/grafonnet-v11.4.0" + } + }, + "version": "5a8f3d6aa89b7e7513528371d2d1265aedc844bc", + "sum": "aVAX09paQYNOoCSKVpuk1exVIyBoMt/C50QJI+Q/3nA=" + }, + { + "source": { + "git": { + "remote": "https://github.com/grafana/jsonnet-libs.git", + "subdir": "ksonnet-util" + } + }, + "version": "254dfb6a7e4468dd16a5c40fcc5370c20a5a011e", + "sum": "0y3AFX9LQSpfWTxWKSwoLgbt0Wc9nnCwhMH2szKzHv0=" + }, + { + "source": { + "git": { + "remote": "https://github.com/jsonnet-libs/docsonnet.git", + "subdir": "doc-util" + } + }, + "version": "6ac6c69685b8c29c54515448eaca583da2d88150", + "sum": "BrAL/k23jq+xy9oA7TWIhUx07dsA/QLm3g7ktCwe//U=" + }, + { + "source": { + "git": { + "remote": "https://github.com/jsonnet-libs/k8s-libsonnet.git", + "subdir": "1.30" + } + }, + "version": "84aed0f9591ba86a3035e7ebe3557cb012039890", + "sum": "0OMrWr4xnhN5VWLXwPzCmdcENsifLNAZNzPvrHAnUAo=", + "name": "k8s-libsonnet" + }, + { + "source": { + "git": { + "remote": "https://github.com/jsonnet-libs/xtd.git", + "subdir": "" + } + }, + "version": "4eee017d21cb63a303925d1dcd9fc5c496809b46", + "sum": "Kh0GbIycNmJPzk6IOMXn1BbtLNyaiiimclYk7+mvsns=" + } + ], + "legacyImports": false +} diff --git a/pkg/server/testdata/k.libsonnet b/pkg/server/testdata/k.libsonnet new file mode 100644 index 0000000..62f5b96 --- /dev/null +++ b/pkg/server/testdata/k.libsonnet @@ -0,0 +1,11 @@ +(import 'k8s-libsonnet/main.libsonnet') ++ { + core+:: { v1+:: { namespace+:: { + new(name, create=false):: + // Namespace creation is handled by environments/cluster-resources. + // https://github.com/grafana/deployment_tools/blob/master/docs/platform/kubernetes/namespaces.md + if create + then super.new(name) + else {}, + } } }, +} diff --git a/pkg/server/testdata/use-ksonnet-util.jsonnet b/pkg/server/testdata/use-ksonnet-util.jsonnet new file mode 100644 index 0000000..07287a6 --- /dev/null +++ b/pkg/server/testdata/use-ksonnet-util.jsonnet @@ -0,0 +1,13 @@ +local k = import 'ksonnet-util/kausal.libsonnet'; + +{ + my_deploy: k.apps.v1.deployment.new( + 'my-deploy', + 1, + k.core.v1.container.new('test', 'alpine:latest'), + ), +} + +{ + my_deploy+: k.util.resourcesRequestsMixin('100m', '100Mi'), +} diff --git a/pkg/server/testdata/grafonnet/vendor/doc-util b/pkg/server/testdata/vendor/doc-util similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/doc-util rename to pkg/server/testdata/vendor/doc-util diff --git a/pkg/server/testdata/grafonnet/jsonnetfile.json b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/jsonnetfile.json similarity index 67% rename from pkg/server/testdata/grafonnet/jsonnetfile.json rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/jsonnetfile.json index 115d143..cb19173 100644 --- a/pkg/server/testdata/grafonnet/jsonnetfile.json +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/jsonnetfile.json @@ -1,15 +1,15 @@ { - "version": 1, "dependencies": [ { "source": { "git": { "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-v10.0.0" + "subdir": "gen/grafonnet-v11.4.0" } }, "version": "main" } ], - "legacyImports": true -} + "legacyImports": false, + "version": 1 +} \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet new file mode 100644 index 0000000..e6a2060 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet @@ -0,0 +1 @@ +import 'github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/main.libsonnet' diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/accesspolicy.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/accesspolicy.libsonnet new file mode 100644 index 0000000..2f07e07 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/accesspolicy.libsonnet @@ -0,0 +1,90 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.accesspolicy', name: 'accesspolicy' }, + '#withRole': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The role that must apply this policy' } }, + withRole(value): { + role: value, + }, + '#withRoleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The role that must apply this policy' } }, + withRoleMixin(value): { + role+: value, + }, + role+: + { + '#withKind': { 'function': { args: [{ default: null, enums: ['Role', 'BuiltinRole', 'Team', 'User'], name: 'value', type: ['string'] }], help: 'Policies can apply to roles, teams, or users\nApplying policies to individual users is supported, but discouraged' } }, + withKind(value): { + role+: { + kind: value, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + role+: { + name: value, + }, + }, + '#withXname': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withXname(value): { + role+: { + xname: value, + }, + }, + }, + '#withRules': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The set of rules to apply. Note that * is required to modify\naccess policy rules, and that "none" will reject all actions' } }, + withRules(value): { + rules: + (if std.isArray(value) + then value + else [value]), + }, + '#withRulesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The set of rules to apply. Note that * is required to modify\naccess policy rules, and that "none" will reject all actions' } }, + withRulesMixin(value): { + rules+: + (if std.isArray(value) + then value + else [value]), + }, + rules+: + { + '#': { help: '', name: 'rules' }, + '#withKind': { 'function': { args: [{ default: '*', enums: null, name: 'value', type: ['string'] }], help: 'The kind this rule applies to (dashboards, alert, etc)' } }, + withKind(value='*'): { + kind: value, + }, + '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific sub-elements like "alert.rules" or "dashboard.permissions"????' } }, + withTarget(value): { + target: value, + }, + '#withVerb': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'string', 'string'] }], help: 'READ, WRITE, CREATE, DELETE, ...\nshould move to k8s style verbs like: "get", "list", "watch", "create", "update", "patch", "delete"' } }, + withVerb(value): { + verb: value, + }, + '#withVerbMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'string', 'string'] }], help: 'READ, WRITE, CREATE, DELETE, ...\nshould move to k8s style verbs like: "get", "list", "watch", "create", "update", "patch", "delete"' } }, + withVerbMixin(value): { + verb+: value, + }, + }, + '#withScope': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The scope where these policies should apply' } }, + withScope(value): { + scope: value, + }, + '#withScopeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The scope where these policies should apply' } }, + withScopeMixin(value): { + scope+: value, + }, + scope+: + { + '#withKind': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withKind(value): { + scope+: { + kind: value, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + scope+: { + name: value, + }, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/alerting.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/alerting.libsonnet new file mode 100644 index 0000000..c5e1415 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/alerting.libsonnet @@ -0,0 +1,9 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.alerting', name: 'alerting' }, + contactPoint: import 'clean/alerting/contactPoint.libsonnet', + notificationPolicy: import 'clean/alerting/notificationPolicy.libsonnet', + muteTiming: import 'clean/alerting/muteTiming.libsonnet', + ruleGroup: import 'clean/alerting/ruleGroup.libsonnet', + notificationTemplate: import 'clean/alerting/notificationTemplate.libsonnet', +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/contactPoint.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/contactPoint.libsonnet new file mode 100644 index 0000000..13c81df --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/contactPoint.libsonnet @@ -0,0 +1,33 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.alerting.contactPoint', name: 'contactPoint' }, + '#withDisableResolveMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withDisableResolveMessage(value=true): { + disableResolveMessage: value, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name is used as grouping key in the UI. Contact points with the\nsame name will be grouped in the UI.' } }, + withName(value): { + name: value, + }, + '#withProvenance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withProvenance(value): { + provenance: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['alertmanager', ' dingding', ' discord', ' email', ' googlechat', ' kafka', ' line', ' opsgenie', ' pagerduty', ' pushover', ' sensugo', ' slack', ' teams', ' telegram', ' threema', ' victorops', ' webhook', ' wecom'], name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + type: value, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'UID is the unique identifier of the contact point. The UID can be\nset by the user.' } }, + withUid(value): { + uid: value, + }, +} ++ (import '../../custom/alerting/contactPoint.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/muteTiming.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/muteTiming.libsonnet new file mode 100644 index 0000000..a36d339 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/muteTiming.libsonnet @@ -0,0 +1,135 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.alerting.muteTiming', name: 'muteTiming' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimeIntervals(value): { + time_intervals: + (if std.isArray(value) + then value + else [value]), + }, + '#withTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimeIntervalsMixin(value): { + time_intervals+: + (if std.isArray(value) + then value + else [value]), + }, + interval+: + { + '#': { help: '', name: 'interval' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimeIntervals(value): { + time_intervals: + (if std.isArray(value) + then value + else [value]), + }, + '#withTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimeIntervalsMixin(value): { + time_intervals+: + (if std.isArray(value) + then value + else [value]), + }, + time_intervals+: + { + '#': { help: '', name: 'time_intervals' }, + '#withDaysOfMonth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDaysOfMonth(value): { + days_of_month: + (if std.isArray(value) + then value + else [value]), + }, + '#withDaysOfMonthMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDaysOfMonthMixin(value): { + days_of_month+: + (if std.isArray(value) + then value + else [value]), + }, + '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLocation(value): { + location: value, + }, + '#withMonths': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withMonths(value): { + months: + (if std.isArray(value) + then value + else [value]), + }, + '#withMonthsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withMonthsMixin(value): { + months+: + (if std.isArray(value) + then value + else [value]), + }, + '#withTimes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimes(value): { + times: + (if std.isArray(value) + then value + else [value]), + }, + '#withTimesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimesMixin(value): { + times+: + (if std.isArray(value) + then value + else [value]), + }, + times+: + { + '#': { help: '', name: 'times' }, + '#withEndTime': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withEndTime(value): { + end_time: value, + }, + '#withStartTime': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withStartTime(value): { + start_time: value, + }, + }, + '#withWeekdays': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withWeekdays(value): { + weekdays: + (if std.isArray(value) + then value + else [value]), + }, + '#withWeekdaysMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withWeekdaysMixin(value): { + weekdays+: + (if std.isArray(value) + then value + else [value]), + }, + '#withYears': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withYears(value): { + years: + (if std.isArray(value) + then value + else [value]), + }, + '#withYearsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withYearsMixin(value): { + years+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, +} ++ (import '../../custom/alerting/muteTiming.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/notificationPolicy.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/notificationPolicy.libsonnet new file mode 100644 index 0000000..5de952e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/notificationPolicy.libsonnet @@ -0,0 +1,97 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.alerting.notificationPolicy', name: 'notificationPolicy' }, + '#withContinue': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withContinue(value=true): { + continue: value, + }, + '#withGroupInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withGroupInterval(value): { + group_interval: value, + }, + '#withGroupWait': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withGroupWait(value): { + group_wait: value, + }, + '#withRepeatInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRepeatInterval(value): { + repeat_interval: value, + }, + '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withGroupBy(value): { + group_by: + (if std.isArray(value) + then value + else [value]), + }, + '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withGroupByMixin(value): { + group_by+: + (if std.isArray(value) + then value + else [value]), + }, + '#withMatchers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, + withMatchers(value): { + matchers: + (if std.isArray(value) + then value + else [value]), + }, + '#withMatchersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, + withMatchersMixin(value): { + matchers+: + (if std.isArray(value) + then value + else [value]), + }, + '#withMuteTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withMuteTimeIntervals(value): { + mute_time_intervals: + (if std.isArray(value) + then value + else [value]), + }, + '#withMuteTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withMuteTimeIntervalsMixin(value): { + mute_time_intervals+: + (if std.isArray(value) + then value + else [value]), + }, + '#withReceiver': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withReceiver(value): { + receiver: value, + }, + '#withRoutes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withRoutes(value): { + routes: + (if std.isArray(value) + then value + else [value]), + }, + '#withRoutesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withRoutesMixin(value): { + routes+: + (if std.isArray(value) + then value + else [value]), + }, + matcher+: + { + '#': { help: '', name: 'matcher' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + Name: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['=', '!=', '=~', '!~'], name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + Type: value, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withValue(value): { + Value: value, + }, + }, +} ++ (import '../../custom/alerting/notificationPolicy.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/notificationTemplate.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/notificationTemplate.libsonnet new file mode 100644 index 0000000..b33d72c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/notificationTemplate.libsonnet @@ -0,0 +1,20 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.alerting.notificationTemplate', name: 'notificationTemplate' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withProvenance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withProvenance(value): { + provenance: value, + }, + '#withTemplate': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTemplate(value): { + template: value, + }, + '#withVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withVersion(value): { + version: value, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/ruleGroup.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/ruleGroup.libsonnet new file mode 100644 index 0000000..92ddca4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/clean/alerting/ruleGroup.libsonnet @@ -0,0 +1,147 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.alerting.ruleGroup', name: 'ruleGroup' }, + '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFolderUid(value): { + folderUid: value, + }, + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Duration in seconds.' } }, + withInterval(value): { + interval: value, + }, + '#withRules': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withRules(value): { + rules: + (if std.isArray(value) + then value + else [value]), + }, + '#withRulesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withRulesMixin(value): { + rules+: + (if std.isArray(value) + then value + else [value]), + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTitle(value): { + title: value, + }, + rule+: + { + '#withAnnotations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAnnotations(value): { + annotations: value, + }, + '#withAnnotationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAnnotationsMixin(value): { + annotations+: value, + }, + '#withCondition': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withCondition(value): { + condition: value, + }, + '#withData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withData(value): { + data: + (if std.isArray(value) + then value + else [value]), + }, + '#withDataMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDataMixin(value): { + data+: + (if std.isArray(value) + then value + else [value]), + }, + '#withExecErrState': { 'function': { args: [{ default: null, enums: ['OK', 'Alerting', 'Error'], name: 'value', type: ['string'] }], help: '' } }, + withExecErrState(value): { + execErrState: value, + }, + '#withFolderUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFolderUID(value): { + folderUID: value, + }, + '#withFor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The amount of time, in seconds, for which the rule must be breached for the rule to be considered to be Firing.\nBefore this time has elapsed, the rule is only considered to be Pending.' } }, + withFor(value): { + 'for': value, + }, + '#withIsPaused': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsPaused(value=true): { + isPaused: value, + }, + '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLabels(value): { + labels: value, + }, + '#withLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLabelsMixin(value): { + labels+: value, + }, + '#withNoDataState': { 'function': { args: [{ default: null, enums: ['Alerting', 'NoData', 'OK'], name: 'value', type: ['string'] }], help: '' } }, + withNoDataState(value): { + noDataState: value, + }, + '#withOrgID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withOrgID(value): { + orgID: value, + }, + '#withRuleGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRuleGroup(value): { + ruleGroup: value, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTitle(value): { + title: value, + }, + data+: + { + '#': { help: '', name: 'data' }, + '#withDatasourceUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation." } }, + withDatasourceUid(value): { + datasourceUid: value, + }, + '#withModel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'JSON is the raw JSON query and includes the above properties as well as custom properties.' } }, + withModel(value): { + model: value, + }, + '#withModelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'JSON is the raw JSON query and includes the above properties as well as custom properties.' } }, + withModelMixin(value): { + model+: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, + withRefId(value): { + refId: value, + }, + '#withRelativeTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'RelativeTimeRange is the per query start and end time\nfor requests.' } }, + withRelativeTimeRange(value): { + relativeTimeRange: value, + }, + '#withRelativeTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'RelativeTimeRange is the per query start and end time\nfor requests.' } }, + withRelativeTimeRangeMixin(value): { + relativeTimeRange+: value, + }, + relativeTimeRange+: + { + '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Duration in seconds.' } }, + withFrom(value): { + relativeTimeRange+: { + from: value, + }, + }, + '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Duration in seconds.' } }, + withTo(value): { + relativeTimeRange+: { + to: value, + }, + }, + }, + }, + }, +} ++ (import '../../custom/alerting/ruleGroup.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/contactPoint.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/contactPoint.libsonnet new file mode 100644 index 0000000..4b8bbf0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/contactPoint.libsonnet @@ -0,0 +1,12 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#'+:: { + help+: + ||| + + + **NOTE**: The schemas for all different contact points is under development, this means we can't properly express them in Grafonnet yet. The way this works now may change heavily. + |||, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/muteTiming.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/muteTiming.libsonnet new file mode 100644 index 0000000..4a2efb3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/muteTiming.libsonnet @@ -0,0 +1,8 @@ +{ + '#withTimeIntervals': { ignore: true }, + '#withIntervals': super['#withTimeIntervals'], + withIntervals: super.withTimeIntervals, + '#withTimeIntervalsMixin': { ignore: true }, + '#withIntervalsMixin': super['#withTimeIntervalsMixin'], + withIntervalsMixin: super.withTimeIntervalsMixin, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/notificationPolicy.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/notificationPolicy.libsonnet new file mode 100644 index 0000000..cf9a2b7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/notificationPolicy.libsonnet @@ -0,0 +1,12 @@ +{ + '#withReceiver': { ignore: true }, + '#withContactPoint': super['#withReceiver'], + withContactPoint: super.withReceiver, + + '#withRoutes': { ignore: true }, + '#withPolicy': super['#withRoutes'], + withPolicy: super.withRoutes, + '#withRoutesMixin': { ignore: true }, + '#withPolicyMixin': super['#withRoutesMixin'], + withPolicyMixin: super.withRoutesMixin, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/ruleGroup.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/ruleGroup.libsonnet new file mode 100644 index 0000000..4ed32af --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/alerting/ruleGroup.libsonnet @@ -0,0 +1,13 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#withTitle': { ignore: true }, + '#withName': super['#withTitle'], + withName: super.withTitle, + rule+: { + '#':: d.package.newSub('rule', ''), + '#withTitle': { ignore: true }, + '#withName': super['#withTitle'], + withName: super.withTitle, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard.libsonnet new file mode 100644 index 0000000..ea8cb55 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard.libsonnet @@ -0,0 +1,69 @@ +local util = import './util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#new':: d.func.new( + 'Creates a new dashboard with a title.', + args=[d.arg('title', d.T.string)] + ), + new(title): + self.withTitle(title) + + self.withSchemaVersion() + + self.withTimezone('utc') + + self.time.withFrom('now-6h') + + self.time.withTo('now'), + + '#withSchemaVersion': { 'function'+: { args: [d.arg('value', d.T.integer, default=39)] } }, + withSchemaVersion(value=39): { + schemaVersion: value, + }, + + '#withPanels':: d.func.new( + '`withPanels` sets the panels on a dashboard authoratively. It automatically adds IDs to the panels, this can be disabled with `setPanelIDs=false`.', + args=[ + d.arg('panels', d.T.array), + d.arg('setPanelIDs', d.T.bool, default=true), + ] + ), + withPanels(panels, setPanelIDs=true): { + _panels:: if std.isArray(panels) then panels else [panels], + panels: + if setPanelIDs + then util.panel.setPanelIDs(self._panels) + else self._panels, + }, + '#withPanelsMixin':: d.func.new( + '`withPanelsMixin` adds more panels to a dashboard.', + args=[ + d.arg('panels', d.T.array), + d.arg('setPanelIDs', d.T.bool, default=true), + ] + ), + withPanelsMixin(panels, setPanelIDs=true): { + _panels+:: if std.isArray(panels) then panels else [panels], + panels: + if setPanelIDs + then util.panel.setPanelIDs(self._panels) + else self._panels, + }, + + graphTooltip+: { + // 0 - Default + // 1 - Shared crosshair + // 2 - Shared tooltip + '#withSharedCrosshair':: d.func.new( + 'Share crosshair on all panels.', + ), + withSharedCrosshair(): + { graphTooltip: 1 }, + + '#withSharedTooltip':: d.func.new( + 'Share crosshair and tooltip on all panels.', + ), + withSharedTooltip(): + { graphTooltip: 2 }, + }, +} ++ (import './dashboard/annotation.libsonnet') ++ (import './dashboard/link.libsonnet') ++ (import './dashboard/variable.libsonnet') diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard/annotation.libsonnet similarity index 99% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard/annotation.libsonnet index 7b2e04f..02892ab 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard/annotation.libsonnet @@ -27,7 +27,7 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; annotation: super.annotation.list - { + + { '#':: d.package.newSub( 'annotation', '', diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard/link.libsonnet similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard/link.libsonnet diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard/variable.libsonnet similarity index 88% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard/variable.libsonnet index e21ef9c..b4ce4d3 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/dashboard/variable.libsonnet @@ -2,8 +2,7 @@ local util = import '../util/main.libsonnet'; local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; { - '#templating':: {}, - local var = self.templating.list, + local var = super.variable.list, '#withVariables': d.func.new( @@ -12,7 +11,7 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; |||, args=[d.arg('value', d.T.array)] ), - withVariables(value): self.templating.withList(value), + withVariables(value): super.variable.withList(value), '#withVariablesMixin': d.func.new( @@ -23,7 +22,7 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; |||, args=[d.arg('value', d.T.array)] ), - withVariablesMixin(value): self.templating.withListMixin(value), + withVariablesMixin(value): super.variable.withListMixin(value), variable: { '#':: d.package.newSub( @@ -86,6 +85,28 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; '#withNothing':: d.func.new(''), withNothing(): var.withHide(2), }, + + '#withCurrent':: d.func.new( + ||| + `withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. + |||, + args=[ + d.arg('key', d.T.any), + d.arg('value', d.T.any, default=''), + ] + ), + withCurrent(key, value=key): { + local multi(v) = + if std.get(self, 'multi', false) + && !std.isArray(v) + then [v] + else v, + current: { + selected: false, + text: multi(key), + value: multi(value), + }, + }, }, }, @@ -111,7 +132,7 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; |||, args=[ d.arg('value', d.T.boolean, default=true), - d.arg('customAllValue', d.T.boolean, default=null), + d.arg('customAllValue', d.T.string, default=null), ] ), withIncludeAll(value=true, customAllValue=null): { @@ -238,6 +259,15 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; if metric == '' then var.withQuery('label_values(%s)' % label) else var.withQuery('label_values(%s, %s)' % [metric, label]), + + '#withQueryResult':: d.func.new( + 'Construct a Prometheus template variable using `query_result()`.', + args=[ + d.arg('query', d.T.string), + ] + ), + withQueryResult(query): + var.withQuery('query_result(%s)' % query), }, // Deliberately undocumented, use `refresh` below @@ -308,7 +338,11 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; ]), // Set current/options - current: util.dashboard.getCurrentFromValues(self.values), + current: + util.dashboard.getCurrentFromValues( + self.values, + std.get(self, 'multi', false) + ), options: util.dashboard.getOptionsFromValues(self.values), }, @@ -320,7 +354,7 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; textbox: generalOptions - { + + { '#new':: d.func.new( '`new` creates a textbox template variable.', args=[ @@ -338,14 +372,18 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; // Set current/options keyvaluedict:: [{ key: this.query, value: this.query }], - current: util.dashboard.getCurrentFromValues(self.keyvaluedict), + current: + util.dashboard.getCurrentFromValues( + self.keyvaluedict, + std.get(self, 'multi', false) + ), options: util.dashboard.getOptionsFromValues(self.keyvaluedict), }, }, constant: generalOptions - { + + { '#new':: d.func.new( '`new` creates a hidden constant template variable.', args=[ @@ -392,7 +430,7 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; interval: generalOptions - { + + { '#new':: d.func.new( '`new` creates an interval template variable.', args=[ @@ -417,7 +455,11 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; } for item in values ], - current: util.dashboard.getCurrentFromValues(self.keyvaluedict), + current: + util.dashboard.getCurrentFromValues( + self.keyvaluedict, + std.get(self, 'multi', false) + ), options: util.dashboard.getOptionsFromValues(self.keyvaluedict), }, @@ -451,7 +493,7 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; adhoc: generalOptions - { + + { '#new':: d.func.new( '`new` creates an adhoc template variable for datasource with `type` and `uid`.', args=[ @@ -466,7 +508,7 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + var.datasource.withType(type) + var.datasource.withUid(uid), - '#newFromVariable':: d.func.new( + '#newFromDatasourceVariable':: d.func.new( 'Same as `new` but selecting the datasource from another template variable.', args=[ d.arg('name', d.T.string), diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/panel.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/panel.libsonnet new file mode 100644 index 0000000..240a044 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/panel.libsonnet @@ -0,0 +1,171 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +// match name/title to reduce diff in docs +local panelNames = { + alertgroups: 'alertGroups', + annolist: 'annotationsList', + barchart: 'barChart', + bargauge: 'barGauge', + dashlist: 'dashboardList', + nodeGraph: 'nodeGraph', + piechart: 'pieChart', + 'state-timeline': 'stateTimeline', + 'status-history': 'statusHistory', + timeseries: 'timeSeries', + xychart: 'xyChart', +}; + +local getPanelName(type) = + std.get(panelNames, type, type); + +{ + '#new':: d.func.new( + 'Creates a new %s panel with a title.' % getPanelName(self.panelOptions.withType().type), + args=[d.arg('title', d.T.string)] + ), + new(title): + self.panelOptions.withTitle(title) + + self.panelOptions.withType() + + self.panelOptions.withPluginVersion() + // Default to Mixed datasource so panels can be datasource agnostic, this + // requires query targets to explicitly set datasource, which is a lot more + // interesting from a reusability standpoint. + + self.queryOptions.withDatasource('datasource', '-- Mixed --'), + + // Backwards compatible entries, ignored in docs + link+: self.panelOptions.link + { '#':: { ignore: true } }, + thresholdStep+: self.standardOptions.threshold.step + { '#':: { ignore: true } }, + transformation+: self.queryOptions.transformation + { '#':: { ignore: true } }, + valueMapping+: self.standardOptions.mapping + { '#':: { ignore: true } }, + fieldOverride+: self.standardOptions.override + { '#':: { ignore: true } }, + + '#gridPos': {}, // use withGridPos instead, a bit more concise. + local gridPos = self.gridPos, + panelOptions+: { + '#withPluginVersion': {}, + + '#withGridPos': d.func.new( + ||| + `withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + + All arguments default to `null`, which means they will remain unchanged or unset. + |||, + args=[ + d.arg('h', d.T.number, default='null'), + d.arg('w', d.T.number, default='null'), + d.arg('x', d.T.number, default='null'), + d.arg('y', d.T.number, default='null'), + ] + ), + withGridPos(h=null, w=null, x=null, y=null): + (if h != null then gridPos.withH(h) else {}) + + (if w != null then gridPos.withW(w) else {}) + + (if x != null then gridPos.withX(x) else {}) + + (if y != null then gridPos.withY(y) else {}), + }, + + '#datasource':: {}, // use withDatasource instead, bit more concise + local datasource = self.datasource, + queryOptions+: { + '#withDatasource':: d.func.new( + ||| + `withDatasource` sets the datasource for all queries in a panel. + + The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + |||, + args=[ + d.arg('type', d.T.string), + d.arg('uid', d.T.string), + ] + ), + withDatasource(type, uid): + datasource.withType(type) + + datasource.withUid(uid), + }, + + standardOptions+: { + threshold+: { step+: { '#':: d.package.newSub('threshold.step', '') } }, + + local overrides = super.override, + local commonOverrideFunctions = { + '#new':: d.fn( + '`new` creates a new override of type `%s`.' % self.type, + args=[ + d.arg('value', d.T.string), + ] + ), + new(value): + overrides.matcher.withId(self.type) + + overrides.matcher.withOptions(value), + + '#withProperty':: d.fn( + ||| + `withProperty` adds a property that needs to be overridden. This function can + be called multiple time, adding more properties. + |||, + args=[ + d.arg('id', d.T.string), + d.arg('value', d.T.any), + ] + ), + withProperty(id, value): + overrides.withPropertiesMixin([ + overrides.properties.withId(id) + + overrides.properties.withValue(value), + ]), + + '#withPropertiesFromOptions':: d.fn( + ||| + `withPropertiesFromOptions` takes an object with properties that need to be + overridden. See example code above. + |||, + args=[ + d.arg('options', d.T.object), + ] + ), + withPropertiesFromOptions(options): + local infunc(input, path=[]) = + std.foldl( + function(acc, p) + acc + ( + if p == 'custom' + then infunc(input[p], path=path + [p]) + else + overrides.withPropertiesMixin([ + overrides.properties.withId(std.join('.', path + [p])) + + overrides.properties.withValue(input[p]), + ]) + ), + std.objectFields(input), + {} + ); + infunc(options.fieldConfig.defaults), + }, + + override: + { + '#':: d.package.newSub( + 'override', + ||| + Overrides allow you to customize visualization settings for specific fields or + series. This is accomplished by adding an override rule that targets + a particular set of fields and that can each define multiple options. + + ```jsonnet + override.byType.new('number') + + override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') + ) + ``` + ||| + ), + byName: commonOverrideFunctions + { type:: 'byName' }, + byRegexp: commonOverrideFunctions + { type:: 'byRegexp' }, + byType: commonOverrideFunctions + { type:: 'byType' }, + byQuery: commonOverrideFunctions + { type:: 'byFrameRefID' }, + // TODO: byValue takes more complex `options` than string + byValue: commonOverrideFunctions + { type:: 'byValue' }, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/azureMonitor.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/azureMonitor.libsonnet new file mode 100644 index 0000000..8926449 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/azureMonitor.libsonnet @@ -0,0 +1,17 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(value): { + datasource+: { + type: 'grafana-azure-monitor-datasource', + uid: value, + }, + }, + '#withDatasourceMixin':: { ignore: true }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/cloudWatch.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/cloudWatch.libsonnet new file mode 100644 index 0000000..208ee65 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/cloudWatch.libsonnet @@ -0,0 +1,23 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + local withDatasourceStub = { + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(value): { + datasource+: { + type: 'cloudwatch', + uid: value, + }, + }, + '#withDatasourceMixin':: { ignore: true }, + }, + + CloudWatchAnnotationQuery+: withDatasourceStub, + CloudWatchLogsQuery+: withDatasourceStub, + CloudWatchMetricsQuery+: withDatasourceStub, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/elasticsearch.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/elasticsearch.libsonnet new file mode 100644 index 0000000..7d1d54a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/elasticsearch.libsonnet @@ -0,0 +1,20 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + bucketAggs+: { '#': { help: '', name: 'bucketAggs' } }, + metrics+: { '#': { help: '', name: 'metrics' } }, + + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(value): { + datasource+: { + type: 'elasticsearch', + uid: value, + }, + }, + '#withDatasourceMixin':: { ignore: true }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/expr.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/expr.libsonnet new file mode 100644 index 0000000..02417b6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/expr.libsonnet @@ -0,0 +1,12 @@ +{ + '#': { + help: 'Server Side Expression operations for grafonnet.alerting.ruleGroup.rule', + name: 'expr', + }, + TypeMath+: { '#': { help: 'grafonnet.query.expr.TypeMath', name: 'TypeMath' } }, + TypeReduce+: { '#': { help: 'grafonnet.query.expr.TypeReduce', name: 'TypeReduce' } }, + TypeResample+: { '#': { help: 'grafonnet.query.expr.TypeResample', name: 'TypeResample' } }, + TypeClassicConditions+: { '#': { help: 'grafonnet.query.expr.TypeClassicConditions', name: 'TypeClassicConditions' } }, + TypeThreshold+: { '#': { help: 'grafonnet.query.expr.TypeThreshold', name: 'TypeThreshold' } }, + TypeSql+: { '#': { help: 'grafonnet.query.expr.TypeSql', name: 'TypeSql' } }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/googleCloudMonitoring.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/googleCloudMonitoring.libsonnet new file mode 100644 index 0000000..1adaa99 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/googleCloudMonitoring.libsonnet @@ -0,0 +1,17 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(value): { + datasource+: { + type: 'cloud-monitoring', + uid: value, + }, + }, + '#withDatasourceMixin':: { ignore: true }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/grafanaPyroscope.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/grafanaPyroscope.libsonnet new file mode 100644 index 0000000..2f52821 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/grafanaPyroscope.libsonnet @@ -0,0 +1,17 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(value): { + datasource+: { + type: 'grafanapyroscope', + uid: value, + }, + }, + '#withDatasourceMixin':: { ignore: true }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/loki.libsonnet similarity index 92% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/loki.libsonnet index 9c19f83..4831145 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/loki.libsonnet @@ -24,4 +24,5 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; uid: value, }, }, + '#withDatasourceMixin':: { ignore: true }, } diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/parca.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/parca.libsonnet new file mode 100644 index 0000000..35c454e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/parca.libsonnet @@ -0,0 +1,17 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(value): { + datasource+: { + type: 'parca', + uid: value, + }, + }, + '#withDatasourceMixin':: { ignore: true }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/prometheus.libsonnet similarity index 95% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/prometheus.libsonnet index 3abe221..68e1e05 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/prometheus.libsonnet @@ -44,4 +44,5 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; uid: value, }, }, + '#withDatasourceMixin':: { ignore: true }, } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/tempo.libsonnet similarity index 93% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/tempo.libsonnet index debcb73..f9fc910 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/tempo.libsonnet @@ -26,4 +26,5 @@ local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; uid: value, }, }, + '#withDatasourceMixin':: { ignore: true }, } diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/testData.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/testData.libsonnet new file mode 100644 index 0000000..b482dbc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/query/testData.libsonnet @@ -0,0 +1,17 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#withDatasource':: d.func.new( + 'Set the datasource for this query.', + args=[ + d.arg('value', d.T.string), + ] + ), + withDatasource(): { + datasource+: { + type: 'datasource', + uid: 'grafana', + }, + }, + '#withDatasourceMixin':: { ignore: true }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/row.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/row.libsonnet new file mode 100644 index 0000000..049537e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/row.libsonnet @@ -0,0 +1,26 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#new':: d.func.new( + 'Creates a new row panel with a title.', + args=[d.arg('title', d.T.string)] + ), + new(title): + self.withTitle(title) + + self.withType() + + self.withCollapsed(false) + + self.gridPos.withX(0) + + self.gridPos.withH(1) + + self.gridPos.withW(24), + + '#gridPos':: {}, // use withGridPos instead + '#withGridPos':: d.func.new( + '`withGridPos` sets the Y-axis on a row panel. x, width and height are fixed values.', + args=[d.arg('y', d.T.number)] + ), + withGridPos(y): + self.gridPos.withX(0) + + self.gridPos.withY(y) + + self.gridPos.withH(1) + + self.gridPos.withW(24), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/dashboard.libsonnet similarity index 85% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/dashboard.libsonnet index 74d17d4..da7b2c8 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/dashboard.libsonnet @@ -16,16 +16,16 @@ local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; |||, args=[d.arg('query', d.T.string)], ), - getOptionsForCustomQuery(query): { + getOptionsForCustomQuery(query, multi): { local values = root.parseCustomQuery(query), - current: root.getCurrentFromValues(values), + current: root.getCurrentFromValues(values, multi), options: root.getOptionsFromValues(values), }, - getCurrentFromValues(values): { + getCurrentFromValues(values, multi): { selected: false, - text: values[0].key, - value: values[0].value, + text: if multi then [values[0].key] else values[0].key, + value: if multi then [values[0].value] else values[0].value, }, getOptionsFromValues(values): diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/grid.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/grid.libsonnet new file mode 100644 index 0000000..8214cdd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/grid.libsonnet @@ -0,0 +1,212 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; +local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; + +local panelUtil = import './panel.libsonnet'; + +{ + local root = self, + + local gridWidth = 24, + + '#makeGrid':: d.func.new( + ||| + `makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` + and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, + then all panels below it will be folded into the row. + + This function will use the full grid of 24 columns, setting `panelWidth` to a value + that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) + Other value for `panelWidth` will leave a gap on the far right. + + Optional `startY` can be provided to place generated grid above or below existing panels. + |||, + args=[ + d.arg('panels', d.T.array), + d.arg('panelWidth', d.T.number), + d.arg('panelHeight', d.T.number), + d.arg('startY', d.T.number), + ], + ), + makeGrid(panels, panelWidth=8, panelHeight=8, startY=0): + local sanitizePanels(ps) = std.map( + function(p) + local sanePanel = panelUtil.sanitizePanel(p); + ( + if p.type == 'row' + then sanePanel + { + panels: sanitizePanels(sanePanel.panels), + } + else sanePanel + { + gridPos+: { + h: panelHeight, + w: panelWidth, + }, + } + ), + ps + ); + + local sanitizedPanels = sanitizePanels(panels); + + local grouped = panelUtil.groupPanelsInRows(sanitizedPanels); + + local panelsBeforeRows = panelUtil.getPanelsBeforeNextRow(grouped); + local rowPanels = + std.filter( + function(p) p.type == 'row', + grouped + ); + + local CalculateXforPanel(index, panel) = + local panelsPerRow = std.floor(gridWidth / panelWidth); + local col = std.mod(index, panelsPerRow); + panel + { gridPos+: { x: panelWidth * col } }; + + local panelsBeforeRowsWithX = std.mapWithIndex(CalculateXforPanel, panelsBeforeRows); + + local rowPanelsWithX = + std.map( + function(row) + row + { panels: std.mapWithIndex(CalculateXforPanel, row.panels) }, + rowPanels + ); + + local uncollapsed = panelUtil.resolveCollapsedFlagOnRows(panelsBeforeRowsWithX + rowPanelsWithX); + + local normalized = panelUtil.normalizeY(uncollapsed); + + std.map(function(p) p + { gridPos+: { y+: startY } }, normalized), + + '#wrapPanels':: d.func.new( + ||| + `wrapPanels` returns an array of `panels` organized in a grid, wrapping up to next 'row' if total width exceeds full grid of 24 columns. + 'panelHeight' and 'panelWidth' are used unless panels already have height and width defined. + |||, + args=[ + d.arg('panels', d.T.array), + d.arg('panelWidth', d.T.number), + d.arg('panelHeight', d.T.number), + d.arg('startY', d.T.number), + ], + ), + wrapPanels(panels, panelWidth=8, panelHeight=8, startY=0): + + local calculateGridPosForPanel(acc, panel) = + local gridPos = std.get(panel, 'gridPos', {}); + local width = std.get(gridPos, 'w', panelWidth); + local height = std.get(gridPos, 'h', panelHeight); + if acc.cursor.x + width > gridWidth + then + // start new row as width exceeds gridWidth + { + panels+: [ + panel + { + gridPos+: + { + x: 0, + y: acc.cursor.y + height, + w: width, + h: height, + }, + }, + ], + cursor+:: { + x: 0 + width, + y: acc.cursor.y + height, + maxH: if height > acc.cursor.maxH then height else acc.cursor.maxH, + }, + } + else + // enough width, place panel on current row + { + panels+: [ + panel + { + gridPos+: + { + x: acc.cursor.x, + y: acc.cursor.y, + w: width, + h: height, + }, + }, + ], + cursor+:: { + x: acc.cursor.x + width, + y: acc.cursor.y, + maxH: if height > acc.cursor.maxH then height else acc.cursor.maxH, + }, + }; + + std.foldl( + function(acc, panel) + if panel.type == 'row' + then + ( + if std.objectHas(panel, 'panels') && std.length(panel.panels) > 0 + then + local rowPanels = + std.foldl( + function(acc, panel) + acc + calculateGridPosForPanel(acc, panel), + panel.panels, + { + panels+: [], + // initial + cursor:: { + x: 0, + y: acc.cursor.y + acc.cursor.maxH + 1, + maxH: 0, + }, + }, + ); + acc + { + panels+: [ + panel + { + //rows panels + panels: rowPanels.panels, + gridPos+: { + x: 0, + y: acc.cursor.y + acc.cursor.maxH, + w: 0, + }, + + }, + ], + cursor:: rowPanels.cursor, + } + else + acc + { + panels+: [ + panel + { + panels: [], + gridPos+: + { + x: acc.cursor.x, + y: acc.cursor.y + acc.cursor.maxH, + w: 0, + h: 1, + }, + }, + ], + cursor:: { + x: 0, + y: acc.cursor.y + acc.cursor.maxH + 1, + maxH: 0, + }, + } + ) + else + // handle regular panel + acc + calculateGridPosForPanel(acc, panel), + panels, + // Initial value for acc: + { + panels: [], + cursor:: { + x: 0, + y: startY, + maxH: 0, // max height of current 'row' + }, + } + ).panels, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/main.libsonnet similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/main.libsonnet diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/panel.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/panel.libsonnet new file mode 100644 index 0000000..89e0bd7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/panel.libsonnet @@ -0,0 +1,420 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; +local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; + +{ + local this = self, + + // used in ../dashboard.libsonnet + '#setPanelIDs':: d.func.new( + ||| + `setPanelIDs` ensures that all `panels` have a unique ID, this function is used in `dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent experience. + + `overrideExistingIDs` can be set to not replace existing IDs, consider validating the IDs with `validatePanelIDs()` to ensure there are no duplicate IDs. + |||, + args=[ + d.arg('panels', d.T.array), + d.arg('overrideExistingIDs', d.T.bool, default=true), + ] + ), + setPanelIDs(panels, overrideExistingIDs=true): + local infunc(panels, start=1) = + std.foldl( + function(acc, panel) + acc + { + index: // Track the index to ensure no duplicates exist. + acc.index + + 1 + + (if panel.type == 'row' + && 'panels' in panel + then std.length(panel.panels) + else 0), + + panels+: [ + panel + + ( + if overrideExistingIDs + || std.get(panel, 'id', null) == null + then { id: acc.index } + else {} + ) + + ( + if panel.type == 'row' + && 'panels' in panel + then { + panels: + infunc( + panel.panels, + acc.index + 1 + ), + } + else {} + ), + ], + }, + panels, + { index: start, panels: [] } + ).panels; + infunc(panels), + + '#getPanelIDs':: d.func.new( + ||| + `getPanelIDs` returns an array with all panel IDs including IDs from panels in rows. + |||, + args=[ + d.arg('panels', d.T.array), + ] + ), + getPanelIDs(panels): + std.flattenArrays( + std.map( + function(panel) + [panel.id] + + (if panel.type == 'row' + then this.getPanelIDs(std.get(panel, 'panels', [])) + else []), + panels + ) + ), + + '#validatePanelIDs':: d.func.new( + ||| + `validatePanelIDs` validates returns `false` if there are duplicate panel IDs in `panels`. + |||, + args=[ + d.arg('panels', d.T.array), + ] + ), + validatePanelIDs(panels): + local ids = this.getPanelIDs(panels); + std.set(ids) == std.sort(ids), + + '#sanitizePanel':: d.func.new( + ||| + `sanitizePanel` ensures the panel has a valid `gridPos` and row panels have `collapsed` and `panels`. This function is recursively applied to panels inside row panels. + + The default values for x,y,h,w are only applied if not already set. + |||, + [ + d.arg('panel', d.T.object), + d.arg('defaultX', d.T.number, default=0), + d.arg('defaultY', d.T.number, default=0), + d.arg('defaultHeight', d.T.number, default=8), + d.arg('defaultWidth', d.T.number, default=8), + ] + ), + sanitizePanel(panel, defaultX=0, defaultY=0, defaultHeight=8, defaultWidth=8): + local infunc(panel) = + panel + + ( + local gridPos = std.get(panel, 'gridPos', {}); + if panel.type == 'row' + then { + collapsed: std.get(panel, 'collapsed', false), + panels: std.map(infunc, std.get(panel, 'panels', [])), + gridPos: { // x, h, w are fixed + x: 0, + y: std.get(gridPos, 'y', defaultY), + h: 1, + w: 24, + }, + } + else { + gridPos: { + x: std.get(gridPos, 'x', defaultX), + y: std.get(gridPos, 'y', defaultY), + h: std.get(gridPos, 'h', defaultHeight), + w: std.get(gridPos, 'w', defaultWidth), + }, + } + ); + infunc(panel), + + '#sortPanelsByXY':: d.func.new( + ||| + `sortPanelsByXY` applies a simple sorting algorithm, first by x then again by y. This does not take width and height into account. + |||, + [ + d.arg('panels', d.T.array), + ] + ), + sortPanelsByXY(panels): + std.sort( + std.sort( + panels, + function(panel) + panel.gridPos.x + ), + function(panel) + panel.gridPos.y + ), + + '#sortPanelsInRow':: d.func.new( + ||| + `sortPanelsInRow` applies `sortPanelsByXY` on the panels in a rowPanel. + |||, + [ + d.arg('rowPanel', d.T.object), + ] + ), + sortPanelsInRow(rowPanel): + rowPanel + { panels: this.sortPanelsByXY(rowPanel.panels) }, + + '#groupPanelsInRows':: d.func.new( + ||| + `groupPanelsInRows` ensures that panels that come after a row panel in an array are added to the `row.panels` attribute. This can be useful to apply intermediate functions to only the panels that belong to a row. Finally the panel array should get processed by `resolveCollapsedFlagOnRows` to "unfold" the rows that are not collapsed into the main array. + |||, + [ + d.arg('panels', d.T.array), + ] + ), + groupPanelsInRows(panels): + // Add panels that come after a row to row.panels + local grouped = + xtd.array.filterMapWithIndex( + function(i, p) p.type == 'row', + function(i, p) + p + { + panels+: + this.getPanelsBeforeNextRow(panels[i + 1:]), + }, + panels, + ); + + // Get panels that come before the rowGroups + local panelsBeforeRowGroups = this.getPanelsBeforeNextRow(panels); + + panelsBeforeRowGroups + grouped, + + '#getPanelsBeforeNextRow':: d.func.new( + ||| + `getPanelsBeforeNextRow` returns all panels in an array up until a row has been found. Used in `groupPanelsInRows`. + |||, + [ + d.arg('panels', d.T.array), + ] + ), + getPanelsBeforeNextRow(panels): + local rowIndexes = + xtd.array.filterMapWithIndex( + function(i, p) p.type == 'row', + function(i, p) i, + panels, + ); + if std.length(rowIndexes) != 0 + then panels[0:rowIndexes[0]] + else panels[0:], // if no row panels found, return all remaining panels + + '#resolveCollapsedFlagOnRows':: d.func.new( + ||| + `resolveCollapsedFlagOnRows` should be applied to the final panel array to "unfold" the rows that are not collapsed into the main array. + |||, + [ + d.arg('panels', d.T.array), + ] + ), + resolveCollapsedFlagOnRows(panels): + std.foldl( + function(acc, panel) + acc + ( + if panel.type == 'row' + && !panel.collapsed + then // If not collapsed, then move panels to main array below the row panel + [panel + { panels: [] }] + + panel.panels + else [panel] + ), + panels, + [], + ), + + '#normalizeY':: d.func.new( + ||| + `normalizeY` applies negative gravity on the inverted Y axis. This mimics the behavior of Grafana: when a panel is created without panel above it, then it'll float upward. + + This is strictly not required as Grafana will do this on dashboard load, however it might be helpful when used when calculating the correct `gridPos`. + |||, + [ + d.arg('panels', d.T.array), + ] + ), + normalizeY(panels): + std.foldl( + function(acc, i) + acc + [ + panels[i] + { + gridPos+: { + y: this.calculateLowestYforPanel(panels[i], acc), + }, + }, + ], + std.range(0, std.length(panels) - 1), + [] + ), + + '#calculateLowestYforPanel':: d.func.new( + ||| + `calculateLowestYforPanel` calculates Y for a given `panel` from the `gridPos` of an array of `panels`. This function is used in `normalizeY`. + |||, + [ + d.arg('panel', d.T.object), + d.arg('panels', d.T.array), + ] + ), + calculateLowestYforPanel(panel, panels): + xtd.number.maxInArray( // the new position is highest value (max) on the Y-scale + std.filterMap( + function(p) // find panels that overlap on X-scale + local v1 = panel.gridPos.x; + local v2 = panel.gridPos.x + panel.gridPos.w; + local x1 = p.gridPos.x; + local x2 = p.gridPos.x + p.gridPos.w; + (v1 >= x1 && v1 < x2) + || (v2 >= x1 && v2 < x2), + function(p) // return new position on Y-scale + p.gridPos.y + p.gridPos.h, + panels, + ), + ), + + '#normalizeYInRow':: d.func.new( + ||| + `normalizeYInRow` applies `normalizeY` to the panels in a row panel. + |||, + [ + d.arg('rowPanel', d.T.object), + ] + ), + normalizeYInRow(rowPanel): + rowPanel + { + panels: + std.map( + function(p) + p + { + gridPos+: { + y: // Increase panel Y with the row Y to put them below the row when not collapsed. + p.gridPos.y + + rowPanel.gridPos.y + + rowPanel.gridPos.h, + }, + }, + this.normalizeY(rowPanel.panels) + ), + }, + + '#mapToRows':: d.func.new( + ||| + `mapToRows` is a little helper function that applies `func` to all row panels in an array. Other panels in that array are returned ad verbatim. + |||, + [ + d.arg('func', d.T.func), + d.arg('panels', d.T.array), + ] + ), + mapToRows(func, panels): + std.map( + function(p) + if p.type == 'row' + then func(p) + else p, + panels + ), + + + '#setRefIDs':: d.func.new( + ||| + `setRefIDs` calculates the `refId` field for each target on a panel. + |||, + args=[ + d.arg('panel', d.T.object), + d.arg('overrideExistingIDs', d.T.bool, default=true), + ] + ), + setRefIDs(panel, overrideExistingIDs=true): + local calculateRefID(n) = + // From: https://github.com/grafana/grafana/blob/bffd87107b786930edd091060143ee013843efac/packages/grafana-data/src/query/refId.ts#L15 + local letters = std.map(std.char, std.range(std.codepoint('A'), std.codepoint('Z'))); + if n < std.length(letters) + then letters[n] + else calculateRefID(std.floor(n / std.length(letters)) - 1) + letters[std.mod(n, std.length(letters))]; + panel + { + targets: + std.mapWithIndex( + function(i, target) + if overrideExistingIDs + || !std.objectHas(target, 'refId') + then target + { + refId: calculateRefID(i), + } + else target, + panel.targets, + ), + }, + + '#setRefIDsOnPanels':: d.func.new( + ||| + `setRefIDsOnPanels` applies `setRefIDs on all `panels`. + |||, + args=[ + d.arg('panels', d.T.array), + ] + ), + setRefIDsOnPanels(panels): + std.map(self.setRefIDs, panels), + + '#dedupeQueryTargets':: d.func.new( + ||| + `dedupeQueryTargets` dedupes the query targets in a set of panels and replaces the duplicates with a ['shared query'](https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/share-query/). Sharing query results across panels reduces the number of queries made to your data source, which can improve the performance of your dashboard. + + This function requires that the query targets have `refId` set, `setRefIDs` and `setRefIDsOnPanels` can help with that. + |||, + args=[ + d.arg('panels', d.T.array), + ] + ), + dedupeQueryTargets(panels): + // Hide ref so it doesn't compare in equality + local targetWithoutRef(target) = + target + { refId:: target.refId }; + + // Find targets that are the same + local findTargets(targets, target) = + std.filter( + function(t) + targetWithoutRef(t) == targetWithoutRef(target), + targets + ); + + // Get a flat array of all targets including their panelId + local targets = std.flattenArrays([ + std.map(function(t) t + { panelId:: panel.id }, panel.targets) + for panel in panels + ]); + + std.map( + function(panel) + // Replace target with 'shared query' target if found in other panels + local replaceTarget(target) = + local found = findTargets(targets, target); + if std.length(found) > 0 + // Do not reference queries from the same panel + && found[0].panelId != panel.id + then { + datasource: { + type: 'datasource', + uid: '-- Dashboard --', + }, + refId: found[0].refId, + panelId: found[0].panelId, + } + else target; + + panel + { + targets: + std.map( + replaceTarget, + panel.targets, + ), + }, + panels + ), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/string.libsonnet similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/custom/util/string.libsonnet diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/dashboard.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/dashboard.libsonnet new file mode 100644 index 0000000..f5ea115 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/dashboard.libsonnet @@ -0,0 +1,596 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.dashboard', name: 'dashboard' }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Description of dashboard.' } }, + withDescription(value): { + description: value, + }, + '#withEditable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether a dashboard is editable or not.' } }, + withEditable(value=true): { + editable: value, + }, + '#withFiscalYearStartMonth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'The month that the fiscal year starts on. 0 = January, 11 = December' } }, + withFiscalYearStartMonth(value=0): { + fiscalYearStartMonth: value, + }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Links with references to other dashboards or external websites.' } }, + withLinks(value): { + links: + (if std.isArray(value) + then value + else [value]), + }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Links with references to other dashboards or external websites.' } }, + withLinksMixin(value): { + links+: + (if std.isArray(value) + then value + else [value]), + }, + '#withLiveNow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When set to true, the dashboard will redraw panels at an interval matching the pixel width.\nThis will keep data "moving left" regardless of the query refresh rate. This setting helps\navoid dashboards presenting stale live data' } }, + withLiveNow(value=true): { + liveNow: value, + }, + '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPanels(value): { + panels: + (if std.isArray(value) + then value + else [value]), + }, + '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPanelsMixin(value): { + panels+: + (if std.isArray(value) + then value + else [value]), + }, + '#withRefresh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, + withRefresh(value): { + refresh: value, + }, + '#withSchemaVersion': { 'function': { args: [{ default: 39, enums: null, name: 'value', type: ['integer'] }], help: 'Version of the JSON schema, incremented each time a Grafana update brings\nchanges to said schema.' } }, + withSchemaVersion(value=39): { + schemaVersion: value, + }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Tags associated with dashboard.' } }, + withTags(value): { + tags: + (if std.isArray(value) + then value + else [value]), + }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Tags associated with dashboard.' } }, + withTagsMixin(value): { + tags+: + (if std.isArray(value) + then value + else [value]), + }, + '#withTemplating': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configured template variables' } }, + withTemplating(value): { + templating: value, + }, + '#withTemplatingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configured template variables' } }, + withTemplatingMixin(value): { + templating+: value, + }, + '#withTimezone': { 'function': { args: [{ default: 'browser', enums: null, name: 'value', type: ['string'] }], help: 'Timezone of dashboard. Accepted values are IANA TZDB zone ID or "browser" or "utc".' } }, + withTimezone(value='browser'): { + timezone: value, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title of dashboard.' } }, + withTitle(value): { + title: value, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique dashboard identifier that can be generated by anyone. string (8-40)' } }, + withUid(value): { + uid: value, + }, + '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Day when the week starts. Expressed by the name of the day in lowercase, e.g. "monday".' } }, + withWeekStart(value): { + weekStart: value, + }, + time+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFrom(value='now-6h'): { + time+: { + from: value, + }, + }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTo(value='now'): { + time+: { + to: value, + }, + }, + }, + timepicker+: + { + '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether timepicker is visible or not.' } }, + withHidden(value=true): { + timepicker+: { + hidden: value, + }, + }, + '#withNowDelay': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values.' } }, + withNowDelay(value): { + timepicker+: { + nowDelay: value, + }, + }, + '#withRefreshIntervals': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: ['array'] }], help: 'Interval options available in the refresh picker dropdown.' } }, + withRefreshIntervals(value): { + timepicker+: { + refresh_intervals: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withRefreshIntervalsMixin': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: ['array'] }], help: 'Interval options available in the refresh picker dropdown.' } }, + withRefreshIntervalsMixin(value): { + timepicker+: { + refresh_intervals+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTimeOptions': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: ['array'] }], help: 'Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard.' } }, + withTimeOptions(value): { + timepicker+: { + time_options: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTimeOptionsMixin': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: ['array'] }], help: 'Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard.' } }, + withTimeOptionsMixin(value): { + timepicker+: { + time_options+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + link+: + { + dashboards+: + { + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title to display with the link' } }, + withTitle(value): { + title: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)' } }, + withType(value): { + type: value, + }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, + withTags(value): { + tags: + (if std.isArray(value) + then value + else [value]), + }, + options+: + { + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards' } }, + withAsDropdown(value=true): { + asDropdown: value, + }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current time range in the link as query params' } }, + withKeepTime(value=true): { + keepTime: value, + }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current template variables values in the link as query params' } }, + withIncludeVars(value=true): { + includeVars: value, + }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, the link will be opened in a new tab' } }, + withTargetBlank(value=true): { + targetBlank: value, + }, + }, + }, + link+: + { + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title to display with the link' } }, + withTitle(value): { + title: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)' } }, + withType(value): { + type: value, + }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Link URL. Only required/valid if the type is link' } }, + withUrl(value): { + url: value, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Tooltip to display when the user hovers their mouse over it' } }, + withTooltip(value): { + tooltip: value, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon name to be displayed with the link' } }, + withIcon(value): { + icon: value, + }, + options+: + { + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards' } }, + withAsDropdown(value=true): { + asDropdown: value, + }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current time range in the link as query params' } }, + withKeepTime(value=true): { + keepTime: value, + }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current template variables values in the link as query params' } }, + withIncludeVars(value=true): { + includeVars: value, + }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, the link will be opened in a new tab' } }, + withTargetBlank(value=true): { + targetBlank: value, + }, + }, + }, + }, + annotation+: + { + '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of annotations' } }, + withList(value): { + annotations+: { + list: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of annotations' } }, + withListMixin(value): { + annotations+: { + list+: + (if std.isArray(value) + then value + else [value]), + }, + }, + list+: + { + '#': { help: '', name: 'list' }, + '#withBuiltIn': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Set to 1 for the standard annotation query all dashboards have by default.' } }, + withBuiltIn(value=0): { + builtIn: value, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When enabled the annotation query is issued with every dashboard refresh' } }, + withEnable(value=true): { + enable: value, + }, + '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withExpr(value): { + expr: value, + }, + '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Filters to apply when fetching annotations' } }, + withFilter(value): { + filter: value, + }, + '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Filters to apply when fetching annotations' } }, + withFilterMixin(value): { + filter+: value, + }, + filter+: + { + '#withExclude': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Should the specified panels be included or excluded' } }, + withExclude(value=true): { + filter+: { + exclude: value, + }, + }, + '#withIds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel IDs that should be included or excluded' } }, + withIds(value): { + filter+: { + ids: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withIdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel IDs that should be included or excluded' } }, + withIdsMixin(value): { + filter+: { + ids+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Annotation queries can be toggled on or off at the top of the dashboard.\nWhen hide is true, the toggle is not shown in the dashboard.' } }, + withHide(value=true): { + hide: value, + }, + '#withIconColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Color to use for the annotation event markers' } }, + withIconColor(value): { + iconColor: value, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of annotation.' } }, + withName(value): { + name: value, + }, + '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, + withTarget(value): { + target: value, + }, + '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, + withTargetMixin(value): { + target+: value, + }, + target+: + { + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withLimit(value): { + target+: { + limit: value, + }, + }, + '#withMatchAny': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withMatchAny(value=true): { + target+: { + matchAny: value, + }, + }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withTags(value): { + target+: { + tags: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withTagsMixin(value): { + target+: { + tags+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, + withType(value): { + target+: { + type: value, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO -- this should not exist here, it is based on the --grafana-- datasource' } }, + withType(value): { + type: value, + }, + }, + }, + variable+: + { + '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of configured template variables with their saved values along with some other metadata' } }, + withList(value): { + templating+: { + list: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of configured template variables with their saved values along with some other metadata' } }, + withListMixin(value): { + templating+: { + list+: + (if std.isArray(value) + then value + else [value]), + }, + }, + list+: + { + '#': { help: '', name: 'list' }, + '#withAllValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Custom all value' } }, + withAllValue(value): { + allValue: value, + }, + '#withAuto': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Dynamically calculates interval by dividing time range by the count specified.' } }, + withAuto(value=true): { + auto: value, + }, + '#withAutoCount': { 'function': { args: [{ default: 30, enums: null, name: 'value', type: ['integer'] }], help: 'How many times the current time range should be divided to calculate the value, similar to the Max data points query option.\nFor example, if the current visible time range is 30 minutes, then the auto interval groups the data into 30 one-minute increments.' } }, + withAutoCount(value=30): { + auto_count: value, + }, + '#withAutoMin': { 'function': { args: [{ default: '10s', enums: null, name: 'value', type: ['string'] }], help: 'The minimum threshold below which the step count intervals will not divide the time.' } }, + withAutoMin(value='10s'): { + auto_min: value, + }, + '#withCurrent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Option to be selected in a variable.' } }, + withCurrent(value): { + current: value, + }, + '#withCurrentMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Option to be selected in a variable.' } }, + withCurrentMixin(value): { + current+: value, + }, + current+: + { + '#withSelected': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether the option is selected or not' } }, + withSelected(value=true): { + current+: { + selected: value, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Text to be displayed for the option' } }, + withText(value): { + current+: { + text: value, + }, + }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Text to be displayed for the option' } }, + withTextMixin(value): { + current+: { + text+: value, + }, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Value of the option' } }, + withValue(value): { + current+: { + value: value, + }, + }, + '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Value of the option' } }, + withValueMixin(value): { + current+: { + value+: value, + }, + }, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Description of variable. It can be defined but `null`.' } }, + withDescription(value): { + description: value, + }, + '#withHide': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: ['string'] }], help: 'Determine if the variable shows on dashboard\nAccepted values are 0 (show label and value), 1 (show value only), 2 (show nothing).' } }, + withHide(value): { + hide: value, + }, + '#withIncludeAll': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether all value option is available or not' } }, + withIncludeAll(value=true): { + includeAll: value, + }, + '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Optional display name' } }, + withLabel(value): { + label: value, + }, + '#withMulti': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether multiple values can be selected or not from variable value list' } }, + withMulti(value=true): { + multi: value, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of variable' } }, + withName(value): { + name: value, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Options that can be selected for a variable.' } }, + withOptions(value): { + options: + (if std.isArray(value) + then value + else [value]), + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Options that can be selected for a variable.' } }, + withOptionsMixin(value): { + options+: + (if std.isArray(value) + then value + else [value]), + }, + options+: + { + '#': { help: '', name: 'options' }, + '#withSelected': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether the option is selected or not' } }, + withSelected(value=true): { + selected: value, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Text to be displayed for the option' } }, + withText(value): { + text: value, + }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Text to be displayed for the option' } }, + withTextMixin(value): { + text+: value, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Value of the option' } }, + withValue(value): { + value: value, + }, + '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Value of the option' } }, + withValueMixin(value): { + value+: value, + }, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: 'Query used to fetch values for a variable' } }, + withQuery(value): { + query: value, + }, + '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: 'Query used to fetch values for a variable' } }, + withQueryMixin(value): { + query+: value, + }, + '#withRefresh': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: ['string'] }], help: 'Options to config when to refresh a variable\n`0`: Never refresh the variable\n`1`: Queries the data source every time the dashboard loads.\n`2`: Queries the data source when the dashboard time range changes.' } }, + withRefresh(value): { + refresh: value, + }, + '#withRegex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Optional field, if you want to extract part of a series name or metric node segment.\nNamed capture groups can be used to separate the display text and value.' } }, + withRegex(value): { + regex: value, + }, + '#withSkipUrlSync': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether the variable value should be managed by URL query params or not' } }, + withSkipUrlSync(value=true): { + skipUrlSync: value, + }, + '#withSort': { 'function': { args: [{ default: null, enums: [0, 1, 2, 3, 4, 5, 6, 7, 8], name: 'value', type: ['string'] }], help: 'Sort variable options\nAccepted values are:\n`0`: No sorting\n`1`: Alphabetical ASC\n`2`: Alphabetical DESC\n`3`: Numerical ASC\n`4`: Numerical DESC\n`5`: Alphabetical Case Insensitive ASC\n`6`: Alphabetical Case Insensitive DESC\n`7`: Natural ASC\n`8`: Natural DESC' } }, + withSort(value): { + sort: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['query', 'adhoc', 'groupby', 'constant', 'datasource', 'interval', 'textbox', 'custom', 'system', 'snapshot'], name: 'value', type: ['string'] }], help: 'Dashboard variable type\n`query`: Query-generated list of values such as metric names, server names, sensor IDs, data centers, and so on.\n`adhoc`: Key/value filters that are automatically added to all metric queries for a data source (Prometheus, Loki, InfluxDB, and Elasticsearch only).\n`constant`: \tDefine a hidden constant.\n`datasource`: Quickly change the data source for an entire dashboard.\n`interval`: Interval variables represent time spans.\n`textbox`: Display a free text input field with an optional default value.\n`custom`: Define the variable options manually using a comma-separated list.\n`system`: Variables defined by Grafana. See: https://grafana.com/docs/grafana/latest/dashboards/variables/add-template-variables/#global-variables' } }, + withType(value): { + type: value, + }, + }, + }, +} ++ (import 'custom/dashboard.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/README.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/README.md new file mode 100644 index 0000000..0d5de82 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/README.md @@ -0,0 +1,31 @@ +# grafonnet + +Jsonnet library for rendering Grafana resources +## Install + +``` +jb install github.com/grafana/grafonnet/gen/grafonnet-v11.4.0@main +``` + +## Usage + +```jsonnet +local grafonnet = import "github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/main.libsonnet" +``` + + +## Subpackages + +* [accesspolicy](accesspolicy/index.md) +* [alerting](alerting/index.md) +* [dashboard](dashboard/index.md) +* [folder](folder.md) +* [librarypanel](librarypanel/index.md) +* [panel](panel/index.md) +* [preferences](preferences.md) +* [publicdashboard](publicdashboard.md) +* [query](query/index.md) +* [role](role.md) +* [rolebinding](rolebinding.md) +* [team](team.md) +* [util](util.md) diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/accesspolicy/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/accesspolicy/index.md new file mode 100644 index 0000000..85aafad --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/accesspolicy/index.md @@ -0,0 +1,156 @@ +# accesspolicy + +grafonnet.accesspolicy + +## Subpackages + +* [rules](rules.md) + +## Index + +* [`fn withRole(value)`](#fn-withrole) +* [`fn withRoleMixin(value)`](#fn-withrolemixin) +* [`fn withRules(value)`](#fn-withrules) +* [`fn withRulesMixin(value)`](#fn-withrulesmixin) +* [`fn withScope(value)`](#fn-withscope) +* [`fn withScopeMixin(value)`](#fn-withscopemixin) +* [`obj role`](#obj-role) + * [`fn withKind(value)`](#fn-rolewithkind) + * [`fn withName(value)`](#fn-rolewithname) + * [`fn withXname(value)`](#fn-rolewithxname) +* [`obj scope`](#obj-scope) + * [`fn withKind(value)`](#fn-scopewithkind) + * [`fn withName(value)`](#fn-scopewithname) + +## Fields + +### fn withRole + +```jsonnet +withRole(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The role that must apply this policy +### fn withRoleMixin + +```jsonnet +withRoleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The role that must apply this policy +### fn withRules + +```jsonnet +withRules(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The set of rules to apply. Note that * is required to modify +access policy rules, and that "none" will reject all actions +### fn withRulesMixin + +```jsonnet +withRulesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The set of rules to apply. Note that * is required to modify +access policy rules, and that "none" will reject all actions +### fn withScope + +```jsonnet +withScope(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The scope where these policies should apply +### fn withScopeMixin + +```jsonnet +withScopeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The scope where these policies should apply +### obj role + + +#### fn role.withKind + +```jsonnet +role.withKind(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"Role"`, `"BuiltinRole"`, `"Team"`, `"User"` + +Policies can apply to roles, teams, or users +Applying policies to individual users is supported, but discouraged +#### fn role.withName + +```jsonnet +role.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn role.withXname + +```jsonnet +role.withXname(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj scope + + +#### fn scope.withKind + +```jsonnet +scope.withKind(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn scope.withName + +```jsonnet +scope.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/accesspolicy/rules.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/accesspolicy/rules.md new file mode 100644 index 0000000..f576339 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/accesspolicy/rules.md @@ -0,0 +1,60 @@ +# rules + + + +## Index + +* [`fn withKind(value="*")`](#fn-withkind) +* [`fn withTarget(value)`](#fn-withtarget) +* [`fn withVerb(value)`](#fn-withverb) +* [`fn withVerbMixin(value)`](#fn-withverbmixin) + +## Fields + +### fn withKind + +```jsonnet +withKind(value="*") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"*"` + +The kind this rule applies to (dashboards, alert, etc) +### fn withTarget + +```jsonnet +withTarget(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific sub-elements like "alert.rules" or "dashboard.permissions"???? +### fn withVerb + +```jsonnet +withVerb(value) +``` + +PARAMETERS: + +* **value** (`string`) + +READ, WRITE, CREATE, DELETE, ... +should move to k8s style verbs like: "get", "list", "watch", "create", "update", "patch", "delete" +### fn withVerbMixin + +```jsonnet +withVerbMixin(value) +``` + +PARAMETERS: + +* **value** (`string`) + +READ, WRITE, CREATE, DELETE, ... +should move to k8s style verbs like: "get", "list", "watch", "create", "update", "patch", "delete" \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/contactPoint.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/contactPoint.md new file mode 100644 index 0000000..b796b0c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/contactPoint.md @@ -0,0 +1,100 @@ +# contactPoint + +grafonnet.alerting.contactPoint + +**NOTE**: The schemas for all different contact points is under development, this means we can't properly express them in Grafonnet yet. The way this works now may change heavily. + + +## Index + +* [`fn withDisableResolveMessage(value=true)`](#fn-withdisableresolvemessage) +* [`fn withName(value)`](#fn-withname) +* [`fn withProvenance(value)`](#fn-withprovenance) +* [`fn withSettings(value)`](#fn-withsettings) +* [`fn withSettingsMixin(value)`](#fn-withsettingsmixin) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUid(value)`](#fn-withuid) + +## Fields + +### fn withDisableResolveMessage + +```jsonnet +withDisableResolveMessage(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name is used as grouping key in the UI. Contact points with the +same name will be grouped in the UI. +### fn withProvenance + +```jsonnet +withProvenance(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withSettings + +```jsonnet +withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withSettingsMixin + +```jsonnet +withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"alertmanager"`, `" dingding"`, `" discord"`, `" email"`, `" googlechat"`, `" kafka"`, `" line"`, `" opsgenie"`, `" pagerduty"`, `" pushover"`, `" sensugo"`, `" slack"`, `" teams"`, `" telegram"`, `" threema"`, `" victorops"`, `" webhook"`, `" wecom"` + + +### fn withUid + +```jsonnet +withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +UID is the unique identifier of the contact point. The UID can be +set by the user. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/index.md new file mode 100644 index 0000000..3715aa4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/index.md @@ -0,0 +1,11 @@ +# alerting + +grafonnet.alerting + +## Subpackages + +* [contactPoint](contactPoint.md) +* [muteTiming](muteTiming/index.md) +* [notificationPolicy](notificationPolicy/index.md) +* [notificationTemplate](notificationTemplate.md) +* [ruleGroup](ruleGroup/index.md) diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/index.md new file mode 100644 index 0000000..3aee846 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/index.md @@ -0,0 +1,48 @@ +# muteTiming + +grafonnet.alerting.muteTiming + +## Subpackages + +* [interval](interval/index.md) + +## Index + +* [`fn withIntervals(value)`](#fn-withintervals) +* [`fn withIntervalsMixin(value)`](#fn-withintervalsmixin) +* [`fn withName(value)`](#fn-withname) + +## Fields + +### fn withIntervals + +```jsonnet +withIntervals(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withIntervalsMixin + +```jsonnet +withIntervalsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/index.md new file mode 100644 index 0000000..18021fc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/index.md @@ -0,0 +1,48 @@ +# interval + + + +## Subpackages + +* [time_intervals](time_intervals/index.md) + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withTimeIntervals(value)`](#fn-withtimeintervals) +* [`fn withTimeIntervalsMixin(value)`](#fn-withtimeintervalsmixin) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withTimeIntervals + +```jsonnet +withTimeIntervals(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withTimeIntervalsMixin + +```jsonnet +withTimeIntervalsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/time_intervals/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/time_intervals/index.md new file mode 100644 index 0000000..e649ec2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/time_intervals/index.md @@ -0,0 +1,144 @@ +# time_intervals + + + +## Subpackages + +* [times](times.md) + +## Index + +* [`fn withDaysOfMonth(value)`](#fn-withdaysofmonth) +* [`fn withDaysOfMonthMixin(value)`](#fn-withdaysofmonthmixin) +* [`fn withLocation(value)`](#fn-withlocation) +* [`fn withMonths(value)`](#fn-withmonths) +* [`fn withMonthsMixin(value)`](#fn-withmonthsmixin) +* [`fn withTimes(value)`](#fn-withtimes) +* [`fn withTimesMixin(value)`](#fn-withtimesmixin) +* [`fn withWeekdays(value)`](#fn-withweekdays) +* [`fn withWeekdaysMixin(value)`](#fn-withweekdaysmixin) +* [`fn withYears(value)`](#fn-withyears) +* [`fn withYearsMixin(value)`](#fn-withyearsmixin) + +## Fields + +### fn withDaysOfMonth + +```jsonnet +withDaysOfMonth(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withDaysOfMonthMixin + +```jsonnet +withDaysOfMonthMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withLocation + +```jsonnet +withLocation(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withMonths + +```jsonnet +withMonths(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withMonthsMixin + +```jsonnet +withMonthsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withTimes + +```jsonnet +withTimes(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withTimesMixin + +```jsonnet +withTimesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withWeekdays + +```jsonnet +withWeekdays(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withWeekdaysMixin + +```jsonnet +withWeekdaysMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withYears + +```jsonnet +withYears(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withYearsMixin + +```jsonnet +withYearsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/time_intervals/times.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/time_intervals/times.md new file mode 100644 index 0000000..8304969 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/muteTiming/interval/time_intervals/times.md @@ -0,0 +1,32 @@ +# times + + + +## Index + +* [`fn withEndTime(value)`](#fn-withendtime) +* [`fn withStartTime(value)`](#fn-withstarttime) + +## Fields + +### fn withEndTime + +```jsonnet +withEndTime(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withStartTime + +```jsonnet +withStartTime(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationPolicy/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationPolicy/index.md new file mode 100644 index 0000000..cb4aa0a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationPolicy/index.md @@ -0,0 +1,173 @@ +# notificationPolicy + +grafonnet.alerting.notificationPolicy + +## Subpackages + +* [matcher](matcher.md) + +## Index + +* [`fn withContactPoint(value)`](#fn-withcontactpoint) +* [`fn withContinue(value=true)`](#fn-withcontinue) +* [`fn withGroupBy(value)`](#fn-withgroupby) +* [`fn withGroupByMixin(value)`](#fn-withgroupbymixin) +* [`fn withGroupInterval(value)`](#fn-withgroupinterval) +* [`fn withGroupWait(value)`](#fn-withgroupwait) +* [`fn withMatchers(value)`](#fn-withmatchers) +* [`fn withMatchersMixin(value)`](#fn-withmatchersmixin) +* [`fn withMuteTimeIntervals(value)`](#fn-withmutetimeintervals) +* [`fn withMuteTimeIntervalsMixin(value)`](#fn-withmutetimeintervalsmixin) +* [`fn withPolicy(value)`](#fn-withpolicy) +* [`fn withPolicyMixin(value)`](#fn-withpolicymixin) +* [`fn withRepeatInterval(value)`](#fn-withrepeatinterval) + +## Fields + +### fn withContactPoint + +```jsonnet +withContactPoint(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withContinue + +```jsonnet +withContinue(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withGroupBy + +```jsonnet +withGroupBy(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withGroupByMixin + +```jsonnet +withGroupByMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withGroupInterval + +```jsonnet +withGroupInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withGroupWait + +```jsonnet +withGroupWait(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withMatchers + +```jsonnet +withMatchers(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Matchers is a slice of Matchers that is sortable, implements Stringer, and +provides a Matches method to match a LabelSet against all Matchers in the +slice. Note that some users of Matchers might require it to be sorted. +### fn withMatchersMixin + +```jsonnet +withMatchersMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Matchers is a slice of Matchers that is sortable, implements Stringer, and +provides a Matches method to match a LabelSet against all Matchers in the +slice. Note that some users of Matchers might require it to be sorted. +### fn withMuteTimeIntervals + +```jsonnet +withMuteTimeIntervals(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withMuteTimeIntervalsMixin + +```jsonnet +withMuteTimeIntervalsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withPolicy + +```jsonnet +withPolicy(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withPolicyMixin + +```jsonnet +withPolicyMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withRepeatInterval + +```jsonnet +withRepeatInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationPolicy/matcher.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationPolicy/matcher.md new file mode 100644 index 0000000..7cad0a7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationPolicy/matcher.md @@ -0,0 +1,45 @@ +# matcher + + + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withType(value)`](#fn-withtype) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"="`, `"!="`, `"=~"`, `"!~"` + + +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationTemplate.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationTemplate.md new file mode 100644 index 0000000..aeb1df1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/notificationTemplate.md @@ -0,0 +1,56 @@ +# notificationTemplate + +grafonnet.alerting.notificationTemplate + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withProvenance(value)`](#fn-withprovenance) +* [`fn withTemplate(value)`](#fn-withtemplate) +* [`fn withVersion(value)`](#fn-withversion) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withProvenance + +```jsonnet +withProvenance(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withTemplate + +```jsonnet +withTemplate(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withVersion + +```jsonnet +withVersion(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/index.md new file mode 100644 index 0000000..588ead0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/index.md @@ -0,0 +1,72 @@ +# ruleGroup + +grafonnet.alerting.ruleGroup + +## Subpackages + +* [rule](rule/index.md) + +## Index + +* [`fn withFolderUid(value)`](#fn-withfolderuid) +* [`fn withInterval(value)`](#fn-withinterval) +* [`fn withName(value)`](#fn-withname) +* [`fn withRules(value)`](#fn-withrules) +* [`fn withRulesMixin(value)`](#fn-withrulesmixin) + +## Fields + +### fn withFolderUid + +```jsonnet +withFolderUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withInterval + +```jsonnet +withInterval(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Duration in seconds. +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withRules + +```jsonnet +withRules(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withRulesMixin + +```jsonnet +withRulesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/rule/data.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/rule/data.md new file mode 100644 index 0000000..adeccf0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/rule/data.md @@ -0,0 +1,124 @@ +# data + + + +## Index + +* [`fn withDatasourceUid(value)`](#fn-withdatasourceuid) +* [`fn withModel(value)`](#fn-withmodel) +* [`fn withModelMixin(value)`](#fn-withmodelmixin) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withRelativeTimeRange(value)`](#fn-withrelativetimerange) +* [`fn withRelativeTimeRangeMixin(value)`](#fn-withrelativetimerangemixin) +* [`obj relativeTimeRange`](#obj-relativetimerange) + * [`fn withFrom(value)`](#fn-relativetimerangewithfrom) + * [`fn withTo(value)`](#fn-relativetimerangewithto) + +## Fields + +### fn withDatasourceUid + +```jsonnet +withDatasourceUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation. +### fn withModel + +```jsonnet +withModel(value) +``` + +PARAMETERS: + +* **value** (`object`) + +JSON is the raw JSON query and includes the above properties as well as custom properties. +### fn withModelMixin + +```jsonnet +withModelMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +JSON is the raw JSON query and includes the above properties as well as custom properties. +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +QueryType is an optional identifier for the type of query. +It can be used to distinguish different types of queries. +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +RefID is the unique identifier of the query, set by the frontend call. +### fn withRelativeTimeRange + +```jsonnet +withRelativeTimeRange(value) +``` + +PARAMETERS: + +* **value** (`object`) + +RelativeTimeRange is the per query start and end time +for requests. +### fn withRelativeTimeRangeMixin + +```jsonnet +withRelativeTimeRangeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +RelativeTimeRange is the per query start and end time +for requests. +### obj relativeTimeRange + + +#### fn relativeTimeRange.withFrom + +```jsonnet +relativeTimeRange.withFrom(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Duration in seconds. +#### fn relativeTimeRange.withTo + +```jsonnet +relativeTimeRange.withTo(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Duration in seconds. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/rule/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/rule/index.md new file mode 100644 index 0000000..27748f0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/alerting/ruleGroup/rule/index.md @@ -0,0 +1,196 @@ +# rule + + + +## Subpackages + +* [data](data.md) + +## Index + +* [`fn withAnnotations(value)`](#fn-withannotations) +* [`fn withAnnotationsMixin(value)`](#fn-withannotationsmixin) +* [`fn withCondition(value)`](#fn-withcondition) +* [`fn withData(value)`](#fn-withdata) +* [`fn withDataMixin(value)`](#fn-withdatamixin) +* [`fn withExecErrState(value)`](#fn-withexecerrstate) +* [`fn withFolderUID(value)`](#fn-withfolderuid) +* [`fn withFor(value)`](#fn-withfor) +* [`fn withIsPaused(value=true)`](#fn-withispaused) +* [`fn withLabels(value)`](#fn-withlabels) +* [`fn withLabelsMixin(value)`](#fn-withlabelsmixin) +* [`fn withName(value)`](#fn-withname) +* [`fn withNoDataState(value)`](#fn-withnodatastate) +* [`fn withOrgID(value)`](#fn-withorgid) +* [`fn withRuleGroup(value)`](#fn-withrulegroup) + +## Fields + +### fn withAnnotations + +```jsonnet +withAnnotations(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withAnnotationsMixin + +```jsonnet +withAnnotationsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withCondition + +```jsonnet +withCondition(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withData + +```jsonnet +withData(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withDataMixin + +```jsonnet +withDataMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withExecErrState + +```jsonnet +withExecErrState(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"OK"`, `"Alerting"`, `"Error"` + + +### fn withFolderUID + +```jsonnet +withFolderUID(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withFor + +```jsonnet +withFor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The amount of time, in seconds, for which the rule must be breached for the rule to be considered to be Firing. +Before this time has elapsed, the rule is only considered to be Pending. +### fn withIsPaused + +```jsonnet +withIsPaused(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withLabels + +```jsonnet +withLabels(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withLabelsMixin + +```jsonnet +withLabelsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withNoDataState + +```jsonnet +withNoDataState(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"Alerting"`, `"NoData"`, `"OK"` + + +### fn withOrgID + +```jsonnet +withOrgID(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +### fn withRuleGroup + +```jsonnet +withRuleGroup(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/annotation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/annotation.md similarity index 63% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/annotation.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/annotation.md index 5e6d82d..5a7645c 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/annotation.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/annotation.md @@ -4,9 +4,11 @@ ## Index +* [`fn withBuiltIn(value=0)`](#fn-withbuiltin) * [`fn withDatasource(value)`](#fn-withdatasource) * [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) * [`fn withEnable(value=true)`](#fn-withenable) +* [`fn withExpr(value)`](#fn-withexpr) * [`fn withFilter(value)`](#fn-withfilter) * [`fn withFilterMixin(value)`](#fn-withfiltermixin) * [`fn withHide(value=true)`](#fn-withhide) @@ -31,187 +33,278 @@ ## Fields +### fn withBuiltIn + +```jsonnet +withBuiltIn(value=0) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `0` + +Set to 1 for the standard annotation query all dashboards have by default. ### fn withDatasource -```ts +```jsonnet withDatasource(value) ``` -TODO: Should be DataSourceRef +PARAMETERS: + +* **value** (`object`) +Ref to a DataSource instance ### fn withDatasourceMixin -```ts +```jsonnet withDatasourceMixin(value) ``` -TODO: Should be DataSourceRef +PARAMETERS: +* **value** (`object`) + +Ref to a DataSource instance ### fn withEnable -```ts +```jsonnet withEnable(value=true) ``` +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + When enabled the annotation query is issued with every dashboard refresh +### fn withExpr + +```jsonnet +withExpr(value) +``` + +PARAMETERS: + +* **value** (`string`) + ### fn withFilter -```ts +```jsonnet withFilter(value) ``` +PARAMETERS: +* **value** (`object`) +Filters to apply when fetching annotations ### fn withFilterMixin -```ts +```jsonnet withFilterMixin(value) ``` +PARAMETERS: +* **value** (`object`) +Filters to apply when fetching annotations ### fn withHide -```ts +```jsonnet withHide(value=true) ``` +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + Annotation queries can be toggled on or off at the top of the dashboard. When hide is true, the toggle is not shown in the dashboard. - ### fn withIconColor -```ts +```jsonnet withIconColor(value) ``` -Color to use for the annotation event markers +PARAMETERS: + +* **value** (`string`) +Color to use for the annotation event markers ### fn withName -```ts +```jsonnet withName(value) ``` -Name of annotation. +PARAMETERS: + +* **value** (`string`) +Name of annotation. ### fn withTarget -```ts +```jsonnet withTarget(value) ``` +PARAMETERS: + +* **value** (`object`) + TODO: this should be a regular DataQuery that depends on the selected dashboard these match the properties of the "grafana" datasouce that is default in most dashboards - ### fn withTargetMixin -```ts +```jsonnet withTargetMixin(value) ``` +PARAMETERS: + +* **value** (`object`) + TODO: this should be a regular DataQuery that depends on the selected dashboard these match the properties of the "grafana" datasouce that is default in most dashboards - ### fn withType -```ts +```jsonnet withType(value) ``` -TODO -- this should not exist here, it is based on the --grafana-- datasource +PARAMETERS: + +* **value** (`string`) +TODO -- this should not exist here, it is based on the --grafana-- datasource ### obj datasource #### fn datasource.withType -```ts -withType(value) +```jsonnet +datasource.withType(value) ``` +PARAMETERS: +* **value** (`string`) +The plugin type-id #### fn datasource.withUid -```ts -withUid(value) +```jsonnet +datasource.withUid(value) ``` +PARAMETERS: +* **value** (`string`) +Specific datasource instance ### obj filter #### fn filter.withExclude -```ts -withExclude(value=true) +```jsonnet +filter.withExclude(value=true) ``` -Should the specified panels be included or excluded +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +Should the specified panels be included or excluded #### fn filter.withIds -```ts -withIds(value) +```jsonnet +filter.withIds(value) ``` -Panel IDs that should be included or excluded +PARAMETERS: +* **value** (`array`) + +Panel IDs that should be included or excluded #### fn filter.withIdsMixin -```ts -withIdsMixin(value) +```jsonnet +filter.withIdsMixin(value) ``` -Panel IDs that should be included or excluded +PARAMETERS: + +* **value** (`array`) +Panel IDs that should be included or excluded ### obj target #### fn target.withLimit -```ts -withLimit(value) +```jsonnet +target.withLimit(value) ``` +PARAMETERS: + +* **value** (`integer`) + Only required/valid for the grafana datasource... but code+tests is already depending on it so hard to change - #### fn target.withMatchAny -```ts -withMatchAny(value=true) +```jsonnet +target.withMatchAny(value=true) ``` +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + Only required/valid for the grafana datasource... but code+tests is already depending on it so hard to change - #### fn target.withTags -```ts -withTags(value) +```jsonnet +target.withTags(value) ``` +PARAMETERS: + +* **value** (`array`) + Only required/valid for the grafana datasource... but code+tests is already depending on it so hard to change - #### fn target.withTagsMixin -```ts -withTagsMixin(value) +```jsonnet +target.withTagsMixin(value) ``` +PARAMETERS: + +* **value** (`array`) + Only required/valid for the grafana datasource... but code+tests is already depending on it so hard to change - #### fn target.withType -```ts -withType(value) +```jsonnet +target.withType(value) ``` +PARAMETERS: + +* **value** (`string`) + Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change +but code+tests is already depending on it so hard to change \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/index.md similarity index 59% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/index.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/index.md index 2c9fdca..ec78d46 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/index.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/index.md @@ -19,12 +19,10 @@ grafonnet.dashboard * [`fn withLinks(value)`](#fn-withlinks) * [`fn withLinksMixin(value)`](#fn-withlinksmixin) * [`fn withLiveNow(value=true)`](#fn-withlivenow) -* [`fn withPanels(value)`](#fn-withpanels) -* [`fn withPanelsMixin(value)`](#fn-withpanelsmixin) +* [`fn withPanels(panels, setPanelIDs=true)`](#fn-withpanels) +* [`fn withPanelsMixin(panels, setPanelIDs=true)`](#fn-withpanelsmixin) * [`fn withRefresh(value)`](#fn-withrefresh) -* [`fn withRefreshMixin(value)`](#fn-withrefreshmixin) -* [`fn withSchemaVersion(value=36)`](#fn-withschemaversion) -* [`fn withStyle(value="dark")`](#fn-withstyle) +* [`fn withSchemaVersion(value=39)`](#fn-withschemaversion) * [`fn withTags(value)`](#fn-withtags) * [`fn withTagsMixin(value)`](#fn-withtagsmixin) * [`fn withTemplating(value)`](#fn-withtemplating) @@ -42,9 +40,8 @@ grafonnet.dashboard * [`fn withFrom(value="now-6h")`](#fn-timewithfrom) * [`fn withTo(value="now")`](#fn-timewithto) * [`obj timepicker`](#obj-timepicker) - * [`fn withCollapse(value=true)`](#fn-timepickerwithcollapse) - * [`fn withEnable(value=true)`](#fn-timepickerwithenable) * [`fn withHidden(value=true)`](#fn-timepickerwithhidden) + * [`fn withNowDelay(value)`](#fn-timepickerwithnowdelay) * [`fn withRefreshIntervals(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"])`](#fn-timepickerwithrefreshintervals) * [`fn withRefreshIntervalsMixin(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"])`](#fn-timepickerwithrefreshintervalsmixin) * [`fn withTimeOptions(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"])`](#fn-timepickerwithtimeoptions) @@ -54,64 +51,88 @@ grafonnet.dashboard ### fn new -```ts +```jsonnet new(title) ``` -Creates a new dashboard with a title. +PARAMETERS: +* **title** (`string`) + +Creates a new dashboard with a title. ### fn withAnnotations -```ts +```jsonnet withAnnotations(value) ``` +PARAMETERS: + +* **value** (`array`) + `withAnnotations` adds an array of annotations to a dashboard. This function appends passed data to existing values - ### fn withAnnotationsMixin -```ts +```jsonnet withAnnotationsMixin(value) ``` +PARAMETERS: + +* **value** (`array`) + `withAnnotationsMixin` adds an array of annotations to a dashboard. This function appends passed data to existing values - ### fn withDescription -```ts +```jsonnet withDescription(value) ``` -Description of dashboard. +PARAMETERS: +* **value** (`string`) + +Description of dashboard. ### fn withEditable -```ts +```jsonnet withEditable(value=true) ``` -Whether a dashboard is editable or not. +PARAMETERS: +* **value** (`boolean`) + - default value: `true` + +Whether a dashboard is editable or not. ### fn withFiscalYearStartMonth -```ts +```jsonnet withFiscalYearStartMonth(value=0) ``` -The month that the fiscal year starts on. 0 = January, 11 = December +PARAMETERS: + +* **value** (`integer`) + - default value: `0` +The month that the fiscal year starts on. 0 = January, 11 = December ### fn withLinks -```ts +```jsonnet withLinks(value) ``` +PARAMETERS: + +* **value** (`array`) + Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. `withLinks` takes an array of [link objects](./link.md). @@ -130,13 +151,16 @@ g.dashboard.new('Title dashboard') ]) ``` - ### fn withLinksMixin -```ts +```jsonnet withLinksMixin(value) ``` +PARAMETERS: + +* **value** (`array`) + Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. `withLinks` takes an array of [link objects](./link.md). @@ -155,246 +179,301 @@ g.dashboard.new('Title dashboard') ]) ``` - ### fn withLiveNow -```ts +```jsonnet withLiveNow(value=true) ``` +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + When set to true, the dashboard will redraw panels at an interval matching the pixel width. -This will keep data "moving left" regardless of the query refresh rate. This setting helps +This will keep data "moving left" regardless of the query refresh rate. This setting helps avoid dashboards presenting stale live data - ### fn withPanels -```ts -withPanels(value) +```jsonnet +withPanels(panels, setPanelIDs=true) ``` +PARAMETERS: +* **panels** (`array`) +* **setPanelIDs** (`bool`) + - default value: `true` +`withPanels` sets the panels on a dashboard authoratively. It automatically adds IDs to the panels, this can be disabled with `setPanelIDs=false`. ### fn withPanelsMixin -```ts -withPanelsMixin(value) +```jsonnet +withPanelsMixin(panels, setPanelIDs=true) ``` +PARAMETERS: +* **panels** (`array`) +* **setPanelIDs** (`bool`) + - default value: `true` +`withPanelsMixin` adds more panels to a dashboard. ### fn withRefresh -```ts +```jsonnet withRefresh(value) ``` -Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d". +PARAMETERS: -### fn withRefreshMixin - -```ts -withRefreshMixin(value) -``` +* **value** (`string`) Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d". - ### fn withSchemaVersion -```ts -withSchemaVersion(value=36) +```jsonnet +withSchemaVersion(value=39) ``` -Version of the JSON schema, incremented each time a Grafana update brings -changes to said schema. -TODO this is the existing schema numbering system. It will be replaced by Thema's themaVersion +PARAMETERS: -### fn withStyle +* **value** (`number`) + - default value: `39` -```ts -withStyle(value="dark") -``` - -Theme of dashboard. - -Accepted values for `value` are "dark", "light" ### fn withTags -```ts +```jsonnet withTags(value) ``` -Tags associated with dashboard. +PARAMETERS: + +* **value** (`array`) +Tags associated with dashboard. ### fn withTagsMixin -```ts +```jsonnet withTagsMixin(value) ``` -Tags associated with dashboard. +PARAMETERS: + +* **value** (`array`) +Tags associated with dashboard. ### fn withTemplating -```ts +```jsonnet withTemplating(value) ``` -TODO docs +PARAMETERS: +* **value** (`object`) + +Configured template variables ### fn withTemplatingMixin -```ts +```jsonnet withTemplatingMixin(value) ``` -TODO docs +PARAMETERS: +* **value** (`object`) + +Configured template variables ### fn withTimezone -```ts +```jsonnet withTimezone(value="browser") ``` -Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc". +PARAMETERS: + +* **value** (`string`) + - default value: `"browser"` +Timezone of dashboard. Accepted values are IANA TZDB zone ID or "browser" or "utc". ### fn withTitle -```ts +```jsonnet withTitle(value) ``` -Title of dashboard. +PARAMETERS: +* **value** (`string`) + +Title of dashboard. ### fn withUid -```ts +```jsonnet withUid(value) ``` -Unique dashboard identifier that can be generated by anyone. string (8-40) +PARAMETERS: + +* **value** (`string`) +Unique dashboard identifier that can be generated by anyone. string (8-40) ### fn withVariables -```ts +```jsonnet withVariables(value) ``` -`withVariables` adds an array of variables to a dashboard +PARAMETERS: +* **value** (`array`) + +`withVariables` adds an array of variables to a dashboard ### fn withVariablesMixin -```ts +```jsonnet withVariablesMixin(value) ``` +PARAMETERS: + +* **value** (`array`) + `withVariablesMixin` adds an array of variables to a dashboard. This function appends passed data to existing values - ### fn withWeekStart -```ts +```jsonnet withWeekStart(value) ``` -TODO docs +PARAMETERS: +* **value** (`string`) + +Day when the week starts. Expressed by the name of the day in lowercase, e.g. "monday". ### obj graphTooltip #### fn graphTooltip.withSharedCrosshair -```ts -withSharedCrosshair() +```jsonnet +graphTooltip.withSharedCrosshair() ``` -Share crosshair on all panels. +Share crosshair on all panels. #### fn graphTooltip.withSharedTooltip -```ts -withSharedTooltip() +```jsonnet +graphTooltip.withSharedTooltip() ``` -Share crosshair and tooltip on all panels. +Share crosshair and tooltip on all panels. ### obj time #### fn time.withFrom -```ts -withFrom(value="now-6h") +```jsonnet +time.withFrom(value="now-6h") ``` +PARAMETERS: + +* **value** (`string`) + - default value: `"now-6h"` #### fn time.withTo -```ts -withTo(value="now") +```jsonnet +time.withTo(value="now") ``` +PARAMETERS: + +* **value** (`string`) + - default value: `"now"` ### obj timepicker -#### fn timepicker.withCollapse +#### fn timepicker.withHidden -```ts -withCollapse(value=true) +```jsonnet +timepicker.withHidden(value=true) ``` -Whether timepicker is collapsed or not. +PARAMETERS: -#### fn timepicker.withEnable +* **value** (`boolean`) + - default value: `true` -```ts -withEnable(value=true) -``` - -Whether timepicker is enabled or not. - -#### fn timepicker.withHidden +Whether timepicker is visible or not. +#### fn timepicker.withNowDelay -```ts -withHidden(value=true) +```jsonnet +timepicker.withNowDelay(value) ``` -Whether timepicker is visible or not. +PARAMETERS: + +* **value** (`string`) +Override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values. #### fn timepicker.withRefreshIntervals -```ts -withRefreshIntervals(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) +```jsonnet +timepicker.withRefreshIntervals(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) ``` -Selectable intervals for auto-refresh. +PARAMETERS: + +* **value** (`array`) + - default value: `["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]` +Interval options available in the refresh picker dropdown. #### fn timepicker.withRefreshIntervalsMixin -```ts -withRefreshIntervalsMixin(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) +```jsonnet +timepicker.withRefreshIntervalsMixin(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) ``` -Selectable intervals for auto-refresh. +PARAMETERS: +* **value** (`array`) + - default value: `["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]` + +Interval options available in the refresh picker dropdown. #### fn timepicker.withTimeOptions -```ts -withTimeOptions(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) +```jsonnet +timepicker.withTimeOptions(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) ``` -TODO docs +PARAMETERS: + +* **value** (`array`) + - default value: `["5m","15m","1h","6h","12h","24h","2d","7d","30d"]` +Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard. #### fn timepicker.withTimeOptionsMixin -```ts -withTimeOptionsMixin(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) +```jsonnet +timepicker.withTimeOptionsMixin(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) ``` -TODO docs +PARAMETERS: + +* **value** (`array`) + - default value: `["5m","15m","1h","6h","12h","24h","2d","7d","30d"]` + +Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard. \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/link.md similarity index 50% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/link.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/link.md index 6cb376b..421e0c0 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/link.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/link.md @@ -43,107 +43,154 @@ g.dashboard.new('Title dashboard') #### fn dashboards.new -```ts -new(title, tags) +```jsonnet +dashboards.new(title, tags) ``` -Create links to dashboards based on `tags`. +PARAMETERS: +* **title** (`string`) +* **tags** (`array`) + +Create links to dashboards based on `tags`. #### obj dashboards.options ##### fn dashboards.options.withAsDropdown -```ts -withAsDropdown(value=true) +```jsonnet +dashboards.options.withAsDropdown(value=true) ``` +PARAMETERS: +* **value** (`boolean`) + - default value: `true` +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards ##### fn dashboards.options.withIncludeVars -```ts -withIncludeVars(value=true) +```jsonnet +dashboards.options.withIncludeVars(value=true) ``` +PARAMETERS: +* **value** (`boolean`) + - default value: `true` +If true, includes current template variables values in the link as query params ##### fn dashboards.options.withKeepTime -```ts -withKeepTime(value=true) +```jsonnet +dashboards.options.withKeepTime(value=true) ``` +PARAMETERS: +* **value** (`boolean`) + - default value: `true` +If true, includes current time range in the link as query params ##### fn dashboards.options.withTargetBlank -```ts -withTargetBlank(value=true) +```jsonnet +dashboards.options.withTargetBlank(value=true) ``` +PARAMETERS: +* **value** (`boolean`) + - default value: `true` +If true, the link will be opened in a new tab ### obj link #### fn link.new -```ts -new(title, url) +```jsonnet +link.new(title, url) ``` -Create link to an arbitrary URL. +PARAMETERS: +* **title** (`string`) +* **url** (`string`) + +Create link to an arbitrary URL. #### fn link.withIcon -```ts -withIcon(value) +```jsonnet +link.withIcon(value) ``` +PARAMETERS: +* **value** (`string`) +Icon name to be displayed with the link #### fn link.withTooltip -```ts -withTooltip(value) +```jsonnet +link.withTooltip(value) ``` +PARAMETERS: +* **value** (`string`) +Tooltip to display when the user hovers their mouse over it #### obj link.options ##### fn link.options.withAsDropdown -```ts -withAsDropdown(value=true) +```jsonnet +link.options.withAsDropdown(value=true) ``` +PARAMETERS: +* **value** (`boolean`) + - default value: `true` +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards ##### fn link.options.withIncludeVars -```ts -withIncludeVars(value=true) +```jsonnet +link.options.withIncludeVars(value=true) ``` +PARAMETERS: +* **value** (`boolean`) + - default value: `true` +If true, includes current template variables values in the link as query params ##### fn link.options.withKeepTime -```ts -withKeepTime(value=true) +```jsonnet +link.options.withKeepTime(value=true) ``` +PARAMETERS: +* **value** (`boolean`) + - default value: `true` +If true, includes current time range in the link as query params ##### fn link.options.withTargetBlank -```ts -withTargetBlank(value=true) +```jsonnet +link.options.withTargetBlank(value=true) ``` +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +If true, the link will be opened in a new tab \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/variable.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/variable.md similarity index 57% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/variable.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/variable.md index ff1c292..e5114ea 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/dashboard/variable.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/dashboard/variable.md @@ -41,8 +41,9 @@ g.dashboard.new('my dashboard') * [`obj adhoc`](#obj-adhoc) * [`fn new(name, type, uid)`](#fn-adhocnew) - * [`fn newFromVariable(name, variable)`](#fn-adhocnewfromvariable) + * [`fn newFromDatasourceVariable(name, variable)`](#fn-adhocnewfromdatasourcevariable) * [`obj generalOptions`](#obj-adhocgeneraloptions) + * [`fn withCurrent(key, value="")`](#fn-adhocgeneraloptionswithcurrent) * [`fn withDescription(value)`](#fn-adhocgeneraloptionswithdescription) * [`fn withLabel(value)`](#fn-adhocgeneraloptionswithlabel) * [`fn withName(value)`](#fn-adhocgeneraloptionswithname) @@ -53,6 +54,7 @@ g.dashboard.new('my dashboard') * [`obj constant`](#obj-constant) * [`fn new(name, value)`](#fn-constantnew) * [`obj generalOptions`](#obj-constantgeneraloptions) + * [`fn withCurrent(key, value="")`](#fn-constantgeneraloptionswithcurrent) * [`fn withDescription(value)`](#fn-constantgeneraloptionswithdescription) * [`fn withLabel(value)`](#fn-constantgeneraloptionswithlabel) * [`fn withName(value)`](#fn-constantgeneraloptionswithname) @@ -63,6 +65,7 @@ g.dashboard.new('my dashboard') * [`obj custom`](#obj-custom) * [`fn new(name, values)`](#fn-customnew) * [`obj generalOptions`](#obj-customgeneraloptions) + * [`fn withCurrent(key, value="")`](#fn-customgeneraloptionswithcurrent) * [`fn withDescription(value)`](#fn-customgeneraloptionswithdescription) * [`fn withLabel(value)`](#fn-customgeneraloptionswithlabel) * [`fn withName(value)`](#fn-customgeneraloptionswithname) @@ -77,6 +80,7 @@ g.dashboard.new('my dashboard') * [`fn new(name, type)`](#fn-datasourcenew) * [`fn withRegex(value)`](#fn-datasourcewithregex) * [`obj generalOptions`](#obj-datasourcegeneraloptions) + * [`fn withCurrent(key, value="")`](#fn-datasourcegeneraloptionswithcurrent) * [`fn withDescription(value)`](#fn-datasourcegeneraloptionswithdescription) * [`fn withLabel(value)`](#fn-datasourcegeneraloptionswithlabel) * [`fn withName(value)`](#fn-datasourcegeneraloptionswithname) @@ -91,6 +95,7 @@ g.dashboard.new('my dashboard') * [`fn new(name, values)`](#fn-intervalnew) * [`fn withAutoOption(count, minInterval)`](#fn-intervalwithautooption) * [`obj generalOptions`](#obj-intervalgeneraloptions) + * [`fn withCurrent(key, value="")`](#fn-intervalgeneraloptionswithcurrent) * [`fn withDescription(value)`](#fn-intervalgeneraloptionswithdescription) * [`fn withLabel(value)`](#fn-intervalgeneraloptionswithlabel) * [`fn withName(value)`](#fn-intervalgeneraloptionswithname) @@ -105,6 +110,7 @@ g.dashboard.new('my dashboard') * [`fn withRegex(value)`](#fn-querywithregex) * [`fn withSort(i=0, type="alphabetical", asc=true, caseInsensitive=false)`](#fn-querywithsort) * [`obj generalOptions`](#obj-querygeneraloptions) + * [`fn withCurrent(key, value="")`](#fn-querygeneraloptionswithcurrent) * [`fn withDescription(value)`](#fn-querygeneraloptionswithdescription) * [`fn withLabel(value)`](#fn-querygeneraloptionswithlabel) * [`fn withName(value)`](#fn-querygeneraloptionswithname) @@ -114,6 +120,7 @@ g.dashboard.new('my dashboard') * [`fn withValueOnly()`](#fn-querygeneraloptionsshowondashboardwithvalueonly) * [`obj queryTypes`](#obj-queryquerytypes) * [`fn withLabelValues(label, metric="")`](#fn-queryquerytypeswithlabelvalues) + * [`fn withQueryResult(query)`](#fn-queryquerytypeswithqueryresult) * [`obj refresh`](#obj-queryrefresh) * [`fn onLoad()`](#fn-queryrefreshonload) * [`fn onTime()`](#fn-queryrefreshontime) @@ -123,6 +130,7 @@ g.dashboard.new('my dashboard') * [`obj textbox`](#obj-textbox) * [`fn new(name, default="")`](#fn-textboxnew) * [`obj generalOptions`](#obj-textboxgeneraloptions) + * [`fn withCurrent(key, value="")`](#fn-textboxgeneraloptionswithcurrent) * [`fn withDescription(value)`](#fn-textboxgeneraloptionswithdescription) * [`fn withLabel(value)`](#fn-textboxgeneraloptionswithlabel) * [`fn withName(value)`](#fn-textboxgeneraloptionswithname) @@ -138,70 +146,102 @@ g.dashboard.new('my dashboard') #### fn adhoc.new -```ts -new(name, type, uid) +```jsonnet +adhoc.new(name, type, uid) ``` -`new` creates an adhoc template variable for datasource with `type` and `uid`. +PARAMETERS: + +* **name** (`string`) +* **type** (`string`) +* **uid** (`string`) -#### fn adhoc.newFromVariable +`new` creates an adhoc template variable for datasource with `type` and `uid`. +#### fn adhoc.newFromDatasourceVariable -```ts -newFromVariable(name, variable) +```jsonnet +adhoc.newFromDatasourceVariable(name, variable) ``` -Same as `new` but selecting the datasource from another template variable. +PARAMETERS: +* **name** (`string`) +* **variable** (`object`) + +Same as `new` but selecting the datasource from another template variable. #### obj adhoc.generalOptions +##### fn adhoc.generalOptions.withCurrent + +```jsonnet +adhoc.generalOptions.withCurrent(key, value="") +``` + +PARAMETERS: + +* **key** (`any`) +* **value** (`any`) + - default value: `""` + +`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. + ##### fn adhoc.generalOptions.withDescription -```ts -withDescription(value) +```jsonnet +adhoc.generalOptions.withDescription(value) ``` +PARAMETERS: +* **value** (`string`) +Description of variable. It can be defined but `null`. ##### fn adhoc.generalOptions.withLabel -```ts -withLabel(value) +```jsonnet +adhoc.generalOptions.withLabel(value) ``` +PARAMETERS: +* **value** (`string`) +Optional display name ##### fn adhoc.generalOptions.withName -```ts -withName(value) +```jsonnet +adhoc.generalOptions.withName(value) ``` +PARAMETERS: +* **value** (`string`) +Name of variable ##### obj adhoc.generalOptions.showOnDashboard ###### fn adhoc.generalOptions.showOnDashboard.withLabelAndValue -```ts -withLabelAndValue() +```jsonnet +adhoc.generalOptions.showOnDashboard.withLabelAndValue() ``` ###### fn adhoc.generalOptions.showOnDashboard.withNothing -```ts -withNothing() +```jsonnet +adhoc.generalOptions.showOnDashboard.withNothing() ``` ###### fn adhoc.generalOptions.showOnDashboard.withValueOnly -```ts -withValueOnly() +```jsonnet +adhoc.generalOptions.showOnDashboard.withValueOnly() ``` @@ -211,62 +251,89 @@ withValueOnly() #### fn constant.new -```ts -new(name, value) +```jsonnet +constant.new(name, value) ``` -`new` creates a hidden constant template variable. +PARAMETERS: + +* **name** (`string`) +* **value** (`string`) +`new` creates a hidden constant template variable. #### obj constant.generalOptions +##### fn constant.generalOptions.withCurrent + +```jsonnet +constant.generalOptions.withCurrent(key, value="") +``` + +PARAMETERS: + +* **key** (`any`) +* **value** (`any`) + - default value: `""` + +`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. + ##### fn constant.generalOptions.withDescription -```ts -withDescription(value) +```jsonnet +constant.generalOptions.withDescription(value) ``` +PARAMETERS: +* **value** (`string`) +Description of variable. It can be defined but `null`. ##### fn constant.generalOptions.withLabel -```ts -withLabel(value) +```jsonnet +constant.generalOptions.withLabel(value) ``` +PARAMETERS: +* **value** (`string`) +Optional display name ##### fn constant.generalOptions.withName -```ts -withName(value) +```jsonnet +constant.generalOptions.withName(value) ``` +PARAMETERS: +* **value** (`string`) +Name of variable ##### obj constant.generalOptions.showOnDashboard ###### fn constant.generalOptions.showOnDashboard.withLabelAndValue -```ts -withLabelAndValue() +```jsonnet +constant.generalOptions.showOnDashboard.withLabelAndValue() ``` ###### fn constant.generalOptions.showOnDashboard.withNothing -```ts -withNothing() +```jsonnet +constant.generalOptions.showOnDashboard.withNothing() ``` ###### fn constant.generalOptions.showOnDashboard.withValueOnly -```ts -withValueOnly() +```jsonnet +constant.generalOptions.showOnDashboard.withValueOnly() ``` @@ -276,10 +343,15 @@ withValueOnly() #### fn custom.new -```ts -new(name, values) +```jsonnet +custom.new(name, values) ``` +PARAMETERS: + +* **name** (`string`) +* **values** (`array`) + `new` creates a custom template variable. The `values` array accepts an object with key/value keys, if it's not an object @@ -293,57 +365,79 @@ Example: 12, ] - #### obj custom.generalOptions +##### fn custom.generalOptions.withCurrent + +```jsonnet +custom.generalOptions.withCurrent(key, value="") +``` + +PARAMETERS: + +* **key** (`any`) +* **value** (`any`) + - default value: `""` + +`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. + ##### fn custom.generalOptions.withDescription -```ts -withDescription(value) +```jsonnet +custom.generalOptions.withDescription(value) ``` +PARAMETERS: +* **value** (`string`) +Description of variable. It can be defined but `null`. ##### fn custom.generalOptions.withLabel -```ts -withLabel(value) +```jsonnet +custom.generalOptions.withLabel(value) ``` +PARAMETERS: +* **value** (`string`) +Optional display name ##### fn custom.generalOptions.withName -```ts -withName(value) +```jsonnet +custom.generalOptions.withName(value) ``` +PARAMETERS: +* **value** (`string`) +Name of variable ##### obj custom.generalOptions.showOnDashboard ###### fn custom.generalOptions.showOnDashboard.withLabelAndValue -```ts -withLabelAndValue() +```jsonnet +custom.generalOptions.showOnDashboard.withLabelAndValue() ``` ###### fn custom.generalOptions.showOnDashboard.withNothing -```ts -withNothing() +```jsonnet +custom.generalOptions.showOnDashboard.withNothing() ``` ###### fn custom.generalOptions.showOnDashboard.withValueOnly -```ts -withValueOnly() +```jsonnet +custom.generalOptions.showOnDashboard.withValueOnly() ``` @@ -353,94 +447,133 @@ withValueOnly() ##### fn custom.selectionOptions.withIncludeAll -```ts -withIncludeAll(value=true, customAllValue) +```jsonnet +custom.selectionOptions.withIncludeAll(value=true, customAllValue) ``` +PARAMETERS: + +* **value** (`bool`) + - default value: `true` +* **customAllValue** (`string`) + `withIncludeAll` enables an option to include all variables. Optionally you can set a `customAllValue`. - ##### fn custom.selectionOptions.withMulti -```ts -withMulti(value=true) +```jsonnet +custom.selectionOptions.withMulti(value=true) ``` -Enable selecting multiple values. +PARAMETERS: + +* **value** (`bool`) + - default value: `true` +Enable selecting multiple values. ### obj datasource #### fn datasource.new -```ts -new(name, type) +```jsonnet +datasource.new(name, type) ``` -`new` creates a datasource template variable. +PARAMETERS: +* **name** (`string`) +* **type** (`string`) + +`new` creates a datasource template variable. #### fn datasource.withRegex -```ts -withRegex(value) +```jsonnet +datasource.withRegex(value) ``` +PARAMETERS: + +* **value** (`string`) + `withRegex` filter for which data source instances to choose from in the variable value list. Example: `/^prod/` - #### obj datasource.generalOptions +##### fn datasource.generalOptions.withCurrent + +```jsonnet +datasource.generalOptions.withCurrent(key, value="") +``` + +PARAMETERS: + +* **key** (`any`) +* **value** (`any`) + - default value: `""` + +`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. + ##### fn datasource.generalOptions.withDescription -```ts -withDescription(value) +```jsonnet +datasource.generalOptions.withDescription(value) ``` +PARAMETERS: +* **value** (`string`) +Description of variable. It can be defined but `null`. ##### fn datasource.generalOptions.withLabel -```ts -withLabel(value) +```jsonnet +datasource.generalOptions.withLabel(value) ``` +PARAMETERS: +* **value** (`string`) +Optional display name ##### fn datasource.generalOptions.withName -```ts -withName(value) +```jsonnet +datasource.generalOptions.withName(value) ``` +PARAMETERS: +* **value** (`string`) +Name of variable ##### obj datasource.generalOptions.showOnDashboard ###### fn datasource.generalOptions.showOnDashboard.withLabelAndValue -```ts -withLabelAndValue() +```jsonnet +datasource.generalOptions.showOnDashboard.withLabelAndValue() ``` ###### fn datasource.generalOptions.showOnDashboard.withNothing -```ts -withNothing() +```jsonnet +datasource.generalOptions.showOnDashboard.withNothing() ``` ###### fn datasource.generalOptions.showOnDashboard.withValueOnly -```ts -withValueOnly() +```jsonnet +datasource.generalOptions.showOnDashboard.withValueOnly() ``` @@ -450,97 +583,137 @@ withValueOnly() ##### fn datasource.selectionOptions.withIncludeAll -```ts -withIncludeAll(value=true, customAllValue) +```jsonnet +datasource.selectionOptions.withIncludeAll(value=true, customAllValue) ``` +PARAMETERS: + +* **value** (`bool`) + - default value: `true` +* **customAllValue** (`string`) + `withIncludeAll` enables an option to include all variables. Optionally you can set a `customAllValue`. - ##### fn datasource.selectionOptions.withMulti -```ts -withMulti(value=true) +```jsonnet +datasource.selectionOptions.withMulti(value=true) ``` -Enable selecting multiple values. +PARAMETERS: + +* **value** (`bool`) + - default value: `true` +Enable selecting multiple values. ### obj interval #### fn interval.new -```ts -new(name, values) +```jsonnet +interval.new(name, values) ``` -`new` creates an interval template variable. +PARAMETERS: + +* **name** (`string`) +* **values** (`array`) +`new` creates an interval template variable. #### fn interval.withAutoOption -```ts -withAutoOption(count, minInterval) +```jsonnet +interval.withAutoOption(count, minInterval) ``` +PARAMETERS: + +* **count** (`number`) +* **minInterval** (`string`) + `withAutoOption` adds an options to dynamically calculate interval by dividing time range by the count specified. `minInterval' has to be either unit-less or end with one of the following units: "y, M, w, d, h, m, s, ms". - #### obj interval.generalOptions +##### fn interval.generalOptions.withCurrent + +```jsonnet +interval.generalOptions.withCurrent(key, value="") +``` + +PARAMETERS: + +* **key** (`any`) +* **value** (`any`) + - default value: `""` + +`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. + ##### fn interval.generalOptions.withDescription -```ts -withDescription(value) +```jsonnet +interval.generalOptions.withDescription(value) ``` +PARAMETERS: +* **value** (`string`) +Description of variable. It can be defined but `null`. ##### fn interval.generalOptions.withLabel -```ts -withLabel(value) +```jsonnet +interval.generalOptions.withLabel(value) ``` +PARAMETERS: +* **value** (`string`) +Optional display name ##### fn interval.generalOptions.withName -```ts -withName(value) +```jsonnet +interval.generalOptions.withName(value) ``` +PARAMETERS: +* **value** (`string`) +Name of variable ##### obj interval.generalOptions.showOnDashboard ###### fn interval.generalOptions.showOnDashboard.withLabelAndValue -```ts -withLabelAndValue() +```jsonnet +interval.generalOptions.showOnDashboard.withLabelAndValue() ``` ###### fn interval.generalOptions.showOnDashboard.withNothing -```ts -withNothing() +```jsonnet +interval.generalOptions.showOnDashboard.withNothing() ``` ###### fn interval.generalOptions.showOnDashboard.withValueOnly -```ts -withValueOnly() +```jsonnet +interval.generalOptions.showOnDashboard.withValueOnly() ``` @@ -550,48 +723,74 @@ withValueOnly() #### fn query.new -```ts -new(name, query="") +```jsonnet +query.new(name, query="") ``` +PARAMETERS: + +* **name** (`string`) +* **query** (`string`) + - default value: `""` + Create a query template variable. `query` argument is optional, this can also be set with `query.queryTypes`. - #### fn query.withDatasource -```ts -withDatasource(type, uid) +```jsonnet +query.withDatasource(type, uid) ``` -Select a datasource for the variable template query. +PARAMETERS: +* **type** (`string`) +* **uid** (`string`) + +Select a datasource for the variable template query. #### fn query.withDatasourceFromVariable -```ts -withDatasourceFromVariable(variable) +```jsonnet +query.withDatasourceFromVariable(variable) ``` -Select the datasource from another template variable. +PARAMETERS: + +* **variable** (`object`) +Select the datasource from another template variable. #### fn query.withRegex -```ts -withRegex(value) +```jsonnet +query.withRegex(value) ``` +PARAMETERS: + +* **value** (`string`) + `withRegex` can extract part of a series name or metric node segment. Named capture groups can be used to separate the display text and value ([see examples](https://grafana.com/docs/grafana/latest/variables/filter-variables-with-regex#filter-and-modify-using-named-text-and-value-capture-groups)). - #### fn query.withSort -```ts -withSort(i=0, type="alphabetical", asc=true, caseInsensitive=false) +```jsonnet +query.withSort(i=0, type="alphabetical", asc=true, caseInsensitive=false) ``` +PARAMETERS: + +* **i** (`number`) + - default value: `0` +* **type** (`string`) + - default value: `"alphabetical"` +* **asc** (`bool`) + - default value: `true` +* **caseInsensitive** (`bool`) + - default value: `false` + Choose how to sort the values in the dropdown. This can be called as `withSort() to use the integer values for each @@ -607,57 +806,79 @@ The numerical values are: - 5 - Alphabetical (case-insensitive, asc) - 6 - Alphabetical (case-insensitive, desc) - #### obj query.generalOptions +##### fn query.generalOptions.withCurrent + +```jsonnet +query.generalOptions.withCurrent(key, value="") +``` + +PARAMETERS: + +* **key** (`any`) +* **value** (`any`) + - default value: `""` + +`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. + ##### fn query.generalOptions.withDescription -```ts -withDescription(value) +```jsonnet +query.generalOptions.withDescription(value) ``` +PARAMETERS: +* **value** (`string`) +Description of variable. It can be defined but `null`. ##### fn query.generalOptions.withLabel -```ts -withLabel(value) +```jsonnet +query.generalOptions.withLabel(value) ``` +PARAMETERS: +* **value** (`string`) +Optional display name ##### fn query.generalOptions.withName -```ts -withName(value) +```jsonnet +query.generalOptions.withName(value) ``` +PARAMETERS: +* **value** (`string`) +Name of variable ##### obj query.generalOptions.showOnDashboard ###### fn query.generalOptions.showOnDashboard.withLabelAndValue -```ts -withLabelAndValue() +```jsonnet +query.generalOptions.showOnDashboard.withLabelAndValue() ``` ###### fn query.generalOptions.showOnDashboard.withNothing -```ts -withNothing() +```jsonnet +query.generalOptions.showOnDashboard.withNothing() ``` ###### fn query.generalOptions.showOnDashboard.withValueOnly -```ts -withValueOnly() +```jsonnet +query.generalOptions.showOnDashboard.withValueOnly() ``` @@ -667,114 +888,167 @@ withValueOnly() ##### fn query.queryTypes.withLabelValues -```ts -withLabelValues(label, metric="") +```jsonnet +query.queryTypes.withLabelValues(label, metric="") ``` +PARAMETERS: + +* **label** (`string`) +* **metric** (`string`) + - default value: `""` + Construct a Prometheus template variable using `label_values()`. +##### fn query.queryTypes.withQueryResult +```jsonnet +query.queryTypes.withQueryResult(query) +``` + +PARAMETERS: + +* **query** (`string`) + +Construct a Prometheus template variable using `query_result()`. #### obj query.refresh ##### fn query.refresh.onLoad -```ts -onLoad() +```jsonnet +query.refresh.onLoad() ``` -Refresh label values on dashboard load. +Refresh label values on dashboard load. ##### fn query.refresh.onTime -```ts -onTime() +```jsonnet +query.refresh.onTime() ``` -Refresh label values on time range change. +Refresh label values on time range change. #### obj query.selectionOptions ##### fn query.selectionOptions.withIncludeAll -```ts -withIncludeAll(value=true, customAllValue) +```jsonnet +query.selectionOptions.withIncludeAll(value=true, customAllValue) ``` +PARAMETERS: + +* **value** (`bool`) + - default value: `true` +* **customAllValue** (`string`) + `withIncludeAll` enables an option to include all variables. Optionally you can set a `customAllValue`. - ##### fn query.selectionOptions.withMulti -```ts -withMulti(value=true) +```jsonnet +query.selectionOptions.withMulti(value=true) ``` -Enable selecting multiple values. +PARAMETERS: + +* **value** (`bool`) + - default value: `true` +Enable selecting multiple values. ### obj textbox #### fn textbox.new -```ts -new(name, default="") +```jsonnet +textbox.new(name, default="") ``` -`new` creates a textbox template variable. +PARAMETERS: + +* **name** (`string`) +* **default** (`string`) + - default value: `""` +`new` creates a textbox template variable. #### obj textbox.generalOptions +##### fn textbox.generalOptions.withCurrent + +```jsonnet +textbox.generalOptions.withCurrent(key, value="") +``` + +PARAMETERS: + +* **key** (`any`) +* **value** (`any`) + - default value: `""` + +`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. + ##### fn textbox.generalOptions.withDescription -```ts -withDescription(value) +```jsonnet +textbox.generalOptions.withDescription(value) ``` +PARAMETERS: +* **value** (`string`) +Description of variable. It can be defined but `null`. ##### fn textbox.generalOptions.withLabel -```ts -withLabel(value) +```jsonnet +textbox.generalOptions.withLabel(value) ``` +PARAMETERS: +* **value** (`string`) +Optional display name ##### fn textbox.generalOptions.withName -```ts -withName(value) +```jsonnet +textbox.generalOptions.withName(value) ``` +PARAMETERS: +* **value** (`string`) +Name of variable ##### obj textbox.generalOptions.showOnDashboard ###### fn textbox.generalOptions.showOnDashboard.withLabelAndValue -```ts -withLabelAndValue() +```jsonnet +textbox.generalOptions.showOnDashboard.withLabelAndValue() ``` ###### fn textbox.generalOptions.showOnDashboard.withNothing -```ts -withNothing() +```jsonnet +textbox.generalOptions.showOnDashboard.withNothing() ``` ###### fn textbox.generalOptions.showOnDashboard.withValueOnly -```ts -withValueOnly() +```jsonnet +textbox.generalOptions.showOnDashboard.withValueOnly() ``` diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/folder.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/folder.md new file mode 100644 index 0000000..ffab037 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/folder.md @@ -0,0 +1,45 @@ +# folder + +grafonnet.folder + +## Index + +* [`fn withParentUid(value)`](#fn-withparentuid) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withUid(value)`](#fn-withuid) + +## Fields + +### fn withParentUid + +```jsonnet +withParentUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +only used if nested folders are enabled +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Folder title +### fn withUid + +```jsonnet +withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique folder id \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/index.md new file mode 100644 index 0000000..bfff6b4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/index.md @@ -0,0 +1,1598 @@ +# librarypanel + +grafonnet.librarypanel + +## Subpackages + +* [model.fieldConfig.defaults.links](model/fieldConfig/defaults/links.md) +* [model.fieldConfig.defaults.thresholds.steps](model/fieldConfig/defaults/thresholds/steps.md) +* [model.fieldConfig.overrides](model/fieldConfig/overrides/index.md) +* [model.links](model/links.md) +* [model.transformations](model/transformations.md) + +## Index + +* [`fn withDescription(value)`](#fn-withdescription) +* [`fn withFolderUid(value)`](#fn-withfolderuid) +* [`fn withMeta(value)`](#fn-withmeta) +* [`fn withMetaMixin(value)`](#fn-withmetamixin) +* [`fn withModel(value)`](#fn-withmodel) +* [`fn withModelMixin(value)`](#fn-withmodelmixin) +* [`fn withName(value)`](#fn-withname) +* [`fn withSchemaVersion(value)`](#fn-withschemaversion) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUid(value)`](#fn-withuid) +* [`fn withVersion(value)`](#fn-withversion) +* [`obj meta`](#obj-meta) + * [`fn withConnectedDashboards(value)`](#fn-metawithconnecteddashboards) + * [`fn withCreated(value)`](#fn-metawithcreated) + * [`fn withCreatedBy(value)`](#fn-metawithcreatedby) + * [`fn withCreatedByMixin(value)`](#fn-metawithcreatedbymixin) + * [`fn withFolderName(value)`](#fn-metawithfoldername) + * [`fn withFolderUid(value)`](#fn-metawithfolderuid) + * [`fn withUpdated(value)`](#fn-metawithupdated) + * [`fn withUpdatedBy(value)`](#fn-metawithupdatedby) + * [`fn withUpdatedByMixin(value)`](#fn-metawithupdatedbymixin) + * [`obj createdBy`](#obj-metacreatedby) + * [`fn withAvatarUrl(value)`](#fn-metacreatedbywithavatarurl) + * [`fn withId(value)`](#fn-metacreatedbywithid) + * [`fn withName(value)`](#fn-metacreatedbywithname) + * [`obj updatedBy`](#obj-metaupdatedby) + * [`fn withAvatarUrl(value)`](#fn-metaupdatedbywithavatarurl) + * [`fn withId(value)`](#fn-metaupdatedbywithid) + * [`fn withName(value)`](#fn-metaupdatedbywithname) +* [`obj model`](#obj-model) + * [`fn withCacheTimeout(value)`](#fn-modelwithcachetimeout) + * [`fn withDatasource(value)`](#fn-modelwithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-modelwithdatasourcemixin) + * [`fn withDescription(value)`](#fn-modelwithdescription) + * [`fn withFieldConfig(value)`](#fn-modelwithfieldconfig) + * [`fn withFieldConfigMixin(value)`](#fn-modelwithfieldconfigmixin) + * [`fn withHideTimeOverride(value=true)`](#fn-modelwithhidetimeoverride) + * [`fn withInterval(value)`](#fn-modelwithinterval) + * [`fn withLinks(value)`](#fn-modelwithlinks) + * [`fn withLinksMixin(value)`](#fn-modelwithlinksmixin) + * [`fn withMaxDataPoints(value)`](#fn-modelwithmaxdatapoints) + * [`fn withMaxPerRow(value)`](#fn-modelwithmaxperrow) + * [`fn withOptions(value)`](#fn-modelwithoptions) + * [`fn withOptionsMixin(value)`](#fn-modelwithoptionsmixin) + * [`fn withPluginVersion(value)`](#fn-modelwithpluginversion) + * [`fn withQueryCachingTTL(value)`](#fn-modelwithquerycachingttl) + * [`fn withRepeat(value)`](#fn-modelwithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-modelwithrepeatdirection) + * [`fn withTargets(value)`](#fn-modelwithtargets) + * [`fn withTargetsMixin(value)`](#fn-modelwithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-modelwithtimefrom) + * [`fn withTimeShift(value)`](#fn-modelwithtimeshift) + * [`fn withTitle(value)`](#fn-modelwithtitle) + * [`fn withTransformations(value)`](#fn-modelwithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-modelwithtransformationsmixin) + * [`fn withTransparent(value=true)`](#fn-modelwithtransparent) + * [`fn withType(value)`](#fn-modelwithtype) + * [`obj datasource`](#obj-modeldatasource) + * [`fn withType(value)`](#fn-modeldatasourcewithtype) + * [`fn withUid(value)`](#fn-modeldatasourcewithuid) + * [`obj fieldConfig`](#obj-modelfieldconfig) + * [`fn withDefaults(value)`](#fn-modelfieldconfigwithdefaults) + * [`fn withDefaultsMixin(value)`](#fn-modelfieldconfigwithdefaultsmixin) + * [`fn withOverrides(value)`](#fn-modelfieldconfigwithoverrides) + * [`fn withOverridesMixin(value)`](#fn-modelfieldconfigwithoverridesmixin) + * [`obj defaults`](#obj-modelfieldconfigdefaults) + * [`fn withColor(value)`](#fn-modelfieldconfigdefaultswithcolor) + * [`fn withColorMixin(value)`](#fn-modelfieldconfigdefaultswithcolormixin) + * [`fn withCustom(value)`](#fn-modelfieldconfigdefaultswithcustom) + * [`fn withCustomMixin(value)`](#fn-modelfieldconfigdefaultswithcustommixin) + * [`fn withDecimals(value)`](#fn-modelfieldconfigdefaultswithdecimals) + * [`fn withDescription(value)`](#fn-modelfieldconfigdefaultswithdescription) + * [`fn withDisplayName(value)`](#fn-modelfieldconfigdefaultswithdisplayname) + * [`fn withDisplayNameFromDS(value)`](#fn-modelfieldconfigdefaultswithdisplaynamefromds) + * [`fn withFilterable(value=true)`](#fn-modelfieldconfigdefaultswithfilterable) + * [`fn withLinks(value)`](#fn-modelfieldconfigdefaultswithlinks) + * [`fn withLinksMixin(value)`](#fn-modelfieldconfigdefaultswithlinksmixin) + * [`fn withMappings(value)`](#fn-modelfieldconfigdefaultswithmappings) + * [`fn withMappingsMixin(value)`](#fn-modelfieldconfigdefaultswithmappingsmixin) + * [`fn withMax(value)`](#fn-modelfieldconfigdefaultswithmax) + * [`fn withMin(value)`](#fn-modelfieldconfigdefaultswithmin) + * [`fn withNoValue(value)`](#fn-modelfieldconfigdefaultswithnovalue) + * [`fn withPath(value)`](#fn-modelfieldconfigdefaultswithpath) + * [`fn withThresholds(value)`](#fn-modelfieldconfigdefaultswiththresholds) + * [`fn withThresholdsMixin(value)`](#fn-modelfieldconfigdefaultswiththresholdsmixin) + * [`fn withUnit(value)`](#fn-modelfieldconfigdefaultswithunit) + * [`fn withWriteable(value=true)`](#fn-modelfieldconfigdefaultswithwriteable) + * [`obj color`](#obj-modelfieldconfigdefaultscolor) + * [`fn withFixedColor(value)`](#fn-modelfieldconfigdefaultscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-modelfieldconfigdefaultscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-modelfieldconfigdefaultscolorwithseriesby) + * [`obj mappings`](#obj-modelfieldconfigdefaultsmappings) + * [`obj RangeMap`](#obj-modelfieldconfigdefaultsmappingsrangemap) + * [`fn withOptions(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapwithoptionsmixin) + * [`fn withType()`](#fn-modelfieldconfigdefaultsmappingsrangemapwithtype) + * [`obj options`](#obj-modelfieldconfigdefaultsmappingsrangemapoptions) + * [`fn withFrom(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionswithto) + * [`obj result`](#obj-modelfieldconfigdefaultsmappingsrangemapoptionsresult) + * [`fn withColor(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionsresultwithtext) + * [`obj RegexMap`](#obj-modelfieldconfigdefaultsmappingsregexmap) + * [`fn withOptions(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapwithoptionsmixin) + * [`fn withType()`](#fn-modelfieldconfigdefaultsmappingsregexmapwithtype) + * [`obj options`](#obj-modelfieldconfigdefaultsmappingsregexmapoptions) + * [`fn withPattern(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionswithresultmixin) + * [`obj result`](#obj-modelfieldconfigdefaultsmappingsregexmapoptionsresult) + * [`fn withColor(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionsresultwithtext) + * [`obj SpecialValueMap`](#obj-modelfieldconfigdefaultsmappingsspecialvaluemap) + * [`fn withOptions(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapwithtype) + * [`obj options`](#obj-modelfieldconfigdefaultsmappingsspecialvaluemapoptions) + * [`fn withMatch(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresultwithtext) + * [`obj ValueMap`](#obj-modelfieldconfigdefaultsmappingsvaluemap) + * [`fn withOptions(value)`](#fn-modelfieldconfigdefaultsmappingsvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-modelfieldconfigdefaultsmappingsvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-modelfieldconfigdefaultsmappingsvaluemapwithtype) + * [`obj thresholds`](#obj-modelfieldconfigdefaultsthresholds) + * [`fn withMode(value)`](#fn-modelfieldconfigdefaultsthresholdswithmode) + * [`fn withSteps(value)`](#fn-modelfieldconfigdefaultsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-modelfieldconfigdefaultsthresholdswithstepsmixin) + +## Fields + +### fn withDescription + +```jsonnet +withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description +### fn withFolderUid + +```jsonnet +withFolderUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Folder UID +### fn withMeta + +```jsonnet +withMeta(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Object storage metadata +### fn withMetaMixin + +```jsonnet +withMetaMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Object storage metadata +### fn withModel + +```jsonnet +withModel(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Dashboard panels are the basic visualization building blocks. +### fn withModelMixin + +```jsonnet +withModelMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Dashboard panels are the basic visualization building blocks. +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel name (also saved in the model) +### fn withSchemaVersion + +```jsonnet +withSchemaVersion(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Dashboard version when this was saved (zero if unknown) +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The panel type (from inside the model) +### fn withUid + +```jsonnet +withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library element UID +### fn withVersion + +```jsonnet +withVersion(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +panel version, incremented each time the dashboard is updated. +### obj meta + + +#### fn meta.withConnectedDashboards + +```jsonnet +meta.withConnectedDashboards(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +#### fn meta.withCreated + +```jsonnet +meta.withCreated(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn meta.withCreatedBy + +```jsonnet +meta.withCreatedBy(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn meta.withCreatedByMixin + +```jsonnet +meta.withCreatedByMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn meta.withFolderName + +```jsonnet +meta.withFolderName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn meta.withFolderUid + +```jsonnet +meta.withFolderUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn meta.withUpdated + +```jsonnet +meta.withUpdated(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn meta.withUpdatedBy + +```jsonnet +meta.withUpdatedBy(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn meta.withUpdatedByMixin + +```jsonnet +meta.withUpdatedByMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### obj meta.createdBy + + +##### fn meta.createdBy.withAvatarUrl + +```jsonnet +meta.createdBy.withAvatarUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn meta.createdBy.withId + +```jsonnet +meta.createdBy.withId(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +##### fn meta.createdBy.withName + +```jsonnet +meta.createdBy.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj meta.updatedBy + + +##### fn meta.updatedBy.withAvatarUrl + +```jsonnet +meta.updatedBy.withAvatarUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn meta.updatedBy.withId + +```jsonnet +meta.updatedBy.withId(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +##### fn meta.updatedBy.withName + +```jsonnet +meta.updatedBy.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj model + + +#### fn model.withCacheTimeout + +```jsonnet +model.withCacheTimeout(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Sets panel queries cache timeout. +#### fn model.withDatasource + +```jsonnet +model.withDatasource(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn model.withDatasourceMixin + +```jsonnet +model.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn model.withDescription + +```jsonnet +model.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn model.withFieldConfig + +```jsonnet +model.withFieldConfig(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. +Each column within this structure is called a field. A field can represent a single time series or table column. +Field options allow you to change how the data is displayed in your visualizations. +#### fn model.withFieldConfigMixin + +```jsonnet +model.withFieldConfigMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. +Each column within this structure is called a field. A field can represent a single time series or table column. +Field options allow you to change how the data is displayed in your visualizations. +#### fn model.withHideTimeOverride + +```jsonnet +model.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn model.withInterval + +```jsonnet +model.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn model.withLinks + +```jsonnet +model.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn model.withLinksMixin + +```jsonnet +model.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn model.withMaxDataPoints + +```jsonnet +model.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn model.withMaxPerRow + +```jsonnet +model.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn model.withOptions + +```jsonnet +model.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +It depends on the panel plugin. They are specified by the Options field in panel plugin schemas. +#### fn model.withOptionsMixin + +```jsonnet +model.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +It depends on the panel plugin. They are specified by the Options field in panel plugin schemas. +#### fn model.withPluginVersion + +```jsonnet +model.withPluginVersion(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The version of the plugin that is used for this panel. This is used to find the plugin to display the panel and to migrate old panel configs. +#### fn model.withQueryCachingTTL + +```jsonnet +model.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn model.withRepeat + +```jsonnet +model.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn model.withRepeatDirection + +```jsonnet +model.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn model.withTargets + +```jsonnet +model.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn model.withTargetsMixin + +```jsonnet +model.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn model.withTimeFrom + +```jsonnet +model.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn model.withTimeShift + +```jsonnet +model.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn model.withTitle + +```jsonnet +model.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn model.withTransformations + +```jsonnet +model.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn model.withTransformationsMixin + +```jsonnet +model.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn model.withTransparent + +```jsonnet +model.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +#### fn model.withType + +```jsonnet +model.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The panel plugin type id. This is used to find the plugin to display the panel. +#### obj model.datasource + + +##### fn model.datasource.withType + +```jsonnet +model.datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +##### fn model.datasource.withUid + +```jsonnet +model.datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +#### obj model.fieldConfig + + +##### fn model.fieldConfig.withDefaults + +```jsonnet +model.fieldConfig.withDefaults(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. +Each column within this structure is called a field. A field can represent a single time series or table column. +Field options allow you to change how the data is displayed in your visualizations. +##### fn model.fieldConfig.withDefaultsMixin + +```jsonnet +model.fieldConfig.withDefaultsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. +Each column within this structure is called a field. A field can represent a single time series or table column. +Field options allow you to change how the data is displayed in your visualizations. +##### fn model.fieldConfig.withOverrides + +```jsonnet +model.fieldConfig.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +##### fn model.fieldConfig.withOverridesMixin + +```jsonnet +model.fieldConfig.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +##### obj model.fieldConfig.defaults + + +###### fn model.fieldConfig.defaults.withColor + +```jsonnet +model.fieldConfig.defaults.withColor(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map a field to a color. +###### fn model.fieldConfig.defaults.withColorMixin + +```jsonnet +model.fieldConfig.defaults.withColorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map a field to a color. +###### fn model.fieldConfig.defaults.withCustom + +```jsonnet +model.fieldConfig.defaults.withCustom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +custom is specified by the FieldConfig field +in panel plugin schemas. +###### fn model.fieldConfig.defaults.withCustomMixin + +```jsonnet +model.fieldConfig.defaults.withCustomMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +custom is specified by the FieldConfig field +in panel plugin schemas. +###### fn model.fieldConfig.defaults.withDecimals + +```jsonnet +model.fieldConfig.defaults.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +###### fn model.fieldConfig.defaults.withDescription + +```jsonnet +model.fieldConfig.defaults.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Human readable field metadata +###### fn model.fieldConfig.defaults.withDisplayName + +```jsonnet +model.fieldConfig.defaults.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +###### fn model.fieldConfig.defaults.withDisplayNameFromDS + +```jsonnet +model.fieldConfig.defaults.withDisplayNameFromDS(value) +``` + +PARAMETERS: + +* **value** (`string`) + +This can be used by data sources that return and explicit naming structure for values and labels +When this property is configured, this value is used rather than the default naming strategy. +###### fn model.fieldConfig.defaults.withFilterable + +```jsonnet +model.fieldConfig.defaults.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +###### fn model.fieldConfig.defaults.withLinks + +```jsonnet +model.fieldConfig.defaults.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +###### fn model.fieldConfig.defaults.withLinksMixin + +```jsonnet +model.fieldConfig.defaults.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +###### fn model.fieldConfig.defaults.withMappings + +```jsonnet +model.fieldConfig.defaults.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +###### fn model.fieldConfig.defaults.withMappingsMixin + +```jsonnet +model.fieldConfig.defaults.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +###### fn model.fieldConfig.defaults.withMax + +```jsonnet +model.fieldConfig.defaults.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +###### fn model.fieldConfig.defaults.withMin + +```jsonnet +model.fieldConfig.defaults.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +###### fn model.fieldConfig.defaults.withNoValue + +```jsonnet +model.fieldConfig.defaults.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +###### fn model.fieldConfig.defaults.withPath + +```jsonnet +model.fieldConfig.defaults.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +###### fn model.fieldConfig.defaults.withThresholds + +```jsonnet +model.fieldConfig.defaults.withThresholds(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Thresholds configuration for the panel +###### fn model.fieldConfig.defaults.withThresholdsMixin + +```jsonnet +model.fieldConfig.defaults.withThresholdsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Thresholds configuration for the panel +###### fn model.fieldConfig.defaults.withUnit + +```jsonnet +model.fieldConfig.defaults.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +###### fn model.fieldConfig.defaults.withWriteable + +```jsonnet +model.fieldConfig.defaults.withWriteable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source can write a value to the path. Auth/authz are supported separately +###### obj model.fieldConfig.defaults.color + + +####### fn model.fieldConfig.defaults.color.withFixedColor + +```jsonnet +model.fieldConfig.defaults.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +####### fn model.fieldConfig.defaults.color.withMode + +```jsonnet +model.fieldConfig.defaults.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +####### fn model.fieldConfig.defaults.color.withSeriesBy + +```jsonnet +model.fieldConfig.defaults.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +###### obj model.fieldConfig.defaults.mappings + + +####### obj model.fieldConfig.defaults.mappings.RangeMap + + +######## fn model.fieldConfig.defaults.mappings.RangeMap.withOptions + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +######## fn model.fieldConfig.defaults.mappings.RangeMap.withOptionsMixin + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +######## fn model.fieldConfig.defaults.mappings.RangeMap.withType + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.withType() +``` + + + +######## obj model.fieldConfig.defaults.mappings.RangeMap.options + + +######### fn model.fieldConfig.defaults.mappings.RangeMap.options.withFrom + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +######### fn model.fieldConfig.defaults.mappings.RangeMap.options.withResult + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +######### fn model.fieldConfig.defaults.mappings.RangeMap.options.withResultMixin + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +######### fn model.fieldConfig.defaults.mappings.RangeMap.options.withTo + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +######### obj model.fieldConfig.defaults.mappings.RangeMap.options.result + + +########## fn model.fieldConfig.defaults.mappings.RangeMap.options.result.withColor + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +########## fn model.fieldConfig.defaults.mappings.RangeMap.options.result.withIcon + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +########## fn model.fieldConfig.defaults.mappings.RangeMap.options.result.withIndex + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +########## fn model.fieldConfig.defaults.mappings.RangeMap.options.result.withText + +```jsonnet +model.fieldConfig.defaults.mappings.RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +####### obj model.fieldConfig.defaults.mappings.RegexMap + + +######## fn model.fieldConfig.defaults.mappings.RegexMap.withOptions + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +######## fn model.fieldConfig.defaults.mappings.RegexMap.withOptionsMixin + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +######## fn model.fieldConfig.defaults.mappings.RegexMap.withType + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.withType() +``` + + + +######## obj model.fieldConfig.defaults.mappings.RegexMap.options + + +######### fn model.fieldConfig.defaults.mappings.RegexMap.options.withPattern + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +######### fn model.fieldConfig.defaults.mappings.RegexMap.options.withResult + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +######### fn model.fieldConfig.defaults.mappings.RegexMap.options.withResultMixin + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +######### obj model.fieldConfig.defaults.mappings.RegexMap.options.result + + +########## fn model.fieldConfig.defaults.mappings.RegexMap.options.result.withColor + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +########## fn model.fieldConfig.defaults.mappings.RegexMap.options.result.withIcon + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +########## fn model.fieldConfig.defaults.mappings.RegexMap.options.result.withIndex + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +########## fn model.fieldConfig.defaults.mappings.RegexMap.options.result.withText + +```jsonnet +model.fieldConfig.defaults.mappings.RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +####### obj model.fieldConfig.defaults.mappings.SpecialValueMap + + +######## fn model.fieldConfig.defaults.mappings.SpecialValueMap.withOptions + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +######## fn model.fieldConfig.defaults.mappings.SpecialValueMap.withOptionsMixin + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +######## fn model.fieldConfig.defaults.mappings.SpecialValueMap.withType + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.withType() +``` + + + +######## obj model.fieldConfig.defaults.mappings.SpecialValueMap.options + + +######### fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.withMatch + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +######### fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.withResult + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +######### fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.withResultMixin + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +######### obj model.fieldConfig.defaults.mappings.SpecialValueMap.options.result + + +########## fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withColor + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +########## fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withIcon + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +########## fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withIndex + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +########## fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withText + +```jsonnet +model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +####### obj model.fieldConfig.defaults.mappings.ValueMap + + +######## fn model.fieldConfig.defaults.mappings.ValueMap.withOptions + +```jsonnet +model.fieldConfig.defaults.mappings.ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +######## fn model.fieldConfig.defaults.mappings.ValueMap.withOptionsMixin + +```jsonnet +model.fieldConfig.defaults.mappings.ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +######## fn model.fieldConfig.defaults.mappings.ValueMap.withType + +```jsonnet +model.fieldConfig.defaults.mappings.ValueMap.withType() +``` + + + +###### obj model.fieldConfig.defaults.thresholds + + +####### fn model.fieldConfig.defaults.thresholds.withMode + +```jsonnet +model.fieldConfig.defaults.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +####### fn model.fieldConfig.defaults.thresholds.withSteps + +```jsonnet +model.fieldConfig.defaults.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +####### fn model.fieldConfig.defaults.thresholds.withStepsMixin + +```jsonnet +model.fieldConfig.defaults.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/defaults/links.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/defaults/links.md new file mode 100644 index 0000000..fcc060a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/defaults/links.md @@ -0,0 +1,146 @@ +# links + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/defaults/thresholds/steps.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/defaults/thresholds/steps.md new file mode 100644 index 0000000..79d0a17 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/defaults/thresholds/steps.md @@ -0,0 +1,34 @@ +# steps + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/overrides/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/overrides/index.md new file mode 100644 index 0000000..35b01d5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/overrides/index.md @@ -0,0 +1,104 @@ +# overrides + + + +## Subpackages + +* [properties](properties.md) + +## Index + +* [`fn withMatcher(value)`](#fn-withmatcher) +* [`fn withMatcherMixin(value)`](#fn-withmatchermixin) +* [`fn withProperties(value)`](#fn-withproperties) +* [`fn withPropertiesMixin(value)`](#fn-withpropertiesmixin) +* [`obj matcher`](#obj-matcher) + * [`fn withId(value="")`](#fn-matcherwithid) + * [`fn withOptions(value)`](#fn-matcherwithoptions) + * [`fn withOptionsMixin(value)`](#fn-matcherwithoptionsmixin) + +## Fields + +### fn withMatcher + +```jsonnet +withMatcher(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withMatcherMixin + +```jsonnet +withMatcherMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withProperties + +```jsonnet +withProperties(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withPropertiesMixin + +```jsonnet +withPropertiesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### obj matcher + + +#### fn matcher.withId + +```jsonnet +matcher.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn matcher.withOptions + +```jsonnet +matcher.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn matcher.withOptionsMixin + +```jsonnet +matcher.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/overrides/properties.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/overrides/properties.md new file mode 100644 index 0000000..766e198 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/fieldConfig/overrides/properties.md @@ -0,0 +1,45 @@ +# properties + + + +## Index + +* [`fn withId(value="")`](#fn-withid) +* [`fn withValue(value)`](#fn-withvalue) +* [`fn withValueMixin(value)`](#fn-withvaluemixin) + +## Fields + +### fn withId + +```jsonnet +withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + + +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withValueMixin + +```jsonnet +withValueMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/links.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/links.md new file mode 100644 index 0000000..fcc060a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/links.md @@ -0,0 +1,146 @@ +# links + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/transformations.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/transformations.md new file mode 100644 index 0000000..df55608 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/librarypanel/model/transformations.md @@ -0,0 +1,140 @@ +# transformations + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/index.md new file mode 100644 index 0000000..0061f5a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/index.md @@ -0,0 +1,1215 @@ +# alertList + +grafonnet.panel.alertList + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withAlertListOptions(value)`](#fn-optionswithalertlistoptions) + * [`fn withAlertListOptionsMixin(value)`](#fn-optionswithalertlistoptionsmixin) + * [`fn withUnifiedAlertListOptions(value)`](#fn-optionswithunifiedalertlistoptions) + * [`fn withUnifiedAlertListOptionsMixin(value)`](#fn-optionswithunifiedalertlistoptionsmixin) + * [`obj AlertListOptions`](#obj-optionsalertlistoptions) + * [`fn withAlertName(value)`](#fn-optionsalertlistoptionswithalertname) + * [`fn withDashboardAlerts(value=true)`](#fn-optionsalertlistoptionswithdashboardalerts) + * [`fn withDashboardTitle(value)`](#fn-optionsalertlistoptionswithdashboardtitle) + * [`fn withFolderId(value)`](#fn-optionsalertlistoptionswithfolderid) + * [`fn withMaxItems(value)`](#fn-optionsalertlistoptionswithmaxitems) + * [`fn withShowOptions(value)`](#fn-optionsalertlistoptionswithshowoptions) + * [`fn withSortOrder(value)`](#fn-optionsalertlistoptionswithsortorder) + * [`fn withStateFilter(value)`](#fn-optionsalertlistoptionswithstatefilter) + * [`fn withStateFilterMixin(value)`](#fn-optionsalertlistoptionswithstatefiltermixin) + * [`fn withTags(value)`](#fn-optionsalertlistoptionswithtags) + * [`fn withTagsMixin(value)`](#fn-optionsalertlistoptionswithtagsmixin) + * [`obj stateFilter`](#obj-optionsalertlistoptionsstatefilter) + * [`fn withAlerting(value=true)`](#fn-optionsalertlistoptionsstatefilterwithalerting) + * [`fn withExecutionError(value=true)`](#fn-optionsalertlistoptionsstatefilterwithexecutionerror) + * [`fn withNoData(value=true)`](#fn-optionsalertlistoptionsstatefilterwithnodata) + * [`fn withOk(value=true)`](#fn-optionsalertlistoptionsstatefilterwithok) + * [`fn withPaused(value=true)`](#fn-optionsalertlistoptionsstatefilterwithpaused) + * [`fn withPending(value=true)`](#fn-optionsalertlistoptionsstatefilterwithpending) + * [`obj UnifiedAlertListOptions`](#obj-optionsunifiedalertlistoptions) + * [`fn withAlertInstanceLabelFilter(value)`](#fn-optionsunifiedalertlistoptionswithalertinstancelabelfilter) + * [`fn withAlertName(value)`](#fn-optionsunifiedalertlistoptionswithalertname) + * [`fn withDashboardAlerts(value=true)`](#fn-optionsunifiedalertlistoptionswithdashboardalerts) + * [`fn withDatasource(value)`](#fn-optionsunifiedalertlistoptionswithdatasource) + * [`fn withFolder(value)`](#fn-optionsunifiedalertlistoptionswithfolder) + * [`fn withFolderMixin(value)`](#fn-optionsunifiedalertlistoptionswithfoldermixin) + * [`fn withGroupBy(value)`](#fn-optionsunifiedalertlistoptionswithgroupby) + * [`fn withGroupByMixin(value)`](#fn-optionsunifiedalertlistoptionswithgroupbymixin) + * [`fn withGroupMode(value)`](#fn-optionsunifiedalertlistoptionswithgroupmode) + * [`fn withMaxItems(value)`](#fn-optionsunifiedalertlistoptionswithmaxitems) + * [`fn withShowInstances(value=true)`](#fn-optionsunifiedalertlistoptionswithshowinstances) + * [`fn withSortOrder(value)`](#fn-optionsunifiedalertlistoptionswithsortorder) + * [`fn withStateFilter(value)`](#fn-optionsunifiedalertlistoptionswithstatefilter) + * [`fn withStateFilterMixin(value)`](#fn-optionsunifiedalertlistoptionswithstatefiltermixin) + * [`fn withViewMode(value)`](#fn-optionsunifiedalertlistoptionswithviewmode) + * [`obj folder`](#obj-optionsunifiedalertlistoptionsfolder) + * [`fn withId(value)`](#fn-optionsunifiedalertlistoptionsfolderwithid) + * [`fn withTitle(value)`](#fn-optionsunifiedalertlistoptionsfolderwithtitle) + * [`obj stateFilter`](#obj-optionsunifiedalertlistoptionsstatefilter) + * [`fn withError(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwitherror) + * [`fn withFiring(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithfiring) + * [`fn withInactive(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithinactive) + * [`fn withNoData(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithnodata) + * [`fn withNormal(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithnormal) + * [`fn withPending(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithpending) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new alertlist panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withAlertListOptions + +```jsonnet +options.withAlertListOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withAlertListOptionsMixin + +```jsonnet +options.withAlertListOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withUnifiedAlertListOptions + +```jsonnet +options.withUnifiedAlertListOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withUnifiedAlertListOptionsMixin + +```jsonnet +options.withUnifiedAlertListOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### obj options.AlertListOptions + + +##### fn options.AlertListOptions.withAlertName + +```jsonnet +options.AlertListOptions.withAlertName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.AlertListOptions.withDashboardAlerts + +```jsonnet +options.AlertListOptions.withDashboardAlerts(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.AlertListOptions.withDashboardTitle + +```jsonnet +options.AlertListOptions.withDashboardTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.AlertListOptions.withFolderId + +```jsonnet +options.AlertListOptions.withFolderId(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.AlertListOptions.withMaxItems + +```jsonnet +options.AlertListOptions.withMaxItems(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.AlertListOptions.withShowOptions + +```jsonnet +options.AlertListOptions.withShowOptions(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"current"`, `"changes"` + + +##### fn options.AlertListOptions.withSortOrder + +```jsonnet +options.AlertListOptions.withSortOrder(value) +``` + +PARAMETERS: + +* **value** (`number`) + - valid values: `1`, `2`, `3`, `4`, `5` + + +##### fn options.AlertListOptions.withStateFilter + +```jsonnet +options.AlertListOptions.withStateFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn options.AlertListOptions.withStateFilterMixin + +```jsonnet +options.AlertListOptions.withStateFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn options.AlertListOptions.withTags + +```jsonnet +options.AlertListOptions.withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.AlertListOptions.withTagsMixin + +```jsonnet +options.AlertListOptions.withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### obj options.AlertListOptions.stateFilter + + +###### fn options.AlertListOptions.stateFilter.withAlerting + +```jsonnet +options.AlertListOptions.stateFilter.withAlerting(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.AlertListOptions.stateFilter.withExecutionError + +```jsonnet +options.AlertListOptions.stateFilter.withExecutionError(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.AlertListOptions.stateFilter.withNoData + +```jsonnet +options.AlertListOptions.stateFilter.withNoData(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.AlertListOptions.stateFilter.withOk + +```jsonnet +options.AlertListOptions.stateFilter.withOk(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.AlertListOptions.stateFilter.withPaused + +```jsonnet +options.AlertListOptions.stateFilter.withPaused(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.AlertListOptions.stateFilter.withPending + +```jsonnet +options.AlertListOptions.stateFilter.withPending(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### obj options.UnifiedAlertListOptions + + +##### fn options.UnifiedAlertListOptions.withAlertInstanceLabelFilter + +```jsonnet +options.UnifiedAlertListOptions.withAlertInstanceLabelFilter(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.UnifiedAlertListOptions.withAlertName + +```jsonnet +options.UnifiedAlertListOptions.withAlertName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.UnifiedAlertListOptions.withDashboardAlerts + +```jsonnet +options.UnifiedAlertListOptions.withDashboardAlerts(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.UnifiedAlertListOptions.withDatasource + +```jsonnet +options.UnifiedAlertListOptions.withDatasource(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.UnifiedAlertListOptions.withFolder + +```jsonnet +options.UnifiedAlertListOptions.withFolder(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn options.UnifiedAlertListOptions.withFolderMixin + +```jsonnet +options.UnifiedAlertListOptions.withFolderMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn options.UnifiedAlertListOptions.withGroupBy + +```jsonnet +options.UnifiedAlertListOptions.withGroupBy(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.UnifiedAlertListOptions.withGroupByMixin + +```jsonnet +options.UnifiedAlertListOptions.withGroupByMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.UnifiedAlertListOptions.withGroupMode + +```jsonnet +options.UnifiedAlertListOptions.withGroupMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"default"`, `"custom"` + + +##### fn options.UnifiedAlertListOptions.withMaxItems + +```jsonnet +options.UnifiedAlertListOptions.withMaxItems(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.UnifiedAlertListOptions.withShowInstances + +```jsonnet +options.UnifiedAlertListOptions.withShowInstances(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.UnifiedAlertListOptions.withSortOrder + +```jsonnet +options.UnifiedAlertListOptions.withSortOrder(value) +``` + +PARAMETERS: + +* **value** (`number`) + - valid values: `1`, `2`, `3`, `4`, `5` + + +##### fn options.UnifiedAlertListOptions.withStateFilter + +```jsonnet +options.UnifiedAlertListOptions.withStateFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn options.UnifiedAlertListOptions.withStateFilterMixin + +```jsonnet +options.UnifiedAlertListOptions.withStateFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn options.UnifiedAlertListOptions.withViewMode + +```jsonnet +options.UnifiedAlertListOptions.withViewMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"list"`, `"stat"` + + +##### obj options.UnifiedAlertListOptions.folder + + +###### fn options.UnifiedAlertListOptions.folder.withId + +```jsonnet +options.UnifiedAlertListOptions.folder.withId(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn options.UnifiedAlertListOptions.folder.withTitle + +```jsonnet +options.UnifiedAlertListOptions.folder.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### obj options.UnifiedAlertListOptions.stateFilter + + +###### fn options.UnifiedAlertListOptions.stateFilter.withError + +```jsonnet +options.UnifiedAlertListOptions.stateFilter.withError(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.UnifiedAlertListOptions.stateFilter.withFiring + +```jsonnet +options.UnifiedAlertListOptions.stateFilter.withFiring(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.UnifiedAlertListOptions.stateFilter.withInactive + +```jsonnet +options.UnifiedAlertListOptions.stateFilter.withInactive(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.UnifiedAlertListOptions.stateFilter.withNoData + +```jsonnet +options.UnifiedAlertListOptions.stateFilter.withNoData(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.UnifiedAlertListOptions.stateFilter.withNormal + +```jsonnet +options.UnifiedAlertListOptions.stateFilter.withNormal(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn options.UnifiedAlertListOptions.stateFilter.withPending + +```jsonnet +options.UnifiedAlertListOptions.stateFilter.withPending(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/fieldOverride.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/override.md similarity index 71% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/fieldOverride.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/override.md index 3e2667b..2997ad7 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/annotationsList/fieldOverride.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/override.md @@ -1,12 +1,12 @@ -# fieldOverride +# override Overrides allow you to customize visualization settings for specific fields or series. This is accomplished by adding an override rule that targets a particular set of fields and that can each define multiple options. ```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( panel.standardOptions.withDecimals(2) + panel.standardOptions.withUnit('s') ) @@ -43,152 +43,202 @@ fieldOverride.byType.new('number') #### fn byName.new -```ts -new(value) +```jsonnet +byName.new(value) ``` -`new` creates a new override of type `byName`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byName`. #### fn byName.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byName.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byName.withProperty -```ts -withProperty(id, value) +```jsonnet +byName.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byQuery #### fn byQuery.new -```ts -new(value) +```jsonnet +byQuery.new(value) ``` -`new` creates a new override of type `byQuery`. +PARAMETERS: + +* **value** (`string`) +`new` creates a new override of type `byFrameRefID`. #### fn byQuery.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byQuery.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byQuery.withProperty -```ts -withProperty(id, value) +```jsonnet +byQuery.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byRegexp #### fn byRegexp.new -```ts -new(value) +```jsonnet +byRegexp.new(value) ``` -`new` creates a new override of type `byRegexp`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. #### fn byRegexp.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byRegexp.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byRegexp.withProperty -```ts -withProperty(id, value) +```jsonnet +byRegexp.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byType #### fn byType.new -```ts -new(value) +```jsonnet +byType.new(value) ``` -`new` creates a new override of type `byType`. +PARAMETERS: + +* **value** (`string`) +`new` creates a new override of type `byType`. #### fn byType.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byType.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byType.withProperty -```ts -withProperty(id, value) +```jsonnet +byType.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byValue #### fn byValue.new -```ts -new(value) +```jsonnet +byValue.new(value) ``` -`new` creates a new override of type `byValue`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byValue`. #### fn byValue.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byValue.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byValue.withProperty -```ts -withProperty(id, value) +```jsonnet +byValue.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/alertList/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/index.md new file mode 100644 index 0000000..0cd1707 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/index.md @@ -0,0 +1,788 @@ +# annotationsList + +grafonnet.panel.annotationsList + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withLimit(value=10)`](#fn-optionswithlimit) + * [`fn withNavigateAfter(value="10m")`](#fn-optionswithnavigateafter) + * [`fn withNavigateBefore(value="10m")`](#fn-optionswithnavigatebefore) + * [`fn withNavigateToPanel(value=true)`](#fn-optionswithnavigatetopanel) + * [`fn withOnlyFromThisDashboard(value=true)`](#fn-optionswithonlyfromthisdashboard) + * [`fn withOnlyInTimeRange(value=true)`](#fn-optionswithonlyintimerange) + * [`fn withShowTags(value=true)`](#fn-optionswithshowtags) + * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) + * [`fn withShowUser(value=true)`](#fn-optionswithshowuser) + * [`fn withTags(value)`](#fn-optionswithtags) + * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new annotationsList panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withLimit + +```jsonnet +options.withLimit(value=10) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `10` + + +#### fn options.withNavigateAfter + +```jsonnet +options.withNavigateAfter(value="10m") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"10m"` + + +#### fn options.withNavigateBefore + +```jsonnet +options.withNavigateBefore(value="10m") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"10m"` + + +#### fn options.withNavigateToPanel + +```jsonnet +options.withNavigateToPanel(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withOnlyFromThisDashboard + +```jsonnet +options.withOnlyFromThisDashboard(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withOnlyInTimeRange + +```jsonnet +options.withOnlyInTimeRange(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowTags + +```jsonnet +options.withShowTags(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowTime + +```jsonnet +options.withShowTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowUser + +```jsonnet +options.withShowUser(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withTags + +```jsonnet +options.withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withTagsMixin + +```jsonnet +options.withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/fieldOverride.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/override.md similarity index 71% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/fieldOverride.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/override.md index 3e2667b..2997ad7 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barGauge/fieldOverride.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/override.md @@ -1,12 +1,12 @@ -# fieldOverride +# override Overrides allow you to customize visualization settings for specific fields or series. This is accomplished by adding an override rule that targets a particular set of fields and that can each define multiple options. ```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( panel.standardOptions.withDecimals(2) + panel.standardOptions.withUnit('s') ) @@ -43,152 +43,202 @@ fieldOverride.byType.new('number') #### fn byName.new -```ts -new(value) +```jsonnet +byName.new(value) ``` -`new` creates a new override of type `byName`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byName`. #### fn byName.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byName.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byName.withProperty -```ts -withProperty(id, value) +```jsonnet +byName.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byQuery #### fn byQuery.new -```ts -new(value) +```jsonnet +byQuery.new(value) ``` -`new` creates a new override of type `byQuery`. +PARAMETERS: + +* **value** (`string`) +`new` creates a new override of type `byFrameRefID`. #### fn byQuery.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byQuery.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byQuery.withProperty -```ts -withProperty(id, value) +```jsonnet +byQuery.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byRegexp #### fn byRegexp.new -```ts -new(value) +```jsonnet +byRegexp.new(value) ``` -`new` creates a new override of type `byRegexp`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. #### fn byRegexp.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byRegexp.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byRegexp.withProperty -```ts -withProperty(id, value) +```jsonnet +byRegexp.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byType #### fn byType.new -```ts -new(value) +```jsonnet +byType.new(value) ``` -`new` creates a new override of type `byType`. +PARAMETERS: + +* **value** (`string`) +`new` creates a new override of type `byType`. #### fn byType.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byType.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byType.withProperty -```ts -withProperty(id, value) +```jsonnet +byType.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byValue #### fn byValue.new -```ts -new(value) +```jsonnet +byValue.new(value) ``` -`new` creates a new override of type `byValue`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byValue`. #### fn byValue.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byValue.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byValue.withProperty -```ts -withProperty(id, value) +```jsonnet +byValue.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/annotationsList/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/index.md new file mode 100644 index 0000000..327ef01 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/index.md @@ -0,0 +1,1432 @@ +# barChart + +grafonnet.panel.barChart + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withGradientMode(value="none")`](#fn-fieldconfigdefaultscustomwithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) + * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) + * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withBarRadius(value=0)`](#fn-optionswithbarradius) + * [`fn withBarWidth(value=0.97)`](#fn-optionswithbarwidth) + * [`fn withColorByField(value)`](#fn-optionswithcolorbyfield) + * [`fn withFullHighlight(value=true)`](#fn-optionswithfullhighlight) + * [`fn withGroupWidth(value=0.7)`](#fn-optionswithgroupwidth) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withOrientation(value="auto")`](#fn-optionswithorientation) + * [`fn withShowValue(value="auto")`](#fn-optionswithshowvalue) + * [`fn withStacking(value="none")`](#fn-optionswithstacking) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`fn withXField(value)`](#fn-optionswithxfield) + * [`fn withXTickLabelMaxLength(value)`](#fn-optionswithxticklabelmaxlength) + * [`fn withXTickLabelRotation(value=0)`](#fn-optionswithxticklabelrotation) + * [`fn withXTickLabelSpacing(value=0)`](#fn-optionswithxticklabelspacing) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value="list")`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value="bottom")`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new barChart panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisBorderShow + +```jsonnet +fieldConfig.defaults.custom.withAxisBorderShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```jsonnet +fieldConfig.defaults.custom.withAxisCenteredZero(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```jsonnet +fieldConfig.defaults.custom.withAxisColorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"text"`, `"series"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```jsonnet +fieldConfig.defaults.custom.withAxisGridShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```jsonnet +fieldConfig.defaults.custom.withAxisLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```jsonnet +fieldConfig.defaults.custom.withAxisPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```jsonnet +fieldConfig.defaults.custom.withAxisWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```jsonnet +fieldConfig.defaults.custom.withFillOpacity(value=80) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `80` + +Controls the fill opacity of the bars. +###### fn fieldConfig.defaults.custom.withGradientMode + +```jsonnet +fieldConfig.defaults.custom.withGradientMode(value="none") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"none"` + - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineWidth + +```jsonnet +fieldConfig.defaults.custom.withLineWidth(value=1) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `1` + +Controls line width of the bars. +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```jsonnet +fieldConfig.defaults.custom.withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```jsonnet +fieldConfig.defaults.custom.withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withThresholdsStyle + +```jsonnet +fieldConfig.defaults.custom.withThresholdsStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin + +```jsonnet +fieldConfig.defaults.custom.withThresholdsStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +###### obj fieldConfig.defaults.custom.thresholdsStyle + + +####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode + +```jsonnet +fieldConfig.defaults.custom.thresholdsStyle.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` + +TODO docs +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withBarRadius + +```jsonnet +options.withBarRadius(value=0) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `0` + +Controls the radius of each bar. +#### fn options.withBarWidth + +```jsonnet +options.withBarWidth(value=0.97) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `0.97` + +Controls the width of bars. 1 = Max width, 0 = Min width. +#### fn options.withColorByField + +```jsonnet +options.withColorByField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Use the color value for a sibling field to color each bar value. +#### fn options.withFullHighlight + +```jsonnet +options.withFullHighlight(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Enables mode which highlights the entire bar area and shows tooltip when cursor +hovers over highlighted area +#### fn options.withGroupWidth + +```jsonnet +options.withGroupWidth(value=0.7) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `0.7` + +Controls the width of groups. 1 = max with, 0 = min width. +#### fn options.withLegend + +```jsonnet +options.withLegend(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withOrientation + +```jsonnet +options.withOrientation(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"vertical"`, `"horizontal"` + +TODO docs +#### fn options.withShowValue + +```jsonnet +options.withShowValue(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +#### fn options.withStacking + +```jsonnet +options.withStacking(value="none") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"none"` + - valid values: `"none"`, `"normal"`, `"percent"` + +TODO docs +#### fn options.withText + +```jsonnet +options.withText(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTextMixin + +```jsonnet +options.withTextMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withXField + +```jsonnet +options.withXField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Manually select which field from the dataset to represent the x field. +#### fn options.withXTickLabelMaxLength + +```jsonnet +options.withXTickLabelMaxLength(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Sets the max length that a label can have before it is truncated. +#### fn options.withXTickLabelRotation + +```jsonnet +options.withXTickLabelRotation(value=0) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `0` + +Controls the rotation of the x axis labels. +#### fn options.withXTickLabelSpacing + +```jsonnet +options.withXTickLabelSpacing(value=0) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `0` + +Controls the spacing between x axis labels. +negative values indicate backwards skipping behavior +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value="list") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"list"` + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value="bottom") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"bottom"` + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.text + + +##### fn options.text.withTitleSize + +```jsonnet +options.text.withTitleSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit title text size +##### fn options.text.withValueSize + +```jsonnet +options.text.withValueSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit value text size +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withSort + +```jsonnet +options.tooltip.withSort(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"asc"`, `"desc"`, `"none"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/fieldOverride.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/override.md similarity index 71% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/fieldOverride.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/override.md index 3e2667b..2997ad7 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/alertGroups/fieldOverride.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/override.md @@ -1,12 +1,12 @@ -# fieldOverride +# override Overrides allow you to customize visualization settings for specific fields or series. This is accomplished by adding an override rule that targets a particular set of fields and that can each define multiple options. ```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( panel.standardOptions.withDecimals(2) + panel.standardOptions.withUnit('s') ) @@ -43,152 +43,202 @@ fieldOverride.byType.new('number') #### fn byName.new -```ts -new(value) +```jsonnet +byName.new(value) ``` -`new` creates a new override of type `byName`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byName`. #### fn byName.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byName.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byName.withProperty -```ts -withProperty(id, value) +```jsonnet +byName.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byQuery #### fn byQuery.new -```ts -new(value) +```jsonnet +byQuery.new(value) ``` -`new` creates a new override of type `byQuery`. +PARAMETERS: + +* **value** (`string`) +`new` creates a new override of type `byFrameRefID`. #### fn byQuery.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byQuery.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byQuery.withProperty -```ts -withProperty(id, value) +```jsonnet +byQuery.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byRegexp #### fn byRegexp.new -```ts -new(value) +```jsonnet +byRegexp.new(value) ``` -`new` creates a new override of type `byRegexp`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. #### fn byRegexp.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byRegexp.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byRegexp.withProperty -```ts -withProperty(id, value) +```jsonnet +byRegexp.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byType #### fn byType.new -```ts -new(value) +```jsonnet +byType.new(value) ``` -`new` creates a new override of type `byType`. +PARAMETERS: + +* **value** (`string`) +`new` creates a new override of type `byType`. #### fn byType.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byType.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byType.withProperty -```ts -withProperty(id, value) +```jsonnet +byType.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byValue #### fn byValue.new -```ts -new(value) +```jsonnet +byValue.new(value) ``` -`new` creates a new override of type `byValue`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byValue`. #### fn byValue.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byValue.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byValue.withProperty -```ts -withProperty(id, value) +```jsonnet +byValue.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barChart/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/index.md new file mode 100644 index 0000000..326fdcc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/index.md @@ -0,0 +1,1069 @@ +# barGauge + +grafonnet.panel.barGauge + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withDisplayMode(value="gradient")`](#fn-optionswithdisplaymode) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withMaxVizHeight(value=300)`](#fn-optionswithmaxvizheight) + * [`fn withMinVizHeight(value=16)`](#fn-optionswithminvizheight) + * [`fn withMinVizWidth(value=8)`](#fn-optionswithminvizwidth) + * [`fn withNamePlacement(value="auto")`](#fn-optionswithnameplacement) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) + * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) + * [`fn withShowUnfilled(value=true)`](#fn-optionswithshowunfilled) + * [`fn withSizing(value="auto")`](#fn-optionswithsizing) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`fn withValueMode(value="color")`](#fn-optionswithvaluemode) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value="list")`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value="bottom")`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj reduceOptions`](#obj-optionsreduceoptions) + * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) + * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) + * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) + * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new barGauge panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withDisplayMode + +```jsonnet +options.withDisplayMode(value="gradient") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"gradient"` + - valid values: `"basic"`, `"lcd"`, `"gradient"` + +Enum expressing the possible display modes +for the bar gauge component of Grafana UI +#### fn options.withLegend + +```jsonnet +options.withLegend(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withMaxVizHeight + +```jsonnet +options.withMaxVizHeight(value=300) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `300` + + +#### fn options.withMinVizHeight + +```jsonnet +options.withMinVizHeight(value=16) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `16` + + +#### fn options.withMinVizWidth + +```jsonnet +options.withMinVizWidth(value=8) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `8` + + +#### fn options.withNamePlacement + +```jsonnet +options.withNamePlacement(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"top"`, `"left"`, `"hidden"` + +Allows for the bar gauge name to be placed explicitly +#### fn options.withOrientation + +```jsonnet +options.withOrientation(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"vertical"`, `"horizontal"` + +TODO docs +#### fn options.withReduceOptions + +```jsonnet +options.withReduceOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withReduceOptionsMixin + +```jsonnet +options.withReduceOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withShowUnfilled + +```jsonnet +options.withShowUnfilled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withSizing + +```jsonnet +options.withSizing(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"manual"` + +Allows for the bar gauge size to be set explicitly +#### fn options.withText + +```jsonnet +options.withText(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTextMixin + +```jsonnet +options.withTextMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withValueMode + +```jsonnet +options.withValueMode(value="color") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"color"` + - valid values: `"color"`, `"text"`, `"hidden"` + +Allows for the table cell gauge display type to set the gauge mode. +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value="list") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"list"` + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value="bottom") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"bottom"` + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.reduceOptions + + +##### fn options.reduceOptions.withCalcs + +```jsonnet +options.reduceOptions.withCalcs(value) +``` + +PARAMETERS: + +* **value** (`array`) + +When !values, pick one value for the whole field +##### fn options.reduceOptions.withCalcsMixin + +```jsonnet +options.reduceOptions.withCalcsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +When !values, pick one value for the whole field +##### fn options.reduceOptions.withFields + +```jsonnet +options.reduceOptions.withFields(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Which fields to show. By default this is only numeric fields +##### fn options.reduceOptions.withLimit + +```jsonnet +options.reduceOptions.withLimit(value) +``` + +PARAMETERS: + +* **value** (`number`) + +if showing all values limit +##### fn options.reduceOptions.withValues + +```jsonnet +options.reduceOptions.withValues(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true show each row value +#### obj options.text + + +##### fn options.text.withTitleSize + +```jsonnet +options.text.withTitleSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit title text size +##### fn options.text.withValueSize + +```jsonnet +options.text.withValueSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit value text size +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/fieldOverride.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/override.md similarity index 71% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/fieldOverride.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/override.md index 3e2667b..2997ad7 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/barChart/fieldOverride.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/override.md @@ -1,12 +1,12 @@ -# fieldOverride +# override Overrides allow you to customize visualization settings for specific fields or series. This is accomplished by adding an override rule that targets a particular set of fields and that can each define multiple options. ```jsonnet -fieldOverride.byType.new('number') -+ fieldOverride.byType.withPropertiesFromOptions( +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( panel.standardOptions.withDecimals(2) + panel.standardOptions.withUnit('s') ) @@ -43,152 +43,202 @@ fieldOverride.byType.new('number') #### fn byName.new -```ts -new(value) +```jsonnet +byName.new(value) ``` -`new` creates a new override of type `byName`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byName`. #### fn byName.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byName.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byName.withProperty -```ts -withProperty(id, value) +```jsonnet +byName.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byQuery #### fn byQuery.new -```ts -new(value) +```jsonnet +byQuery.new(value) ``` -`new` creates a new override of type `byQuery`. +PARAMETERS: + +* **value** (`string`) +`new` creates a new override of type `byFrameRefID`. #### fn byQuery.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byQuery.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byQuery.withProperty -```ts -withProperty(id, value) +```jsonnet +byQuery.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byRegexp #### fn byRegexp.new -```ts -new(value) +```jsonnet +byRegexp.new(value) ``` -`new` creates a new override of type `byRegexp`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. #### fn byRegexp.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byRegexp.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byRegexp.withProperty -```ts -withProperty(id, value) +```jsonnet +byRegexp.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byType #### fn byType.new -```ts -new(value) +```jsonnet +byType.new(value) ``` -`new` creates a new override of type `byType`. +PARAMETERS: + +* **value** (`string`) +`new` creates a new override of type `byType`. #### fn byType.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byType.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byType.withProperty -```ts -withProperty(id, value) +```jsonnet +byType.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - ### obj byValue #### fn byValue.new -```ts -new(value) +```jsonnet +byValue.new(value) ``` -`new` creates a new override of type `byValue`. +PARAMETERS: +* **value** (`string`) + +`new` creates a new override of type `byValue`. #### fn byValue.withPropertiesFromOptions -```ts -withPropertiesFromOptions(options) +```jsonnet +byValue.withPropertiesFromOptions(options) ``` +PARAMETERS: + +* **options** (`object`) + `withPropertiesFromOptions` takes an object with properties that need to be overridden. See example code above. - #### fn byValue.withProperty -```ts -withProperty(id, value) +```jsonnet +byValue.withProperty(id, value) ``` +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + `withProperty` adds a property that needs to be overridden. This function can be called multiple time, adding more properties. - diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/barGauge/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/index.md new file mode 100644 index 0000000..96629fa --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/index.md @@ -0,0 +1,1762 @@ +# candlestick + +grafonnet.panel.candlestick + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) + * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) + * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) + * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) + * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) + * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) + * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withInsertNulls(value)`](#fn-fieldconfigdefaultscustomwithinsertnulls) + * [`fn withInsertNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithinsertnullsmixin) + * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) + * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) + * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) + * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) + * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) + * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) + * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) + * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) + * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) + * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) + * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) + * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) + * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) + * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) + * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) + * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) + * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) + * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) + * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) + * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withCandleStyle(value="candles")`](#fn-optionswithcandlestyle) + * [`fn withColorStrategy(value="open-close")`](#fn-optionswithcolorstrategy) + * [`fn withColors(value={"down": "red","flat": "gray","up": "green"})`](#fn-optionswithcolors) + * [`fn withColorsMixin(value={"down": "red","flat": "gray","up": "green"})`](#fn-optionswithcolorsmixin) + * [`fn withFields(value)`](#fn-optionswithfields) + * [`fn withFieldsMixin(value)`](#fn-optionswithfieldsmixin) + * [`fn withIncludeAllFields(value=true)`](#fn-optionswithincludeallfields) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withMode(value="candles+volume")`](#fn-optionswithmode) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj colors`](#obj-optionscolors) + * [`fn withDown(value="red")`](#fn-optionscolorswithdown) + * [`fn withFlat(value="gray")`](#fn-optionscolorswithflat) + * [`fn withUp(value="green")`](#fn-optionscolorswithup) + * [`obj fields`](#obj-optionsfields) + * [`fn withClose(value)`](#fn-optionsfieldswithclose) + * [`fn withHigh(value)`](#fn-optionsfieldswithhigh) + * [`fn withLow(value)`](#fn-optionsfieldswithlow) + * [`fn withOpen(value)`](#fn-optionsfieldswithopen) + * [`fn withVolume(value)`](#fn-optionsfieldswithvolume) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value="list")`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value="bottom")`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new candlestick panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisBorderShow + +```jsonnet +fieldConfig.defaults.custom.withAxisBorderShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```jsonnet +fieldConfig.defaults.custom.withAxisCenteredZero(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```jsonnet +fieldConfig.defaults.custom.withAxisColorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"text"`, `"series"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```jsonnet +fieldConfig.defaults.custom.withAxisGridShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```jsonnet +fieldConfig.defaults.custom.withAxisLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```jsonnet +fieldConfig.defaults.custom.withAxisPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```jsonnet +fieldConfig.defaults.custom.withAxisWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withBarAlignment + +```jsonnet +fieldConfig.defaults.custom.withBarAlignment(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `-1`, `0`, `1` + +TODO docs +###### fn fieldConfig.defaults.custom.withBarMaxWidth + +```jsonnet +fieldConfig.defaults.custom.withBarMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withBarWidthFactor + +```jsonnet +fieldConfig.defaults.custom.withBarWidthFactor(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withDrawStyle + +```jsonnet +fieldConfig.defaults.custom.withDrawStyle(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"line"`, `"bars"`, `"points"` + +TODO docs +###### fn fieldConfig.defaults.custom.withFillBelowTo + +```jsonnet +fieldConfig.defaults.custom.withFillBelowTo(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withFillColor + +```jsonnet +fieldConfig.defaults.custom.withFillColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```jsonnet +fieldConfig.defaults.custom.withFillOpacity(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withGradientMode + +```jsonnet +fieldConfig.defaults.custom.withGradientMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withInsertNulls + +```jsonnet +fieldConfig.defaults.custom.withInsertNulls(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + + +###### fn fieldConfig.defaults.custom.withInsertNullsMixin + +```jsonnet +fieldConfig.defaults.custom.withInsertNullsMixin(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + + +###### fn fieldConfig.defaults.custom.withLineColor + +```jsonnet +fieldConfig.defaults.custom.withLineColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withLineInterpolation + +```jsonnet +fieldConfig.defaults.custom.withLineInterpolation(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` + +TODO docs +###### fn fieldConfig.defaults.custom.withLineStyle + +```jsonnet +fieldConfig.defaults.custom.withLineStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineStyleMixin + +```jsonnet +fieldConfig.defaults.custom.withLineStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineWidth + +```jsonnet +fieldConfig.defaults.custom.withLineWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withPointColor + +```jsonnet +fieldConfig.defaults.custom.withPointColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withPointSize + +```jsonnet +fieldConfig.defaults.custom.withPointSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withPointSymbol + +```jsonnet +fieldConfig.defaults.custom.withPointSymbol(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```jsonnet +fieldConfig.defaults.custom.withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```jsonnet +fieldConfig.defaults.custom.withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withShowPoints + +```jsonnet +fieldConfig.defaults.custom.withShowPoints(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +###### fn fieldConfig.defaults.custom.withSpanNulls + +```jsonnet +fieldConfig.defaults.custom.withSpanNulls(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds +###### fn fieldConfig.defaults.custom.withSpanNullsMixin + +```jsonnet +fieldConfig.defaults.custom.withSpanNullsMixin(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds +###### fn fieldConfig.defaults.custom.withStacking + +```jsonnet +fieldConfig.defaults.custom.withStacking(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withStackingMixin + +```jsonnet +fieldConfig.defaults.custom.withStackingMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withThresholdsStyle + +```jsonnet +fieldConfig.defaults.custom.withThresholdsStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin + +```jsonnet +fieldConfig.defaults.custom.withThresholdsStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withTransform + +```jsonnet +fieldConfig.defaults.custom.withTransform(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"constant"`, `"negative-Y"` + +TODO docs +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### obj fieldConfig.defaults.custom.lineStyle + + +####### fn fieldConfig.defaults.custom.lineStyle.withDash + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withDash(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withDashMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +####### fn fieldConfig.defaults.custom.lineStyle.withFill + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withFill(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` + + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +###### obj fieldConfig.defaults.custom.stacking + + +####### fn fieldConfig.defaults.custom.stacking.withGroup + +```jsonnet +fieldConfig.defaults.custom.stacking.withGroup(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +####### fn fieldConfig.defaults.custom.stacking.withMode + +```jsonnet +fieldConfig.defaults.custom.stacking.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"normal"`, `"percent"` + +TODO docs +###### obj fieldConfig.defaults.custom.thresholdsStyle + + +####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode + +```jsonnet +fieldConfig.defaults.custom.thresholdsStyle.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` + +TODO docs +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withCandleStyle + +```jsonnet +options.withCandleStyle(value="candles") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"candles"` + - valid values: `"candles"`, `"ohlcbars"` + +Sets the style of the candlesticks +#### fn options.withColorStrategy + +```jsonnet +options.withColorStrategy(value="open-close") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"open-close"` + - valid values: `"open-close"`, `"close-close"` + +Sets the color strategy for the candlesticks +#### fn options.withColors + +```jsonnet +options.withColors(value={"down": "red","flat": "gray","up": "green"}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"down": "red","flat": "gray","up": "green"}` + +Set which colors are used when the price movement is up or down +#### fn options.withColorsMixin + +```jsonnet +options.withColorsMixin(value={"down": "red","flat": "gray","up": "green"}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"down": "red","flat": "gray","up": "green"}` + +Set which colors are used when the price movement is up or down +#### fn options.withFields + +```jsonnet +options.withFields(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map fields to appropriate dimension +#### fn options.withFieldsMixin + +```jsonnet +options.withFieldsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map fields to appropriate dimension +#### fn options.withIncludeAllFields + +```jsonnet +options.withIncludeAllFields(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +When enabled, all fields will be sent to the graph +#### fn options.withLegend + +```jsonnet +options.withLegend(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withMode + +```jsonnet +options.withMode(value="candles+volume") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"candles+volume"` + - valid values: `"candles+volume"`, `"candles"`, `"volume"` + +Sets which dimensions are used for the visualization +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### obj options.colors + + +##### fn options.colors.withDown + +```jsonnet +options.colors.withDown(value="red") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"red"` + + +##### fn options.colors.withFlat + +```jsonnet +options.colors.withFlat(value="gray") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"gray"` + + +##### fn options.colors.withUp + +```jsonnet +options.colors.withUp(value="green") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"green"` + + +#### obj options.fields + + +##### fn options.fields.withClose + +```jsonnet +options.fields.withClose(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Corresponds to the final (end) value of the given period +##### fn options.fields.withHigh + +```jsonnet +options.fields.withHigh(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Corresponds to the highest value of the given period +##### fn options.fields.withLow + +```jsonnet +options.fields.withLow(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Corresponds to the lowest value of the given period +##### fn options.fields.withOpen + +```jsonnet +options.fields.withOpen(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Corresponds to the starting value of the given period +##### fn options.fields.withVolume + +```jsonnet +options.fields.withVolume(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Corresponds to the sample count in the given period. (e.g. number of trades) +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value="list") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"list"` + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value="bottom") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"bottom"` + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withSort + +```jsonnet +options.tooltip.withSort(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"asc"`, `"desc"`, `"none"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/candlestick/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/index.md new file mode 100644 index 0000000..3fa434f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/index.md @@ -0,0 +1,775 @@ +# canvas + +grafonnet.panel.canvas + +## Subpackages + +* [options.root.elements](options/root/elements/index.md) +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withInfinitePan(value=true)`](#fn-optionswithinfinitepan) + * [`fn withInlineEditing(value=true)`](#fn-optionswithinlineediting) + * [`fn withPanZoom(value=true)`](#fn-optionswithpanzoom) + * [`fn withRoot(value)`](#fn-optionswithroot) + * [`fn withRootMixin(value)`](#fn-optionswithrootmixin) + * [`fn withShowAdvancedTypes(value=true)`](#fn-optionswithshowadvancedtypes) + * [`obj root`](#obj-optionsroot) + * [`fn withElements(value)`](#fn-optionsrootwithelements) + * [`fn withElementsMixin(value)`](#fn-optionsrootwithelementsmixin) + * [`fn withName(value)`](#fn-optionsrootwithname) + * [`fn withType()`](#fn-optionsrootwithtype) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new canvas panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withInfinitePan + +```jsonnet +options.withInfinitePan(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Enable infinite pan +#### fn options.withInlineEditing + +```jsonnet +options.withInlineEditing(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Enable inline editing +#### fn options.withPanZoom + +```jsonnet +options.withPanZoom(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Enable pan and zoom +#### fn options.withRoot + +```jsonnet +options.withRoot(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The root element of canvas (frame), where all canvas elements are nested +TODO: Figure out how to define a default value for this +#### fn options.withRootMixin + +```jsonnet +options.withRootMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The root element of canvas (frame), where all canvas elements are nested +TODO: Figure out how to define a default value for this +#### fn options.withShowAdvancedTypes + +```jsonnet +options.withShowAdvancedTypes(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Show all available element types +#### obj options.root + + +##### fn options.root.withElements + +```jsonnet +options.root.withElements(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The list of canvas elements attached to the root element +##### fn options.root.withElementsMixin + +```jsonnet +options.root.withElementsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The list of canvas elements attached to the root element +##### fn options.root.withName + +```jsonnet +options.root.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of the root element +##### fn options.root.withType + +```jsonnet +options.root.withType() +``` + + +Type of root element (frame) +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/connections/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/connections/index.md new file mode 100644 index 0000000..11041b6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/connections/index.md @@ -0,0 +1,410 @@ +# connections + + + +## Subpackages + +* [vertices](vertices.md) + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withColorMixin(value)`](#fn-withcolormixin) +* [`fn withPath(value)`](#fn-withpath) +* [`fn withSize(value)`](#fn-withsize) +* [`fn withSizeMixin(value)`](#fn-withsizemixin) +* [`fn withSource(value)`](#fn-withsource) +* [`fn withSourceMixin(value)`](#fn-withsourcemixin) +* [`fn withSourceOriginal(value)`](#fn-withsourceoriginal) +* [`fn withSourceOriginalMixin(value)`](#fn-withsourceoriginalmixin) +* [`fn withTarget(value)`](#fn-withtarget) +* [`fn withTargetMixin(value)`](#fn-withtargetmixin) +* [`fn withTargetName(value)`](#fn-withtargetname) +* [`fn withTargetOriginal(value)`](#fn-withtargetoriginal) +* [`fn withTargetOriginalMixin(value)`](#fn-withtargetoriginalmixin) +* [`fn withVertices(value)`](#fn-withvertices) +* [`fn withVerticesMixin(value)`](#fn-withverticesmixin) +* [`obj color`](#obj-color) + * [`fn withField(value)`](#fn-colorwithfield) + * [`fn withFixed(value)`](#fn-colorwithfixed) +* [`obj size`](#obj-size) + * [`fn withField(value)`](#fn-sizewithfield) + * [`fn withFixed(value)`](#fn-sizewithfixed) + * [`fn withMax(value)`](#fn-sizewithmax) + * [`fn withMin(value)`](#fn-sizewithmin) + * [`fn withMode(value)`](#fn-sizewithmode) +* [`obj source`](#obj-source) + * [`fn withX(value)`](#fn-sourcewithx) + * [`fn withY(value)`](#fn-sourcewithy) +* [`obj sourceOriginal`](#obj-sourceoriginal) + * [`fn withX(value)`](#fn-sourceoriginalwithx) + * [`fn withY(value)`](#fn-sourceoriginalwithy) +* [`obj target`](#obj-target) + * [`fn withX(value)`](#fn-targetwithx) + * [`fn withY(value)`](#fn-targetwithy) +* [`obj targetOriginal`](#obj-targetoriginal) + * [`fn withX(value)`](#fn-targetoriginalwithx) + * [`fn withY(value)`](#fn-targetoriginalwithy) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withColorMixin + +```jsonnet +withColorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withPath + +```jsonnet +withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"straight"` + + +### fn withSize + +```jsonnet +withSize(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withSizeMixin + +```jsonnet +withSizeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withSource + +```jsonnet +withSource(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withSourceMixin + +```jsonnet +withSourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withSourceOriginal + +```jsonnet +withSourceOriginal(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withSourceOriginalMixin + +```jsonnet +withSourceOriginalMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withTarget + +```jsonnet +withTarget(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withTargetMixin + +```jsonnet +withTargetMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withTargetName + +```jsonnet +withTargetName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withTargetOriginal + +```jsonnet +withTargetOriginal(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withTargetOriginalMixin + +```jsonnet +withTargetOriginalMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withVertices + +```jsonnet +withVertices(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withVerticesMixin + +```jsonnet +withVerticesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### obj color + + +#### fn color.withField + +```jsonnet +color.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +#### fn color.withFixed + +```jsonnet +color.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + +color value +### obj size + + +#### fn size.withField + +```jsonnet +size.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +#### fn size.withFixed + +```jsonnet +size.withFixed(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn size.withMax + +```jsonnet +size.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn size.withMin + +```jsonnet +size.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn size.withMode + +```jsonnet +size.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"quad"` + +| *"linear" +### obj source + + +#### fn source.withX + +```jsonnet +source.withX(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn source.withY + +```jsonnet +source.withY(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### obj sourceOriginal + + +#### fn sourceOriginal.withX + +```jsonnet +sourceOriginal.withX(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn sourceOriginal.withY + +```jsonnet +sourceOriginal.withY(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### obj target + + +#### fn target.withX + +```jsonnet +target.withX(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn target.withY + +```jsonnet +target.withY(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### obj targetOriginal + + +#### fn targetOriginal.withX + +```jsonnet +targetOriginal.withX(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn targetOriginal.withY + +```jsonnet +targetOriginal.withY(value) +``` + +PARAMETERS: + +* **value** (`number`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/connections/vertices.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/connections/vertices.md new file mode 100644 index 0000000..70f44a3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/connections/vertices.md @@ -0,0 +1,32 @@ +# vertices + + + +## Index + +* [`fn withX(value)`](#fn-withx) +* [`fn withY(value)`](#fn-withy) + +## Fields + +### fn withX + +```jsonnet +withX(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withY + +```jsonnet +withY(value) +``` + +PARAMETERS: + +* **value** (`number`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/index.md new file mode 100644 index 0000000..73f5b6e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/options/root/elements/index.md @@ -0,0 +1,512 @@ +# elements + + + +## Subpackages + +* [connections](connections/index.md) + +## Index + +* [`fn withBackground(value)`](#fn-withbackground) +* [`fn withBackgroundMixin(value)`](#fn-withbackgroundmixin) +* [`fn withBorder(value)`](#fn-withborder) +* [`fn withBorderMixin(value)`](#fn-withbordermixin) +* [`fn withConfig(value)`](#fn-withconfig) +* [`fn withConfigMixin(value)`](#fn-withconfigmixin) +* [`fn withConnections(value)`](#fn-withconnections) +* [`fn withConnectionsMixin(value)`](#fn-withconnectionsmixin) +* [`fn withConstraint(value)`](#fn-withconstraint) +* [`fn withConstraintMixin(value)`](#fn-withconstraintmixin) +* [`fn withName(value)`](#fn-withname) +* [`fn withPlacement(value)`](#fn-withplacement) +* [`fn withPlacementMixin(value)`](#fn-withplacementmixin) +* [`fn withType(value)`](#fn-withtype) +* [`obj background`](#obj-background) + * [`fn withColor(value)`](#fn-backgroundwithcolor) + * [`fn withColorMixin(value)`](#fn-backgroundwithcolormixin) + * [`fn withImage(value)`](#fn-backgroundwithimage) + * [`fn withImageMixin(value)`](#fn-backgroundwithimagemixin) + * [`fn withSize(value)`](#fn-backgroundwithsize) + * [`obj color`](#obj-backgroundcolor) + * [`fn withField(value)`](#fn-backgroundcolorwithfield) + * [`fn withFixed(value)`](#fn-backgroundcolorwithfixed) + * [`obj image`](#obj-backgroundimage) + * [`fn withField(value)`](#fn-backgroundimagewithfield) + * [`fn withFixed(value)`](#fn-backgroundimagewithfixed) + * [`fn withMode(value)`](#fn-backgroundimagewithmode) +* [`obj border`](#obj-border) + * [`fn withColor(value)`](#fn-borderwithcolor) + * [`fn withColorMixin(value)`](#fn-borderwithcolormixin) + * [`fn withRadius(value)`](#fn-borderwithradius) + * [`fn withWidth(value)`](#fn-borderwithwidth) + * [`obj color`](#obj-bordercolor) + * [`fn withField(value)`](#fn-bordercolorwithfield) + * [`fn withFixed(value)`](#fn-bordercolorwithfixed) +* [`obj constraint`](#obj-constraint) + * [`fn withHorizontal(value)`](#fn-constraintwithhorizontal) + * [`fn withVertical(value)`](#fn-constraintwithvertical) +* [`obj placement`](#obj-placement) + * [`fn withBottom(value)`](#fn-placementwithbottom) + * [`fn withHeight(value)`](#fn-placementwithheight) + * [`fn withLeft(value)`](#fn-placementwithleft) + * [`fn withRight(value)`](#fn-placementwithright) + * [`fn withRotation(value)`](#fn-placementwithrotation) + * [`fn withTop(value)`](#fn-placementwithtop) + * [`fn withWidth(value)`](#fn-placementwithwidth) + +## Fields + +### fn withBackground + +```jsonnet +withBackground(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withBackgroundMixin + +```jsonnet +withBackgroundMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withBorder + +```jsonnet +withBorder(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withBorderMixin + +```jsonnet +withBorderMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withConfig + +```jsonnet +withConfig(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO: figure out how to define this (element config(s)) +### fn withConfigMixin + +```jsonnet +withConfigMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO: figure out how to define this (element config(s)) +### fn withConnections + +```jsonnet +withConnections(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withConnectionsMixin + +```jsonnet +withConnectionsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withConstraint + +```jsonnet +withConstraint(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withConstraintMixin + +```jsonnet +withConstraintMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withPlacement + +```jsonnet +withPlacement(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withPlacementMixin + +```jsonnet +withPlacementMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj background + + +#### fn background.withColor + +```jsonnet +background.withColor(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn background.withColorMixin + +```jsonnet +background.withColorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn background.withImage + +```jsonnet +background.withImage(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Links to a resource (image/svg path) +#### fn background.withImageMixin + +```jsonnet +background.withImageMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Links to a resource (image/svg path) +#### fn background.withSize + +```jsonnet +background.withSize(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"original"`, `"contain"`, `"cover"`, `"fill"`, `"tile"` + + +#### obj background.color + + +##### fn background.color.withField + +```jsonnet +background.color.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +##### fn background.color.withFixed + +```jsonnet +background.color.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + +color value +#### obj background.image + + +##### fn background.image.withField + +```jsonnet +background.image.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +##### fn background.image.withFixed + +```jsonnet +background.image.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn background.image.withMode + +```jsonnet +background.image.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"fixed"`, `"field"`, `"mapping"` + + +### obj border + + +#### fn border.withColor + +```jsonnet +border.withColor(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn border.withColorMixin + +```jsonnet +border.withColorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn border.withRadius + +```jsonnet +border.withRadius(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn border.withWidth + +```jsonnet +border.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj border.color + + +##### fn border.color.withField + +```jsonnet +border.color.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +##### fn border.color.withFixed + +```jsonnet +border.color.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + +color value +### obj constraint + + +#### fn constraint.withHorizontal + +```jsonnet +constraint.withHorizontal(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"left"`, `"right"`, `"leftright"`, `"center"`, `"scale"` + + +#### fn constraint.withVertical + +```jsonnet +constraint.withVertical(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"top"`, `"bottom"`, `"topbottom"`, `"center"`, `"scale"` + + +### obj placement + + +#### fn placement.withBottom + +```jsonnet +placement.withBottom(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn placement.withHeight + +```jsonnet +placement.withHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn placement.withLeft + +```jsonnet +placement.withLeft(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn placement.withRight + +```jsonnet +placement.withRight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn placement.withRotation + +```jsonnet +placement.withRotation(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn placement.withTop + +```jsonnet +placement.withTop(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn placement.withWidth + +```jsonnet +placement.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/canvas/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/index.md new file mode 100644 index 0000000..db9518b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/index.md @@ -0,0 +1,812 @@ +# dashboardList + +grafonnet.panel.dashboardList + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withFolderId(value)`](#fn-optionswithfolderid) + * [`fn withFolderUID(value)`](#fn-optionswithfolderuid) + * [`fn withIncludeVars(value=true)`](#fn-optionswithincludevars) + * [`fn withKeepTime(value=true)`](#fn-optionswithkeeptime) + * [`fn withMaxItems(value=10)`](#fn-optionswithmaxitems) + * [`fn withQuery(value="")`](#fn-optionswithquery) + * [`fn withShowFolderNames(value=true)`](#fn-optionswithshowfoldernames) + * [`fn withShowHeadings(value=true)`](#fn-optionswithshowheadings) + * [`fn withShowRecentlyViewed(value=true)`](#fn-optionswithshowrecentlyviewed) + * [`fn withShowSearch(value=true)`](#fn-optionswithshowsearch) + * [`fn withShowStarred(value=true)`](#fn-optionswithshowstarred) + * [`fn withTags(value)`](#fn-optionswithtags) + * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new dashboardList panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withFolderId + +```jsonnet +options.withFolderId(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +folderId is deprecated, and migrated to folderUid on panel init +#### fn options.withFolderUID + +```jsonnet +options.withFolderUID(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn options.withIncludeVars + +```jsonnet +options.withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withKeepTime + +```jsonnet +options.withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withMaxItems + +```jsonnet +options.withMaxItems(value=10) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `10` + + +#### fn options.withQuery + +```jsonnet +options.withQuery(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + + +#### fn options.withShowFolderNames + +```jsonnet +options.withShowFolderNames(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowHeadings + +```jsonnet +options.withShowHeadings(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowRecentlyViewed + +```jsonnet +options.withShowRecentlyViewed(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowSearch + +```jsonnet +options.withShowSearch(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowStarred + +```jsonnet +options.withShowStarred(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withTags + +```jsonnet +options.withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withTagsMixin + +```jsonnet +options.withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/dashboardList/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/index.md new file mode 100644 index 0000000..a8832f7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/index.md @@ -0,0 +1,660 @@ +# datagrid + +grafonnet.panel.datagrid + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withSelectedSeries(value=0)`](#fn-optionswithselectedseries) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new datagrid panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withSelectedSeries + +```jsonnet +options.withSelectedSeries(value=0) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `0` + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/datagrid/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/index.md new file mode 100644 index 0000000..3eb99e1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/index.md @@ -0,0 +1,727 @@ +# debug + +grafonnet.panel.debug + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withCounters(value)`](#fn-optionswithcounters) + * [`fn withCountersMixin(value)`](#fn-optionswithcountersmixin) + * [`fn withMode(value)`](#fn-optionswithmode) + * [`obj counters`](#obj-optionscounters) + * [`fn withDataChanged(value=true)`](#fn-optionscounterswithdatachanged) + * [`fn withRender(value=true)`](#fn-optionscounterswithrender) + * [`fn withSchemaChanged(value=true)`](#fn-optionscounterswithschemachanged) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new debug panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withCounters + +```jsonnet +options.withCounters(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withCountersMixin + +```jsonnet +options.withCountersMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withMode + +```jsonnet +options.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"render"`, `"events"`, `"cursor"`, `"State"`, `"ThrowError"` + + +#### obj options.counters + + +##### fn options.counters.withDataChanged + +```jsonnet +options.counters.withDataChanged(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.counters.withRender + +```jsonnet +options.counters.withRender(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.counters.withSchemaChanged + +```jsonnet +options.counters.withSchemaChanged(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/debug/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/index.md new file mode 100644 index 0000000..ae4729f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/index.md @@ -0,0 +1,867 @@ +# gauge + +grafonnet.panel.gauge + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withMinVizHeight(value=75)`](#fn-optionswithminvizheight) + * [`fn withMinVizWidth(value=75)`](#fn-optionswithminvizwidth) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) + * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) + * [`fn withShowThresholdLabels(value=true)`](#fn-optionswithshowthresholdlabels) + * [`fn withShowThresholdMarkers(value=true)`](#fn-optionswithshowthresholdmarkers) + * [`fn withSizing(value="auto")`](#fn-optionswithsizing) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`obj reduceOptions`](#obj-optionsreduceoptions) + * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) + * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) + * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) + * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new gauge panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withMinVizHeight + +```jsonnet +options.withMinVizHeight(value=75) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `75` + + +#### fn options.withMinVizWidth + +```jsonnet +options.withMinVizWidth(value=75) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `75` + + +#### fn options.withOrientation + +```jsonnet +options.withOrientation(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"vertical"`, `"horizontal"` + +TODO docs +#### fn options.withReduceOptions + +```jsonnet +options.withReduceOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withReduceOptionsMixin + +```jsonnet +options.withReduceOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withShowThresholdLabels + +```jsonnet +options.withShowThresholdLabels(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowThresholdMarkers + +```jsonnet +options.withShowThresholdMarkers(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withSizing + +```jsonnet +options.withSizing(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"manual"` + +Allows for the bar gauge size to be set explicitly +#### fn options.withText + +```jsonnet +options.withText(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTextMixin + +```jsonnet +options.withTextMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### obj options.reduceOptions + + +##### fn options.reduceOptions.withCalcs + +```jsonnet +options.reduceOptions.withCalcs(value) +``` + +PARAMETERS: + +* **value** (`array`) + +When !values, pick one value for the whole field +##### fn options.reduceOptions.withCalcsMixin + +```jsonnet +options.reduceOptions.withCalcsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +When !values, pick one value for the whole field +##### fn options.reduceOptions.withFields + +```jsonnet +options.reduceOptions.withFields(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Which fields to show. By default this is only numeric fields +##### fn options.reduceOptions.withLimit + +```jsonnet +options.reduceOptions.withLimit(value) +``` + +PARAMETERS: + +* **value** (`number`) + +if showing all values limit +##### fn options.reduceOptions.withValues + +```jsonnet +options.reduceOptions.withValues(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true show each row value +#### obj options.text + + +##### fn options.text.withTitleSize + +```jsonnet +options.text.withTitleSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit title text size +##### fn options.text.withValueSize + +```jsonnet +options.text.withValueSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit value text size +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/gauge/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/index.md new file mode 100644 index 0000000..d9335f0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/index.md @@ -0,0 +1,1226 @@ +# geomap + +grafonnet.panel.geomap + +## Subpackages + +* [options.layers](options/layers.md) +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withBasemap(value)`](#fn-optionswithbasemap) + * [`fn withBasemapMixin(value)`](#fn-optionswithbasemapmixin) + * [`fn withControls(value)`](#fn-optionswithcontrols) + * [`fn withControlsMixin(value)`](#fn-optionswithcontrolsmixin) + * [`fn withLayers(value)`](#fn-optionswithlayers) + * [`fn withLayersMixin(value)`](#fn-optionswithlayersmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`fn withView(value)`](#fn-optionswithview) + * [`fn withViewMixin(value)`](#fn-optionswithviewmixin) + * [`obj basemap`](#obj-optionsbasemap) + * [`fn withConfig(value)`](#fn-optionsbasemapwithconfig) + * [`fn withConfigMixin(value)`](#fn-optionsbasemapwithconfigmixin) + * [`fn withFilterData(value)`](#fn-optionsbasemapwithfilterdata) + * [`fn withFilterDataMixin(value)`](#fn-optionsbasemapwithfilterdatamixin) + * [`fn withLocation(value)`](#fn-optionsbasemapwithlocation) + * [`fn withLocationMixin(value)`](#fn-optionsbasemapwithlocationmixin) + * [`fn withName(value)`](#fn-optionsbasemapwithname) + * [`fn withOpacity(value)`](#fn-optionsbasemapwithopacity) + * [`fn withTooltip(value=true)`](#fn-optionsbasemapwithtooltip) + * [`fn withType(value)`](#fn-optionsbasemapwithtype) + * [`obj location`](#obj-optionsbasemaplocation) + * [`fn withGazetteer(value)`](#fn-optionsbasemaplocationwithgazetteer) + * [`fn withGeohash(value)`](#fn-optionsbasemaplocationwithgeohash) + * [`fn withLatitude(value)`](#fn-optionsbasemaplocationwithlatitude) + * [`fn withLongitude(value)`](#fn-optionsbasemaplocationwithlongitude) + * [`fn withLookup(value)`](#fn-optionsbasemaplocationwithlookup) + * [`fn withMode(value)`](#fn-optionsbasemaplocationwithmode) + * [`fn withWkt(value)`](#fn-optionsbasemaplocationwithwkt) + * [`obj controls`](#obj-optionscontrols) + * [`fn withMouseWheelZoom(value=true)`](#fn-optionscontrolswithmousewheelzoom) + * [`fn withShowAttribution(value=true)`](#fn-optionscontrolswithshowattribution) + * [`fn withShowDebug(value=true)`](#fn-optionscontrolswithshowdebug) + * [`fn withShowMeasure(value=true)`](#fn-optionscontrolswithshowmeasure) + * [`fn withShowScale(value=true)`](#fn-optionscontrolswithshowscale) + * [`fn withShowZoom(value=true)`](#fn-optionscontrolswithshowzoom) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`obj view`](#obj-optionsview) + * [`fn withAllLayers(value=true)`](#fn-optionsviewwithalllayers) + * [`fn withId(value="zero")`](#fn-optionsviewwithid) + * [`fn withLastOnly(value=true)`](#fn-optionsviewwithlastonly) + * [`fn withLat(value=0)`](#fn-optionsviewwithlat) + * [`fn withLayer(value)`](#fn-optionsviewwithlayer) + * [`fn withLon(value=0)`](#fn-optionsviewwithlon) + * [`fn withMaxZoom(value)`](#fn-optionsviewwithmaxzoom) + * [`fn withMinZoom(value)`](#fn-optionsviewwithminzoom) + * [`fn withPadding(value)`](#fn-optionsviewwithpadding) + * [`fn withShared(value=true)`](#fn-optionsviewwithshared) + * [`fn withZoom(value=1)`](#fn-optionsviewwithzoom) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new geomap panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withBasemap + +```jsonnet +options.withBasemap(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withBasemapMixin + +```jsonnet +options.withBasemapMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withControls + +```jsonnet +options.withControls(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withControlsMixin + +```jsonnet +options.withControlsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withLayers + +```jsonnet +options.withLayers(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withLayersMixin + +```jsonnet +options.withLayersMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withView + +```jsonnet +options.withView(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withViewMixin + +```jsonnet +options.withViewMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### obj options.basemap + + +##### fn options.basemap.withConfig + +```jsonnet +options.basemap.withConfig(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Custom options depending on the type +##### fn options.basemap.withConfigMixin + +```jsonnet +options.basemap.withConfigMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Custom options depending on the type +##### fn options.basemap.withFilterData + +```jsonnet +options.basemap.withFilterData(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Defines a frame MatcherConfig that may filter data for the given layer +##### fn options.basemap.withFilterDataMixin + +```jsonnet +options.basemap.withFilterDataMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Defines a frame MatcherConfig that may filter data for the given layer +##### fn options.basemap.withLocation + +```jsonnet +options.basemap.withLocation(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Common method to define geometry fields +##### fn options.basemap.withLocationMixin + +```jsonnet +options.basemap.withLocationMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Common method to define geometry fields +##### fn options.basemap.withName + +```jsonnet +options.basemap.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +configured unique display name +##### fn options.basemap.withOpacity + +```jsonnet +options.basemap.withOpacity(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Common properties: +https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html +Layer opacity (0-1) +##### fn options.basemap.withTooltip + +```jsonnet +options.basemap.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Check tooltip (defaults to true) +##### fn options.basemap.withType + +```jsonnet +options.basemap.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### obj options.basemap.location + + +###### fn options.basemap.location.withGazetteer + +```jsonnet +options.basemap.location.withGazetteer(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Path to Gazetteer +###### fn options.basemap.location.withGeohash + +```jsonnet +options.basemap.location.withGeohash(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Field mappings +###### fn options.basemap.location.withLatitude + +```jsonnet +options.basemap.location.withLatitude(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn options.basemap.location.withLongitude + +```jsonnet +options.basemap.location.withLongitude(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn options.basemap.location.withLookup + +```jsonnet +options.basemap.location.withLookup(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn options.basemap.location.withMode + +```jsonnet +options.basemap.location.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"geohash"`, `"coords"`, `"lookup"` + + +###### fn options.basemap.location.withWkt + +```jsonnet +options.basemap.location.withWkt(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj options.controls + + +##### fn options.controls.withMouseWheelZoom + +```jsonnet +options.controls.withMouseWheelZoom(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +let the mouse wheel zoom +##### fn options.controls.withShowAttribution + +```jsonnet +options.controls.withShowAttribution(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Lower right +##### fn options.controls.withShowDebug + +```jsonnet +options.controls.withShowDebug(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Show debug +##### fn options.controls.withShowMeasure + +```jsonnet +options.controls.withShowMeasure(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Show measure +##### fn options.controls.withShowScale + +```jsonnet +options.controls.withShowScale(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Scale options +##### fn options.controls.withShowZoom + +```jsonnet +options.controls.withShowZoom(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Zoom (upper left) +#### obj options.tooltip + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"details"` + + +#### obj options.view + + +##### fn options.view.withAllLayers + +```jsonnet +options.view.withAllLayers(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.view.withId + +```jsonnet +options.view.withId(value="zero") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"zero"` + + +##### fn options.view.withLastOnly + +```jsonnet +options.view.withLastOnly(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.view.withLat + +```jsonnet +options.view.withLat(value=0) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `0` + + +##### fn options.view.withLayer + +```jsonnet +options.view.withLayer(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.view.withLon + +```jsonnet +options.view.withLon(value=0) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `0` + + +##### fn options.view.withMaxZoom + +```jsonnet +options.view.withMaxZoom(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +##### fn options.view.withMinZoom + +```jsonnet +options.view.withMinZoom(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +##### fn options.view.withPadding + +```jsonnet +options.view.withPadding(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +##### fn options.view.withShared + +```jsonnet +options.view.withShared(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.view.withZoom + +```jsonnet +options.view.withZoom(value=1) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `1` + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/options/layers.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/options/layers.md new file mode 100644 index 0000000..e6a1da9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/options/layers.md @@ -0,0 +1,220 @@ +# layers + + + +## Index + +* [`fn withConfig(value)`](#fn-withconfig) +* [`fn withConfigMixin(value)`](#fn-withconfigmixin) +* [`fn withFilterData(value)`](#fn-withfilterdata) +* [`fn withFilterDataMixin(value)`](#fn-withfilterdatamixin) +* [`fn withLocation(value)`](#fn-withlocation) +* [`fn withLocationMixin(value)`](#fn-withlocationmixin) +* [`fn withName(value)`](#fn-withname) +* [`fn withOpacity(value)`](#fn-withopacity) +* [`fn withTooltip(value=true)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`obj location`](#obj-location) + * [`fn withGazetteer(value)`](#fn-locationwithgazetteer) + * [`fn withGeohash(value)`](#fn-locationwithgeohash) + * [`fn withLatitude(value)`](#fn-locationwithlatitude) + * [`fn withLongitude(value)`](#fn-locationwithlongitude) + * [`fn withLookup(value)`](#fn-locationwithlookup) + * [`fn withMode(value)`](#fn-locationwithmode) + * [`fn withWkt(value)`](#fn-locationwithwkt) + +## Fields + +### fn withConfig + +```jsonnet +withConfig(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Custom options depending on the type +### fn withConfigMixin + +```jsonnet +withConfigMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Custom options depending on the type +### fn withFilterData + +```jsonnet +withFilterData(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Defines a frame MatcherConfig that may filter data for the given layer +### fn withFilterDataMixin + +```jsonnet +withFilterDataMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Defines a frame MatcherConfig that may filter data for the given layer +### fn withLocation + +```jsonnet +withLocation(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Common method to define geometry fields +### fn withLocationMixin + +```jsonnet +withLocationMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Common method to define geometry fields +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +configured unique display name +### fn withOpacity + +```jsonnet +withOpacity(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Common properties: +https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html +Layer opacity (0-1) +### fn withTooltip + +```jsonnet +withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Check tooltip (defaults to true) +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj location + + +#### fn location.withGazetteer + +```jsonnet +location.withGazetteer(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Path to Gazetteer +#### fn location.withGeohash + +```jsonnet +location.withGeohash(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Field mappings +#### fn location.withLatitude + +```jsonnet +location.withLatitude(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn location.withLongitude + +```jsonnet +location.withLongitude(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn location.withLookup + +```jsonnet +location.withLookup(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn location.withMode + +```jsonnet +location.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"geohash"`, `"coords"`, `"lookup"` + + +#### fn location.withWkt + +```jsonnet +location.withWkt(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/geomap/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/index.md new file mode 100644 index 0000000..46fba20 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/index.md @@ -0,0 +1,1864 @@ +# heatmap + +grafonnet.panel.heatmap + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withCalculate(value=true)`](#fn-optionswithcalculate) + * [`fn withCalculation(value)`](#fn-optionswithcalculation) + * [`fn withCalculationMixin(value)`](#fn-optionswithcalculationmixin) + * [`fn withCellGap(value=1)`](#fn-optionswithcellgap) + * [`fn withCellRadius(value)`](#fn-optionswithcellradius) + * [`fn withCellValues(value)`](#fn-optionswithcellvalues) + * [`fn withCellValuesMixin(value)`](#fn-optionswithcellvaluesmixin) + * [`fn withColor(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64})`](#fn-optionswithcolor) + * [`fn withColorMixin(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64})`](#fn-optionswithcolormixin) + * [`fn withExemplars(value={"color": "rgba(255,0,255,0.7)"})`](#fn-optionswithexemplars) + * [`fn withExemplarsMixin(value={"color": "rgba(255,0,255,0.7)"})`](#fn-optionswithexemplarsmixin) + * [`fn withFilterValues(value={"le": 0.000000001})`](#fn-optionswithfiltervalues) + * [`fn withFilterValuesMixin(value={"le": 0.000000001})`](#fn-optionswithfiltervaluesmixin) + * [`fn withLegend(value={"show": true})`](#fn-optionswithlegend) + * [`fn withLegendMixin(value={"show": true})`](#fn-optionswithlegendmixin) + * [`fn withRowsFrame(value)`](#fn-optionswithrowsframe) + * [`fn withRowsFrameMixin(value)`](#fn-optionswithrowsframemixin) + * [`fn withSelectionMode(value="x")`](#fn-optionswithselectionmode) + * [`fn withShowValue(value="auto")`](#fn-optionswithshowvalue) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`fn withYAxis(value)`](#fn-optionswithyaxis) + * [`fn withYAxisMixin(value)`](#fn-optionswithyaxismixin) + * [`obj calculation`](#obj-optionscalculation) + * [`fn withXBuckets(value)`](#fn-optionscalculationwithxbuckets) + * [`fn withXBucketsMixin(value)`](#fn-optionscalculationwithxbucketsmixin) + * [`fn withYBuckets(value)`](#fn-optionscalculationwithybuckets) + * [`fn withYBucketsMixin(value)`](#fn-optionscalculationwithybucketsmixin) + * [`obj xBuckets`](#obj-optionscalculationxbuckets) + * [`fn withMode(value)`](#fn-optionscalculationxbucketswithmode) + * [`fn withScale(value)`](#fn-optionscalculationxbucketswithscale) + * [`fn withScaleMixin(value)`](#fn-optionscalculationxbucketswithscalemixin) + * [`fn withValue(value)`](#fn-optionscalculationxbucketswithvalue) + * [`obj scale`](#obj-optionscalculationxbucketsscale) + * [`fn withLinearThreshold(value)`](#fn-optionscalculationxbucketsscalewithlinearthreshold) + * [`fn withLog(value)`](#fn-optionscalculationxbucketsscalewithlog) + * [`fn withType(value)`](#fn-optionscalculationxbucketsscalewithtype) + * [`obj yBuckets`](#obj-optionscalculationybuckets) + * [`fn withMode(value)`](#fn-optionscalculationybucketswithmode) + * [`fn withScale(value)`](#fn-optionscalculationybucketswithscale) + * [`fn withScaleMixin(value)`](#fn-optionscalculationybucketswithscalemixin) + * [`fn withValue(value)`](#fn-optionscalculationybucketswithvalue) + * [`obj scale`](#obj-optionscalculationybucketsscale) + * [`fn withLinearThreshold(value)`](#fn-optionscalculationybucketsscalewithlinearthreshold) + * [`fn withLog(value)`](#fn-optionscalculationybucketsscalewithlog) + * [`fn withType(value)`](#fn-optionscalculationybucketsscalewithtype) + * [`obj cellValues`](#obj-optionscellvalues) + * [`fn withDecimals(value)`](#fn-optionscellvalueswithdecimals) + * [`fn withUnit(value)`](#fn-optionscellvalueswithunit) + * [`obj color`](#obj-optionscolor) + * [`fn withExponent(value)`](#fn-optionscolorwithexponent) + * [`fn withFill(value)`](#fn-optionscolorwithfill) + * [`fn withMax(value)`](#fn-optionscolorwithmax) + * [`fn withMin(value)`](#fn-optionscolorwithmin) + * [`fn withMode(value)`](#fn-optionscolorwithmode) + * [`fn withReverse(value=true)`](#fn-optionscolorwithreverse) + * [`fn withScale(value)`](#fn-optionscolorwithscale) + * [`fn withScheme(value)`](#fn-optionscolorwithscheme) + * [`fn withSteps(value)`](#fn-optionscolorwithsteps) + * [`obj exemplars`](#obj-optionsexemplars) + * [`fn withColor(value)`](#fn-optionsexemplarswithcolor) + * [`obj filterValues`](#obj-optionsfiltervalues) + * [`fn withGe(value)`](#fn-optionsfiltervalueswithge) + * [`fn withLe(value)`](#fn-optionsfiltervalueswithle) + * [`obj legend`](#obj-optionslegend) + * [`fn withShow(value=true)`](#fn-optionslegendwithshow) + * [`obj rowsFrame`](#obj-optionsrowsframe) + * [`fn withLayout(value)`](#fn-optionsrowsframewithlayout) + * [`fn withValue(value)`](#fn-optionsrowsframewithvalue) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withShowColorScale(value=true)`](#fn-optionstooltipwithshowcolorscale) + * [`fn withYHistogram(value=true)`](#fn-optionstooltipwithyhistogram) + * [`obj yAxis`](#obj-optionsyaxis) + * [`fn withAxisBorderShow(value=true)`](#fn-optionsyaxiswithaxisbordershow) + * [`fn withAxisCenteredZero(value=true)`](#fn-optionsyaxiswithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-optionsyaxiswithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-optionsyaxiswithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-optionsyaxiswithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-optionsyaxiswithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-optionsyaxiswithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-optionsyaxiswithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-optionsyaxiswithaxiswidth) + * [`fn withDecimals(value)`](#fn-optionsyaxiswithdecimals) + * [`fn withMax(value)`](#fn-optionsyaxiswithmax) + * [`fn withMin(value)`](#fn-optionsyaxiswithmin) + * [`fn withReverse(value=true)`](#fn-optionsyaxiswithreverse) + * [`fn withScaleDistribution(value)`](#fn-optionsyaxiswithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-optionsyaxiswithscaledistributionmixin) + * [`fn withUnit(value)`](#fn-optionsyaxiswithunit) + * [`obj scaleDistribution`](#obj-optionsyaxisscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-optionsyaxisscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-optionsyaxisscaledistributionwithlog) + * [`fn withType(value)`](#fn-optionsyaxisscaledistributionwithtype) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new heatmap panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```jsonnet +fieldConfig.defaults.custom.withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```jsonnet +fieldConfig.defaults.custom.withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withCalculate + +```jsonnet +options.withCalculate(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the heatmap should be calculated from data +#### fn options.withCalculation + +```jsonnet +options.withCalculation(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Calculation options for the heatmap +#### fn options.withCalculationMixin + +```jsonnet +options.withCalculationMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Calculation options for the heatmap +#### fn options.withCellGap + +```jsonnet +options.withCellGap(value=1) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `1` + +Controls gap between cells +#### fn options.withCellRadius + +```jsonnet +options.withCellRadius(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Controls cell radius +#### fn options.withCellValues + +```jsonnet +options.withCellValues(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Controls cell value options +#### fn options.withCellValuesMixin + +```jsonnet +options.withCellValuesMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Controls cell value options +#### fn options.withColor + +```jsonnet +options.withColor(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}` + +Controls various color options +#### fn options.withColorMixin + +```jsonnet +options.withColorMixin(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}` + +Controls various color options +#### fn options.withExemplars + +```jsonnet +options.withExemplars(value={"color": "rgba(255,0,255,0.7)"}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"color": "rgba(255,0,255,0.7)"}` + +Controls exemplar options +#### fn options.withExemplarsMixin + +```jsonnet +options.withExemplarsMixin(value={"color": "rgba(255,0,255,0.7)"}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"color": "rgba(255,0,255,0.7)"}` + +Controls exemplar options +#### fn options.withFilterValues + +```jsonnet +options.withFilterValues(value={"le": 0.000000001}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"le": 0.000000001}` + +Controls the value filter range +#### fn options.withFilterValuesMixin + +```jsonnet +options.withFilterValuesMixin(value={"le": 0.000000001}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"le": 0.000000001}` + +Controls the value filter range +#### fn options.withLegend + +```jsonnet +options.withLegend(value={"show": true}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"show": true}` + +Controls legend options +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value={"show": true}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"show": true}` + +Controls legend options +#### fn options.withRowsFrame + +```jsonnet +options.withRowsFrame(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Controls frame rows options +#### fn options.withRowsFrameMixin + +```jsonnet +options.withRowsFrameMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Controls frame rows options +#### fn options.withSelectionMode + +```jsonnet +options.withSelectionMode(value="x") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"x"` + - valid values: `"x"`, `"y"`, `"xy"` + +Controls which axis to allow selection on +#### fn options.withShowValue + +```jsonnet +options.withShowValue(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Controls tooltip options +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Controls tooltip options +#### fn options.withYAxis + +```jsonnet +options.withYAxis(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Configuration options for the yAxis +#### fn options.withYAxisMixin + +```jsonnet +options.withYAxisMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Configuration options for the yAxis +#### obj options.calculation + + +##### fn options.calculation.withXBuckets + +```jsonnet +options.calculation.withXBuckets(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The number of buckets to use for the xAxis in the heatmap +##### fn options.calculation.withXBucketsMixin + +```jsonnet +options.calculation.withXBucketsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The number of buckets to use for the xAxis in the heatmap +##### fn options.calculation.withYBuckets + +```jsonnet +options.calculation.withYBuckets(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The number of buckets to use for the yAxis in the heatmap +##### fn options.calculation.withYBucketsMixin + +```jsonnet +options.calculation.withYBucketsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The number of buckets to use for the yAxis in the heatmap +##### obj options.calculation.xBuckets + + +###### fn options.calculation.xBuckets.withMode + +```jsonnet +options.calculation.xBuckets.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"size"`, `"count"` + +Sets the bucket calculation mode +###### fn options.calculation.xBuckets.withScale + +```jsonnet +options.calculation.xBuckets.withScale(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn options.calculation.xBuckets.withScaleMixin + +```jsonnet +options.calculation.xBuckets.withScaleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn options.calculation.xBuckets.withValue + +```jsonnet +options.calculation.xBuckets.withValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The number of buckets to use for the axis in the heatmap +###### obj options.calculation.xBuckets.scale + + +####### fn options.calculation.xBuckets.scale.withLinearThreshold + +```jsonnet +options.calculation.xBuckets.scale.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn options.calculation.xBuckets.scale.withLog + +```jsonnet +options.calculation.xBuckets.scale.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn options.calculation.xBuckets.scale.withType + +```jsonnet +options.calculation.xBuckets.scale.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +##### obj options.calculation.yBuckets + + +###### fn options.calculation.yBuckets.withMode + +```jsonnet +options.calculation.yBuckets.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"size"`, `"count"` + +Sets the bucket calculation mode +###### fn options.calculation.yBuckets.withScale + +```jsonnet +options.calculation.yBuckets.withScale(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn options.calculation.yBuckets.withScaleMixin + +```jsonnet +options.calculation.yBuckets.withScaleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn options.calculation.yBuckets.withValue + +```jsonnet +options.calculation.yBuckets.withValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The number of buckets to use for the axis in the heatmap +###### obj options.calculation.yBuckets.scale + + +####### fn options.calculation.yBuckets.scale.withLinearThreshold + +```jsonnet +options.calculation.yBuckets.scale.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn options.calculation.yBuckets.scale.withLog + +```jsonnet +options.calculation.yBuckets.scale.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn options.calculation.yBuckets.scale.withType + +```jsonnet +options.calculation.yBuckets.scale.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +#### obj options.cellValues + + +##### fn options.cellValues.withDecimals + +```jsonnet +options.cellValues.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Controls the number of decimals for cell values +##### fn options.cellValues.withUnit + +```jsonnet +options.cellValues.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Controls the cell value unit +#### obj options.color + + +##### fn options.color.withExponent + +```jsonnet +options.color.withExponent(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Controls the exponent when scale is set to exponential +##### fn options.color.withFill + +```jsonnet +options.color.withFill(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Controls the color fill when in opacity mode +##### fn options.color.withMax + +```jsonnet +options.color.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Sets the maximum value for the color scale +##### fn options.color.withMin + +```jsonnet +options.color.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Sets the minimum value for the color scale +##### fn options.color.withMode + +```jsonnet +options.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"opacity"`, `"scheme"` + +Controls the color mode of the heatmap +##### fn options.color.withReverse + +```jsonnet +options.color.withReverse(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Reverses the color scheme +##### fn options.color.withScale + +```jsonnet +options.color.withScale(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"exponential"` + +Controls the color scale of the heatmap +##### fn options.color.withScheme + +```jsonnet +options.color.withScheme(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Controls the color scheme used +##### fn options.color.withSteps + +```jsonnet +options.color.withSteps(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Controls the number of color steps +#### obj options.exemplars + + +##### fn options.exemplars.withColor + +```jsonnet +options.exemplars.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Sets the color of the exemplar markers +#### obj options.filterValues + + +##### fn options.filterValues.withGe + +```jsonnet +options.filterValues.withGe(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Sets the filter range to values greater than or equal to the given value +##### fn options.filterValues.withLe + +```jsonnet +options.filterValues.withLe(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Sets the filter range to values less than or equal to the given value +#### obj options.legend + + +##### fn options.legend.withShow + +```jsonnet +options.legend.withShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the legend is shown +#### obj options.rowsFrame + + +##### fn options.rowsFrame.withLayout + +```jsonnet +options.rowsFrame.withLayout(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"le"`, `"ge"`, `"unknown"`, `"auto"` + +Controls tick alignment when not calculating from data +##### fn options.rowsFrame.withValue + +```jsonnet +options.rowsFrame.withValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Sets the name of the cell when not calculating from data +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withShowColorScale + +```jsonnet +options.tooltip.withShowColorScale(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the tooltip shows a color scale in header +##### fn options.tooltip.withYHistogram + +```jsonnet +options.tooltip.withYHistogram(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the tooltip shows a histogram of the y-axis values +#### obj options.yAxis + + +##### fn options.yAxis.withAxisBorderShow + +```jsonnet +options.yAxis.withAxisBorderShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.yAxis.withAxisCenteredZero + +```jsonnet +options.yAxis.withAxisCenteredZero(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.yAxis.withAxisColorMode + +```jsonnet +options.yAxis.withAxisColorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"text"`, `"series"` + +TODO docs +##### fn options.yAxis.withAxisGridShow + +```jsonnet +options.yAxis.withAxisGridShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.yAxis.withAxisLabel + +```jsonnet +options.yAxis.withAxisLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.yAxis.withAxisPlacement + +```jsonnet +options.yAxis.withAxisPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` + +TODO docs +##### fn options.yAxis.withAxisSoftMax + +```jsonnet +options.yAxis.withAxisSoftMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.yAxis.withAxisSoftMin + +```jsonnet +options.yAxis.withAxisSoftMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.yAxis.withAxisWidth + +```jsonnet +options.yAxis.withAxisWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.yAxis.withDecimals + +```jsonnet +options.yAxis.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Controls the number of decimals for yAxis values +##### fn options.yAxis.withMax + +```jsonnet +options.yAxis.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Sets the maximum value for the yAxis +##### fn options.yAxis.withMin + +```jsonnet +options.yAxis.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Sets the minimum value for the yAxis +##### fn options.yAxis.withReverse + +```jsonnet +options.yAxis.withReverse(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Reverses the yAxis +##### fn options.yAxis.withScaleDistribution + +```jsonnet +options.yAxis.withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +##### fn options.yAxis.withScaleDistributionMixin + +```jsonnet +options.yAxis.withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +##### fn options.yAxis.withUnit + +```jsonnet +options.yAxis.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Sets the yAxis unit +##### obj options.yAxis.scaleDistribution + + +###### fn options.yAxis.scaleDistribution.withLinearThreshold + +```jsonnet +options.yAxis.scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn options.yAxis.scaleDistribution.withLog + +```jsonnet +options.yAxis.scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn options.yAxis.scaleDistribution.withType + +```jsonnet +options.yAxis.scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/heatmap/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/index.md new file mode 100644 index 0000000..3e0c63f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/index.md @@ -0,0 +1,1285 @@ +# histogram + +grafonnet.panel.histogram + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withGradientMode(value="none")`](#fn-fieldconfigdefaultscustomwithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) + * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) + * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) + * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withBucketCount(value=30)`](#fn-optionswithbucketcount) + * [`fn withBucketOffset(value=0)`](#fn-optionswithbucketoffset) + * [`fn withBucketSize(value)`](#fn-optionswithbucketsize) + * [`fn withCombine(value=true)`](#fn-optionswithcombine) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value="list")`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value="bottom")`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new histogram panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisBorderShow + +```jsonnet +fieldConfig.defaults.custom.withAxisBorderShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```jsonnet +fieldConfig.defaults.custom.withAxisCenteredZero(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```jsonnet +fieldConfig.defaults.custom.withAxisColorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"text"`, `"series"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```jsonnet +fieldConfig.defaults.custom.withAxisGridShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```jsonnet +fieldConfig.defaults.custom.withAxisLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```jsonnet +fieldConfig.defaults.custom.withAxisPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```jsonnet +fieldConfig.defaults.custom.withAxisWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```jsonnet +fieldConfig.defaults.custom.withFillOpacity(value=80) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `80` + +Controls the fill opacity of the bars. +###### fn fieldConfig.defaults.custom.withGradientMode + +```jsonnet +fieldConfig.defaults.custom.withGradientMode(value="none") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"none"` + - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineWidth + +```jsonnet +fieldConfig.defaults.custom.withLineWidth(value=1) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `1` + +Controls line width of the bars. +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```jsonnet +fieldConfig.defaults.custom.withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```jsonnet +fieldConfig.defaults.custom.withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withStacking + +```jsonnet +fieldConfig.defaults.custom.withStacking(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withStackingMixin + +```jsonnet +fieldConfig.defaults.custom.withStackingMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +###### obj fieldConfig.defaults.custom.stacking + + +####### fn fieldConfig.defaults.custom.stacking.withGroup + +```jsonnet +fieldConfig.defaults.custom.stacking.withGroup(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +####### fn fieldConfig.defaults.custom.stacking.withMode + +```jsonnet +fieldConfig.defaults.custom.stacking.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"normal"`, `"percent"` + +TODO docs +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withBucketCount + +```jsonnet +options.withBucketCount(value=30) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `30` + +Bucket count (approx) +#### fn options.withBucketOffset + +```jsonnet +options.withBucketOffset(value=0) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `0` + +Offset buckets by this amount +#### fn options.withBucketSize + +```jsonnet +options.withBucketSize(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Size of each bucket +#### fn options.withCombine + +```jsonnet +options.withCombine(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Combines multiple series into a single histogram +#### fn options.withLegend + +```jsonnet +options.withLegend(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value="list") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"list"` + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value="bottom") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"bottom"` + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withSort + +```jsonnet +options.tooltip.withSort(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"asc"`, `"desc"`, `"none"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/histogram/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/index.md similarity index 95% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/index.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/index.md index be9bac0..3111a61 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/index.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/index.md @@ -4,7 +4,7 @@ grafonnet.panel ## Subpackages -* [alertGroups](alertGroups/index.md) +* [alertList](alertList/index.md) * [annotationsList](annotationsList/index.md) * [barChart](barChart/index.md) * [barGauge](barGauge/index.md) @@ -30,4 +30,3 @@ grafonnet.panel * [timeSeries](timeSeries/index.md) * [trend](trend/index.md) * [xyChart](xyChart/index.md) - diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/index.md new file mode 100644 index 0000000..92d3d9f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/index.md @@ -0,0 +1,956 @@ +# logs + +grafonnet.panel.logs + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withDedupStrategy(value)`](#fn-optionswithdedupstrategy) + * [`fn withDisplayedFields(value)`](#fn-optionswithdisplayedfields) + * [`fn withDisplayedFieldsMixin(value)`](#fn-optionswithdisplayedfieldsmixin) + * [`fn withEnableLogDetails(value=true)`](#fn-optionswithenablelogdetails) + * [`fn withIsFilterLabelActive(value)`](#fn-optionswithisfilterlabelactive) + * [`fn withIsFilterLabelActiveMixin(value)`](#fn-optionswithisfilterlabelactivemixin) + * [`fn withOnClickFilterLabel(value)`](#fn-optionswithonclickfilterlabel) + * [`fn withOnClickFilterLabelMixin(value)`](#fn-optionswithonclickfilterlabelmixin) + * [`fn withOnClickFilterOutLabel(value)`](#fn-optionswithonclickfilteroutlabel) + * [`fn withOnClickFilterOutLabelMixin(value)`](#fn-optionswithonclickfilteroutlabelmixin) + * [`fn withOnClickFilterOutString(value)`](#fn-optionswithonclickfilteroutstring) + * [`fn withOnClickFilterOutStringMixin(value)`](#fn-optionswithonclickfilteroutstringmixin) + * [`fn withOnClickFilterString(value)`](#fn-optionswithonclickfilterstring) + * [`fn withOnClickFilterStringMixin(value)`](#fn-optionswithonclickfilterstringmixin) + * [`fn withOnClickHideField(value)`](#fn-optionswithonclickhidefield) + * [`fn withOnClickHideFieldMixin(value)`](#fn-optionswithonclickhidefieldmixin) + * [`fn withOnClickShowField(value)`](#fn-optionswithonclickshowfield) + * [`fn withOnClickShowFieldMixin(value)`](#fn-optionswithonclickshowfieldmixin) + * [`fn withPrettifyLogMessage(value=true)`](#fn-optionswithprettifylogmessage) + * [`fn withShowCommonLabels(value=true)`](#fn-optionswithshowcommonlabels) + * [`fn withShowLabels(value=true)`](#fn-optionswithshowlabels) + * [`fn withShowLogContextToggle(value=true)`](#fn-optionswithshowlogcontexttoggle) + * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) + * [`fn withSortOrder(value)`](#fn-optionswithsortorder) + * [`fn withWrapLogMessage(value=true)`](#fn-optionswithwraplogmessage) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new logs panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withDedupStrategy + +```jsonnet +options.withDedupStrategy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"exact"`, `"numbers"`, `"signature"` + + +#### fn options.withDisplayedFields + +```jsonnet +options.withDisplayedFields(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withDisplayedFieldsMixin + +```jsonnet +options.withDisplayedFieldsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withEnableLogDetails + +```jsonnet +options.withEnableLogDetails(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withIsFilterLabelActive + +```jsonnet +options.withIsFilterLabelActive(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withIsFilterLabelActiveMixin + +```jsonnet +options.withIsFilterLabelActiveMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickFilterLabel + +```jsonnet +options.withOnClickFilterLabel(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO: figure out how to define callbacks +#### fn options.withOnClickFilterLabelMixin + +```jsonnet +options.withOnClickFilterLabelMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO: figure out how to define callbacks +#### fn options.withOnClickFilterOutLabel + +```jsonnet +options.withOnClickFilterOutLabel(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickFilterOutLabelMixin + +```jsonnet +options.withOnClickFilterOutLabelMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickFilterOutString + +```jsonnet +options.withOnClickFilterOutString(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickFilterOutStringMixin + +```jsonnet +options.withOnClickFilterOutStringMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickFilterString + +```jsonnet +options.withOnClickFilterString(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickFilterStringMixin + +```jsonnet +options.withOnClickFilterStringMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickHideField + +```jsonnet +options.withOnClickHideField(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickHideFieldMixin + +```jsonnet +options.withOnClickHideFieldMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickShowField + +```jsonnet +options.withOnClickShowField(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOnClickShowFieldMixin + +```jsonnet +options.withOnClickShowFieldMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withPrettifyLogMessage + +```jsonnet +options.withPrettifyLogMessage(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowCommonLabels + +```jsonnet +options.withShowCommonLabels(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowLabels + +```jsonnet +options.withShowLabels(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowLogContextToggle + +```jsonnet +options.withShowLogContextToggle(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withShowTime + +```jsonnet +options.withShowTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withSortOrder + +```jsonnet +options.withSortOrder(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"Descending"`, `"Ascending"` + + +#### fn options.withWrapLogMessage + +```jsonnet +options.withWrapLogMessage(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/logs/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/index.md new file mode 100644 index 0000000..2cc7b47 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/index.md @@ -0,0 +1,672 @@ +# news + +grafonnet.panel.news + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withFeedUrl(value)`](#fn-optionswithfeedurl) + * [`fn withShowImage(value=true)`](#fn-optionswithshowimage) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new news panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withFeedUrl + +```jsonnet +options.withFeedUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +empty/missing will default to grafana blog +#### fn options.withShowImage + +```jsonnet +options.withShowImage(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/news/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/index.md new file mode 100644 index 0000000..96e1eb6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/index.md @@ -0,0 +1,776 @@ +# nodeGraph + +grafonnet.panel.nodeGraph + +## Subpackages + +* [options.nodes.arcs](options/nodes/arcs.md) +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withEdges(value)`](#fn-optionswithedges) + * [`fn withEdgesMixin(value)`](#fn-optionswithedgesmixin) + * [`fn withNodes(value)`](#fn-optionswithnodes) + * [`fn withNodesMixin(value)`](#fn-optionswithnodesmixin) + * [`obj edges`](#obj-optionsedges) + * [`fn withMainStatUnit(value)`](#fn-optionsedgeswithmainstatunit) + * [`fn withSecondaryStatUnit(value)`](#fn-optionsedgeswithsecondarystatunit) + * [`obj nodes`](#obj-optionsnodes) + * [`fn withArcs(value)`](#fn-optionsnodeswitharcs) + * [`fn withArcsMixin(value)`](#fn-optionsnodeswitharcsmixin) + * [`fn withMainStatUnit(value)`](#fn-optionsnodeswithmainstatunit) + * [`fn withSecondaryStatUnit(value)`](#fn-optionsnodeswithsecondarystatunit) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new nodeGraph panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withEdges + +```jsonnet +options.withEdges(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withEdgesMixin + +```jsonnet +options.withEdgesMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withNodes + +```jsonnet +options.withNodes(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withNodesMixin + +```jsonnet +options.withNodesMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### obj options.edges + + +##### fn options.edges.withMainStatUnit + +```jsonnet +options.edges.withMainStatUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit for the main stat to override what ever is set in the data frame. +##### fn options.edges.withSecondaryStatUnit + +```jsonnet +options.edges.withSecondaryStatUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit for the secondary stat to override what ever is set in the data frame. +#### obj options.nodes + + +##### fn options.nodes.withArcs + +```jsonnet +options.nodes.withArcs(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Define which fields are shown as part of the node arc (colored circle around the node). +##### fn options.nodes.withArcsMixin + +```jsonnet +options.nodes.withArcsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Define which fields are shown as part of the node arc (colored circle around the node). +##### fn options.nodes.withMainStatUnit + +```jsonnet +options.nodes.withMainStatUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit for the main stat to override what ever is set in the data frame. +##### fn options.nodes.withSecondaryStatUnit + +```jsonnet +options.nodes.withSecondaryStatUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit for the secondary stat to override what ever is set in the data frame. +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/options/nodes/arcs.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/options/nodes/arcs.md new file mode 100644 index 0000000..f80fe24 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/options/nodes/arcs.md @@ -0,0 +1,33 @@ +# arcs + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withField(value)`](#fn-withfield) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The color of the arc. +### fn withField + +```jsonnet +withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Field from which to get the value. Values should be less than 1, representing fraction of a circle. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/nodeGraph/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/index.md new file mode 100644 index 0000000..65d414c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/index.md @@ -0,0 +1,1174 @@ +# pieChart + +grafonnet.panel.pieChart + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withDisplayLabels(value)`](#fn-optionswithdisplaylabels) + * [`fn withDisplayLabelsMixin(value)`](#fn-optionswithdisplaylabelsmixin) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withPieType(value)`](#fn-optionswithpietype) + * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) + * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withValues(value)`](#fn-optionslegendwithvalues) + * [`fn withValuesMixin(value)`](#fn-optionslegendwithvaluesmixin) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj reduceOptions`](#obj-optionsreduceoptions) + * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) + * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) + * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) + * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new pieChart panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withDisplayLabels + +```jsonnet +options.withDisplayLabels(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withDisplayLabelsMixin + +```jsonnet +options.withDisplayLabelsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withLegend + +```jsonnet +options.withLegend(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withOrientation + +```jsonnet +options.withOrientation(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"vertical"`, `"horizontal"` + +TODO docs +#### fn options.withPieType + +```jsonnet +options.withPieType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"pie"`, `"donut"` + +Select the pie chart display style. +#### fn options.withReduceOptions + +```jsonnet +options.withReduceOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withReduceOptionsMixin + +```jsonnet +options.withReduceOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withText + +```jsonnet +options.withText(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTextMixin + +```jsonnet +options.withTextMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withValues + +```jsonnet +options.legend.withValues(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.legend.withValuesMixin + +```jsonnet +options.legend.withValuesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.reduceOptions + + +##### fn options.reduceOptions.withCalcs + +```jsonnet +options.reduceOptions.withCalcs(value) +``` + +PARAMETERS: + +* **value** (`array`) + +When !values, pick one value for the whole field +##### fn options.reduceOptions.withCalcsMixin + +```jsonnet +options.reduceOptions.withCalcsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +When !values, pick one value for the whole field +##### fn options.reduceOptions.withFields + +```jsonnet +options.reduceOptions.withFields(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Which fields to show. By default this is only numeric fields +##### fn options.reduceOptions.withLimit + +```jsonnet +options.reduceOptions.withLimit(value) +``` + +PARAMETERS: + +* **value** (`number`) + +if showing all values limit +##### fn options.reduceOptions.withValues + +```jsonnet +options.reduceOptions.withValues(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true show each row value +#### obj options.text + + +##### fn options.text.withTitleSize + +```jsonnet +options.text.withTitleSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit title text size +##### fn options.text.withValueSize + +```jsonnet +options.text.withValueSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit value text size +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withSort + +```jsonnet +options.tooltip.withSort(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"asc"`, `"desc"`, `"none"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/pieChart/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/row.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/row.md similarity index 54% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/row.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/row.md index 27e9188..0541b04 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/panel/row.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/row.md @@ -8,7 +8,7 @@ grafonnet.panel.row * [`fn withCollapsed(value=true)`](#fn-withcollapsed) * [`fn withDatasource(value)`](#fn-withdatasource) * [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withGridPos(value)`](#fn-withgridpos) +* [`fn withGridPos(y)`](#fn-withgridpos) * [`fn withGridPosMixin(value)`](#fn-withgridposmixin) * [`fn withId(value)`](#fn-withid) * [`fn withPanels(value)`](#fn-withpanels) @@ -19,106 +19,134 @@ grafonnet.panel.row * [`obj datasource`](#obj-datasource) * [`fn withType(value)`](#fn-datasourcewithtype) * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj gridPos`](#obj-gridpos) - * [`fn withH(value=9)`](#fn-gridposwithh) - * [`fn withStatic(value=true)`](#fn-gridposwithstatic) - * [`fn withW(value=12)`](#fn-gridposwithw) - * [`fn withX(value=0)`](#fn-gridposwithx) - * [`fn withY(value=0)`](#fn-gridposwithy) ## Fields ### fn new -```ts +```jsonnet new(title) ``` -Creates a new row panel with a title. +PARAMETERS: + +* **title** (`string`) +Creates a new row panel with a title. ### fn withCollapsed -```ts +```jsonnet withCollapsed(value=true) ``` +PARAMETERS: +* **value** (`boolean`) + - default value: `true` +Whether this row should be collapsed or not. ### fn withDatasource -```ts +```jsonnet withDatasource(value) ``` -Name of default datasource. +PARAMETERS: + +* **value** (`object`) +Ref to a DataSource instance ### fn withDatasourceMixin -```ts +```jsonnet withDatasourceMixin(value) ``` -Name of default datasource. +PARAMETERS: +* **value** (`object`) + +Ref to a DataSource instance ### fn withGridPos -```ts -withGridPos(value) +```jsonnet +withGridPos(y) ``` +PARAMETERS: +* **y** (`number`) +`withGridPos` sets the Y-axis on a row panel. x, width and height are fixed values. ### fn withGridPosMixin -```ts +```jsonnet withGridPosMixin(value) ``` +PARAMETERS: +* **value** (`object`) +Position and dimensions of a panel in the grid ### fn withId -```ts +```jsonnet withId(value) ``` +PARAMETERS: +* **value** (`integer`) +Unique identifier of the panel. Generated by Grafana when creating a new panel. It must be unique within a dashboard, but not globally. ### fn withPanels -```ts +```jsonnet withPanels(value) ``` +PARAMETERS: + +* **value** (`array`) ### fn withPanelsMixin -```ts +```jsonnet withPanelsMixin(value) ``` +PARAMETERS: + +* **value** (`array`) ### fn withRepeat -```ts +```jsonnet withRepeat(value) ``` -Name of template variable to repeat for. +PARAMETERS: +* **value** (`string`) + +Name of template variable to repeat for. ### fn withTitle -```ts +```jsonnet withTitle(value) ``` +PARAMETERS: +* **value** (`string`) +Row title ### fn withType -```ts +```jsonnet withType() ``` @@ -129,59 +157,23 @@ withType() #### fn datasource.withType -```ts -withType(value) +```jsonnet +datasource.withType(value) ``` +PARAMETERS: +* **value** (`string`) +The plugin type-id #### fn datasource.withUid -```ts -withUid(value) +```jsonnet +datasource.withUid(value) ``` +PARAMETERS: +* **value** (`string`) -### obj gridPos - - -#### fn gridPos.withH - -```ts -withH(value=9) -``` - -Panel - -#### fn gridPos.withStatic - -```ts -withStatic(value=true) -``` - -true if fixed - -#### fn gridPos.withW - -```ts -withW(value=12) -``` - -Panel - -#### fn gridPos.withX - -```ts -withX(value=0) -``` - -Panel x - -#### fn gridPos.withY - -```ts -withY(value=0) -``` - -Panel y +Specific datasource instance \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/index.md new file mode 100644 index 0000000..045e49f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/index.md @@ -0,0 +1,897 @@ +# stat + +grafonnet.panel.stat + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withColorMode(value="value")`](#fn-optionswithcolormode) + * [`fn withGraphMode(value="area")`](#fn-optionswithgraphmode) + * [`fn withJustifyMode(value="auto")`](#fn-optionswithjustifymode) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withPercentChangeColorMode(value="standard")`](#fn-optionswithpercentchangecolormode) + * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) + * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) + * [`fn withShowPercentChange(value=true)`](#fn-optionswithshowpercentchange) + * [`fn withText(value)`](#fn-optionswithtext) + * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) + * [`fn withTextMode(value="auto")`](#fn-optionswithtextmode) + * [`fn withWideLayout(value=true)`](#fn-optionswithwidelayout) + * [`obj reduceOptions`](#obj-optionsreduceoptions) + * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) + * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) + * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) + * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) + * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) + * [`obj text`](#obj-optionstext) + * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) + * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new stat panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withColorMode + +```jsonnet +options.withColorMode(value="value") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"value"` + - valid values: `"value"`, `"background"`, `"background_solid"`, `"none"` + +TODO docs +#### fn options.withGraphMode + +```jsonnet +options.withGraphMode(value="area") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"area"` + - valid values: `"none"`, `"line"`, `"area"` + +TODO docs +#### fn options.withJustifyMode + +```jsonnet +options.withJustifyMode(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"center"` + +TODO docs +#### fn options.withOrientation + +```jsonnet +options.withOrientation(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"vertical"`, `"horizontal"` + +TODO docs +#### fn options.withPercentChangeColorMode + +```jsonnet +options.withPercentChangeColorMode(value="standard") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"standard"` + - valid values: `"standard"`, `"inverted"`, `"same_as_value"` + +TODO docs +#### fn options.withReduceOptions + +```jsonnet +options.withReduceOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withReduceOptionsMixin + +```jsonnet +options.withReduceOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withShowPercentChange + +```jsonnet +options.withShowPercentChange(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn options.withText + +```jsonnet +options.withText(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTextMixin + +```jsonnet +options.withTextMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTextMode + +```jsonnet +options.withTextMode(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"value"`, `"value_and_name"`, `"name"`, `"none"` + +TODO docs +#### fn options.withWideLayout + +```jsonnet +options.withWideLayout(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### obj options.reduceOptions + + +##### fn options.reduceOptions.withCalcs + +```jsonnet +options.reduceOptions.withCalcs(value) +``` + +PARAMETERS: + +* **value** (`array`) + +When !values, pick one value for the whole field +##### fn options.reduceOptions.withCalcsMixin + +```jsonnet +options.reduceOptions.withCalcsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +When !values, pick one value for the whole field +##### fn options.reduceOptions.withFields + +```jsonnet +options.reduceOptions.withFields(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Which fields to show. By default this is only numeric fields +##### fn options.reduceOptions.withLimit + +```jsonnet +options.reduceOptions.withLimit(value) +``` + +PARAMETERS: + +* **value** (`number`) + +if showing all values limit +##### fn options.reduceOptions.withValues + +```jsonnet +options.reduceOptions.withValues(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true show each row value +#### obj options.text + + +##### fn options.text.withTitleSize + +```jsonnet +options.text.withTitleSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit title text size +##### fn options.text.withValueSize + +```jsonnet +options.text.withValueSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Explicit value text size +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stat/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/index.md new file mode 100644 index 0000000..7eb5038 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/index.md @@ -0,0 +1,1080 @@ +# stateTimeline + +grafonnet.panel.stateTimeline + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineWidth(value=0)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withAlignValue(value="left")`](#fn-optionswithalignvalue) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withMergeValues(value=true)`](#fn-optionswithmergevalues) + * [`fn withPerPage(value=20)`](#fn-optionswithperpage) + * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) + * [`fn withShowValue(value="auto")`](#fn-optionswithshowvalue) + * [`fn withTimezone(value)`](#fn-optionswithtimezone) + * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value="list")`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value="bottom")`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new stateTimeline panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```jsonnet +fieldConfig.defaults.custom.withFillOpacity(value=70) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `70` + + +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineWidth + +```jsonnet +fieldConfig.defaults.custom.withLineWidth(value=0) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `0` + + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withAlignValue + +```jsonnet +options.withAlignValue(value="left") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"left"` + - valid values: `"center"`, `"left"`, `"right"` + +Controls the value alignment in the TimelineChart component +#### fn options.withLegend + +```jsonnet +options.withLegend(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withMergeValues + +```jsonnet +options.withMergeValues(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Merge equal consecutive values +#### fn options.withPerPage + +```jsonnet +options.withPerPage(value=20) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `20` + +Enables pagination when > 0 +#### fn options.withRowHeight + +```jsonnet +options.withRowHeight(value=0.9) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `0.9` + +Controls the row height +#### fn options.withShowValue + +```jsonnet +options.withShowValue(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +#### fn options.withTimezone + +```jsonnet +options.withTimezone(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withTimezoneMixin + +```jsonnet +options.withTimezoneMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value="list") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"list"` + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value="bottom") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"bottom"` + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withSort + +```jsonnet +options.tooltip.withSort(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"asc"`, `"desc"`, `"none"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/stateTimeline/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/index.md new file mode 100644 index 0000000..c790ce3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/index.md @@ -0,0 +1,1053 @@ +# statusHistory + +grafonnet.panel.statusHistory + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withColWidth(value=0.9)`](#fn-optionswithcolwidth) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) + * [`fn withShowValue(value="auto")`](#fn-optionswithshowvalue) + * [`fn withTimezone(value)`](#fn-optionswithtimezone) + * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value="list")`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value="bottom")`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new statusHistory panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```jsonnet +fieldConfig.defaults.custom.withFillOpacity(value=70) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `70` + + +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineWidth + +```jsonnet +fieldConfig.defaults.custom.withLineWidth(value=1) +``` + +PARAMETERS: + +* **value** (`integer`) + - default value: `1` + + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withColWidth + +```jsonnet +options.withColWidth(value=0.9) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `0.9` + +Controls the column width +#### fn options.withLegend + +```jsonnet +options.withLegend(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withRowHeight + +```jsonnet +options.withRowHeight(value=0.9) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `0.9` + +Set the height of the rows +#### fn options.withShowValue + +```jsonnet +options.withShowValue(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +#### fn options.withTimezone + +```jsonnet +options.withTimezone(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withTimezoneMixin + +```jsonnet +options.withTimezoneMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value="list") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"list"` + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value="bottom") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"bottom"` + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withSort + +```jsonnet +options.tooltip.withSort(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"asc"`, `"desc"`, `"none"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/statusHistory/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/index.md new file mode 100644 index 0000000..79470c7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/index.md @@ -0,0 +1,2072 @@ +# table + +grafonnet.panel.table + +## Subpackages + +* [options.sortBy](options/sortBy.md) +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAlign(value="auto")`](#fn-fieldconfigdefaultscustomwithalign) + * [`fn withCellOptions(value)`](#fn-fieldconfigdefaultscustomwithcelloptions) + * [`fn withCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomwithcelloptionsmixin) + * [`fn withDisplayMode(value)`](#fn-fieldconfigdefaultscustomwithdisplaymode) + * [`fn withFilterable(value=true)`](#fn-fieldconfigdefaultscustomwithfilterable) + * [`fn withHidden(value=true)`](#fn-fieldconfigdefaultscustomwithhidden) + * [`fn withHideHeader(value=true)`](#fn-fieldconfigdefaultscustomwithhideheader) + * [`fn withInspect(value=true)`](#fn-fieldconfigdefaultscustomwithinspect) + * [`fn withMinWidth(value)`](#fn-fieldconfigdefaultscustomwithminwidth) + * [`fn withWidth(value)`](#fn-fieldconfigdefaultscustomwithwidth) + * [`obj cellOptions`](#obj-fieldconfigdefaultscustomcelloptions) + * [`fn withTableAutoCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableautocelloptions) + * [`fn withTableAutoCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableautocelloptionsmixin) + * [`fn withTableBarGaugeCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablebargaugecelloptions) + * [`fn withTableBarGaugeCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablebargaugecelloptionsmixin) + * [`fn withTableColorTextCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecolortextcelloptions) + * [`fn withTableColorTextCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecolortextcelloptionsmixin) + * [`fn withTableColoredBackgroundCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecoloredbackgroundcelloptions) + * [`fn withTableColoredBackgroundCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecoloredbackgroundcelloptionsmixin) + * [`fn withTableDataLinksCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtabledatalinkscelloptions) + * [`fn withTableDataLinksCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtabledatalinkscelloptionsmixin) + * [`fn withTableImageCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableimagecelloptions) + * [`fn withTableImageCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableimagecelloptionsmixin) + * [`fn withTableJsonViewCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablejsonviewcelloptions) + * [`fn withTableJsonViewCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablejsonviewcelloptionsmixin) + * [`fn withTableSparklineCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablesparklinecelloptions) + * [`fn withTableSparklineCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablesparklinecelloptionsmixin) + * [`obj TableAutoCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstableautocelloptions) + * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstableautocelloptionswithtype) + * [`fn withWrapText(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstableautocelloptionswithwraptext) + * [`obj TableBarGaugeCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablebargaugecelloptions) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablebargaugecelloptionswithmode) + * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablebargaugecelloptionswithtype) + * [`fn withValueDisplayMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablebargaugecelloptionswithvaluedisplaymode) + * [`obj TableColorTextCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablecolortextcelloptions) + * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablecolortextcelloptionswithtype) + * [`fn withWrapText(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablecolortextcelloptionswithwraptext) + * [`obj TableColoredBackgroundCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptions) + * [`fn withApplyToRow(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptionswithapplytorow) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptionswithmode) + * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptionswithtype) + * [`fn withWrapText(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptionswithwraptext) + * [`obj TableDataLinksCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstabledatalinkscelloptions) + * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstabledatalinkscelloptionswithtype) + * [`obj TableImageCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstableimagecelloptions) + * [`fn withAlt(value)`](#fn-fieldconfigdefaultscustomcelloptionstableimagecelloptionswithalt) + * [`fn withTitle(value)`](#fn-fieldconfigdefaultscustomcelloptionstableimagecelloptionswithtitle) + * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstableimagecelloptionswithtype) + * [`obj TableJsonViewCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablejsonviewcelloptions) + * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablejsonviewcelloptionswithtype) + * [`obj TableSparklineCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptions) + * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxisbordershow) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxiswidth) + * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithbaralignment) + * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithbarmaxwidth) + * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithbarwidthfactor) + * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithdrawstyle) + * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithfillbelowto) + * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithfillcolor) + * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithfillopacity) + * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithhidefrommixin) + * [`fn withHideValue(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithhidevalue) + * [`fn withInsertNulls(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithinsertnulls) + * [`fn withInsertNullsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithinsertnullsmixin) + * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinecolor) + * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlineinterpolation) + * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinestyle) + * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinestylemixin) + * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinewidth) + * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithpointcolor) + * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithpointsize) + * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithpointsymbol) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithscaledistributionmixin) + * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithshowpoints) + * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithspannulls) + * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithspannullsmixin) + * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithstacking) + * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithstackingmixin) + * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswiththresholdsstyle) + * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswiththresholdsstylemixin) + * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithtransform) + * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithtype) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefromwithviz) + * [`obj lineStyle`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestyle) + * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestylewithdash) + * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestylewithdashmixin) + * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestylewithfill) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistributionwithtype) + * [`obj stacking`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsstacking) + * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsstackingwithgroup) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsstackingwithmode) + * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsthresholdsstyle) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsthresholdsstylewithmode) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withCellHeight(value="sm")`](#fn-optionswithcellheight) + * [`fn withFooter(value={"countRows": false,"reducer": null,"show": false})`](#fn-optionswithfooter) + * [`fn withFooterMixin(value={"countRows": false,"reducer": null,"show": false})`](#fn-optionswithfootermixin) + * [`fn withFrameIndex(value=0)`](#fn-optionswithframeindex) + * [`fn withShowHeader(value=true)`](#fn-optionswithshowheader) + * [`fn withShowTypeIcons(value=true)`](#fn-optionswithshowtypeicons) + * [`fn withSortBy(value)`](#fn-optionswithsortby) + * [`fn withSortByMixin(value)`](#fn-optionswithsortbymixin) + * [`obj footer`](#obj-optionsfooter) + * [`fn withCountRows(value=true)`](#fn-optionsfooterwithcountrows) + * [`fn withEnablePagination(value=true)`](#fn-optionsfooterwithenablepagination) + * [`fn withFields(value)`](#fn-optionsfooterwithfields) + * [`fn withFieldsMixin(value)`](#fn-optionsfooterwithfieldsmixin) + * [`fn withReducer(value)`](#fn-optionsfooterwithreducer) + * [`fn withReducerMixin(value)`](#fn-optionsfooterwithreducermixin) + * [`fn withShow(value=true)`](#fn-optionsfooterwithshow) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new table panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAlign + +```jsonnet +fieldConfig.defaults.custom.withAlign(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"left"`, `"right"`, `"center"` + +TODO -- should not be table specific! +TODO docs +###### fn fieldConfig.defaults.custom.withCellOptions + +```jsonnet +fieldConfig.defaults.custom.withCellOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Table cell options. Each cell has a display mode +and other potential options for that display. +###### fn fieldConfig.defaults.custom.withCellOptionsMixin + +```jsonnet +fieldConfig.defaults.custom.withCellOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Table cell options. Each cell has a display mode +and other potential options for that display. +###### fn fieldConfig.defaults.custom.withDisplayMode + +```jsonnet +fieldConfig.defaults.custom.withDisplayMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"color-text"`, `"color-background"`, `"color-background-solid"`, `"gradient-gauge"`, `"lcd-gauge"`, `"json-view"`, `"basic"`, `"image"`, `"gauge"`, `"sparkline"`, `"data-links"`, `"custom"` + +Internally, this is the "type" of cell that's being displayed +in the table such as colored text, JSON, gauge, etc. +The color-background-solid, gradient-gauge, and lcd-gauge +modes are deprecated in favor of new cell subOptions +###### fn fieldConfig.defaults.custom.withFilterable + +```jsonnet +fieldConfig.defaults.custom.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withHidden + +```jsonnet +fieldConfig.defaults.custom.withHidden(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +?? default is missing or false ?? +###### fn fieldConfig.defaults.custom.withHideHeader + +```jsonnet +fieldConfig.defaults.custom.withHideHeader(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Hides any header for a column, useful for columns that show some static content or buttons. +###### fn fieldConfig.defaults.custom.withInspect + +```jsonnet +fieldConfig.defaults.custom.withInspect(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withMinWidth + +```jsonnet +fieldConfig.defaults.custom.withMinWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withWidth + +```jsonnet +fieldConfig.defaults.custom.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### obj fieldConfig.defaults.custom.cellOptions + + +####### fn fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptions + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Auto mode table cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptionsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Auto mode table cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptions + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Gauge cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptionsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Gauge cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptions + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Colored text cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptionsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Colored text cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptions + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Colored background cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptionsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Colored background cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableDataLinksCellOptions + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableDataLinksCellOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Show data links in the cell +####### fn fieldConfig.defaults.custom.cellOptions.withTableDataLinksCellOptionsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableDataLinksCellOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Show data links in the cell +####### fn fieldConfig.defaults.custom.cellOptions.withTableImageCellOptions + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableImageCellOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Json view cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableImageCellOptionsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableImageCellOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Json view cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptions + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Json view cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptionsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Json view cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptions + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Sparkline cell options +####### fn fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptionsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Sparkline cell options +####### obj fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions + + +######## fn fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions.withType + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions.withType() +``` + + + +######## fn fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions.withWrapText + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions.withWrapText(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### obj fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions + + +######## fn fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withMode + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"basic"`, `"lcd"`, `"gradient"` + +Enum expressing the possible display modes +for the bar gauge component of Grafana UI +######## fn fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withType + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withType() +``` + + + +######## fn fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withValueDisplayMode + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withValueDisplayMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"color"`, `"text"`, `"hidden"` + +Allows for the table cell gauge display type to set the gauge mode. +####### obj fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions + + +######## fn fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions.withType + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions.withType() +``` + + + +######## fn fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions.withWrapText + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions.withWrapText(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### obj fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions + + +######## fn fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withApplyToRow + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withApplyToRow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +######## fn fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withMode + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"basic"`, `"gradient"` + +Display mode to the "Colored Background" display +mode for table cells. Either displays a solid color (basic mode) +or a gradient. +######## fn fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withType + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withType() +``` + + + +######## fn fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withWrapText + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withWrapText(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### obj fieldConfig.defaults.custom.cellOptions.TableDataLinksCellOptions + + +######## fn fieldConfig.defaults.custom.cellOptions.TableDataLinksCellOptions.withType + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableDataLinksCellOptions.withType() +``` + + + +####### obj fieldConfig.defaults.custom.cellOptions.TableImageCellOptions + + +######## fn fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withAlt + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withAlt(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withTitle + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withType + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withType() +``` + + + +####### obj fieldConfig.defaults.custom.cellOptions.TableJsonViewCellOptions + + +######## fn fieldConfig.defaults.custom.cellOptions.TableJsonViewCellOptions.withType + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableJsonViewCellOptions.withType() +``` + + + +####### obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisBorderShow + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisBorderShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisCenteredZero + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisCenteredZero(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisColorMode + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisColorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"text"`, `"series"` + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisGridShow + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisGridShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisLabel + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisPlacement + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMax + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisWidth + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarAlignment + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarAlignment(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `-1`, `0`, `1` + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarMaxWidth + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarWidthFactor + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarWidthFactor(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withDrawStyle + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withDrawStyle(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"line"`, `"bars"`, `"points"` + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillBelowTo + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillBelowTo(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillColor + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillOpacity + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillOpacity(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withGradientMode + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withGradientMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideValue + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideValue(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withInsertNulls + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withInsertNulls(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withInsertNullsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withInsertNullsMixin(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineColor + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineInterpolation + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineInterpolation(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyle + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyleMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineWidth + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointColor + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSize + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSymbol + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSymbol(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistribution + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistributionMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withShowPoints + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withShowPoints(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNulls + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNulls(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNullsMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNullsMixin(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStacking + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStacking(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStackingMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStackingMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyle + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyleMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withTransform + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withTransform(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"constant"`, `"negative-Y"` + +TODO docs +######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withType + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withType() +``` + + + +######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDash + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDash(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDashMixin + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDashMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withFill + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withFill(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` + + +######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLinearThreshold + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLog + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withType + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withGroup + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withGroup(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withMode + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"normal"`, `"percent"` + +TODO docs +######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.thresholdsStyle + + +######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.thresholdsStyle.withMode + +```jsonnet +fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.thresholdsStyle.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` + +TODO docs +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withCellHeight + +```jsonnet +options.withCellHeight(value="sm") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"sm"` + - valid values: `"sm"`, `"md"`, `"lg"`, `"auto"` + +Height of a table cell +#### fn options.withFooter + +```jsonnet +options.withFooter(value={"countRows": false,"reducer": null,"show": false}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"countRows": false,"reducer": null,"show": false}` + +Footer options +#### fn options.withFooterMixin + +```jsonnet +options.withFooterMixin(value={"countRows": false,"reducer": null,"show": false}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"countRows": false,"reducer": null,"show": false}` + +Footer options +#### fn options.withFrameIndex + +```jsonnet +options.withFrameIndex(value=0) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `0` + +Represents the index of the selected frame +#### fn options.withShowHeader + +```jsonnet +options.withShowHeader(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls whether the panel should show the header +#### fn options.withShowTypeIcons + +```jsonnet +options.withShowTypeIcons(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls whether the header should show icons for the column types +#### fn options.withSortBy + +```jsonnet +options.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Used to control row sorting +#### fn options.withSortByMixin + +```jsonnet +options.withSortByMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Used to control row sorting +#### obj options.footer + + +##### fn options.footer.withCountRows + +```jsonnet +options.footer.withCountRows(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.footer.withEnablePagination + +```jsonnet +options.footer.withEnablePagination(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.footer.withFields + +```jsonnet +options.footer.withFields(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.footer.withFieldsMixin + +```jsonnet +options.footer.withFieldsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.footer.withReducer + +```jsonnet +options.footer.withReducer(value) +``` + +PARAMETERS: + +* **value** (`array`) + +actually 1 value +##### fn options.footer.withReducerMixin + +```jsonnet +options.footer.withReducerMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +actually 1 value +##### fn options.footer.withShow + +```jsonnet +options.footer.withShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/options/sortBy.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/options/sortBy.md new file mode 100644 index 0000000..20748dc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/options/sortBy.md @@ -0,0 +1,34 @@ +# sortBy + + + +## Index + +* [`fn withDesc(value=true)`](#fn-withdesc) +* [`fn withDisplayName(value)`](#fn-withdisplayname) + +## Fields + +### fn withDesc + +```jsonnet +withDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Flag used to indicate descending sort order +### fn withDisplayName + +```jsonnet +withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Sets the display name of the field to sort by \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/table/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/index.md new file mode 100644 index 0000000..d898bab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/index.md @@ -0,0 +1,742 @@ +# text + +grafonnet.panel.text + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withCode(value)`](#fn-optionswithcode) + * [`fn withCodeMixin(value)`](#fn-optionswithcodemixin) + * [`fn withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)")`](#fn-optionswithcontent) + * [`fn withMode(value="markdown")`](#fn-optionswithmode) + * [`obj code`](#obj-optionscode) + * [`fn withLanguage(value="plaintext")`](#fn-optionscodewithlanguage) + * [`fn withShowLineNumbers(value=true)`](#fn-optionscodewithshowlinenumbers) + * [`fn withShowMiniMap(value=true)`](#fn-optionscodewithshowminimap) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new text panel with a title. +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withCode + +```jsonnet +options.withCode(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withCodeMixin + +```jsonnet +options.withCodeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn options.withContent + +```jsonnet +options.withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)"` + + +#### fn options.withMode + +```jsonnet +options.withMode(value="markdown") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"markdown"` + - valid values: `"html"`, `"markdown"`, `"code"` + + +#### obj options.code + + +##### fn options.code.withLanguage + +```jsonnet +options.code.withLanguage(value="plaintext") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"plaintext"` + - valid values: `"json"`, `"yaml"`, `"xml"`, `"typescript"`, `"sql"`, `"go"`, `"markdown"`, `"html"`, `"plaintext"` + +The language passed to monaco code editor +##### fn options.code.withShowLineNumbers + +```jsonnet +options.code.withShowLineNumbers(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.code.withShowMiniMap + +```jsonnet +options.code.withShowMiniMap(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/text/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/index.md new file mode 100644 index 0000000..6c2101e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/index.md @@ -0,0 +1,1589 @@ +# timeSeries + +grafonnet.panel.timeSeries + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) + * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) + * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) + * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) + * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) + * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) + * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withInsertNulls(value)`](#fn-fieldconfigdefaultscustomwithinsertnulls) + * [`fn withInsertNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithinsertnullsmixin) + * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) + * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) + * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) + * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) + * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) + * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) + * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) + * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) + * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) + * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) + * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) + * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) + * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) + * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) + * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) + * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) + * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) + * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) + * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) + * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withLegend(value={"calcs": [],"displayMode": "list","placement": "bottom"})`](#fn-optionswithlegend) + * [`fn withLegendMixin(value={"calcs": [],"displayMode": "list","placement": "bottom"})`](#fn-optionswithlegendmixin) + * [`fn withOrientation(value)`](#fn-optionswithorientation) + * [`fn withTimezone(value)`](#fn-optionswithtimezone) + * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value="list")`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value="bottom")`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new timeSeries panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisBorderShow + +```jsonnet +fieldConfig.defaults.custom.withAxisBorderShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```jsonnet +fieldConfig.defaults.custom.withAxisCenteredZero(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```jsonnet +fieldConfig.defaults.custom.withAxisColorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"text"`, `"series"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```jsonnet +fieldConfig.defaults.custom.withAxisGridShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```jsonnet +fieldConfig.defaults.custom.withAxisLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```jsonnet +fieldConfig.defaults.custom.withAxisPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```jsonnet +fieldConfig.defaults.custom.withAxisWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withBarAlignment + +```jsonnet +fieldConfig.defaults.custom.withBarAlignment(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `-1`, `0`, `1` + +TODO docs +###### fn fieldConfig.defaults.custom.withBarMaxWidth + +```jsonnet +fieldConfig.defaults.custom.withBarMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withBarWidthFactor + +```jsonnet +fieldConfig.defaults.custom.withBarWidthFactor(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withDrawStyle + +```jsonnet +fieldConfig.defaults.custom.withDrawStyle(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"line"`, `"bars"`, `"points"` + +TODO docs +###### fn fieldConfig.defaults.custom.withFillBelowTo + +```jsonnet +fieldConfig.defaults.custom.withFillBelowTo(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withFillColor + +```jsonnet +fieldConfig.defaults.custom.withFillColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```jsonnet +fieldConfig.defaults.custom.withFillOpacity(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withGradientMode + +```jsonnet +fieldConfig.defaults.custom.withGradientMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withInsertNulls + +```jsonnet +fieldConfig.defaults.custom.withInsertNulls(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + + +###### fn fieldConfig.defaults.custom.withInsertNullsMixin + +```jsonnet +fieldConfig.defaults.custom.withInsertNullsMixin(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + + +###### fn fieldConfig.defaults.custom.withLineColor + +```jsonnet +fieldConfig.defaults.custom.withLineColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withLineInterpolation + +```jsonnet +fieldConfig.defaults.custom.withLineInterpolation(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` + +TODO docs +###### fn fieldConfig.defaults.custom.withLineStyle + +```jsonnet +fieldConfig.defaults.custom.withLineStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineStyleMixin + +```jsonnet +fieldConfig.defaults.custom.withLineStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineWidth + +```jsonnet +fieldConfig.defaults.custom.withLineWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withPointColor + +```jsonnet +fieldConfig.defaults.custom.withPointColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withPointSize + +```jsonnet +fieldConfig.defaults.custom.withPointSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withPointSymbol + +```jsonnet +fieldConfig.defaults.custom.withPointSymbol(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```jsonnet +fieldConfig.defaults.custom.withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```jsonnet +fieldConfig.defaults.custom.withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withShowPoints + +```jsonnet +fieldConfig.defaults.custom.withShowPoints(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +###### fn fieldConfig.defaults.custom.withSpanNulls + +```jsonnet +fieldConfig.defaults.custom.withSpanNulls(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds +###### fn fieldConfig.defaults.custom.withSpanNullsMixin + +```jsonnet +fieldConfig.defaults.custom.withSpanNullsMixin(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds +###### fn fieldConfig.defaults.custom.withStacking + +```jsonnet +fieldConfig.defaults.custom.withStacking(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withStackingMixin + +```jsonnet +fieldConfig.defaults.custom.withStackingMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withThresholdsStyle + +```jsonnet +fieldConfig.defaults.custom.withThresholdsStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin + +```jsonnet +fieldConfig.defaults.custom.withThresholdsStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withTransform + +```jsonnet +fieldConfig.defaults.custom.withTransform(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"constant"`, `"negative-Y"` + +TODO docs +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### obj fieldConfig.defaults.custom.lineStyle + + +####### fn fieldConfig.defaults.custom.lineStyle.withDash + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withDash(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withDashMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +####### fn fieldConfig.defaults.custom.lineStyle.withFill + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withFill(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` + + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +###### obj fieldConfig.defaults.custom.stacking + + +####### fn fieldConfig.defaults.custom.stacking.withGroup + +```jsonnet +fieldConfig.defaults.custom.stacking.withGroup(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +####### fn fieldConfig.defaults.custom.stacking.withMode + +```jsonnet +fieldConfig.defaults.custom.stacking.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"normal"`, `"percent"` + +TODO docs +###### obj fieldConfig.defaults.custom.thresholdsStyle + + +####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode + +```jsonnet +fieldConfig.defaults.custom.thresholdsStyle.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` + +TODO docs +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withLegend + +```jsonnet +options.withLegend(value={"calcs": [],"displayMode": "list","placement": "bottom"}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"calcs": [],"displayMode": "list","placement": "bottom"}` + +TODO docs +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value={"calcs": [],"displayMode": "list","placement": "bottom"}) +``` + +PARAMETERS: + +* **value** (`object`) + - default value: `{"calcs": [],"displayMode": "list","placement": "bottom"}` + +TODO docs +#### fn options.withOrientation + +```jsonnet +options.withOrientation(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"vertical"`, `"horizontal"` + +TODO docs +#### fn options.withTimezone + +```jsonnet +options.withTimezone(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withTimezoneMixin + +```jsonnet +options.withTimezoneMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value="list") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"list"` + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value="bottom") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"bottom"` + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withSort + +```jsonnet +options.tooltip.withSort(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"asc"`, `"desc"`, `"none"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/timeSeries/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/index.md new file mode 100644 index 0000000..dcf118e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/index.md @@ -0,0 +1,1562 @@ +# trend + +grafonnet.panel.trend + +## Subpackages + +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) + * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) + * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) + * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) + * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) + * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) + * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) + * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withInsertNulls(value)`](#fn-fieldconfigdefaultscustomwithinsertnulls) + * [`fn withInsertNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithinsertnullsmixin) + * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) + * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) + * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) + * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) + * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) + * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) + * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) + * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) + * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) + * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) + * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) + * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) + * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) + * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) + * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) + * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) + * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) + * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) + * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) + * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`fn withXField(value)`](#fn-optionswithxfield) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value="list")`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value="bottom")`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new trend panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisBorderShow + +```jsonnet +fieldConfig.defaults.custom.withAxisBorderShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```jsonnet +fieldConfig.defaults.custom.withAxisCenteredZero(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```jsonnet +fieldConfig.defaults.custom.withAxisColorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"text"`, `"series"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```jsonnet +fieldConfig.defaults.custom.withAxisGridShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```jsonnet +fieldConfig.defaults.custom.withAxisLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```jsonnet +fieldConfig.defaults.custom.withAxisPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```jsonnet +fieldConfig.defaults.custom.withAxisWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withBarAlignment + +```jsonnet +fieldConfig.defaults.custom.withBarAlignment(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `-1`, `0`, `1` + +TODO docs +###### fn fieldConfig.defaults.custom.withBarMaxWidth + +```jsonnet +fieldConfig.defaults.custom.withBarMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withBarWidthFactor + +```jsonnet +fieldConfig.defaults.custom.withBarWidthFactor(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withDrawStyle + +```jsonnet +fieldConfig.defaults.custom.withDrawStyle(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"line"`, `"bars"`, `"points"` + +TODO docs +###### fn fieldConfig.defaults.custom.withFillBelowTo + +```jsonnet +fieldConfig.defaults.custom.withFillBelowTo(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withFillColor + +```jsonnet +fieldConfig.defaults.custom.withFillColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withFillOpacity + +```jsonnet +fieldConfig.defaults.custom.withFillOpacity(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withGradientMode + +```jsonnet +fieldConfig.defaults.custom.withGradientMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withInsertNulls + +```jsonnet +fieldConfig.defaults.custom.withInsertNulls(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + + +###### fn fieldConfig.defaults.custom.withInsertNullsMixin + +```jsonnet +fieldConfig.defaults.custom.withInsertNullsMixin(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + + +###### fn fieldConfig.defaults.custom.withLineColor + +```jsonnet +fieldConfig.defaults.custom.withLineColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withLineInterpolation + +```jsonnet +fieldConfig.defaults.custom.withLineInterpolation(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` + +TODO docs +###### fn fieldConfig.defaults.custom.withLineStyle + +```jsonnet +fieldConfig.defaults.custom.withLineStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineStyleMixin + +```jsonnet +fieldConfig.defaults.custom.withLineStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineWidth + +```jsonnet +fieldConfig.defaults.custom.withLineWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withPointColor + +```jsonnet +fieldConfig.defaults.custom.withPointColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withPointSize + +```jsonnet +fieldConfig.defaults.custom.withPointSize(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withPointSymbol + +```jsonnet +fieldConfig.defaults.custom.withPointSymbol(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```jsonnet +fieldConfig.defaults.custom.withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```jsonnet +fieldConfig.defaults.custom.withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withShowPoints + +```jsonnet +fieldConfig.defaults.custom.withShowPoints(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +###### fn fieldConfig.defaults.custom.withSpanNulls + +```jsonnet +fieldConfig.defaults.custom.withSpanNulls(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds +###### fn fieldConfig.defaults.custom.withSpanNullsMixin + +```jsonnet +fieldConfig.defaults.custom.withSpanNullsMixin(value) +``` + +PARAMETERS: + +* **value** (`boolean`,`number`) + +Indicate if null values should be treated as gaps or connected. +When the value is a number, it represents the maximum delta in the +X axis that should be considered connected. For timeseries, this is milliseconds +###### fn fieldConfig.defaults.custom.withStacking + +```jsonnet +fieldConfig.defaults.custom.withStacking(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withStackingMixin + +```jsonnet +fieldConfig.defaults.custom.withStackingMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withThresholdsStyle + +```jsonnet +fieldConfig.defaults.custom.withThresholdsStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin + +```jsonnet +fieldConfig.defaults.custom.withThresholdsStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withTransform + +```jsonnet +fieldConfig.defaults.custom.withTransform(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"constant"`, `"negative-Y"` + +TODO docs +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### obj fieldConfig.defaults.custom.lineStyle + + +####### fn fieldConfig.defaults.custom.lineStyle.withDash + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withDash(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withDashMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +####### fn fieldConfig.defaults.custom.lineStyle.withFill + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withFill(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` + + +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +###### obj fieldConfig.defaults.custom.stacking + + +####### fn fieldConfig.defaults.custom.stacking.withGroup + +```jsonnet +fieldConfig.defaults.custom.stacking.withGroup(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +####### fn fieldConfig.defaults.custom.stacking.withMode + +```jsonnet +fieldConfig.defaults.custom.stacking.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"normal"`, `"percent"` + +TODO docs +###### obj fieldConfig.defaults.custom.thresholdsStyle + + +####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode + +```jsonnet +fieldConfig.defaults.custom.thresholdsStyle.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` + +TODO docs +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withLegend + +```jsonnet +options.withLegend(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withXField + +```jsonnet +options.withXField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of the x field to use (defaults to first number) +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value="list") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"list"` + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value="bottom") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"bottom"` + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withSort + +```jsonnet +options.tooltip.withSort(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"asc"`, `"desc"`, `"none"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/trend/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/index.md new file mode 100644 index 0000000..06cbfe4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/index.md @@ -0,0 +1,1618 @@ +# xyChart + +grafonnet.panel.xyChart + +## Subpackages + +* [options.series](options/series.md) +* [panelOptions.link](panelOptions/link.md) +* [queryOptions.transformation](queryOptions/transformation.md) +* [standardOptions.mapping](standardOptions/mapping.md) +* [standardOptions.override](standardOptions/override.md) +* [standardOptions.threshold.step](standardOptions/threshold/step.md) + +## Index + +* [`fn new(title)`](#fn-new) +* [`obj fieldConfig`](#obj-fieldconfig) + * [`obj defaults`](#obj-fieldconfigdefaults) + * [`obj custom`](#obj-fieldconfigdefaultscustom) + * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) + * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) + * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) + * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) + * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) + * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) + * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) + * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) + * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) + * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) + * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) + * [`fn withLabel(value="auto")`](#fn-fieldconfigdefaultscustomwithlabel) + * [`fn withLabelValue(value)`](#fn-fieldconfigdefaultscustomwithlabelvalue) + * [`fn withLabelValueMixin(value)`](#fn-fieldconfigdefaultscustomwithlabelvaluemixin) + * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) + * [`fn withLineColorMixin(value)`](#fn-fieldconfigdefaultscustomwithlinecolormixin) + * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) + * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) + * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) + * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) + * [`fn withPointColorMixin(value)`](#fn-fieldconfigdefaultscustomwithpointcolormixin) + * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) + * [`fn withPointSizeMixin(value)`](#fn-fieldconfigdefaultscustomwithpointsizemixin) + * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) + * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) + * [`fn withShow(value="points")`](#fn-fieldconfigdefaultscustomwithshow) + * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) + * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) + * [`obj labelValue`](#obj-fieldconfigdefaultscustomlabelvalue) + * [`fn withField(value)`](#fn-fieldconfigdefaultscustomlabelvaluewithfield) + * [`fn withFixed(value)`](#fn-fieldconfigdefaultscustomlabelvaluewithfixed) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomlabelvaluewithmode) + * [`obj lineColor`](#obj-fieldconfigdefaultscustomlinecolor) + * [`fn withField(value)`](#fn-fieldconfigdefaultscustomlinecolorwithfield) + * [`fn withFixed(value)`](#fn-fieldconfigdefaultscustomlinecolorwithfixed) + * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) + * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) + * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) + * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) + * [`obj pointColor`](#obj-fieldconfigdefaultscustompointcolor) + * [`fn withField(value)`](#fn-fieldconfigdefaultscustompointcolorwithfield) + * [`fn withFixed(value)`](#fn-fieldconfigdefaultscustompointcolorwithfixed) + * [`obj pointSize`](#obj-fieldconfigdefaultscustompointsize) + * [`fn withField(value)`](#fn-fieldconfigdefaultscustompointsizewithfield) + * [`fn withFixed(value)`](#fn-fieldconfigdefaultscustompointsizewithfixed) + * [`fn withMax(value)`](#fn-fieldconfigdefaultscustompointsizewithmax) + * [`fn withMin(value)`](#fn-fieldconfigdefaultscustompointsizewithmin) + * [`fn withMode(value)`](#fn-fieldconfigdefaultscustompointsizewithmode) + * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) + * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) + * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) +* [`obj libraryPanel`](#obj-librarypanel) + * [`fn withName(value)`](#fn-librarypanelwithname) + * [`fn withUid(value)`](#fn-librarypanelwithuid) +* [`obj options`](#obj-options) + * [`fn withDims(value)`](#fn-optionswithdims) + * [`fn withDimsMixin(value)`](#fn-optionswithdimsmixin) + * [`fn withLegend(value)`](#fn-optionswithlegend) + * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) + * [`fn withSeries(value)`](#fn-optionswithseries) + * [`fn withSeriesMapping(value)`](#fn-optionswithseriesmapping) + * [`fn withSeriesMixin(value)`](#fn-optionswithseriesmixin) + * [`fn withTooltip(value)`](#fn-optionswithtooltip) + * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) + * [`obj dims`](#obj-optionsdims) + * [`fn withExclude(value)`](#fn-optionsdimswithexclude) + * [`fn withExcludeMixin(value)`](#fn-optionsdimswithexcludemixin) + * [`fn withFrame(value)`](#fn-optionsdimswithframe) + * [`fn withX(value)`](#fn-optionsdimswithx) + * [`obj legend`](#obj-optionslegend) + * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) + * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) + * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) + * [`fn withDisplayMode(value="list")`](#fn-optionslegendwithdisplaymode) + * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) + * [`fn withPlacement(value="bottom")`](#fn-optionslegendwithplacement) + * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) + * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) + * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) + * [`fn withWidth(value)`](#fn-optionslegendwithwidth) + * [`obj tooltip`](#obj-optionstooltip) + * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) + * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) + * [`fn withMode(value)`](#fn-optionstooltipwithmode) + * [`fn withSort(value)`](#fn-optionstooltipwithsort) +* [`obj panelOptions`](#obj-paneloptions) + * [`fn withDescription(value)`](#fn-paneloptionswithdescription) + * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) + * [`fn withLinks(value)`](#fn-paneloptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) + * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) + * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) + * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) + * [`fn withTitle(value)`](#fn-paneloptionswithtitle) + * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) +* [`obj queryOptions`](#obj-queryoptions) + * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) + * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) + * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) + * [`fn withInterval(value)`](#fn-queryoptionswithinterval) + * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) + * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) + * [`fn withTargets(value)`](#fn-queryoptionswithtargets) + * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) + * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) + * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) + * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) + * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) +* [`obj standardOptions`](#obj-standardoptions) + * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) + * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) + * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) + * [`fn withLinks(value)`](#fn-standardoptionswithlinks) + * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) + * [`fn withMappings(value)`](#fn-standardoptionswithmappings) + * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) + * [`fn withMax(value)`](#fn-standardoptionswithmax) + * [`fn withMin(value)`](#fn-standardoptionswithmin) + * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) + * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) + * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) + * [`fn withPath(value)`](#fn-standardoptionswithpath) + * [`fn withUnit(value)`](#fn-standardoptionswithunit) + * [`obj color`](#obj-standardoptionscolor) + * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) + * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) + * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) + * [`obj thresholds`](#obj-standardoptionsthresholds) + * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) + * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) + * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) + +## Fields + +### fn new + +```jsonnet +new(title) +``` + +PARAMETERS: + +* **title** (`string`) + +Creates a new xyChart panel with a title. +### obj fieldConfig + + +#### obj fieldConfig.defaults + + +##### obj fieldConfig.defaults.custom + + +###### fn fieldConfig.defaults.custom.withAxisBorderShow + +```jsonnet +fieldConfig.defaults.custom.withAxisBorderShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisCenteredZero + +```jsonnet +fieldConfig.defaults.custom.withAxisCenteredZero(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisColorMode + +```jsonnet +fieldConfig.defaults.custom.withAxisColorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"text"`, `"series"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisGridShow + +```jsonnet +fieldConfig.defaults.custom.withAxisGridShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### fn fieldConfig.defaults.custom.withAxisLabel + +```jsonnet +fieldConfig.defaults.custom.withAxisLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn fieldConfig.defaults.custom.withAxisPlacement + +```jsonnet +fieldConfig.defaults.custom.withAxisPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` + +TODO docs +###### fn fieldConfig.defaults.custom.withAxisSoftMax + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisSoftMin + +```jsonnet +fieldConfig.defaults.custom.withAxisSoftMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withAxisWidth + +```jsonnet +fieldConfig.defaults.custom.withAxisWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +###### fn fieldConfig.defaults.custom.withHideFrom + +```jsonnet +fieldConfig.defaults.custom.withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withHideFromMixin + +```jsonnet +fieldConfig.defaults.custom.withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLabel + +```jsonnet +fieldConfig.defaults.custom.withLabel(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +###### fn fieldConfig.defaults.custom.withLabelValue + +```jsonnet +fieldConfig.defaults.custom.withLabelValue(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +###### fn fieldConfig.defaults.custom.withLabelValueMixin + +```jsonnet +fieldConfig.defaults.custom.withLabelValueMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +###### fn fieldConfig.defaults.custom.withLineColor + +```jsonnet +fieldConfig.defaults.custom.withLineColor(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +###### fn fieldConfig.defaults.custom.withLineColorMixin + +```jsonnet +fieldConfig.defaults.custom.withLineColorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +###### fn fieldConfig.defaults.custom.withLineStyle + +```jsonnet +fieldConfig.defaults.custom.withLineStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineStyleMixin + +```jsonnet +fieldConfig.defaults.custom.withLineStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withLineWidth + +```jsonnet +fieldConfig.defaults.custom.withLineWidth(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +###### fn fieldConfig.defaults.custom.withPointColor + +```jsonnet +fieldConfig.defaults.custom.withPointColor(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +###### fn fieldConfig.defaults.custom.withPointColorMixin + +```jsonnet +fieldConfig.defaults.custom.withPointColorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +###### fn fieldConfig.defaults.custom.withPointSize + +```jsonnet +fieldConfig.defaults.custom.withPointSize(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +###### fn fieldConfig.defaults.custom.withPointSizeMixin + +```jsonnet +fieldConfig.defaults.custom.withPointSizeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +###### fn fieldConfig.defaults.custom.withScaleDistribution + +```jsonnet +fieldConfig.defaults.custom.withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withScaleDistributionMixin + +```jsonnet +fieldConfig.defaults.custom.withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +###### fn fieldConfig.defaults.custom.withShow + +```jsonnet +fieldConfig.defaults.custom.withShow(value="points") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"points"` + - valid values: `"points"`, `"lines"`, `"points+lines"` + + +###### obj fieldConfig.defaults.custom.hideFrom + + +####### fn fieldConfig.defaults.custom.hideFrom.withLegend + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withTooltip + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +####### fn fieldConfig.defaults.custom.hideFrom.withViz + +```jsonnet +fieldConfig.defaults.custom.hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +###### obj fieldConfig.defaults.custom.labelValue + + +####### fn fieldConfig.defaults.custom.labelValue.withField + +```jsonnet +fieldConfig.defaults.custom.labelValue.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +####### fn fieldConfig.defaults.custom.labelValue.withFixed + +```jsonnet +fieldConfig.defaults.custom.labelValue.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +####### fn fieldConfig.defaults.custom.labelValue.withMode + +```jsonnet +fieldConfig.defaults.custom.labelValue.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"fixed"`, `"field"`, `"template"` + + +###### obj fieldConfig.defaults.custom.lineColor + + +####### fn fieldConfig.defaults.custom.lineColor.withField + +```jsonnet +fieldConfig.defaults.custom.lineColor.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +####### fn fieldConfig.defaults.custom.lineColor.withFixed + +```jsonnet +fieldConfig.defaults.custom.lineColor.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + +color value +###### obj fieldConfig.defaults.custom.lineStyle + + +####### fn fieldConfig.defaults.custom.lineStyle.withDash + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withDash(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withDashMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +####### fn fieldConfig.defaults.custom.lineStyle.withFill + +```jsonnet +fieldConfig.defaults.custom.lineStyle.withFill(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` + + +###### obj fieldConfig.defaults.custom.pointColor + + +####### fn fieldConfig.defaults.custom.pointColor.withField + +```jsonnet +fieldConfig.defaults.custom.pointColor.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +####### fn fieldConfig.defaults.custom.pointColor.withFixed + +```jsonnet +fieldConfig.defaults.custom.pointColor.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + +color value +###### obj fieldConfig.defaults.custom.pointSize + + +####### fn fieldConfig.defaults.custom.pointSize.withField + +```jsonnet +fieldConfig.defaults.custom.pointSize.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +####### fn fieldConfig.defaults.custom.pointSize.withFixed + +```jsonnet +fieldConfig.defaults.custom.pointSize.withFixed(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.pointSize.withMax + +```jsonnet +fieldConfig.defaults.custom.pointSize.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.pointSize.withMin + +```jsonnet +fieldConfig.defaults.custom.pointSize.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.pointSize.withMode + +```jsonnet +fieldConfig.defaults.custom.pointSize.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"quad"` + +| *"linear" +###### obj fieldConfig.defaults.custom.scaleDistribution + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withLog + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +####### fn fieldConfig.defaults.custom.scaleDistribution.withType + +```jsonnet +fieldConfig.defaults.custom.scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs +### obj libraryPanel + + +#### fn libraryPanel.withName + +```jsonnet +libraryPanel.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel name +#### fn libraryPanel.withUid + +```jsonnet +libraryPanel.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Library panel uid +### obj options + + +#### fn options.withDims + +```jsonnet +options.withDims(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Configuration for the Table/Auto mode +#### fn options.withDimsMixin + +```jsonnet +options.withDimsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Configuration for the Table/Auto mode +#### fn options.withLegend + +```jsonnet +options.withLegend(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withLegendMixin + +```jsonnet +options.withLegendMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withSeries + +```jsonnet +options.withSeries(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Manual Mode +#### fn options.withSeriesMapping + +```jsonnet +options.withSeriesMapping(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"manual"` + +Auto is "table" in the UI +#### fn options.withSeriesMixin + +```jsonnet +options.withSeriesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Manual Mode +#### fn options.withTooltip + +```jsonnet +options.withTooltip(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### fn options.withTooltipMixin + +```jsonnet +options.withTooltipMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +#### obj options.dims + + +##### fn options.dims.withExclude + +```jsonnet +options.dims.withExclude(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.dims.withExcludeMixin + +```jsonnet +options.dims.withExcludeMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn options.dims.withFrame + +```jsonnet +options.dims.withFrame(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +##### fn options.dims.withX + +```jsonnet +options.dims.withX(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj options.legend + + +##### fn options.legend.withAsTable + +```jsonnet +options.legend.withAsTable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withCalcs + +```jsonnet +options.legend.withCalcs(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withCalcsMixin + +```jsonnet +options.legend.withCalcsMixin(value=[]) +``` + +PARAMETERS: + +* **value** (`array`) + - default value: `[]` + + +##### fn options.legend.withDisplayMode + +```jsonnet +options.legend.withDisplayMode(value="list") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"list"` + - valid values: `"list"`, `"table"`, `"hidden"` + +TODO docs +Note: "hidden" needs to remain as an option for plugins compatibility +##### fn options.legend.withIsVisible + +```jsonnet +options.legend.withIsVisible(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withPlacement + +```jsonnet +options.legend.withPlacement(value="bottom") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"bottom"` + - valid values: `"bottom"`, `"right"` + +TODO docs +##### fn options.legend.withShowLegend + +```jsonnet +options.legend.withShowLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withSortBy + +```jsonnet +options.legend.withSortBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn options.legend.withSortDesc + +```jsonnet +options.legend.withSortDesc(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn options.legend.withWidth + +```jsonnet +options.legend.withWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### obj options.tooltip + + +##### fn options.tooltip.withMaxHeight + +```jsonnet +options.tooltip.withMaxHeight(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMaxWidth + +```jsonnet +options.tooltip.withMaxWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn options.tooltip.withMode + +```jsonnet +options.tooltip.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"single"`, `"multi"`, `"none"` + +TODO docs +##### fn options.tooltip.withSort + +```jsonnet +options.tooltip.withSort(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"asc"`, `"desc"`, `"none"` + +TODO docs +### obj panelOptions + + +#### fn panelOptions.withDescription + +```jsonnet +panelOptions.withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel description. +#### fn panelOptions.withGridPos + +```jsonnet +panelOptions.withGridPos(h="null", w="null", x="null", y="null") +``` + +PARAMETERS: + +* **h** (`number`) + - default value: `"null"` +* **w** (`number`) + - default value: `"null"` +* **x** (`number`) + - default value: `"null"` +* **y** (`number`) + - default value: `"null"` + +`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. + +All arguments default to `null`, which means they will remain unchanged or unset. + +#### fn panelOptions.withLinks + +```jsonnet +panelOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withLinksMixin + +```jsonnet +panelOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Panel links. +#### fn panelOptions.withMaxPerRow + +```jsonnet +panelOptions.withMaxPerRow(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Option for repeated panels that controls max items per row +Only relevant for horizontally repeated panels +#### fn panelOptions.withRepeat + +```jsonnet +panelOptions.withRepeat(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of template variable to repeat for. +#### fn panelOptions.withRepeatDirection + +```jsonnet +panelOptions.withRepeatDirection(value="h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"h"` + - valid values: `"h"`, `"v"` + +Direction to repeat in if 'repeat' is set. +`h` for horizontal, `v` for vertical. +#### fn panelOptions.withTitle + +```jsonnet +panelOptions.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Panel title. +#### fn panelOptions.withTransparent + +```jsonnet +panelOptions.withTransparent(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Whether to display the panel without a background. +### obj queryOptions + + +#### fn queryOptions.withDatasource + +```jsonnet +queryOptions.withDatasource(type, uid) +``` + +PARAMETERS: + +* **type** (`string`) +* **uid** (`string`) + +`withDatasource` sets the datasource for all queries in a panel. + +The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. + +#### fn queryOptions.withDatasourceMixin + +```jsonnet +queryOptions.withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +#### fn queryOptions.withHideTimeOverride + +```jsonnet +queryOptions.withHideTimeOverride(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Controls if the timeFrom or timeShift overrides are shown in the panel header +#### fn queryOptions.withInterval + +```jsonnet +queryOptions.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. +This value must be formatted as a number followed by a valid time +identifier like: "40s", "3d", etc. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withMaxDataPoints + +```jsonnet +queryOptions.withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum number of data points that the panel queries are retrieving. +#### fn queryOptions.withQueryCachingTTL + +```jsonnet +queryOptions.withQueryCachingTTL(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Overrides the data source configured time-to-live for a query cache item in milliseconds +#### fn queryOptions.withTargets + +```jsonnet +queryOptions.withTargets(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTargetsMixin + +```jsonnet +queryOptions.withTargetsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Depends on the panel plugin. See the plugin documentation for details. +#### fn queryOptions.withTimeFrom + +```jsonnet +queryOptions.withTimeFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the relative time range for individual panels, +which causes them to be different than what is selected in +the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different +time periods or days on the same dashboard. +The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), +`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTimeShift + +```jsonnet +queryOptions.withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Overrides the time range for individual panels by shifting its start and end relative to the time picker. +For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. +Note: Panel time overrides have no effect when the dashboard’s time range is absolute. +See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options +#### fn queryOptions.withTransformations + +```jsonnet +queryOptions.withTransformations(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +#### fn queryOptions.withTransformationsMixin + +```jsonnet +queryOptions.withTransformationsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of transformations that are applied to the panel data before rendering. +When there are multiple transformations, Grafana applies them in the order they are listed. +Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. +### obj standardOptions + + +#### fn standardOptions.withDecimals + +```jsonnet +standardOptions.withDecimals(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Specify the number of decimals Grafana includes in the rendered value. +If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. +For example 1.1234 will display as 1.12 and 100.456 will display as 100. +To display all decimals, set the unit to `String`. +#### fn standardOptions.withDisplayName + +```jsonnet +standardOptions.withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The display value for this field. This supports template variables blank is auto +#### fn standardOptions.withFilterable + +```jsonnet +standardOptions.withFilterable(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +True if data source field supports ad-hoc filters +#### fn standardOptions.withLinks + +```jsonnet +standardOptions.withLinks(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withLinksMixin + +```jsonnet +standardOptions.withLinksMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +The behavior when clicking on a result +#### fn standardOptions.withMappings + +```jsonnet +standardOptions.withMappings(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMappingsMixin + +```jsonnet +standardOptions.withMappingsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Convert input values into a display string +#### fn standardOptions.withMax + +```jsonnet +standardOptions.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withMin + +```jsonnet +standardOptions.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + +The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. +#### fn standardOptions.withNoValue + +```jsonnet +standardOptions.withNoValue(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alternative to empty string +#### fn standardOptions.withOverrides + +```jsonnet +standardOptions.withOverrides(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withOverridesMixin + +```jsonnet +standardOptions.withOverridesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Overrides are the options applied to specific fields overriding the defaults. +#### fn standardOptions.withPath + +```jsonnet +standardOptions.withPath(value) +``` + +PARAMETERS: + +* **value** (`string`) + +An explicit path to the field in the datasource. When the frame meta includes a path, +This will default to `${frame.meta.path}/${field.name} + +When defined, this value can be used as an identifier within the datasource scope, and +may be used to update the results +#### fn standardOptions.withUnit + +```jsonnet +standardOptions.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unit a field should use. The unit you select is applied to all fields except time. +You can use the units ID availables in Grafana or a custom unit. +Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts +As custom unit, you can use the following formats: +`suffix:` for custom unit that should go after value. +`prefix:` for custom unit that should go before value. +`time:` For custom date time formats type for example `time:YYYY-MM-DD`. +`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. +`count:` for a custom count unit. +`currency:` for custom a currency unit. +#### obj standardOptions.color + + +##### fn standardOptions.color.withFixedColor + +```jsonnet +standardOptions.color.withFixedColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The fixed color value for fixed or shades color modes. +##### fn standardOptions.color.withMode + +```jsonnet +standardOptions.color.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` + +Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. +Continuous color interpolates a color using the percentage of a value relative to min and max. +Accepted values are: +`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold +`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations +`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations +`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode +`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode +`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode +`continuous-YlRd`: Continuous Yellow-Red palette mode +`continuous-BlPu`: Continuous Blue-Purple palette mode +`continuous-YlBl`: Continuous Yellow-Blue palette mode +`continuous-blues`: Continuous Blue palette mode +`continuous-reds`: Continuous Red palette mode +`continuous-greens`: Continuous Green palette mode +`continuous-purples`: Continuous Purple palette mode +`shades`: Shades of a single color. Specify a single color, useful in an override rule. +`fixed`: Fixed color mode. Specify a single color, useful in an override rule. +##### fn standardOptions.color.withSeriesBy + +```jsonnet +standardOptions.color.withSeriesBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"min"`, `"max"`, `"last"` + +Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. +#### obj standardOptions.thresholds + + +##### fn standardOptions.thresholds.withMode + +```jsonnet +standardOptions.thresholds.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"absolute"`, `"percentage"` + +Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). +##### fn standardOptions.thresholds.withSteps + +```jsonnet +standardOptions.thresholds.withSteps(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity +##### fn standardOptions.thresholds.withStepsMixin + +```jsonnet +standardOptions.thresholds.withStepsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/options/series.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/options/series.md new file mode 100644 index 0000000..042a580 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/options/series.md @@ -0,0 +1,665 @@ +# series + + + +## Index + +* [`fn withAxisBorderShow(value=true)`](#fn-withaxisbordershow) +* [`fn withAxisCenteredZero(value=true)`](#fn-withaxiscenteredzero) +* [`fn withAxisColorMode(value)`](#fn-withaxiscolormode) +* [`fn withAxisGridShow(value=true)`](#fn-withaxisgridshow) +* [`fn withAxisLabel(value)`](#fn-withaxislabel) +* [`fn withAxisPlacement(value)`](#fn-withaxisplacement) +* [`fn withAxisSoftMax(value)`](#fn-withaxissoftmax) +* [`fn withAxisSoftMin(value)`](#fn-withaxissoftmin) +* [`fn withAxisWidth(value)`](#fn-withaxiswidth) +* [`fn withFrame(value)`](#fn-withframe) +* [`fn withHideFrom(value)`](#fn-withhidefrom) +* [`fn withHideFromMixin(value)`](#fn-withhidefrommixin) +* [`fn withLabel(value="auto")`](#fn-withlabel) +* [`fn withLabelValue(value)`](#fn-withlabelvalue) +* [`fn withLabelValueMixin(value)`](#fn-withlabelvaluemixin) +* [`fn withLineColor(value)`](#fn-withlinecolor) +* [`fn withLineColorMixin(value)`](#fn-withlinecolormixin) +* [`fn withLineStyle(value)`](#fn-withlinestyle) +* [`fn withLineStyleMixin(value)`](#fn-withlinestylemixin) +* [`fn withLineWidth(value)`](#fn-withlinewidth) +* [`fn withName(value)`](#fn-withname) +* [`fn withPointColor(value)`](#fn-withpointcolor) +* [`fn withPointColorMixin(value)`](#fn-withpointcolormixin) +* [`fn withPointSize(value)`](#fn-withpointsize) +* [`fn withPointSizeMixin(value)`](#fn-withpointsizemixin) +* [`fn withScaleDistribution(value)`](#fn-withscaledistribution) +* [`fn withScaleDistributionMixin(value)`](#fn-withscaledistributionmixin) +* [`fn withShow(value="points")`](#fn-withshow) +* [`fn withX(value)`](#fn-withx) +* [`fn withY(value)`](#fn-withy) +* [`obj hideFrom`](#obj-hidefrom) + * [`fn withLegend(value=true)`](#fn-hidefromwithlegend) + * [`fn withTooltip(value=true)`](#fn-hidefromwithtooltip) + * [`fn withViz(value=true)`](#fn-hidefromwithviz) +* [`obj labelValue`](#obj-labelvalue) + * [`fn withField(value)`](#fn-labelvaluewithfield) + * [`fn withFixed(value)`](#fn-labelvaluewithfixed) + * [`fn withMode(value)`](#fn-labelvaluewithmode) +* [`obj lineColor`](#obj-linecolor) + * [`fn withField(value)`](#fn-linecolorwithfield) + * [`fn withFixed(value)`](#fn-linecolorwithfixed) +* [`obj lineStyle`](#obj-linestyle) + * [`fn withDash(value)`](#fn-linestylewithdash) + * [`fn withDashMixin(value)`](#fn-linestylewithdashmixin) + * [`fn withFill(value)`](#fn-linestylewithfill) +* [`obj pointColor`](#obj-pointcolor) + * [`fn withField(value)`](#fn-pointcolorwithfield) + * [`fn withFixed(value)`](#fn-pointcolorwithfixed) +* [`obj pointSize`](#obj-pointsize) + * [`fn withField(value)`](#fn-pointsizewithfield) + * [`fn withFixed(value)`](#fn-pointsizewithfixed) + * [`fn withMax(value)`](#fn-pointsizewithmax) + * [`fn withMin(value)`](#fn-pointsizewithmin) + * [`fn withMode(value)`](#fn-pointsizewithmode) +* [`obj scaleDistribution`](#obj-scaledistribution) + * [`fn withLinearThreshold(value)`](#fn-scaledistributionwithlinearthreshold) + * [`fn withLog(value)`](#fn-scaledistributionwithlog) + * [`fn withType(value)`](#fn-scaledistributionwithtype) + +## Fields + +### fn withAxisBorderShow + +```jsonnet +withAxisBorderShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withAxisCenteredZero + +```jsonnet +withAxisCenteredZero(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withAxisColorMode + +```jsonnet +withAxisColorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"text"`, `"series"` + +TODO docs +### fn withAxisGridShow + +```jsonnet +withAxisGridShow(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withAxisLabel + +```jsonnet +withAxisLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withAxisPlacement + +```jsonnet +withAxisPlacement(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` + +TODO docs +### fn withAxisSoftMax + +```jsonnet +withAxisSoftMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withAxisSoftMin + +```jsonnet +withAxisSoftMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withAxisWidth + +```jsonnet +withAxisWidth(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withFrame + +```jsonnet +withFrame(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withHideFrom + +```jsonnet +withHideFrom(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +### fn withHideFromMixin + +```jsonnet +withHideFromMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +### fn withLabel + +```jsonnet +withLabel(value="auto") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"auto"` + - valid values: `"auto"`, `"never"`, `"always"` + +TODO docs +### fn withLabelValue + +```jsonnet +withLabelValue(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withLabelValueMixin + +```jsonnet +withLabelValueMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withLineColor + +```jsonnet +withLineColor(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withLineColorMixin + +```jsonnet +withLineColorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withLineStyle + +```jsonnet +withLineStyle(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +### fn withLineStyleMixin + +```jsonnet +withLineStyleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +### fn withLineWidth + +```jsonnet +withLineWidth(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withPointColor + +```jsonnet +withPointColor(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withPointColorMixin + +```jsonnet +withPointColorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withPointSize + +```jsonnet +withPointSize(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withPointSizeMixin + +```jsonnet +withPointSizeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withScaleDistribution + +```jsonnet +withScaleDistribution(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +### fn withScaleDistributionMixin + +```jsonnet +withScaleDistributionMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TODO docs +### fn withShow + +```jsonnet +withShow(value="points") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"points"` + - valid values: `"points"`, `"lines"`, `"points+lines"` + + +### fn withX + +```jsonnet +withX(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withY + +```jsonnet +withY(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj hideFrom + + +#### fn hideFrom.withLegend + +```jsonnet +hideFrom.withLegend(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn hideFrom.withTooltip + +```jsonnet +hideFrom.withTooltip(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn hideFrom.withViz + +```jsonnet +hideFrom.withViz(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj labelValue + + +#### fn labelValue.withField + +```jsonnet +labelValue.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +#### fn labelValue.withFixed + +```jsonnet +labelValue.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn labelValue.withMode + +```jsonnet +labelValue.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"fixed"`, `"field"`, `"template"` + + +### obj lineColor + + +#### fn lineColor.withField + +```jsonnet +lineColor.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +#### fn lineColor.withFixed + +```jsonnet +lineColor.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + +color value +### obj lineStyle + + +#### fn lineStyle.withDash + +```jsonnet +lineStyle.withDash(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn lineStyle.withDashMixin + +```jsonnet +lineStyle.withDashMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn lineStyle.withFill + +```jsonnet +lineStyle.withFill(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` + + +### obj pointColor + + +#### fn pointColor.withField + +```jsonnet +pointColor.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +#### fn pointColor.withFixed + +```jsonnet +pointColor.withFixed(value) +``` + +PARAMETERS: + +* **value** (`string`) + +color value +### obj pointSize + + +#### fn pointSize.withField + +```jsonnet +pointSize.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +fixed: T -- will be added by each element +#### fn pointSize.withFixed + +```jsonnet +pointSize.withFixed(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn pointSize.withMax + +```jsonnet +pointSize.withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn pointSize.withMin + +```jsonnet +pointSize.withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn pointSize.withMode + +```jsonnet +pointSize.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"quad"` + +| *"linear" +### obj scaleDistribution + + +#### fn scaleDistribution.withLinearThreshold + +```jsonnet +scaleDistribution.withLinearThreshold(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn scaleDistribution.withLog + +```jsonnet +scaleDistribution.withLog(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn scaleDistribution.withType + +```jsonnet +scaleDistribution.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` + +TODO docs \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/panelOptions/link.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/panelOptions/link.md new file mode 100644 index 0000000..d744fc5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/panelOptions/link.md @@ -0,0 +1,146 @@ +# link + + + +## Index + +* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) +* [`fn withIcon(value)`](#fn-withicon) +* [`fn withIncludeVars(value=true)`](#fn-withincludevars) +* [`fn withKeepTime(value=true)`](#fn-withkeeptime) +* [`fn withTags(value)`](#fn-withtags) +* [`fn withTagsMixin(value)`](#fn-withtagsmixin) +* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) +* [`fn withTitle(value)`](#fn-withtitle) +* [`fn withTooltip(value)`](#fn-withtooltip) +* [`fn withType(value)`](#fn-withtype) +* [`fn withUrl(value)`](#fn-withurl) + +## Fields + +### fn withAsDropdown + +```jsonnet +withAsDropdown(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards +### fn withIcon + +```jsonnet +withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon name to be displayed with the link +### fn withIncludeVars + +```jsonnet +withIncludeVars(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current template variables values in the link as query params +### fn withKeepTime + +```jsonnet +withKeepTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, includes current time range in the link as query params +### fn withTags + +```jsonnet +withTags(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTagsMixin + +```jsonnet +withTagsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards +### fn withTargetBlank + +```jsonnet +withTargetBlank(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If true, the link will be opened in a new tab +### fn withTitle + +```jsonnet +withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Title to display with the link +### fn withTooltip + +```jsonnet +withTooltip(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Tooltip to display when the user hovers their mouse over it +### fn withType + +```jsonnet +withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"link"`, `"dashboards"` + +Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) +### fn withUrl + +```jsonnet +withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/queryOptions/transformation.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/queryOptions/transformation.md new file mode 100644 index 0000000..69dda9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/queryOptions/transformation.md @@ -0,0 +1,140 @@ +# transformation + + + +## Index + +* [`fn withDisabled(value=true)`](#fn-withdisabled) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilterMixin(value)`](#fn-withfiltermixin) +* [`fn withId(value)`](#fn-withid) +* [`fn withOptions(value)`](#fn-withoptions) +* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) +* [`fn withTopic(value)`](#fn-withtopic) +* [`obj filter`](#obj-filter) + * [`fn withId(value="")`](#fn-filterwithid) + * [`fn withOptions(value)`](#fn-filterwithoptions) + * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) + +## Fields + +### fn withDisabled + +```jsonnet +withDisabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Disabled transformations are skipped +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withFilterMixin + +```jsonnet +withFilterMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. +It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Unique identifier of transformer +### fn withOptions + +```jsonnet +withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withOptionsMixin + +```jsonnet +withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Options to be passed to the transformer +Valid options depend on the transformer id +### fn withTopic + +```jsonnet +withTopic(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"series"`, `"annotations"`, `"alertStates"` + +Where to pull DataFrames from as input to transformation +### obj filter + + +#### fn filter.withId + +```jsonnet +filter.withId(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + +The matcher id. This is used to find the matcher implementation from registry. +#### fn filter.withOptions + +```jsonnet +filter.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. +#### fn filter.withOptionsMixin + +```jsonnet +filter.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/mapping.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/mapping.md new file mode 100644 index 0000000..196c769 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/mapping.md @@ -0,0 +1,445 @@ +# mapping + + + +## Index + +* [`obj RangeMap`](#obj-rangemap) + * [`fn withOptions(value)`](#fn-rangemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) + * [`fn withType()`](#fn-rangemapwithtype) + * [`obj options`](#obj-rangemapoptions) + * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) + * [`fn withResult(value)`](#fn-rangemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) + * [`fn withTo(value)`](#fn-rangemapoptionswithto) + * [`obj result`](#obj-rangemapoptionsresult) + * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) +* [`obj RegexMap`](#obj-regexmap) + * [`fn withOptions(value)`](#fn-regexmapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) + * [`fn withType()`](#fn-regexmapwithtype) + * [`obj options`](#obj-regexmapoptions) + * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) + * [`fn withResult(value)`](#fn-regexmapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) + * [`obj result`](#obj-regexmapoptionsresult) + * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) + * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) +* [`obj SpecialValueMap`](#obj-specialvaluemap) + * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) + * [`fn withType()`](#fn-specialvaluemapwithtype) + * [`obj options`](#obj-specialvaluemapoptions) + * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) + * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) + * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) + * [`obj result`](#obj-specialvaluemapoptionsresult) + * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) + * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) + * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) + * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) +* [`obj ValueMap`](#obj-valuemap) + * [`fn withOptions(value)`](#fn-valuemapwithoptions) + * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) + * [`fn withType()`](#fn-valuemapwithtype) + +## Fields + +### obj RangeMap + + +#### fn RangeMap.withOptions + +```jsonnet +RangeMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withOptionsMixin + +```jsonnet +RangeMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Range to match against and the result to apply when the value is within the range +#### fn RangeMap.withType + +```jsonnet +RangeMap.withType() +``` + + + +#### obj RangeMap.options + + +##### fn RangeMap.options.withFrom + +```jsonnet +RangeMap.options.withFrom(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Min value of the range. It can be null which means -Infinity +##### fn RangeMap.options.withResult + +```jsonnet +RangeMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withResultMixin + +```jsonnet +RangeMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RangeMap.options.withTo + +```jsonnet +RangeMap.options.withTo(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Max value of the range. It can be null which means +Infinity +##### obj RangeMap.options.result + + +###### fn RangeMap.options.result.withColor + +```jsonnet +RangeMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RangeMap.options.result.withIcon + +```jsonnet +RangeMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RangeMap.options.result.withIndex + +```jsonnet +RangeMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RangeMap.options.result.withText + +```jsonnet +RangeMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj RegexMap + + +#### fn RegexMap.withOptions + +```jsonnet +RegexMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withOptionsMixin + +```jsonnet +RegexMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Regular expression to match against and the result to apply when the value matches the regex +#### fn RegexMap.withType + +```jsonnet +RegexMap.withType() +``` + + + +#### obj RegexMap.options + + +##### fn RegexMap.options.withPattern + +```jsonnet +RegexMap.options.withPattern(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Regular expression to match against +##### fn RegexMap.options.withResult + +```jsonnet +RegexMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn RegexMap.options.withResultMixin + +```jsonnet +RegexMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj RegexMap.options.result + + +###### fn RegexMap.options.result.withColor + +```jsonnet +RegexMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn RegexMap.options.result.withIcon + +```jsonnet +RegexMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn RegexMap.options.result.withIndex + +```jsonnet +RegexMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn RegexMap.options.result.withText + +```jsonnet +RegexMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj SpecialValueMap + + +#### fn SpecialValueMap.withOptions + +```jsonnet +SpecialValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withOptionsMixin + +```jsonnet +SpecialValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn SpecialValueMap.withType + +```jsonnet +SpecialValueMap.withType() +``` + + + +#### obj SpecialValueMap.options + + +##### fn SpecialValueMap.options.withMatch + +```jsonnet +SpecialValueMap.options.withMatch(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` + +Special value types supported by the `SpecialValueMap` +##### fn SpecialValueMap.options.withResult + +```jsonnet +SpecialValueMap.options.withResult(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### fn SpecialValueMap.options.withResultMixin + +```jsonnet +SpecialValueMap.options.withResultMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Result used as replacement with text and color when the value matches +##### obj SpecialValueMap.options.result + + +###### fn SpecialValueMap.options.result.withColor + +```jsonnet +SpecialValueMap.options.result.withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to use when the value matches +###### fn SpecialValueMap.options.result.withIcon + +```jsonnet +SpecialValueMap.options.result.withIcon(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Icon to display when the value matches. Only specific visualizations. +###### fn SpecialValueMap.options.result.withIndex + +```jsonnet +SpecialValueMap.options.result.withIndex(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Position in the mapping array. Only used internally. +###### fn SpecialValueMap.options.result.withText + +```jsonnet +SpecialValueMap.options.result.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Text to display when the value matches +### obj ValueMap + + +#### fn ValueMap.withOptions + +```jsonnet +ValueMap.withOptions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withOptionsMixin + +```jsonnet +ValueMap.withOptionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } +#### fn ValueMap.withType + +```jsonnet +ValueMap.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/override.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/override.md new file mode 100644 index 0000000..2997ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/override.md @@ -0,0 +1,244 @@ +# override + +Overrides allow you to customize visualization settings for specific fields or +series. This is accomplished by adding an override rule that targets +a particular set of fields and that can each define multiple options. + +```jsonnet +override.byType.new('number') ++ override.byType.withPropertiesFromOptions( + panel.standardOptions.withDecimals(2) + + panel.standardOptions.withUnit('s') +) +``` + + +## Index + +* [`obj byName`](#obj-byname) + * [`fn new(value)`](#fn-bynamenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bynamewithproperty) +* [`obj byQuery`](#obj-byquery) + * [`fn new(value)`](#fn-byquerynew) + * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byquerywithproperty) +* [`obj byRegexp`](#obj-byregexp) + * [`fn new(value)`](#fn-byregexpnew) + * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) +* [`obj byType`](#obj-bytype) + * [`fn new(value)`](#fn-bytypenew) + * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-bytypewithproperty) +* [`obj byValue`](#obj-byvalue) + * [`fn new(value)`](#fn-byvaluenew) + * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) + * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) + +## Fields + +### obj byName + + +#### fn byName.new + +```jsonnet +byName.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byName`. +#### fn byName.withPropertiesFromOptions + +```jsonnet +byName.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byName.withProperty + +```jsonnet +byName.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byQuery + + +#### fn byQuery.new + +```jsonnet +byQuery.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byFrameRefID`. +#### fn byQuery.withPropertiesFromOptions + +```jsonnet +byQuery.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byQuery.withProperty + +```jsonnet +byQuery.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byRegexp + + +#### fn byRegexp.new + +```jsonnet +byRegexp.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byRegexp`. +#### fn byRegexp.withPropertiesFromOptions + +```jsonnet +byRegexp.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byRegexp.withProperty + +```jsonnet +byRegexp.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byType + + +#### fn byType.new + +```jsonnet +byType.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byType`. +#### fn byType.withPropertiesFromOptions + +```jsonnet +byType.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byType.withProperty + +```jsonnet +byType.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. + +### obj byValue + + +#### fn byValue.new + +```jsonnet +byValue.new(value) +``` + +PARAMETERS: + +* **value** (`string`) + +`new` creates a new override of type `byValue`. +#### fn byValue.withPropertiesFromOptions + +```jsonnet +byValue.withPropertiesFromOptions(options) +``` + +PARAMETERS: + +* **options** (`object`) + +`withPropertiesFromOptions` takes an object with properties that need to be +overridden. See example code above. + +#### fn byValue.withProperty + +```jsonnet +byValue.withProperty(id, value) +``` + +PARAMETERS: + +* **id** (`string`) +* **value** (`any`) + +`withProperty` adds a property that needs to be overridden. This function can +be called multiple time, adding more properties. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/threshold/step.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/threshold/step.md new file mode 100644 index 0000000..62c49ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/panel/xyChart/standardOptions/threshold/step.md @@ -0,0 +1,34 @@ +# threshold.step + + + +## Index + +* [`fn withColor(value)`](#fn-withcolor) +* [`fn withValue(value)`](#fn-withvalue) + +## Fields + +### fn withColor + +```jsonnet +withColor(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. +Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/preferences.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/preferences.md new file mode 100644 index 0000000..d780022 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/preferences.md @@ -0,0 +1,262 @@ +# preferences + +grafonnet.preferences + +## Index + +* [`fn withCookiePreferences(value)`](#fn-withcookiepreferences) +* [`fn withCookiePreferencesMixin(value)`](#fn-withcookiepreferencesmixin) +* [`fn withHomeDashboardUID(value)`](#fn-withhomedashboarduid) +* [`fn withLanguage(value)`](#fn-withlanguage) +* [`fn withNavbar(value)`](#fn-withnavbar) +* [`fn withNavbarMixin(value)`](#fn-withnavbarmixin) +* [`fn withQueryHistory(value)`](#fn-withqueryhistory) +* [`fn withQueryHistoryMixin(value)`](#fn-withqueryhistorymixin) +* [`fn withTheme(value)`](#fn-withtheme) +* [`fn withTimezone(value)`](#fn-withtimezone) +* [`fn withWeekStart(value)`](#fn-withweekstart) +* [`obj cookiePreferences`](#obj-cookiepreferences) + * [`fn withAnalytics(value)`](#fn-cookiepreferenceswithanalytics) + * [`fn withAnalyticsMixin(value)`](#fn-cookiepreferenceswithanalyticsmixin) + * [`fn withFunctional(value)`](#fn-cookiepreferenceswithfunctional) + * [`fn withFunctionalMixin(value)`](#fn-cookiepreferenceswithfunctionalmixin) + * [`fn withPerformance(value)`](#fn-cookiepreferenceswithperformance) + * [`fn withPerformanceMixin(value)`](#fn-cookiepreferenceswithperformancemixin) +* [`obj navbar`](#obj-navbar) + * [`fn withBookmarkUrls(value)`](#fn-navbarwithbookmarkurls) + * [`fn withBookmarkUrlsMixin(value)`](#fn-navbarwithbookmarkurlsmixin) +* [`obj queryHistory`](#obj-queryhistory) + * [`fn withHomeTab(value)`](#fn-queryhistorywithhometab) + +## Fields + +### fn withCookiePreferences + +```jsonnet +withCookiePreferences(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Cookie preferences +### fn withCookiePreferencesMixin + +```jsonnet +withCookiePreferencesMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Cookie preferences +### fn withHomeDashboardUID + +```jsonnet +withHomeDashboardUID(value) +``` + +PARAMETERS: + +* **value** (`string`) + +UID for the home dashboard +### fn withLanguage + +```jsonnet +withLanguage(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Selected language (beta) +### fn withNavbar + +```jsonnet +withNavbar(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Navigation preferences +### fn withNavbarMixin + +```jsonnet +withNavbarMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Navigation preferences +### fn withQueryHistory + +```jsonnet +withQueryHistory(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Explore query history preferences +### fn withQueryHistoryMixin + +```jsonnet +withQueryHistoryMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Explore query history preferences +### fn withTheme + +```jsonnet +withTheme(value) +``` + +PARAMETERS: + +* **value** (`string`) + +light, dark, empty is default +### fn withTimezone + +```jsonnet +withTimezone(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The timezone selection +TODO: this should use the timezone defined in common +### fn withWeekStart + +```jsonnet +withWeekStart(value) +``` + +PARAMETERS: + +* **value** (`string`) + +day of the week (sunday, monday, etc) +### obj cookiePreferences + + +#### fn cookiePreferences.withAnalytics + +```jsonnet +cookiePreferences.withAnalytics(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn cookiePreferences.withAnalyticsMixin + +```jsonnet +cookiePreferences.withAnalyticsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn cookiePreferences.withFunctional + +```jsonnet +cookiePreferences.withFunctional(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn cookiePreferences.withFunctionalMixin + +```jsonnet +cookiePreferences.withFunctionalMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn cookiePreferences.withPerformance + +```jsonnet +cookiePreferences.withPerformance(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn cookiePreferences.withPerformanceMixin + +```jsonnet +cookiePreferences.withPerformanceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### obj navbar + + +#### fn navbar.withBookmarkUrls + +```jsonnet +navbar.withBookmarkUrls(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn navbar.withBookmarkUrlsMixin + +```jsonnet +navbar.withBookmarkUrlsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### obj queryHistory + + +#### fn queryHistory.withHomeTab + +```jsonnet +queryHistory.withHomeTab(value) +``` + +PARAMETERS: + +* **value** (`string`) + +one of: '' | 'query' | 'starred'; \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/publicdashboard.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/publicdashboard.md similarity index 71% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/publicdashboard.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/publicdashboard.md index 2356173..9cb78fb 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/publicdashboard.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/publicdashboard.md @@ -15,48 +15,70 @@ grafonnet.publicdashboard ### fn withAccessToken -```ts +```jsonnet withAccessToken(value) ``` -Unique public access token +PARAMETERS: + +* **value** (`string`) +Unique public access token ### fn withAnnotationsEnabled -```ts +```jsonnet withAnnotationsEnabled(value=true) ``` -Flag that indicates if annotations are enabled +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +Flag that indicates if annotations are enabled ### fn withDashboardUid -```ts +```jsonnet withDashboardUid(value) ``` -Dashboard unique identifier referenced by this public dashboard +PARAMETERS: +* **value** (`string`) + +Dashboard unique identifier referenced by this public dashboard ### fn withIsEnabled -```ts +```jsonnet withIsEnabled(value=true) ``` -Flag that indicates if the public dashboard is enabled +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +Flag that indicates if the public dashboard is enabled ### fn withTimeSelectionEnabled -```ts +```jsonnet withTimeSelectionEnabled(value=true) ``` -Flag that indicates if the time range picker is enabled +PARAMETERS: +* **value** (`boolean`) + - default value: `true` + +Flag that indicates if the time range picker is enabled ### fn withUid -```ts +```jsonnet withUid(value) ``` -Unique public dashboard identifier +PARAMETERS: + +* **value** (`string`) + +Unique public dashboard identifier \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/athena.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/athena.md new file mode 100644 index 0000000..74b4153 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/athena.md @@ -0,0 +1,256 @@ +# athena + +grafonnet.query.athena + +## Index + +* [`fn withColumn(value)`](#fn-withcolumn) +* [`fn withConnectionArgs(value)`](#fn-withconnectionargs) +* [`fn withConnectionArgsMixin(value)`](#fn-withconnectionargsmixin) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withFormat(value)`](#fn-withformat) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withQueryID(value)`](#fn-withqueryid) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRawSQL(value="")`](#fn-withrawsql) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withTable(value)`](#fn-withtable) +* [`obj connectionArgs`](#obj-connectionargs) + * [`fn withCatalog(value="__default")`](#fn-connectionargswithcatalog) + * [`fn withDatabase(value="__default")`](#fn-connectionargswithdatabase) + * [`fn withRegion(value="__default")`](#fn-connectionargswithregion) + * [`fn withResultReuseEnabled(value=true)`](#fn-connectionargswithresultreuseenabled) + * [`fn withResultReuseMaxAgeInMinutes(value=60)`](#fn-connectionargswithresultreusemaxageinminutes) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) + +## Fields + +### fn withColumn + +```jsonnet +withColumn(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withConnectionArgs + +```jsonnet +withConnectionArgs(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withConnectionArgsMixin + +```jsonnet +withConnectionArgsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withDatasourceMixin + +```jsonnet +withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withFormat + +```jsonnet +withFormat(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `0`, `1`, `2` + + +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. +### fn withQueryID + +```jsonnet +withQueryID(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specify the query flavor +TODO make this required and give it a default +### fn withRawSQL + +```jsonnet +withRawSQL(value="") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `""` + + +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. +### fn withTable + +```jsonnet +withTable(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj connectionArgs + + +#### fn connectionArgs.withCatalog + +```jsonnet +connectionArgs.withCatalog(value="__default") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"__default"` + + +#### fn connectionArgs.withDatabase + +```jsonnet +connectionArgs.withDatabase(value="__default") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"__default"` + + +#### fn connectionArgs.withRegion + +```jsonnet +connectionArgs.withRegion(value="__default") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"__default"` + + +#### fn connectionArgs.withResultReuseEnabled + +```jsonnet +connectionArgs.withResultReuseEnabled(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn connectionArgs.withResultReuseMaxAgeInMinutes + +```jsonnet +connectionArgs.withResultReuseMaxAgeInMinutes(value=60) +``` + +PARAMETERS: + +* **value** (`number`) + - default value: `60` + + +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md new file mode 100644 index 0000000..43b6cf5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md @@ -0,0 +1,69 @@ +# dimensionFilters + + + +## Index + +* [`fn withDimension(value)`](#fn-withdimension) +* [`fn withFilter(value)`](#fn-withfilter) +* [`fn withFilters(value)`](#fn-withfilters) +* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) +* [`fn withOperator(value)`](#fn-withoperator) + +## Fields + +### fn withDimension + +```jsonnet +withDimension(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of Dimension to be filtered on. +### fn withFilter + +```jsonnet +withFilter(value) +``` + +PARAMETERS: + +* **value** (`string`) + +@deprecated filter is deprecated in favour of filters to support multiselect. +### fn withFilters + +```jsonnet +withFilters(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Values to match with the filter. +### fn withFiltersMixin + +```jsonnet +withFiltersMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Values to match with the filter. +### fn withOperator + +```jsonnet +withOperator(value) +``` + +PARAMETERS: + +* **value** (`string`) + +String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureMonitor/resources.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureMonitor/resources.md new file mode 100644 index 0000000..18bb633 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureMonitor/resources.md @@ -0,0 +1,68 @@ +# resources + + + +## Index + +* [`fn withMetricNamespace(value)`](#fn-withmetricnamespace) +* [`fn withRegion(value)`](#fn-withregion) +* [`fn withResourceGroup(value)`](#fn-withresourcegroup) +* [`fn withResourceName(value)`](#fn-withresourcename) +* [`fn withSubscription(value)`](#fn-withsubscription) + +## Fields + +### fn withMetricNamespace + +```jsonnet +withMetricNamespace(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withRegion + +```jsonnet +withRegion(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withResourceGroup + +```jsonnet +withResourceGroup(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withResourceName + +```jsonnet +withResourceName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withSubscription + +```jsonnet +withSubscription(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureTraces/filters.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureTraces/filters.md new file mode 100644 index 0000000..0c5c718 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/azureTraces/filters.md @@ -0,0 +1,57 @@ +# filters + + + +## Index + +* [`fn withFilters(value)`](#fn-withfilters) +* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) +* [`fn withOperation(value)`](#fn-withoperation) +* [`fn withProperty(value)`](#fn-withproperty) + +## Fields + +### fn withFilters + +```jsonnet +withFilters(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Values to filter by. +### fn withFiltersMixin + +```jsonnet +withFiltersMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Values to filter by. +### fn withOperation + +```jsonnet +withOperation(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Comparison operator to use. Either equals or not equals. +### fn withProperty + +```jsonnet +withProperty(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Property name, auto-populated based on available traces. \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/azureMonitor.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/index.md similarity index 60% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/azureMonitor.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/index.md index a65c6d3..386256b 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/azureMonitor.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/azureMonitor/index.md @@ -2,6 +2,12 @@ grafonnet.query.azureMonitor +## Subpackages + +* [azureMonitor.dimensionFilters](azureMonitor/dimensionFilters.md) +* [azureMonitor.resources](azureMonitor/resources.md) +* [azureTraces.filters](azureTraces/filters.md) + ## Index * [`fn withAzureLogAnalytics(value)`](#fn-withazureloganalytics) @@ -17,6 +23,7 @@ grafonnet.query.azureMonitor * [`fn withGrafanaTemplateVariableFnMixin(value)`](#fn-withgrafanatemplatevariablefnmixin) * [`fn withHide(value=true)`](#fn-withhide) * [`fn withNamespace(value)`](#fn-withnamespace) +* [`fn withQuery(value)`](#fn-withquery) * [`fn withQueryType(value)`](#fn-withquerytype) * [`fn withRefId(value)`](#fn-withrefid) * [`fn withRegion(value)`](#fn-withregion) @@ -26,11 +33,15 @@ grafonnet.query.azureMonitor * [`fn withSubscriptions(value)`](#fn-withsubscriptions) * [`fn withSubscriptionsMixin(value)`](#fn-withsubscriptionsmixin) * [`obj azureLogAnalytics`](#obj-azureloganalytics) + * [`fn withBasicLogsQuery(value=true)`](#fn-azureloganalyticswithbasiclogsquery) + * [`fn withDashboardTime(value=true)`](#fn-azureloganalyticswithdashboardtime) + * [`fn withIntersectTime(value=true)`](#fn-azureloganalyticswithintersecttime) * [`fn withQuery(value)`](#fn-azureloganalyticswithquery) * [`fn withResource(value)`](#fn-azureloganalyticswithresource) * [`fn withResources(value)`](#fn-azureloganalyticswithresources) * [`fn withResourcesMixin(value)`](#fn-azureloganalyticswithresourcesmixin) * [`fn withResultFormat(value)`](#fn-azureloganalyticswithresultformat) + * [`fn withTimeColumn(value)`](#fn-azureloganalyticswithtimecolumn) * [`fn withWorkspace(value)`](#fn-azureloganalyticswithworkspace) * [`obj azureMonitor`](#obj-azuremonitor) * [`fn withAggregation(value)`](#fn-azuremonitorwithaggregation) @@ -54,18 +65,6 @@ grafonnet.query.azureMonitor * [`fn withTimeGrain(value)`](#fn-azuremonitorwithtimegrain) * [`fn withTimeGrainUnit(value)`](#fn-azuremonitorwithtimegrainunit) * [`fn withTop(value)`](#fn-azuremonitorwithtop) - * [`obj dimensionFilters`](#obj-azuremonitordimensionfilters) - * [`fn withDimension(value)`](#fn-azuremonitordimensionfilterswithdimension) - * [`fn withFilter(value)`](#fn-azuremonitordimensionfilterswithfilter) - * [`fn withFilters(value)`](#fn-azuremonitordimensionfilterswithfilters) - * [`fn withFiltersMixin(value)`](#fn-azuremonitordimensionfilterswithfiltersmixin) - * [`fn withOperator(value)`](#fn-azuremonitordimensionfilterswithoperator) - * [`obj resources`](#obj-azuremonitorresources) - * [`fn withMetricNamespace(value)`](#fn-azuremonitorresourceswithmetricnamespace) - * [`fn withRegion(value)`](#fn-azuremonitorresourceswithregion) - * [`fn withResourceGroup(value)`](#fn-azuremonitorresourceswithresourcegroup) - * [`fn withResourceName(value)`](#fn-azuremonitorresourceswithresourcename) - * [`fn withSubscription(value)`](#fn-azuremonitorresourceswithsubscription) * [`obj azureResourceGraph`](#obj-azureresourcegraph) * [`fn withQuery(value)`](#fn-azureresourcegraphwithquery) * [`fn withResultFormat(value)`](#fn-azureresourcegraphwithresultformat) @@ -79,11 +78,9 @@ grafonnet.query.azureMonitor * [`fn withResultFormat(value)`](#fn-azuretraceswithresultformat) * [`fn withTraceTypes(value)`](#fn-azuretraceswithtracetypes) * [`fn withTraceTypesMixin(value)`](#fn-azuretraceswithtracetypesmixin) - * [`obj filters`](#obj-azuretracesfilters) - * [`fn withFilters(value)`](#fn-azuretracesfilterswithfilters) - * [`fn withFiltersMixin(value)`](#fn-azuretracesfilterswithfiltersmixin) - * [`fn withOperation(value)`](#fn-azuretracesfilterswithoperation) - * [`fn withProperty(value)`](#fn-azuretracesfilterswithproperty) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) * [`obj grafanaTemplateVariableFn`](#obj-grafanatemplatevariablefn) * [`fn withAppInsightsGroupByQuery(value)`](#fn-grafanatemplatevariablefnwithappinsightsgroupbyquery) * [`fn withAppInsightsGroupByQueryMixin(value)`](#fn-grafanatemplatevariablefnwithappinsightsgroupbyquerymixin) @@ -106,51 +103,51 @@ grafonnet.query.azureMonitor * [`fn withWorkspacesQuery(value)`](#fn-grafanatemplatevariablefnwithworkspacesquery) * [`fn withWorkspacesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithworkspacesquerymixin) * [`obj AppInsightsGroupByQuery`](#obj-grafanatemplatevariablefnappinsightsgroupbyquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithkind) * [`fn withMetricName(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithmetricname) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithrawquery) * [`obj AppInsightsMetricNameQuery`](#obj-grafanatemplatevariablefnappinsightsmetricnamequery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnappinsightsmetricnamequerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnappinsightsmetricnamequerywithkind) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnappinsightsmetricnamequerywithrawquery) * [`obj MetricDefinitionsQuery`](#obj-grafanatemplatevariablefnmetricdefinitionsquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithkind) * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithmetricnamespace) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithrawquery) * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithresourcegroup) * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithresourcename) * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithsubscription) * [`obj MetricNamesQuery`](#obj-grafanatemplatevariablefnmetricnamesquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnmetricnamesquerywithkind) * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithmetricnamespace) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithrawquery) * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithresourcegroup) * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithresourcename) * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithsubscription) * [`obj MetricNamespaceQuery`](#obj-grafanatemplatevariablefnmetricnamespacequery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnmetricnamespacequerywithkind) * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithmetricnamespace) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithrawquery) * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithresourcegroup) * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithresourcename) * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithsubscription) * [`obj ResourceGroupsQuery`](#obj-grafanatemplatevariablefnresourcegroupsquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnresourcegroupsquerywithkind) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithrawquery) * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithsubscription) * [`obj ResourceNamesQuery`](#obj-grafanatemplatevariablefnresourcenamesquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnresourcenamesquerywithkind) * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithmetricnamespace) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithrawquery) * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithresourcegroup) * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithsubscription) * [`obj SubscriptionsQuery`](#obj-grafanatemplatevariablefnsubscriptionsquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnsubscriptionsquerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnsubscriptionsquerywithkind) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnsubscriptionsquerywithrawquery) * [`obj UnknownQuery`](#obj-grafanatemplatevariablefnunknownquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnunknownquerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnunknownquerywithkind) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnunknownquerywithrawquery) * [`obj WorkspacesQuery`](#obj-grafanatemplatevariablefnworkspacesquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithkind) + * [`fn withKind()`](#fn-grafanatemplatevariablefnworkspacesquerywithkind) * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithrawquery) * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithsubscription) @@ -158,785 +155,977 @@ grafonnet.query.azureMonitor ### fn withAzureLogAnalytics -```ts +```jsonnet withAzureLogAnalytics(value) ``` -Azure Monitor Logs sub-query properties +PARAMETERS: +* **value** (`object`) + +Azure Monitor Logs sub-query properties ### fn withAzureLogAnalyticsMixin -```ts +```jsonnet withAzureLogAnalyticsMixin(value) ``` -Azure Monitor Logs sub-query properties +PARAMETERS: + +* **value** (`object`) +Azure Monitor Logs sub-query properties ### fn withAzureMonitor -```ts +```jsonnet withAzureMonitor(value) ``` +PARAMETERS: +* **value** (`object`) +Azure Monitor Metrics sub-query properties. ### fn withAzureMonitorMixin -```ts +```jsonnet withAzureMonitorMixin(value) ``` +PARAMETERS: +* **value** (`object`) +Azure Monitor Metrics sub-query properties. ### fn withAzureResourceGraph -```ts +```jsonnet withAzureResourceGraph(value) ``` +PARAMETERS: +* **value** (`object`) +Azure Resource Graph sub-query properties. ### fn withAzureResourceGraphMixin -```ts +```jsonnet withAzureResourceGraphMixin(value) ``` +PARAMETERS: +* **value** (`object`) +Azure Resource Graph sub-query properties. ### fn withAzureTraces -```ts +```jsonnet withAzureTraces(value) ``` -Application Insights Traces sub-query properties +PARAMETERS: + +* **value** (`object`) +Application Insights Traces sub-query properties ### fn withAzureTracesMixin -```ts +```jsonnet withAzureTracesMixin(value) ``` -Application Insights Traces sub-query properties +PARAMETERS: + +* **value** (`object`) +Application Insights Traces sub-query properties ### fn withDatasource -```ts +```jsonnet withDatasource(value) ``` -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null +PARAMETERS: + +* **value** (`string`) +Set the datasource for this query. ### fn withGrafanaTemplateVariableFn -```ts +```jsonnet withGrafanaTemplateVariableFn(value) ``` +PARAMETERS: +* **value** (`object`) +@deprecated Legacy template variable support. ### fn withGrafanaTemplateVariableFnMixin -```ts +```jsonnet withGrafanaTemplateVariableFnMixin(value) ``` +PARAMETERS: +* **value** (`object`) +@deprecated Legacy template variable support. ### fn withHide -```ts +```jsonnet withHide(value=true) ``` -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) +PARAMETERS: +* **value** (`boolean`) + - default value: `true` + +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. ### fn withNamespace -```ts +```jsonnet withNamespace(value) ``` +PARAMETERS: + +* **value** (`string`) + + +### fn withQuery + +```jsonnet +withQuery(value) +``` + +PARAMETERS: +* **value** (`string`) +Used only for exemplar queries from Prometheus ### fn withQueryType -```ts +```jsonnet withQueryType(value) ``` +PARAMETERS: + +* **value** (`string`) + Specify the query flavor TODO make this required and give it a default - ### fn withRefId -```ts +```jsonnet withRefId(value) ``` +PARAMETERS: + +* **value** (`string`) + A unique identifier for the query within the list of targets. In server side expressions, the refId is used as a variable name to identify results. By default, the UI will assign A->Z; however setting meaningful names may be useful. - ### fn withRegion -```ts +```jsonnet withRegion(value) ``` -Azure Monitor query type. -queryType: #AzureQueryType +PARAMETERS: + +* **value** (`string`) + ### fn withResource -```ts +```jsonnet withResource(value) ``` +PARAMETERS: + +* **value** (`string`) ### fn withResourceGroup -```ts +```jsonnet withResourceGroup(value) ``` -Template variables params. These exist for backwards compatiblity with legacy template variables. +PARAMETERS: + +* **value** (`string`) +Template variables params. These exist for backwards compatiblity with legacy template variables. ### fn withSubscription -```ts +```jsonnet withSubscription(value) ``` -Azure subscription containing the resource(s) to be queried. +PARAMETERS: +* **value** (`string`) + +Azure subscription containing the resource(s) to be queried. ### fn withSubscriptions -```ts +```jsonnet withSubscriptions(value) ``` -Subscriptions to be queried via Azure Resource Graph. +PARAMETERS: + +* **value** (`array`) +Subscriptions to be queried via Azure Resource Graph. ### fn withSubscriptionsMixin -```ts +```jsonnet withSubscriptionsMixin(value) ``` -Subscriptions to be queried via Azure Resource Graph. +PARAMETERS: + +* **value** (`array`) +Subscriptions to be queried via Azure Resource Graph. ### obj azureLogAnalytics +#### fn azureLogAnalytics.withBasicLogsQuery + +```jsonnet +azureLogAnalytics.withBasicLogsQuery(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If set to true the query will be run as a basic logs query +#### fn azureLogAnalytics.withDashboardTime + +```jsonnet +azureLogAnalytics.withDashboardTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If set to true the dashboard time range will be used as a filter for the query. Otherwise the query time ranges will be used. Defaults to false. +#### fn azureLogAnalytics.withIntersectTime + +```jsonnet +azureLogAnalytics.withIntersectTime(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +@deprecated Use dashboardTime instead #### fn azureLogAnalytics.withQuery -```ts -withQuery(value) +```jsonnet +azureLogAnalytics.withQuery(value) ``` -KQL query to be executed. +PARAMETERS: + +* **value** (`string`) +KQL query to be executed. #### fn azureLogAnalytics.withResource -```ts -withResource(value) +```jsonnet +azureLogAnalytics.withResource(value) ``` -@deprecated Use resources instead +PARAMETERS: +* **value** (`string`) + +@deprecated Use resources instead #### fn azureLogAnalytics.withResources -```ts -withResources(value) +```jsonnet +azureLogAnalytics.withResources(value) ``` -Array of resource URIs to be queried. +PARAMETERS: + +* **value** (`array`) +Array of resource URIs to be queried. #### fn azureLogAnalytics.withResourcesMixin -```ts -withResourcesMixin(value) +```jsonnet +azureLogAnalytics.withResourcesMixin(value) ``` -Array of resource URIs to be queried. +PARAMETERS: + +* **value** (`array`) +Array of resource URIs to be queried. #### fn azureLogAnalytics.withResultFormat -```ts -withResultFormat(value) +```jsonnet +azureLogAnalytics.withResultFormat(value) ``` +PARAMETERS: + +* **value** (`string`) + - valid values: `"table"`, `"time_series"`, `"trace"`, `"logs"` +Specifies the format results should be returned as. +#### fn azureLogAnalytics.withTimeColumn + +```jsonnet +azureLogAnalytics.withTimeColumn(value) +``` -Accepted values for `value` are "table", "time_series", "trace" +PARAMETERS: +* **value** (`string`) + +If dashboardTime is set to true this value dictates which column the time filter will be applied to. Defaults to the first tables timeSpan column, the first datetime column found, or TimeGenerated #### fn azureLogAnalytics.withWorkspace -```ts -withWorkspace(value) +```jsonnet +azureLogAnalytics.withWorkspace(value) ``` -Workspace ID. This was removed in Grafana 8, but remains for backwards compat +PARAMETERS: + +* **value** (`string`) +Workspace ID. This was removed in Grafana 8, but remains for backwards compat. ### obj azureMonitor #### fn azureMonitor.withAggregation -```ts -withAggregation(value) +```jsonnet +azureMonitor.withAggregation(value) ``` -The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric. +PARAMETERS: +* **value** (`string`) + +The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric. #### fn azureMonitor.withAlias -```ts -withAlias(value) +```jsonnet +azureMonitor.withAlias(value) ``` -Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail. +PARAMETERS: + +* **value** (`string`) +Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail. #### fn azureMonitor.withAllowedTimeGrainsMs -```ts -withAllowedTimeGrainsMs(value) +```jsonnet +azureMonitor.withAllowedTimeGrainsMs(value) ``` -Time grains that are supported by the metric. +PARAMETERS: + +* **value** (`array`) +Time grains that are supported by the metric. #### fn azureMonitor.withAllowedTimeGrainsMsMixin -```ts -withAllowedTimeGrainsMsMixin(value) +```jsonnet +azureMonitor.withAllowedTimeGrainsMsMixin(value) ``` -Time grains that are supported by the metric. +PARAMETERS: + +* **value** (`array`) +Time grains that are supported by the metric. #### fn azureMonitor.withCustomNamespace -```ts -withCustomNamespace(value) +```jsonnet +azureMonitor.withCustomNamespace(value) ``` -Used as the value for the metricNamespace property when it's different from the resource namespace. +PARAMETERS: +* **value** (`string`) + +Used as the value for the metricNamespace property when it's different from the resource namespace. #### fn azureMonitor.withDimension -```ts -withDimension(value) +```jsonnet +azureMonitor.withDimension(value) ``` -@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration +PARAMETERS: + +* **value** (`string`) +@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration #### fn azureMonitor.withDimensionFilter -```ts -withDimensionFilter(value) +```jsonnet +azureMonitor.withDimensionFilter(value) ``` -@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration +PARAMETERS: + +* **value** (`string`) +@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration #### fn azureMonitor.withDimensionFilters -```ts -withDimensionFilters(value) +```jsonnet +azureMonitor.withDimensionFilters(value) ``` -Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. +PARAMETERS: +* **value** (`array`) + +Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. #### fn azureMonitor.withDimensionFiltersMixin -```ts -withDimensionFiltersMixin(value) +```jsonnet +azureMonitor.withDimensionFiltersMixin(value) ``` -Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. +PARAMETERS: +* **value** (`array`) + +Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. #### fn azureMonitor.withMetricDefinition -```ts -withMetricDefinition(value) +```jsonnet +azureMonitor.withMetricDefinition(value) ``` -@deprecated Use metricNamespace instead +PARAMETERS: + +* **value** (`string`) +@deprecated Use metricNamespace instead #### fn azureMonitor.withMetricName -```ts -withMetricName(value) +```jsonnet +azureMonitor.withMetricName(value) ``` -The metric to query data for within the specified metricNamespace. e.g. UsedCapacity +PARAMETERS: + +* **value** (`string`) +The metric to query data for within the specified metricNamespace. e.g. UsedCapacity #### fn azureMonitor.withMetricNamespace -```ts -withMetricNamespace(value) +```jsonnet +azureMonitor.withMetricNamespace(value) ``` +PARAMETERS: + +* **value** (`string`) + metricNamespace is used as the resource type (or resource namespace). It's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts Kept the name of the variable as metricNamespace to avoid backward incompatibility issues. - #### fn azureMonitor.withRegion -```ts -withRegion(value) +```jsonnet +azureMonitor.withRegion(value) ``` -The Azure region containing the resource(s). +PARAMETERS: + +* **value** (`string`) +The Azure region containing the resource(s). #### fn azureMonitor.withResourceGroup -```ts -withResourceGroup(value) +```jsonnet +azureMonitor.withResourceGroup(value) ``` -@deprecated Use resources instead +PARAMETERS: -#### fn azureMonitor.withResourceName - -```ts -withResourceName(value) -``` +* **value** (`string`) @deprecated Use resources instead +#### fn azureMonitor.withResourceName -#### fn azureMonitor.withResourceUri - -```ts -withResourceUri(value) -``` - -@deprecated Use resourceGroup, resourceName and metricNamespace instead - -#### fn azureMonitor.withResources - -```ts -withResources(value) -``` - -Array of resource URIs to be queried. - -#### fn azureMonitor.withResourcesMixin - -```ts -withResourcesMixin(value) -``` - -Array of resource URIs to be queried. - -#### fn azureMonitor.withTimeGrain - -```ts -withTimeGrain(value) -``` - -The granularity of data points to be queried. Defaults to auto. - -#### fn azureMonitor.withTimeGrainUnit - -```ts -withTimeGrainUnit(value) -``` - -@deprecated - -#### fn azureMonitor.withTop - -```ts -withTop(value) -``` - -Maximum number of records to return. Defaults to 10. - -#### obj azureMonitor.dimensionFilters - - -##### fn azureMonitor.dimensionFilters.withDimension - -```ts -withDimension(value) -``` - -Name of Dimension to be filtered on. - -##### fn azureMonitor.dimensionFilters.withFilter - -```ts -withFilter(value) -``` - -@deprecated filter is deprecated in favour of filters to support multiselect. - -##### fn azureMonitor.dimensionFilters.withFilters - -```ts -withFilters(value) +```jsonnet +azureMonitor.withResourceName(value) ``` -Values to match with the filter. - -##### fn azureMonitor.dimensionFilters.withFiltersMixin +PARAMETERS: -```ts -withFiltersMixin(value) -``` +* **value** (`string`) -Values to match with the filter. - -##### fn azureMonitor.dimensionFilters.withOperator +@deprecated Use resources instead +#### fn azureMonitor.withResourceUri -```ts -withOperator(value) +```jsonnet +azureMonitor.withResourceUri(value) ``` -String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators. - -#### obj azureMonitor.resources +PARAMETERS: +* **value** (`string`) -##### fn azureMonitor.resources.withMetricNamespace +@deprecated Use resourceGroup, resourceName and metricNamespace instead +#### fn azureMonitor.withResources -```ts -withMetricNamespace(value) +```jsonnet +azureMonitor.withResources(value) ``` +PARAMETERS: +* **value** (`array`) -##### fn azureMonitor.resources.withRegion +Array of resource URIs to be queried. +#### fn azureMonitor.withResourcesMixin -```ts -withRegion(value) +```jsonnet +azureMonitor.withResourcesMixin(value) ``` +PARAMETERS: +* **value** (`array`) -##### fn azureMonitor.resources.withResourceGroup +Array of resource URIs to be queried. +#### fn azureMonitor.withTimeGrain -```ts -withResourceGroup(value) +```jsonnet +azureMonitor.withTimeGrain(value) ``` +PARAMETERS: +* **value** (`string`) -##### fn azureMonitor.resources.withResourceName +The granularity of data points to be queried. Defaults to auto. +#### fn azureMonitor.withTimeGrainUnit -```ts -withResourceName(value) +```jsonnet +azureMonitor.withTimeGrainUnit(value) ``` +PARAMETERS: +* **value** (`string`) -##### fn azureMonitor.resources.withSubscription +@deprecated +#### fn azureMonitor.withTop -```ts -withSubscription(value) +```jsonnet +azureMonitor.withTop(value) ``` +PARAMETERS: +* **value** (`string`) +Maximum number of records to return. Defaults to 10. ### obj azureResourceGraph #### fn azureResourceGraph.withQuery -```ts -withQuery(value) +```jsonnet +azureResourceGraph.withQuery(value) ``` -Azure Resource Graph KQL query to be executed. +PARAMETERS: + +* **value** (`string`) +Azure Resource Graph KQL query to be executed. #### fn azureResourceGraph.withResultFormat -```ts -withResultFormat(value) +```jsonnet +azureResourceGraph.withResultFormat(value) ``` -Specifies the format results should be returned as. Defaults to table. +PARAMETERS: + +* **value** (`string`) +Specifies the format results should be returned as. Defaults to table. ### obj azureTraces #### fn azureTraces.withFilters -```ts -withFilters(value) +```jsonnet +azureTraces.withFilters(value) ``` -Filters for property values. +PARAMETERS: +* **value** (`array`) + +Filters for property values. #### fn azureTraces.withFiltersMixin -```ts -withFiltersMixin(value) +```jsonnet +azureTraces.withFiltersMixin(value) ``` -Filters for property values. +PARAMETERS: +* **value** (`array`) + +Filters for property values. #### fn azureTraces.withOperationId -```ts -withOperationId(value) +```jsonnet +azureTraces.withOperationId(value) ``` -Operation ID. Used only for Traces queries. +PARAMETERS: + +* **value** (`string`) +Operation ID. Used only for Traces queries. #### fn azureTraces.withQuery -```ts -withQuery(value) +```jsonnet +azureTraces.withQuery(value) ``` -KQL query to be executed. +PARAMETERS: + +* **value** (`string`) +KQL query to be executed. #### fn azureTraces.withResources -```ts -withResources(value) +```jsonnet +azureTraces.withResources(value) ``` -Array of resource URIs to be queried. +PARAMETERS: + +* **value** (`array`) +Array of resource URIs to be queried. #### fn azureTraces.withResourcesMixin -```ts -withResourcesMixin(value) +```jsonnet +azureTraces.withResourcesMixin(value) ``` -Array of resource URIs to be queried. +PARAMETERS: + +* **value** (`array`) +Array of resource URIs to be queried. #### fn azureTraces.withResultFormat -```ts -withResultFormat(value) +```jsonnet +azureTraces.withResultFormat(value) ``` +PARAMETERS: +* **value** (`string`) + - valid values: `"table"`, `"time_series"`, `"trace"`, `"logs"` -Accepted values for `value` are "table", "time_series", "trace" - +Specifies the format results should be returned as. #### fn azureTraces.withTraceTypes -```ts -withTraceTypes(value) +```jsonnet +azureTraces.withTraceTypes(value) ``` -Types of events to filter by. +PARAMETERS: -#### fn azureTraces.withTraceTypesMixin - -```ts -withTraceTypesMixin(value) -``` +* **value** (`array`) Types of events to filter by. +#### fn azureTraces.withTraceTypesMixin -#### obj azureTraces.filters - - -##### fn azureTraces.filters.withFilters - -```ts -withFilters(value) +```jsonnet +azureTraces.withTraceTypesMixin(value) ``` -Values to filter by. +PARAMETERS: -##### fn azureTraces.filters.withFiltersMixin +* **value** (`array`) -```ts -withFiltersMixin(value) -``` +Types of events to filter by. +### obj datasource -Values to filter by. -##### fn azureTraces.filters.withOperation +#### fn datasource.withType -```ts -withOperation(value) +```jsonnet +datasource.withType(value) ``` -Comparison operator to use. Either equals or not equals. +PARAMETERS: + +* **value** (`string`) -##### fn azureTraces.filters.withProperty +The plugin type-id +#### fn datasource.withUid -```ts -withProperty(value) +```jsonnet +datasource.withUid(value) ``` -Property name, auto-populated based on available traces. +PARAMETERS: + +* **value** (`string`) +Specific datasource instance ### obj grafanaTemplateVariableFn #### fn grafanaTemplateVariableFn.withAppInsightsGroupByQuery -```ts -withAppInsightsGroupByQuery(value) +```jsonnet +grafanaTemplateVariableFn.withAppInsightsGroupByQuery(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withAppInsightsGroupByQueryMixin -```ts -withAppInsightsGroupByQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withAppInsightsGroupByQueryMixin(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withAppInsightsMetricNameQuery -```ts -withAppInsightsMetricNameQuery(value) +```jsonnet +grafanaTemplateVariableFn.withAppInsightsMetricNameQuery(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withAppInsightsMetricNameQueryMixin -```ts -withAppInsightsMetricNameQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withAppInsightsMetricNameQueryMixin(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withMetricDefinitionsQuery -```ts -withMetricDefinitionsQuery(value) +```jsonnet +grafanaTemplateVariableFn.withMetricDefinitionsQuery(value) ``` -@deprecated Use MetricNamespaceQuery instead +PARAMETERS: +* **value** (`object`) + +@deprecated Use MetricNamespaceQuery instead #### fn grafanaTemplateVariableFn.withMetricDefinitionsQueryMixin -```ts -withMetricDefinitionsQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withMetricDefinitionsQueryMixin(value) ``` -@deprecated Use MetricNamespaceQuery instead +PARAMETERS: + +* **value** (`object`) +@deprecated Use MetricNamespaceQuery instead #### fn grafanaTemplateVariableFn.withMetricNamesQuery -```ts -withMetricNamesQuery(value) +```jsonnet +grafanaTemplateVariableFn.withMetricNamesQuery(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withMetricNamesQueryMixin -```ts -withMetricNamesQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withMetricNamesQueryMixin(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withMetricNamespaceQuery -```ts -withMetricNamespaceQuery(value) +```jsonnet +grafanaTemplateVariableFn.withMetricNamespaceQuery(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withMetricNamespaceQueryMixin -```ts -withMetricNamespaceQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withMetricNamespaceQueryMixin(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withResourceGroupsQuery -```ts -withResourceGroupsQuery(value) +```jsonnet +grafanaTemplateVariableFn.withResourceGroupsQuery(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withResourceGroupsQueryMixin -```ts -withResourceGroupsQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withResourceGroupsQueryMixin(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withResourceNamesQuery -```ts -withResourceNamesQuery(value) +```jsonnet +grafanaTemplateVariableFn.withResourceNamesQuery(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withResourceNamesQueryMixin -```ts -withResourceNamesQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withResourceNamesQueryMixin(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withSubscriptionsQuery -```ts -withSubscriptionsQuery(value) +```jsonnet +grafanaTemplateVariableFn.withSubscriptionsQuery(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withSubscriptionsQueryMixin -```ts -withSubscriptionsQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withSubscriptionsQueryMixin(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withUnknownQuery -```ts -withUnknownQuery(value) +```jsonnet +grafanaTemplateVariableFn.withUnknownQuery(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withUnknownQueryMixin -```ts -withUnknownQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withUnknownQueryMixin(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withWorkspacesQuery -```ts -withWorkspacesQuery(value) +```jsonnet +grafanaTemplateVariableFn.withWorkspacesQuery(value) ``` +PARAMETERS: + +* **value** (`object`) #### fn grafanaTemplateVariableFn.withWorkspacesQueryMixin -```ts -withWorkspacesQueryMixin(value) +```jsonnet +grafanaTemplateVariableFn.withWorkspacesQueryMixin(value) ``` +PARAMETERS: + +* **value** (`object`) #### obj grafanaTemplateVariableFn.AppInsightsGroupByQuery @@ -944,28 +1133,32 @@ withWorkspacesQueryMixin(value) ##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.AppInsightsGroupByQuery.withKind() ``` -Accepted values for `value` are "AppInsightsGroupByQuery" - ##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withMetricName -```ts -withMetricName(value) +```jsonnet +grafanaTemplateVariableFn.AppInsightsGroupByQuery.withMetricName(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.AppInsightsGroupByQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) #### obj grafanaTemplateVariableFn.AppInsightsMetricNameQuery @@ -973,20 +1166,21 @@ withRawQuery(value) ##### fn grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withKind() ``` -Accepted values for `value` are "AppInsightsMetricNameQuery" - ##### fn grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) #### obj grafanaTemplateVariableFn.MetricDefinitionsQuery @@ -994,52 +1188,65 @@ withRawQuery(value) ##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.MetricDefinitionsQuery.withKind() ``` -Accepted values for `value` are "MetricDefinitionsQuery" - ##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withMetricNamespace -```ts -withMetricNamespace(value) +```jsonnet +grafanaTemplateVariableFn.MetricDefinitionsQuery.withMetricNamespace(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.MetricDefinitionsQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceGroup -```ts -withResourceGroup(value) +```jsonnet +grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceGroup(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceName -```ts -withResourceName(value) +```jsonnet +grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceName(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withSubscription -```ts -withSubscription(value) +```jsonnet +grafanaTemplateVariableFn.MetricDefinitionsQuery.withSubscription(value) ``` +PARAMETERS: + +* **value** (`string`) #### obj grafanaTemplateVariableFn.MetricNamesQuery @@ -1047,52 +1254,65 @@ withSubscription(value) ##### fn grafanaTemplateVariableFn.MetricNamesQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamesQuery.withKind() ``` -Accepted values for `value` are "MetricNamesQuery" - ##### fn grafanaTemplateVariableFn.MetricNamesQuery.withMetricNamespace -```ts -withMetricNamespace(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamesQuery.withMetricNamespace(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricNamesQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamesQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricNamesQuery.withResourceGroup -```ts -withResourceGroup(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamesQuery.withResourceGroup(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricNamesQuery.withResourceName -```ts -withResourceName(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamesQuery.withResourceName(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricNamesQuery.withSubscription -```ts -withSubscription(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamesQuery.withSubscription(value) ``` +PARAMETERS: + +* **value** (`string`) #### obj grafanaTemplateVariableFn.MetricNamespaceQuery @@ -1100,52 +1320,65 @@ withSubscription(value) ##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamespaceQuery.withKind() ``` -Accepted values for `value` are "MetricNamespaceQuery" - ##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withMetricNamespace -```ts -withMetricNamespace(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamespaceQuery.withMetricNamespace(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamespaceQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceGroup -```ts -withResourceGroup(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceGroup(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceName -```ts -withResourceName(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceName(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withSubscription -```ts -withSubscription(value) +```jsonnet +grafanaTemplateVariableFn.MetricNamespaceQuery.withSubscription(value) ``` +PARAMETERS: + +* **value** (`string`) #### obj grafanaTemplateVariableFn.ResourceGroupsQuery @@ -1153,28 +1386,32 @@ withSubscription(value) ##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.ResourceGroupsQuery.withKind() ``` -Accepted values for `value` are "ResourceGroupsQuery" - ##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.ResourceGroupsQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withSubscription -```ts -withSubscription(value) +```jsonnet +grafanaTemplateVariableFn.ResourceGroupsQuery.withSubscription(value) ``` +PARAMETERS: + +* **value** (`string`) #### obj grafanaTemplateVariableFn.ResourceNamesQuery @@ -1182,44 +1419,54 @@ withSubscription(value) ##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.ResourceNamesQuery.withKind() ``` -Accepted values for `value` are "ResourceNamesQuery" - ##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withMetricNamespace -```ts -withMetricNamespace(value) +```jsonnet +grafanaTemplateVariableFn.ResourceNamesQuery.withMetricNamespace(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.ResourceNamesQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withResourceGroup -```ts -withResourceGroup(value) +```jsonnet +grafanaTemplateVariableFn.ResourceNamesQuery.withResourceGroup(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withSubscription -```ts -withSubscription(value) +```jsonnet +grafanaTemplateVariableFn.ResourceNamesQuery.withSubscription(value) ``` +PARAMETERS: + +* **value** (`string`) #### obj grafanaTemplateVariableFn.SubscriptionsQuery @@ -1227,20 +1474,21 @@ withSubscription(value) ##### fn grafanaTemplateVariableFn.SubscriptionsQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.SubscriptionsQuery.withKind() ``` -Accepted values for `value` are "SubscriptionsQuery" - ##### fn grafanaTemplateVariableFn.SubscriptionsQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.SubscriptionsQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) #### obj grafanaTemplateVariableFn.UnknownQuery @@ -1248,20 +1496,21 @@ withRawQuery(value) ##### fn grafanaTemplateVariableFn.UnknownQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.UnknownQuery.withKind() ``` -Accepted values for `value` are "UnknownQuery" - ##### fn grafanaTemplateVariableFn.UnknownQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.UnknownQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) #### obj grafanaTemplateVariableFn.WorkspacesQuery @@ -1269,26 +1518,30 @@ withRawQuery(value) ##### fn grafanaTemplateVariableFn.WorkspacesQuery.withKind -```ts -withKind(value) +```jsonnet +grafanaTemplateVariableFn.WorkspacesQuery.withKind() ``` -Accepted values for `value` are "WorkspacesQuery" - ##### fn grafanaTemplateVariableFn.WorkspacesQuery.withRawQuery -```ts -withRawQuery(value) +```jsonnet +grafanaTemplateVariableFn.WorkspacesQuery.withRawQuery(value) ``` +PARAMETERS: + +* **value** (`string`) ##### fn grafanaTemplateVariableFn.WorkspacesQuery.withSubscription -```ts -withSubscription(value) +```jsonnet +grafanaTemplateVariableFn.WorkspacesQuery.withSubscription(value) ``` +PARAMETERS: + +* **value** (`string`) diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/index.md new file mode 100644 index 0000000..41482bb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/index.md @@ -0,0 +1,507 @@ +# bigquery + +grafonnet.query.bigquery + +## Subpackages + +* [sql.columns](sql/columns/index.md) +* [sql.groupBy](sql/groupBy.md) + +## Index + +* [`fn withConvertToUTC(value=true)`](#fn-withconverttoutc) +* [`fn withDataset(value)`](#fn-withdataset) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withEditorMode(value)`](#fn-witheditormode) +* [`fn withFormat(value)`](#fn-withformat) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withLocation(value)`](#fn-withlocation) +* [`fn withPartitioned(value=true)`](#fn-withpartitioned) +* [`fn withPartitionedField(value)`](#fn-withpartitionedfield) +* [`fn withProject(value)`](#fn-withproject) +* [`fn withQueryPriority(value)`](#fn-withquerypriority) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRawQuery(value=true)`](#fn-withrawquery) +* [`fn withRawSql(value)`](#fn-withrawsql) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withSharded(value=true)`](#fn-withsharded) +* [`fn withSql(value)`](#fn-withsql) +* [`fn withSqlMixin(value)`](#fn-withsqlmixin) +* [`fn withTable(value)`](#fn-withtable) +* [`fn withTimeShift(value)`](#fn-withtimeshift) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj sql`](#obj-sql) + * [`fn withColumns(value)`](#fn-sqlwithcolumns) + * [`fn withColumnsMixin(value)`](#fn-sqlwithcolumnsmixin) + * [`fn withFrom(value)`](#fn-sqlwithfrom) + * [`fn withGroupBy(value)`](#fn-sqlwithgroupby) + * [`fn withGroupByMixin(value)`](#fn-sqlwithgroupbymixin) + * [`fn withLimit(value)`](#fn-sqlwithlimit) + * [`fn withOffset(value)`](#fn-sqlwithoffset) + * [`fn withOrderBy(value)`](#fn-sqlwithorderby) + * [`fn withOrderByDirection(value)`](#fn-sqlwithorderbydirection) + * [`fn withOrderByMixin(value)`](#fn-sqlwithorderbymixin) + * [`fn withWhereString(value)`](#fn-sqlwithwherestring) + * [`obj orderBy`](#obj-sqlorderby) + * [`fn withProperty(value)`](#fn-sqlorderbywithproperty) + * [`fn withPropertyMixin(value)`](#fn-sqlorderbywithpropertymixin) + * [`fn withType()`](#fn-sqlorderbywithtype) + * [`obj property`](#obj-sqlorderbyproperty) + * [`fn withName(value)`](#fn-sqlorderbypropertywithname) + * [`fn withType(value)`](#fn-sqlorderbypropertywithtype) + +## Fields + +### fn withConvertToUTC + +```jsonnet +withConvertToUTC(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withDataset + +```jsonnet +withDataset(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withDatasourceMixin + +```jsonnet +withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withEditorMode + +```jsonnet +withEditorMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"code"`, `"builder"` + + +### fn withFormat + +```jsonnet +withFormat(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `0`, `1` + + +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. +### fn withLocation + +```jsonnet +withLocation(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withPartitioned + +```jsonnet +withPartitioned(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withPartitionedField + +```jsonnet +withPartitionedField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withProject + +```jsonnet +withProject(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withQueryPriority + +```jsonnet +withQueryPriority(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"INTERACTIVE"`, `"BATCH"` + + +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specify the query flavor +TODO make this required and give it a default +### fn withRawQuery + +```jsonnet +withRawQuery(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withRawSql + +```jsonnet +withRawSql(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. +### fn withSharded + +```jsonnet +withSharded(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withSql + +```jsonnet +withSql(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withSqlMixin + +```jsonnet +withSqlMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withTable + +```jsonnet +withTable(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withTimeShift + +```jsonnet +withTimeShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +### obj sql + + +#### fn sql.withColumns + +```jsonnet +sql.withColumns(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn sql.withColumnsMixin + +```jsonnet +sql.withColumnsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn sql.withFrom + +```jsonnet +sql.withFrom(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn sql.withGroupBy + +```jsonnet +sql.withGroupBy(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn sql.withGroupByMixin + +```jsonnet +sql.withGroupByMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn sql.withLimit + +```jsonnet +sql.withLimit(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +#### fn sql.withOffset + +```jsonnet +sql.withOffset(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +#### fn sql.withOrderBy + +```jsonnet +sql.withOrderBy(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn sql.withOrderByDirection + +```jsonnet +sql.withOrderByDirection(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"ASC"`, `"DESC"` + + +#### fn sql.withOrderByMixin + +```jsonnet +sql.withOrderByMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn sql.withWhereString + +```jsonnet +sql.withWhereString(value) +``` + +PARAMETERS: + +* **value** (`string`) + +whereJsonTree?: _ +#### obj sql.orderBy + + +##### fn sql.orderBy.withProperty + +```jsonnet +sql.orderBy.withProperty(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn sql.orderBy.withPropertyMixin + +```jsonnet +sql.orderBy.withPropertyMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn sql.orderBy.withType + +```jsonnet +sql.orderBy.withType() +``` + + + +##### obj sql.orderBy.property + + +###### fn sql.orderBy.property.withName + +```jsonnet +sql.orderBy.property.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn sql.orderBy.property.withType + +```jsonnet +sql.orderBy.property.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"string"` + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/columns/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/columns/index.md new file mode 100644 index 0000000..fe30b54 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/columns/index.md @@ -0,0 +1,57 @@ +# columns + + + +## Subpackages + +* [parameters](parameters.md) + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withParameters(value)`](#fn-withparameters) +* [`fn withParametersMixin(value)`](#fn-withparametersmixin) +* [`fn withType()`](#fn-withtype) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withParameters + +```jsonnet +withParameters(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withParametersMixin + +```jsonnet +withParametersMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withType + +```jsonnet +withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/columns/parameters.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/columns/parameters.md new file mode 100644 index 0000000..d2fb19d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/columns/parameters.md @@ -0,0 +1,29 @@ +# parameters + + + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withType()`](#fn-withtype) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withType + +```jsonnet +withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/groupBy.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/groupBy.md new file mode 100644 index 0000000..d189eb5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/bigquery/sql/groupBy.md @@ -0,0 +1,70 @@ +# groupBy + + + +## Index + +* [`fn withProperty(value)`](#fn-withproperty) +* [`fn withPropertyMixin(value)`](#fn-withpropertymixin) +* [`fn withType()`](#fn-withtype) +* [`obj property`](#obj-property) + * [`fn withName(value)`](#fn-propertywithname) + * [`fn withType(value)`](#fn-propertywithtype) + +## Fields + +### fn withProperty + +```jsonnet +withProperty(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withPropertyMixin + +```jsonnet +withPropertyMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withType + +```jsonnet +withType() +``` + + + +### obj property + + +#### fn property.withName + +```jsonnet +property.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn property.withType + +```jsonnet +property.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"string"` + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md new file mode 100644 index 0000000..a59d777 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md @@ -0,0 +1,57 @@ +# logGroups + + + +## Index + +* [`fn withAccountId(value)`](#fn-withaccountid) +* [`fn withAccountLabel(value)`](#fn-withaccountlabel) +* [`fn withArn(value)`](#fn-witharn) +* [`fn withName(value)`](#fn-withname) + +## Fields + +### fn withAccountId + +```jsonnet +withAccountId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +AccountId of the log group +### fn withAccountLabel + +```jsonnet +withAccountLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Label of the log group +### fn withArn + +```jsonnet +withArn(value) +``` + +PARAMETERS: + +* **value** (`string`) + +ARN of the log group +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of the log group \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md new file mode 100644 index 0000000..d2fb19d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md @@ -0,0 +1,29 @@ +# parameters + + + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withType()`](#fn-withtype) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withType + +```jsonnet +withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md new file mode 100644 index 0000000..d2fb19d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md @@ -0,0 +1,29 @@ +# parameters + + + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withType()`](#fn-withtype) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withType + +```jsonnet +withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md new file mode 100644 index 0000000..d2fb19d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md @@ -0,0 +1,29 @@ +# parameters + + + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withType()`](#fn-withtype) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withType + +```jsonnet +withType() +``` + + diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/cloudWatch.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/index.md similarity index 58% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/cloudWatch.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/index.md index 563cc1a..9f407a8 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/cloudWatch.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/cloudWatch/index.md @@ -2,6 +2,13 @@ grafonnet.query.cloudWatch +## Subpackages + +* [CloudWatchLogsQuery.logGroups](CloudWatchLogsQuery/logGroups.md) +* [CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.parameters](CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md) +* [CloudWatchMetricsQuery.sql.orderBy.parameters](CloudWatchMetricsQuery/sql/orderBy/parameters.md) +* [CloudWatchMetricsQuery.sql.select.parameters](CloudWatchMetricsQuery/sql/select/parameters.md) + ## Index * [`obj CloudWatchAnnotationQuery`](#obj-cloudwatchannotationquery) @@ -17,13 +24,16 @@ grafonnet.query.cloudWatch * [`fn withNamespace(value)`](#fn-cloudwatchannotationquerywithnamespace) * [`fn withPeriod(value)`](#fn-cloudwatchannotationquerywithperiod) * [`fn withPrefixMatching(value=true)`](#fn-cloudwatchannotationquerywithprefixmatching) - * [`fn withQueryMode(value)`](#fn-cloudwatchannotationquerywithquerymode) + * [`fn withQueryMode(value="Annotations")`](#fn-cloudwatchannotationquerywithquerymode) * [`fn withQueryType(value)`](#fn-cloudwatchannotationquerywithquerytype) * [`fn withRefId(value)`](#fn-cloudwatchannotationquerywithrefid) * [`fn withRegion(value)`](#fn-cloudwatchannotationquerywithregion) * [`fn withStatistic(value)`](#fn-cloudwatchannotationquerywithstatistic) * [`fn withStatistics(value)`](#fn-cloudwatchannotationquerywithstatistics) * [`fn withStatisticsMixin(value)`](#fn-cloudwatchannotationquerywithstatisticsmixin) + * [`obj datasource`](#obj-cloudwatchannotationquerydatasource) + * [`fn withType(value)`](#fn-cloudwatchannotationquerydatasourcewithtype) + * [`fn withUid(value)`](#fn-cloudwatchannotationquerydatasourcewithuid) * [`obj CloudWatchLogsQuery`](#obj-cloudwatchlogsquery) * [`fn withDatasource(value)`](#fn-cloudwatchlogsquerywithdatasource) * [`fn withExpression(value)`](#fn-cloudwatchlogsquerywithexpression) @@ -33,17 +43,16 @@ grafonnet.query.cloudWatch * [`fn withLogGroupNamesMixin(value)`](#fn-cloudwatchlogsquerywithloggroupnamesmixin) * [`fn withLogGroups(value)`](#fn-cloudwatchlogsquerywithloggroups) * [`fn withLogGroupsMixin(value)`](#fn-cloudwatchlogsquerywithloggroupsmixin) - * [`fn withQueryMode(value)`](#fn-cloudwatchlogsquerywithquerymode) + * [`fn withQueryLanguage(value)`](#fn-cloudwatchlogsquerywithquerylanguage) + * [`fn withQueryMode(value="Logs")`](#fn-cloudwatchlogsquerywithquerymode) * [`fn withQueryType(value)`](#fn-cloudwatchlogsquerywithquerytype) * [`fn withRefId(value)`](#fn-cloudwatchlogsquerywithrefid) * [`fn withRegion(value)`](#fn-cloudwatchlogsquerywithregion) * [`fn withStatsGroups(value)`](#fn-cloudwatchlogsquerywithstatsgroups) * [`fn withStatsGroupsMixin(value)`](#fn-cloudwatchlogsquerywithstatsgroupsmixin) - * [`obj logGroups`](#obj-cloudwatchlogsqueryloggroups) - * [`fn withAccountId(value)`](#fn-cloudwatchlogsqueryloggroupswithaccountid) - * [`fn withAccountLabel(value)`](#fn-cloudwatchlogsqueryloggroupswithaccountlabel) - * [`fn withArn(value)`](#fn-cloudwatchlogsqueryloggroupswitharn) - * [`fn withName(value)`](#fn-cloudwatchlogsqueryloggroupswithname) + * [`obj datasource`](#obj-cloudwatchlogsquerydatasource) + * [`fn withType(value)`](#fn-cloudwatchlogsquerydatasourcewithtype) + * [`fn withUid(value)`](#fn-cloudwatchlogsquerydatasourcewithuid) * [`obj CloudWatchMetricsQuery`](#obj-cloudwatchmetricsquery) * [`fn withAccountId(value)`](#fn-cloudwatchmetricsquerywithaccountid) * [`fn withAlias(value)`](#fn-cloudwatchmetricsquerywithalias) @@ -60,7 +69,7 @@ grafonnet.query.cloudWatch * [`fn withMetricQueryType(value)`](#fn-cloudwatchmetricsquerywithmetricquerytype) * [`fn withNamespace(value)`](#fn-cloudwatchmetricsquerywithnamespace) * [`fn withPeriod(value)`](#fn-cloudwatchmetricsquerywithperiod) - * [`fn withQueryMode(value)`](#fn-cloudwatchmetricsquerywithquerymode) + * [`fn withQueryMode(value="Metrics")`](#fn-cloudwatchmetricsquerywithquerymode) * [`fn withQueryType(value)`](#fn-cloudwatchmetricsquerywithquerytype) * [`fn withRefId(value)`](#fn-cloudwatchmetricsquerywithrefid) * [`fn withRegion(value)`](#fn-cloudwatchmetricsquerywithregion) @@ -70,6 +79,9 @@ grafonnet.query.cloudWatch * [`fn withStatistic(value)`](#fn-cloudwatchmetricsquerywithstatistic) * [`fn withStatistics(value)`](#fn-cloudwatchmetricsquerywithstatistics) * [`fn withStatisticsMixin(value)`](#fn-cloudwatchmetricsquerywithstatisticsmixin) + * [`obj datasource`](#obj-cloudwatchmetricsquerydatasource) + * [`fn withType(value)`](#fn-cloudwatchmetricsquerydatasourcewithtype) + * [`fn withUid(value)`](#fn-cloudwatchmetricsquerydatasourcewithuid) * [`obj sql`](#obj-cloudwatchmetricsquerysql) * [`fn withFrom(value)`](#fn-cloudwatchmetricsquerysqlwithfrom) * [`fn withFromMixin(value)`](#fn-cloudwatchmetricsquerysqlwithfrommixin) @@ -92,14 +104,11 @@ grafonnet.query.cloudWatch * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithname) * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithparameters) * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithparametersmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithtype) - * [`obj parameters`](#obj-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionparameters) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionparameterswithname) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionparameterswithtype) + * [`fn withType()`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithtype) * [`obj QueryEditorPropertyExpression`](#obj-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpression) * [`fn withProperty(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithproperty) * [`fn withPropertyMixin(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithpropertymixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithtype) + * [`fn withType()`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithtype) * [`obj property`](#obj-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionproperty) * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionpropertywithname) * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionpropertywithtype) @@ -111,18 +120,12 @@ grafonnet.query.cloudWatch * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlorderbywithname) * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlorderbywithparameters) * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlorderbywithparametersmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlorderbywithtype) - * [`obj parameters`](#obj-cloudwatchmetricsquerysqlorderbyparameters) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlorderbyparameterswithname) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlorderbyparameterswithtype) + * [`fn withType()`](#fn-cloudwatchmetricsquerysqlorderbywithtype) * [`obj select`](#obj-cloudwatchmetricsquerysqlselect) * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlselectwithname) * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlselectwithparameters) * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlselectwithparametersmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlselectwithtype) - * [`obj parameters`](#obj-cloudwatchmetricsquerysqlselectparameters) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlselectparameterswithname) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlselectparameterswithtype) + * [`fn withType()`](#fn-cloudwatchmetricsquerysqlselectwithtype) * [`obj where`](#obj-cloudwatchmetricsquerysqlwhere) * [`fn withExpressions(value)`](#fn-cloudwatchmetricsquerysqlwherewithexpressions) * [`fn withExpressionsMixin(value)`](#fn-cloudwatchmetricsquerysqlwherewithexpressionsmixin) @@ -135,682 +138,945 @@ grafonnet.query.cloudWatch #### fn CloudWatchAnnotationQuery.withAccountId -```ts -withAccountId(value) +```jsonnet +CloudWatchAnnotationQuery.withAccountId(value) ``` -The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. +PARAMETERS: + +* **value** (`string`) +The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. #### fn CloudWatchAnnotationQuery.withActionPrefix -```ts -withActionPrefix(value) +```jsonnet +CloudWatchAnnotationQuery.withActionPrefix(value) ``` +PARAMETERS: + +* **value** (`string`) + Use this parameter to filter the results of the operation to only those alarms that use a certain alarm action. For example, you could specify the ARN of an SNS topic to find all alarms that send notifications to that topic. e.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action` but not match `arn:aws:sns:us-east-1:123456789012:your-app-action` - #### fn CloudWatchAnnotationQuery.withAlarmNamePrefix -```ts -withAlarmNamePrefix(value) +```jsonnet +CloudWatchAnnotationQuery.withAlarmNamePrefix(value) ``` +PARAMETERS: + +* **value** (`string`) + An alarm name prefix. If you specify this parameter, you receive information about all alarms that have names that start with this prefix. e.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu` - #### fn CloudWatchAnnotationQuery.withDatasource -```ts -withDatasource(value) +```jsonnet +CloudWatchAnnotationQuery.withDatasource(value) ``` -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null +PARAMETERS: + +* **value** (`string`) +Set the datasource for this query. #### fn CloudWatchAnnotationQuery.withDimensions -```ts -withDimensions(value) +```jsonnet +CloudWatchAnnotationQuery.withDimensions(value) ``` -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. +PARAMETERS: + +* **value** (`object`) +A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. #### fn CloudWatchAnnotationQuery.withDimensionsMixin -```ts -withDimensionsMixin(value) +```jsonnet +CloudWatchAnnotationQuery.withDimensionsMixin(value) ``` -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. +PARAMETERS: +* **value** (`object`) + +A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. #### fn CloudWatchAnnotationQuery.withHide -```ts -withHide(value=true) +```jsonnet +CloudWatchAnnotationQuery.withHide(value=true) ``` -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) +PARAMETERS: +* **value** (`boolean`) + - default value: `true` + +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. #### fn CloudWatchAnnotationQuery.withMatchExact -```ts -withMatchExact(value=true) +```jsonnet +CloudWatchAnnotationQuery.withMatchExact(value=true) ``` -Only show metrics that exactly match all defined dimension names. +PARAMETERS: +* **value** (`boolean`) + - default value: `true` + +Only show metrics that exactly match all defined dimension names. #### fn CloudWatchAnnotationQuery.withMetricName -```ts -withMetricName(value) +```jsonnet +CloudWatchAnnotationQuery.withMetricName(value) ``` -Name of the metric +PARAMETERS: + +* **value** (`string`) +Name of the metric #### fn CloudWatchAnnotationQuery.withNamespace -```ts -withNamespace(value) +```jsonnet +CloudWatchAnnotationQuery.withNamespace(value) ``` -A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. +PARAMETERS: +* **value** (`string`) + +A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. #### fn CloudWatchAnnotationQuery.withPeriod -```ts -withPeriod(value) +```jsonnet +CloudWatchAnnotationQuery.withPeriod(value) ``` -The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes +PARAMETERS: + +* **value** (`string`) +The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes #### fn CloudWatchAnnotationQuery.withPrefixMatching -```ts -withPrefixMatching(value=true) +```jsonnet +CloudWatchAnnotationQuery.withPrefixMatching(value=true) ``` -Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix #### fn CloudWatchAnnotationQuery.withQueryMode -```ts -withQueryMode(value) +```jsonnet +CloudWatchAnnotationQuery.withQueryMode(value="Annotations") ``` +PARAMETERS: +* **value** (`string`) + - default value: `"Annotations"` + - valid values: `"Metrics"`, `"Logs"`, `"Annotations"` -Accepted values for `value` are "Metrics", "Logs", "Annotations" - +Whether a query is a Metrics, Logs, or Annotations query #### fn CloudWatchAnnotationQuery.withQueryType -```ts -withQueryType(value) +```jsonnet +CloudWatchAnnotationQuery.withQueryType(value) ``` +PARAMETERS: + +* **value** (`string`) + Specify the query flavor TODO make this required and give it a default - #### fn CloudWatchAnnotationQuery.withRefId -```ts -withRefId(value) +```jsonnet +CloudWatchAnnotationQuery.withRefId(value) ``` +PARAMETERS: + +* **value** (`string`) + A unique identifier for the query within the list of targets. In server side expressions, the refId is used as a variable name to identify results. By default, the UI will assign A->Z; however setting meaningful names may be useful. - #### fn CloudWatchAnnotationQuery.withRegion -```ts -withRegion(value) +```jsonnet +CloudWatchAnnotationQuery.withRegion(value) ``` -AWS region to query for the metric +PARAMETERS: + +* **value** (`string`) +AWS region to query for the metric #### fn CloudWatchAnnotationQuery.withStatistic -```ts -withStatistic(value) +```jsonnet +CloudWatchAnnotationQuery.withStatistic(value) ``` -Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. +PARAMETERS: + +* **value** (`string`) +Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. #### fn CloudWatchAnnotationQuery.withStatistics -```ts -withStatistics(value) +```jsonnet +CloudWatchAnnotationQuery.withStatistics(value) ``` -@deprecated use statistic +PARAMETERS: +* **value** (`array`) + +@deprecated use statistic #### fn CloudWatchAnnotationQuery.withStatisticsMixin -```ts -withStatisticsMixin(value) +```jsonnet +CloudWatchAnnotationQuery.withStatisticsMixin(value) ``` +PARAMETERS: + +* **value** (`array`) + @deprecated use statistic +#### obj CloudWatchAnnotationQuery.datasource + + +##### fn CloudWatchAnnotationQuery.datasource.withType + +```jsonnet +CloudWatchAnnotationQuery.datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +##### fn CloudWatchAnnotationQuery.datasource.withUid + +```jsonnet +CloudWatchAnnotationQuery.datasource.withUid(value) +``` +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance ### obj CloudWatchLogsQuery #### fn CloudWatchLogsQuery.withDatasource -```ts -withDatasource(value) +```jsonnet +CloudWatchLogsQuery.withDatasource(value) ``` -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null +PARAMETERS: +* **value** (`string`) + +Set the datasource for this query. #### fn CloudWatchLogsQuery.withExpression -```ts -withExpression(value) +```jsonnet +CloudWatchLogsQuery.withExpression(value) ``` -The CloudWatch Logs Insights query to execute +PARAMETERS: +* **value** (`string`) + +The CloudWatch Logs Insights query to execute #### fn CloudWatchLogsQuery.withHide -```ts -withHide(value=true) +```jsonnet +CloudWatchLogsQuery.withHide(value=true) ``` -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) +PARAMETERS: +* **value** (`boolean`) + - default value: `true` + +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. #### fn CloudWatchLogsQuery.withId -```ts -withId(value) +```jsonnet +CloudWatchLogsQuery.withId(value) ``` +PARAMETERS: + +* **value** (`string`) #### fn CloudWatchLogsQuery.withLogGroupNames -```ts -withLogGroupNames(value) +```jsonnet +CloudWatchLogsQuery.withLogGroupNames(value) ``` -@deprecated use logGroups +PARAMETERS: + +* **value** (`array`) +@deprecated use logGroups #### fn CloudWatchLogsQuery.withLogGroupNamesMixin -```ts -withLogGroupNamesMixin(value) +```jsonnet +CloudWatchLogsQuery.withLogGroupNamesMixin(value) ``` -@deprecated use logGroups +PARAMETERS: +* **value** (`array`) + +@deprecated use logGroups #### fn CloudWatchLogsQuery.withLogGroups -```ts -withLogGroups(value) +```jsonnet +CloudWatchLogsQuery.withLogGroups(value) ``` -Log groups to query +PARAMETERS: +* **value** (`array`) + +Log groups to query #### fn CloudWatchLogsQuery.withLogGroupsMixin -```ts -withLogGroupsMixin(value) +```jsonnet +CloudWatchLogsQuery.withLogGroupsMixin(value) ``` +PARAMETERS: + +* **value** (`array`) + Log groups to query +#### fn CloudWatchLogsQuery.withQueryLanguage + +```jsonnet +CloudWatchLogsQuery.withQueryLanguage(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"CWLI"`, `"SQL"`, `"PPL"` +Language used for querying logs, can be CWLI, SQL, or PPL. If empty, the default language is CWLI. #### fn CloudWatchLogsQuery.withQueryMode -```ts -withQueryMode(value) +```jsonnet +CloudWatchLogsQuery.withQueryMode(value="Logs") ``` +PARAMETERS: +* **value** (`string`) + - default value: `"Logs"` + - valid values: `"Metrics"`, `"Logs"`, `"Annotations"` -Accepted values for `value` are "Metrics", "Logs", "Annotations" - +Whether a query is a Metrics, Logs, or Annotations query #### fn CloudWatchLogsQuery.withQueryType -```ts -withQueryType(value) +```jsonnet +CloudWatchLogsQuery.withQueryType(value) ``` +PARAMETERS: + +* **value** (`string`) + Specify the query flavor TODO make this required and give it a default - #### fn CloudWatchLogsQuery.withRefId -```ts -withRefId(value) +```jsonnet +CloudWatchLogsQuery.withRefId(value) ``` +PARAMETERS: + +* **value** (`string`) + A unique identifier for the query within the list of targets. In server side expressions, the refId is used as a variable name to identify results. By default, the UI will assign A->Z; however setting meaningful names may be useful. - #### fn CloudWatchLogsQuery.withRegion -```ts -withRegion(value) +```jsonnet +CloudWatchLogsQuery.withRegion(value) ``` -AWS region to query for the logs +PARAMETERS: + +* **value** (`string`) +AWS region to query for the logs #### fn CloudWatchLogsQuery.withStatsGroups -```ts -withStatsGroups(value) +```jsonnet +CloudWatchLogsQuery.withStatsGroups(value) ``` -Fields to group the results by, this field is automatically populated whenever the query is updated - -#### fn CloudWatchLogsQuery.withStatsGroupsMixin +PARAMETERS: -```ts -withStatsGroupsMixin(value) -``` +* **value** (`array`) Fields to group the results by, this field is automatically populated whenever the query is updated +#### fn CloudWatchLogsQuery.withStatsGroupsMixin -#### obj CloudWatchLogsQuery.logGroups - - -##### fn CloudWatchLogsQuery.logGroups.withAccountId - -```ts -withAccountId(value) +```jsonnet +CloudWatchLogsQuery.withStatsGroupsMixin(value) ``` -AccountId of the log group +PARAMETERS: -##### fn CloudWatchLogsQuery.logGroups.withAccountLabel +* **value** (`array`) -```ts -withAccountLabel(value) -``` +Fields to group the results by, this field is automatically populated whenever the query is updated +#### obj CloudWatchLogsQuery.datasource -Label of the log group -##### fn CloudWatchLogsQuery.logGroups.withArn +##### fn CloudWatchLogsQuery.datasource.withType -```ts -withArn(value) +```jsonnet +CloudWatchLogsQuery.datasource.withType(value) ``` -ARN of the log group +PARAMETERS: + +* **value** (`string`) -##### fn CloudWatchLogsQuery.logGroups.withName +The plugin type-id +##### fn CloudWatchLogsQuery.datasource.withUid -```ts -withName(value) +```jsonnet +CloudWatchLogsQuery.datasource.withUid(value) ``` -Name of the log group +PARAMETERS: + +* **value** (`string`) +Specific datasource instance ### obj CloudWatchMetricsQuery #### fn CloudWatchMetricsQuery.withAccountId -```ts -withAccountId(value) +```jsonnet +CloudWatchMetricsQuery.withAccountId(value) ``` -The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. +PARAMETERS: + +* **value** (`string`) +The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. #### fn CloudWatchMetricsQuery.withAlias -```ts -withAlias(value) +```jsonnet +CloudWatchMetricsQuery.withAlias(value) ``` +PARAMETERS: + +* **value** (`string`) + Deprecated: use label @deprecated use label - #### fn CloudWatchMetricsQuery.withDatasource -```ts -withDatasource(value) +```jsonnet +CloudWatchMetricsQuery.withDatasource(value) ``` -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null +PARAMETERS: +* **value** (`string`) + +Set the datasource for this query. #### fn CloudWatchMetricsQuery.withDimensions -```ts -withDimensions(value) +```jsonnet +CloudWatchMetricsQuery.withDimensions(value) ``` -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. +PARAMETERS: +* **value** (`object`) + +A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. #### fn CloudWatchMetricsQuery.withDimensionsMixin -```ts -withDimensionsMixin(value) +```jsonnet +CloudWatchMetricsQuery.withDimensionsMixin(value) ``` -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. +PARAMETERS: + +* **value** (`object`) +A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. #### fn CloudWatchMetricsQuery.withExpression -```ts -withExpression(value) +```jsonnet +CloudWatchMetricsQuery.withExpression(value) ``` -Math expression query +PARAMETERS: + +* **value** (`string`) +Math expression query #### fn CloudWatchMetricsQuery.withHide -```ts -withHide(value=true) +```jsonnet +CloudWatchMetricsQuery.withHide(value=true) ``` -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. #### fn CloudWatchMetricsQuery.withId -```ts -withId(value) +```jsonnet +CloudWatchMetricsQuery.withId(value) ``` -ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter. +PARAMETERS: + +* **value** (`string`) +ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter. #### fn CloudWatchMetricsQuery.withLabel -```ts -withLabel(value) +```jsonnet +CloudWatchMetricsQuery.withLabel(value) ``` -Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details. +PARAMETERS: +* **value** (`string`) + +Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details. #### fn CloudWatchMetricsQuery.withMatchExact -```ts -withMatchExact(value=true) +```jsonnet +CloudWatchMetricsQuery.withMatchExact(value=true) ``` -Only show metrics that exactly match all defined dimension names. +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +Only show metrics that exactly match all defined dimension names. #### fn CloudWatchMetricsQuery.withMetricEditorMode -```ts -withMetricEditorMode(value) +```jsonnet +CloudWatchMetricsQuery.withMetricEditorMode(value) ``` +PARAMETERS: +* **value** (`string`) + - valid values: `0`, `1` -Accepted values for `value` are 0, 1 - +Whether to use the query builder or code editor to create the query #### fn CloudWatchMetricsQuery.withMetricName -```ts -withMetricName(value) +```jsonnet +CloudWatchMetricsQuery.withMetricName(value) ``` -Name of the metric +PARAMETERS: + +* **value** (`string`) +Name of the metric #### fn CloudWatchMetricsQuery.withMetricQueryType -```ts -withMetricQueryType(value) +```jsonnet +CloudWatchMetricsQuery.withMetricQueryType(value) ``` +PARAMETERS: +* **value** (`string`) + - valid values: `0`, `1` -Accepted values for `value` are 0, 1 - +Whether to use a metric search or metric insights query #### fn CloudWatchMetricsQuery.withNamespace -```ts -withNamespace(value) +```jsonnet +CloudWatchMetricsQuery.withNamespace(value) ``` -A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. +PARAMETERS: +* **value** (`string`) + +A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. #### fn CloudWatchMetricsQuery.withPeriod -```ts -withPeriod(value) +```jsonnet +CloudWatchMetricsQuery.withPeriod(value) ``` -The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes +PARAMETERS: + +* **value** (`string`) +The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes #### fn CloudWatchMetricsQuery.withQueryMode -```ts -withQueryMode(value) +```jsonnet +CloudWatchMetricsQuery.withQueryMode(value="Metrics") ``` +PARAMETERS: +* **value** (`string`) + - default value: `"Metrics"` + - valid values: `"Metrics"`, `"Logs"`, `"Annotations"` -Accepted values for `value` are "Metrics", "Logs", "Annotations" - +Whether a query is a Metrics, Logs, or Annotations query #### fn CloudWatchMetricsQuery.withQueryType -```ts -withQueryType(value) +```jsonnet +CloudWatchMetricsQuery.withQueryType(value) ``` +PARAMETERS: + +* **value** (`string`) + Specify the query flavor TODO make this required and give it a default - #### fn CloudWatchMetricsQuery.withRefId -```ts -withRefId(value) +```jsonnet +CloudWatchMetricsQuery.withRefId(value) ``` +PARAMETERS: + +* **value** (`string`) + A unique identifier for the query within the list of targets. In server side expressions, the refId is used as a variable name to identify results. By default, the UI will assign A->Z; however setting meaningful names may be useful. - #### fn CloudWatchMetricsQuery.withRegion -```ts -withRegion(value) +```jsonnet +CloudWatchMetricsQuery.withRegion(value) ``` -AWS region to query for the metric +PARAMETERS: +* **value** (`string`) + +AWS region to query for the metric #### fn CloudWatchMetricsQuery.withSql -```ts -withSql(value) +```jsonnet +CloudWatchMetricsQuery.withSql(value) ``` +PARAMETERS: +* **value** (`object`) +When the metric query type is set to `Insights` and the `metricEditorMode` is set to `Builder`, this field is used to build up an object representation of a SQL query. #### fn CloudWatchMetricsQuery.withSqlExpression -```ts -withSqlExpression(value) +```jsonnet +CloudWatchMetricsQuery.withSqlExpression(value) ``` -When the metric query type is `metricQueryType` is set to `Query`, this field is used to specify the query string. +PARAMETERS: +* **value** (`string`) + +When the metric query type is set to `Insights`, this field is used to specify the query string. #### fn CloudWatchMetricsQuery.withSqlMixin -```ts -withSqlMixin(value) +```jsonnet +CloudWatchMetricsQuery.withSqlMixin(value) ``` +PARAMETERS: +* **value** (`object`) +When the metric query type is set to `Insights` and the `metricEditorMode` is set to `Builder`, this field is used to build up an object representation of a SQL query. #### fn CloudWatchMetricsQuery.withStatistic -```ts -withStatistic(value) +```jsonnet +CloudWatchMetricsQuery.withStatistic(value) ``` -Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. +PARAMETERS: +* **value** (`string`) + +Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. #### fn CloudWatchMetricsQuery.withStatistics -```ts -withStatistics(value) +```jsonnet +CloudWatchMetricsQuery.withStatistics(value) ``` -@deprecated use statistic +PARAMETERS: + +* **value** (`array`) +@deprecated use statistic #### fn CloudWatchMetricsQuery.withStatisticsMixin -```ts -withStatisticsMixin(value) +```jsonnet +CloudWatchMetricsQuery.withStatisticsMixin(value) ``` +PARAMETERS: + +* **value** (`array`) + @deprecated use statistic +#### obj CloudWatchMetricsQuery.datasource + + +##### fn CloudWatchMetricsQuery.datasource.withType + +```jsonnet +CloudWatchMetricsQuery.datasource.withType(value) +``` +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +##### fn CloudWatchMetricsQuery.datasource.withUid + +```jsonnet +CloudWatchMetricsQuery.datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance #### obj CloudWatchMetricsQuery.sql ##### fn CloudWatchMetricsQuery.sql.withFrom -```ts -withFrom(value) +```jsonnet +CloudWatchMetricsQuery.sql.withFrom(value) ``` -FROM part of the SQL expression +PARAMETERS: +* **value** (`object`) + +FROM part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withFromMixin -```ts -withFromMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.withFromMixin(value) ``` -FROM part of the SQL expression +PARAMETERS: + +* **value** (`object`) +FROM part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withGroupBy -```ts -withGroupBy(value) +```jsonnet +CloudWatchMetricsQuery.sql.withGroupBy(value) ``` +PARAMETERS: +* **value** (`object`) +GROUP BY part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withGroupByMixin -```ts -withGroupByMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.withGroupByMixin(value) ``` +PARAMETERS: +* **value** (`object`) +GROUP BY part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withLimit -```ts -withLimit(value) +```jsonnet +CloudWatchMetricsQuery.sql.withLimit(value) ``` -LIMIT part of the SQL expression +PARAMETERS: + +* **value** (`integer`) +LIMIT part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withOrderBy -```ts -withOrderBy(value) +```jsonnet +CloudWatchMetricsQuery.sql.withOrderBy(value) ``` +PARAMETERS: +* **value** (`object`) +ORDER BY part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withOrderByDirection -```ts -withOrderByDirection(value) +```jsonnet +CloudWatchMetricsQuery.sql.withOrderByDirection(value) ``` -The sort order of the SQL expression, `ASC` or `DESC` +PARAMETERS: +* **value** (`string`) + +The sort order of the SQL expression, `ASC` or `DESC` ##### fn CloudWatchMetricsQuery.sql.withOrderByMixin -```ts -withOrderByMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.withOrderByMixin(value) ``` +PARAMETERS: +* **value** (`object`) +ORDER BY part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withSelect -```ts -withSelect(value) +```jsonnet +CloudWatchMetricsQuery.sql.withSelect(value) ``` +PARAMETERS: +* **value** (`object`) +SELECT part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withSelectMixin -```ts -withSelectMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.withSelectMixin(value) ``` +PARAMETERS: +* **value** (`object`) +SELECT part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withWhere -```ts -withWhere(value) +```jsonnet +CloudWatchMetricsQuery.sql.withWhere(value) ``` +PARAMETERS: +* **value** (`object`) +WHERE part of the SQL expression ##### fn CloudWatchMetricsQuery.sql.withWhereMixin -```ts -withWhereMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.withWhereMixin(value) ``` +PARAMETERS: +* **value** (`object`) +WHERE part of the SQL expression ##### obj CloudWatchMetricsQuery.sql.from ###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpression -```ts -withQueryEditorFunctionExpression(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpression(value) ``` +PARAMETERS: + +* **value** (`object`) ###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpressionMixin -```ts -withQueryEditorFunctionExpressionMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpressionMixin(value) ``` +PARAMETERS: + +* **value** (`object`) ###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpression -```ts -withQueryEditorPropertyExpression(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpression(value) ``` +PARAMETERS: + +* **value** (`object`) ###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpressionMixin -```ts -withQueryEditorPropertyExpressionMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpressionMixin(value) ``` +PARAMETERS: + +* **value** (`object`) ###### obj CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression @@ -818,51 +1084,41 @@ withQueryEditorPropertyExpressionMixin(value) ####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withName -```ts -withName(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withName(value) ``` +PARAMETERS: + +* **value** (`string`) ####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParameters -```ts -withParameters(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParameters(value) ``` +PARAMETERS: +* **value** (`array`) -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParametersMixin - -```ts -withParametersMixin(value) -``` +####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParametersMixin - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withType - -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParametersMixin(value) ``` +PARAMETERS: - -####### obj CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.parameters - - -######## fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.parameters.withName - -```ts -withName(value) -``` +* **value** (`array`) +####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withType -######## fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.parameters.withType - -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withType() ``` @@ -872,24 +1128,30 @@ withType(value) ####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withProperty -```ts -withProperty(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withProperty(value) ``` +PARAMETERS: + +* **value** (`object`) ####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withPropertyMixin -```ts -withPropertyMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withPropertyMixin(value) ``` +PARAMETERS: + +* **value** (`object`) ####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withType -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withType() ``` @@ -899,101 +1161,104 @@ withType(value) ######## fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withName -```ts -withName(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withName(value) ``` +PARAMETERS: + +* **value** (`string`) ######## fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withType -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withType(value) ``` +PARAMETERS: +* **value** (`string`) + - valid values: `"string"` -Accepted values for `value` are "string" ##### obj CloudWatchMetricsQuery.sql.groupBy ###### fn CloudWatchMetricsQuery.sql.groupBy.withExpressions -```ts -withExpressions(value) +```jsonnet +CloudWatchMetricsQuery.sql.groupBy.withExpressions(value) ``` +PARAMETERS: + +* **value** (`array`) ###### fn CloudWatchMetricsQuery.sql.groupBy.withExpressionsMixin -```ts -withExpressionsMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.groupBy.withExpressionsMixin(value) ``` +PARAMETERS: + +* **value** (`array`) ###### fn CloudWatchMetricsQuery.sql.groupBy.withType -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.groupBy.withType(value) ``` +PARAMETERS: +* **value** (`string`) + - valid values: `"and"`, `"or"` -Accepted values for `value` are "and", "or" ##### obj CloudWatchMetricsQuery.sql.orderBy ###### fn CloudWatchMetricsQuery.sql.orderBy.withName -```ts -withName(value) +```jsonnet +CloudWatchMetricsQuery.sql.orderBy.withName(value) ``` +PARAMETERS: + +* **value** (`string`) ###### fn CloudWatchMetricsQuery.sql.orderBy.withParameters -```ts -withParameters(value) +```jsonnet +CloudWatchMetricsQuery.sql.orderBy.withParameters(value) ``` +PARAMETERS: - -###### fn CloudWatchMetricsQuery.sql.orderBy.withParametersMixin - -```ts -withParametersMixin(value) -``` - +* **value** (`array`) -###### fn CloudWatchMetricsQuery.sql.orderBy.withType +###### fn CloudWatchMetricsQuery.sql.orderBy.withParametersMixin -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.orderBy.withParametersMixin(value) ``` +PARAMETERS: +* **value** (`array`) -###### obj CloudWatchMetricsQuery.sql.orderBy.parameters - - -####### fn CloudWatchMetricsQuery.sql.orderBy.parameters.withName -```ts -withName(value) -``` - - - -####### fn CloudWatchMetricsQuery.sql.orderBy.parameters.withType +###### fn CloudWatchMetricsQuery.sql.orderBy.withType -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.orderBy.withType() ``` @@ -1003,51 +1268,41 @@ withType(value) ###### fn CloudWatchMetricsQuery.sql.select.withName -```ts -withName(value) +```jsonnet +CloudWatchMetricsQuery.sql.select.withName(value) ``` +PARAMETERS: + +* **value** (`string`) ###### fn CloudWatchMetricsQuery.sql.select.withParameters -```ts -withParameters(value) +```jsonnet +CloudWatchMetricsQuery.sql.select.withParameters(value) ``` +PARAMETERS: - -###### fn CloudWatchMetricsQuery.sql.select.withParametersMixin - -```ts -withParametersMixin(value) -``` - +* **value** (`array`) -###### fn CloudWatchMetricsQuery.sql.select.withType +###### fn CloudWatchMetricsQuery.sql.select.withParametersMixin -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.select.withParametersMixin(value) ``` +PARAMETERS: +* **value** (`array`) -###### obj CloudWatchMetricsQuery.sql.select.parameters - - -####### fn CloudWatchMetricsQuery.sql.select.parameters.withName -```ts -withName(value) -``` - - - -####### fn CloudWatchMetricsQuery.sql.select.parameters.withType +###### fn CloudWatchMetricsQuery.sql.select.withType -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.select.withType() ``` @@ -1057,26 +1312,34 @@ withType(value) ###### fn CloudWatchMetricsQuery.sql.where.withExpressions -```ts -withExpressions(value) +```jsonnet +CloudWatchMetricsQuery.sql.where.withExpressions(value) ``` +PARAMETERS: + +* **value** (`array`) ###### fn CloudWatchMetricsQuery.sql.where.withExpressionsMixin -```ts -withExpressionsMixin(value) +```jsonnet +CloudWatchMetricsQuery.sql.where.withExpressionsMixin(value) ``` +PARAMETERS: + +* **value** (`array`) ###### fn CloudWatchMetricsQuery.sql.where.withType -```ts -withType(value) +```jsonnet +CloudWatchMetricsQuery.sql.where.withType(value) ``` +PARAMETERS: +* **value** (`string`) + - valid values: `"and"`, `"or"` -Accepted values for `value` are "and", "or" diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md new file mode 100644 index 0000000..34d2819 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md @@ -0,0 +1,32 @@ +# filters + + + +## Index + +* [`fn withLabel(value)`](#fn-withlabel) +* [`fn withQuery(value)`](#fn-withquery) + +## Fields + +### fn withLabel + +```jsonnet +withLabel(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withQuery + +```jsonnet +withQuery(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/bucketAggs/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/bucketAggs/index.md new file mode 100644 index 0000000..f98cbde --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/bucketAggs/index.md @@ -0,0 +1,567 @@ +# bucketAggs + + + +## Subpackages + +* [Filters.settings.filters](Filters/settings/filters.md) + +## Index + +* [`obj DateHistogram`](#obj-datehistogram) + * [`fn withField(value)`](#fn-datehistogramwithfield) + * [`fn withId(value)`](#fn-datehistogramwithid) + * [`fn withSettings(value)`](#fn-datehistogramwithsettings) + * [`fn withSettingsMixin(value)`](#fn-datehistogramwithsettingsmixin) + * [`fn withType()`](#fn-datehistogramwithtype) + * [`obj settings`](#obj-datehistogramsettings) + * [`fn withInterval(value)`](#fn-datehistogramsettingswithinterval) + * [`fn withMinDocCount(value)`](#fn-datehistogramsettingswithmindoccount) + * [`fn withOffset(value)`](#fn-datehistogramsettingswithoffset) + * [`fn withTimeZone(value)`](#fn-datehistogramsettingswithtimezone) + * [`fn withTrimEdges(value)`](#fn-datehistogramsettingswithtrimedges) +* [`obj Filters`](#obj-filters) + * [`fn withId(value)`](#fn-filterswithid) + * [`fn withSettings(value)`](#fn-filterswithsettings) + * [`fn withSettingsMixin(value)`](#fn-filterswithsettingsmixin) + * [`fn withType()`](#fn-filterswithtype) + * [`obj settings`](#obj-filterssettings) + * [`fn withFilters(value)`](#fn-filterssettingswithfilters) + * [`fn withFiltersMixin(value)`](#fn-filterssettingswithfiltersmixin) +* [`obj GeoHashGrid`](#obj-geohashgrid) + * [`fn withField(value)`](#fn-geohashgridwithfield) + * [`fn withId(value)`](#fn-geohashgridwithid) + * [`fn withSettings(value)`](#fn-geohashgridwithsettings) + * [`fn withSettingsMixin(value)`](#fn-geohashgridwithsettingsmixin) + * [`fn withType()`](#fn-geohashgridwithtype) + * [`obj settings`](#obj-geohashgridsettings) + * [`fn withPrecision(value)`](#fn-geohashgridsettingswithprecision) +* [`obj Histogram`](#obj-histogram) + * [`fn withField(value)`](#fn-histogramwithfield) + * [`fn withId(value)`](#fn-histogramwithid) + * [`fn withSettings(value)`](#fn-histogramwithsettings) + * [`fn withSettingsMixin(value)`](#fn-histogramwithsettingsmixin) + * [`fn withType()`](#fn-histogramwithtype) + * [`obj settings`](#obj-histogramsettings) + * [`fn withInterval(value)`](#fn-histogramsettingswithinterval) + * [`fn withMinDocCount(value)`](#fn-histogramsettingswithmindoccount) +* [`obj Nested`](#obj-nested) + * [`fn withField(value)`](#fn-nestedwithfield) + * [`fn withId(value)`](#fn-nestedwithid) + * [`fn withSettings(value)`](#fn-nestedwithsettings) + * [`fn withSettingsMixin(value)`](#fn-nestedwithsettingsmixin) + * [`fn withType()`](#fn-nestedwithtype) +* [`obj Terms`](#obj-terms) + * [`fn withField(value)`](#fn-termswithfield) + * [`fn withId(value)`](#fn-termswithid) + * [`fn withSettings(value)`](#fn-termswithsettings) + * [`fn withSettingsMixin(value)`](#fn-termswithsettingsmixin) + * [`fn withType()`](#fn-termswithtype) + * [`obj settings`](#obj-termssettings) + * [`fn withMinDocCount(value)`](#fn-termssettingswithmindoccount) + * [`fn withMissing(value)`](#fn-termssettingswithmissing) + * [`fn withOrder(value)`](#fn-termssettingswithorder) + * [`fn withOrderBy(value)`](#fn-termssettingswithorderby) + * [`fn withSize(value)`](#fn-termssettingswithsize) + +## Fields + +### obj DateHistogram + + +#### fn DateHistogram.withField + +```jsonnet +DateHistogram.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn DateHistogram.withId + +```jsonnet +DateHistogram.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn DateHistogram.withSettings + +```jsonnet +DateHistogram.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn DateHistogram.withSettingsMixin + +```jsonnet +DateHistogram.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn DateHistogram.withType + +```jsonnet +DateHistogram.withType() +``` + + + +#### obj DateHistogram.settings + + +##### fn DateHistogram.settings.withInterval + +```jsonnet +DateHistogram.settings.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn DateHistogram.settings.withMinDocCount + +```jsonnet +DateHistogram.settings.withMinDocCount(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn DateHistogram.settings.withOffset + +```jsonnet +DateHistogram.settings.withOffset(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn DateHistogram.settings.withTimeZone + +```jsonnet +DateHistogram.settings.withTimeZone(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn DateHistogram.settings.withTrimEdges + +```jsonnet +DateHistogram.settings.withTrimEdges(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj Filters + + +#### fn Filters.withId + +```jsonnet +Filters.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn Filters.withSettings + +```jsonnet +Filters.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn Filters.withSettingsMixin + +```jsonnet +Filters.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn Filters.withType + +```jsonnet +Filters.withType() +``` + + + +#### obj Filters.settings + + +##### fn Filters.settings.withFilters + +```jsonnet +Filters.settings.withFilters(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn Filters.settings.withFiltersMixin + +```jsonnet +Filters.settings.withFiltersMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### obj GeoHashGrid + + +#### fn GeoHashGrid.withField + +```jsonnet +GeoHashGrid.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn GeoHashGrid.withId + +```jsonnet +GeoHashGrid.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn GeoHashGrid.withSettings + +```jsonnet +GeoHashGrid.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn GeoHashGrid.withSettingsMixin + +```jsonnet +GeoHashGrid.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn GeoHashGrid.withType + +```jsonnet +GeoHashGrid.withType() +``` + + + +#### obj GeoHashGrid.settings + + +##### fn GeoHashGrid.settings.withPrecision + +```jsonnet +GeoHashGrid.settings.withPrecision(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj Histogram + + +#### fn Histogram.withField + +```jsonnet +Histogram.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn Histogram.withId + +```jsonnet +Histogram.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn Histogram.withSettings + +```jsonnet +Histogram.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn Histogram.withSettingsMixin + +```jsonnet +Histogram.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn Histogram.withType + +```jsonnet +Histogram.withType() +``` + + + +#### obj Histogram.settings + + +##### fn Histogram.settings.withInterval + +```jsonnet +Histogram.settings.withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn Histogram.settings.withMinDocCount + +```jsonnet +Histogram.settings.withMinDocCount(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj Nested + + +#### fn Nested.withField + +```jsonnet +Nested.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn Nested.withId + +```jsonnet +Nested.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn Nested.withSettings + +```jsonnet +Nested.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn Nested.withSettingsMixin + +```jsonnet +Nested.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn Nested.withType + +```jsonnet +Nested.withType() +``` + + + +### obj Terms + + +#### fn Terms.withField + +```jsonnet +Terms.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn Terms.withId + +```jsonnet +Terms.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn Terms.withSettings + +```jsonnet +Terms.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn Terms.withSettingsMixin + +```jsonnet +Terms.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn Terms.withType + +```jsonnet +Terms.withType() +``` + + + +#### obj Terms.settings + + +##### fn Terms.settings.withMinDocCount + +```jsonnet +Terms.settings.withMinDocCount(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn Terms.settings.withMissing + +```jsonnet +Terms.settings.withMissing(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn Terms.settings.withOrder + +```jsonnet +Terms.settings.withOrder(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"desc"`, `"asc"` + + +##### fn Terms.settings.withOrderBy + +```jsonnet +Terms.settings.withOrderBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn Terms.settings.withSize + +```jsonnet +Terms.settings.withSize(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/index.md new file mode 100644 index 0000000..e1b2ed7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/index.md @@ -0,0 +1,178 @@ +# elasticsearch + +grafonnet.query.elasticsearch + +## Subpackages + +* [bucketAggs](bucketAggs/index.md) +* [metrics](metrics/index.md) + +## Index + +* [`fn withAlias(value)`](#fn-withalias) +* [`fn withBucketAggs(value)`](#fn-withbucketaggs) +* [`fn withBucketAggsMixin(value)`](#fn-withbucketaggsmixin) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withMetrics(value)`](#fn-withmetrics) +* [`fn withMetricsMixin(value)`](#fn-withmetricsmixin) +* [`fn withQuery(value)`](#fn-withquery) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withTimeField(value)`](#fn-withtimefield) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) + +## Fields + +### fn withAlias + +```jsonnet +withAlias(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alias pattern +### fn withBucketAggs + +```jsonnet +withBucketAggs(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of bucket aggregations +### fn withBucketAggsMixin + +```jsonnet +withBucketAggsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of bucket aggregations +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Set the datasource for this query. +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. +### fn withMetrics + +```jsonnet +withMetrics(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of metric aggregations +### fn withMetricsMixin + +```jsonnet +withMetricsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +List of metric aggregations +### fn withQuery + +```jsonnet +withQuery(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Lucene query +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specify the query flavor +TODO make this required and give it a default +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. +### fn withTimeField + +```jsonnet +withTimeField(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of time field +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md new file mode 100644 index 0000000..98f8952 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md @@ -0,0 +1,32 @@ +# pipelineVariables + + + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withPipelineAgg(value)`](#fn-withpipelineagg) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withPipelineAgg + +```jsonnet +withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md new file mode 100644 index 0000000..98f8952 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md @@ -0,0 +1,32 @@ +# pipelineVariables + + + +## Index + +* [`fn withName(value)`](#fn-withname) +* [`fn withPipelineAgg(value)`](#fn-withpipelineagg) + +## Fields + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withPipelineAgg + +```jsonnet +withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/index.md new file mode 100644 index 0000000..fc18efe --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/elasticsearch/metrics/index.md @@ -0,0 +1,2547 @@ +# metrics + + + +## Subpackages + +* [MetricAggregationWithSettings.BucketScript.pipelineVariables](MetricAggregationWithSettings/BucketScript/pipelineVariables.md) +* [PipelineMetricAggregation.BucketScript.pipelineVariables](PipelineMetricAggregation/BucketScript/pipelineVariables.md) + +## Index + +* [`obj Count`](#obj-count) + * [`fn withHide(value=true)`](#fn-countwithhide) + * [`fn withId(value)`](#fn-countwithid) + * [`fn withType()`](#fn-countwithtype) +* [`obj MetricAggregationWithSettings`](#obj-metricaggregationwithsettings) + * [`obj Average`](#obj-metricaggregationwithsettingsaverage) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsaveragewithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsaveragewithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsaveragewithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsaveragewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsaveragewithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsaveragewithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsaveragesettings) + * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsaveragesettingswithmissing) + * [`fn withScript(value)`](#fn-metricaggregationwithsettingsaveragesettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsaveragesettingswithscriptmixin) + * [`obj script`](#obj-metricaggregationwithsettingsaveragesettingsscript) + * [`fn withInline(value)`](#fn-metricaggregationwithsettingsaveragesettingsscriptwithinline) + * [`obj BucketScript`](#obj-metricaggregationwithsettingsbucketscript) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsbucketscriptwithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsbucketscriptwithid) + * [`fn withPipelineVariables(value)`](#fn-metricaggregationwithsettingsbucketscriptwithpipelinevariables) + * [`fn withPipelineVariablesMixin(value)`](#fn-metricaggregationwithsettingsbucketscriptwithpipelinevariablesmixin) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsbucketscriptwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsbucketscriptwithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsbucketscriptwithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsbucketscriptsettings) + * [`fn withScript(value)`](#fn-metricaggregationwithsettingsbucketscriptsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsbucketscriptsettingswithscriptmixin) + * [`obj script`](#obj-metricaggregationwithsettingsbucketscriptsettingsscript) + * [`fn withInline(value)`](#fn-metricaggregationwithsettingsbucketscriptsettingsscriptwithinline) + * [`obj CumulativeSum`](#obj-metricaggregationwithsettingscumulativesum) + * [`fn withField(value)`](#fn-metricaggregationwithsettingscumulativesumwithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingscumulativesumwithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingscumulativesumwithid) + * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingscumulativesumwithpipelineagg) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingscumulativesumwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingscumulativesumwithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingscumulativesumwithtype) + * [`obj settings`](#obj-metricaggregationwithsettingscumulativesumsettings) + * [`fn withFormat(value)`](#fn-metricaggregationwithsettingscumulativesumsettingswithformat) + * [`obj Derivative`](#obj-metricaggregationwithsettingsderivative) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsderivativewithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsderivativewithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsderivativewithid) + * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsderivativewithpipelineagg) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsderivativewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsderivativewithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsderivativewithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsderivativesettings) + * [`fn withUnit(value)`](#fn-metricaggregationwithsettingsderivativesettingswithunit) + * [`obj ExtendedStats`](#obj-metricaggregationwithsettingsextendedstats) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsextendedstatswithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsextendedstatswithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsextendedstatswithid) + * [`fn withMeta(value)`](#fn-metricaggregationwithsettingsextendedstatswithmeta) + * [`fn withMetaMixin(value)`](#fn-metricaggregationwithsettingsextendedstatswithmetamixin) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsextendedstatswithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsextendedstatswithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsextendedstatswithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsextendedstatssettings) + * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithmissing) + * [`fn withScript(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithscriptmixin) + * [`fn withSigma(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithsigma) + * [`obj script`](#obj-metricaggregationwithsettingsextendedstatssettingsscript) + * [`fn withInline(value)`](#fn-metricaggregationwithsettingsextendedstatssettingsscriptwithinline) + * [`obj Logs`](#obj-metricaggregationwithsettingslogs) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingslogswithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingslogswithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingslogswithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingslogswithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingslogswithtype) + * [`obj settings`](#obj-metricaggregationwithsettingslogssettings) + * [`fn withLimit(value)`](#fn-metricaggregationwithsettingslogssettingswithlimit) + * [`obj Max`](#obj-metricaggregationwithsettingsmax) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsmaxwithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsmaxwithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsmaxwithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsmaxwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsmaxwithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsmaxwithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsmaxsettings) + * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsmaxsettingswithmissing) + * [`fn withScript(value)`](#fn-metricaggregationwithsettingsmaxsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsmaxsettingswithscriptmixin) + * [`obj script`](#obj-metricaggregationwithsettingsmaxsettingsscript) + * [`fn withInline(value)`](#fn-metricaggregationwithsettingsmaxsettingsscriptwithinline) + * [`obj Min`](#obj-metricaggregationwithsettingsmin) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsminwithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsminwithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsminwithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsminwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsminwithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsminwithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsminsettings) + * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsminsettingswithmissing) + * [`fn withScript(value)`](#fn-metricaggregationwithsettingsminsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsminsettingswithscriptmixin) + * [`obj script`](#obj-metricaggregationwithsettingsminsettingsscript) + * [`fn withInline(value)`](#fn-metricaggregationwithsettingsminsettingsscriptwithinline) + * [`obj MovingAverage`](#obj-metricaggregationwithsettingsmovingaverage) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsmovingaveragewithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsmovingaveragewithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsmovingaveragewithid) + * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsmovingaveragewithpipelineagg) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsmovingaveragewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsmovingaveragewithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsmovingaveragewithtype) + * [`obj MovingFunction`](#obj-metricaggregationwithsettingsmovingfunction) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsmovingfunctionwithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithid) + * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithpipelineagg) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsmovingfunctionwithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsmovingfunctionsettings) + * [`fn withScript(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithscriptmixin) + * [`fn withShift(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithshift) + * [`fn withWindow(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithwindow) + * [`obj script`](#obj-metricaggregationwithsettingsmovingfunctionsettingsscript) + * [`fn withInline(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingsscriptwithinline) + * [`obj Percentiles`](#obj-metricaggregationwithsettingspercentiles) + * [`fn withField(value)`](#fn-metricaggregationwithsettingspercentileswithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingspercentileswithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingspercentileswithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingspercentileswithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingspercentileswithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingspercentileswithtype) + * [`obj settings`](#obj-metricaggregationwithsettingspercentilessettings) + * [`fn withMissing(value)`](#fn-metricaggregationwithsettingspercentilessettingswithmissing) + * [`fn withPercents(value)`](#fn-metricaggregationwithsettingspercentilessettingswithpercents) + * [`fn withPercentsMixin(value)`](#fn-metricaggregationwithsettingspercentilessettingswithpercentsmixin) + * [`fn withScript(value)`](#fn-metricaggregationwithsettingspercentilessettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingspercentilessettingswithscriptmixin) + * [`obj script`](#obj-metricaggregationwithsettingspercentilessettingsscript) + * [`fn withInline(value)`](#fn-metricaggregationwithsettingspercentilessettingsscriptwithinline) + * [`obj Rate`](#obj-metricaggregationwithsettingsrate) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsratewithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsratewithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsratewithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsratewithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsratewithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsratewithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsratesettings) + * [`fn withMode(value)`](#fn-metricaggregationwithsettingsratesettingswithmode) + * [`fn withUnit(value)`](#fn-metricaggregationwithsettingsratesettingswithunit) + * [`obj RawData`](#obj-metricaggregationwithsettingsrawdata) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsrawdatawithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsrawdatawithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsrawdatawithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsrawdatawithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsrawdatawithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsrawdatasettings) + * [`fn withSize(value)`](#fn-metricaggregationwithsettingsrawdatasettingswithsize) + * [`obj RawDocument`](#obj-metricaggregationwithsettingsrawdocument) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsrawdocumentwithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsrawdocumentwithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsrawdocumentwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsrawdocumentwithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsrawdocumentwithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsrawdocumentsettings) + * [`fn withSize(value)`](#fn-metricaggregationwithsettingsrawdocumentsettingswithsize) + * [`obj SerialDiff`](#obj-metricaggregationwithsettingsserialdiff) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsserialdiffwithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsserialdiffwithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsserialdiffwithid) + * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsserialdiffwithpipelineagg) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsserialdiffwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsserialdiffwithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsserialdiffwithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsserialdiffsettings) + * [`fn withLag(value)`](#fn-metricaggregationwithsettingsserialdiffsettingswithlag) + * [`obj Sum`](#obj-metricaggregationwithsettingssum) + * [`fn withField(value)`](#fn-metricaggregationwithsettingssumwithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingssumwithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingssumwithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingssumwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingssumwithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingssumwithtype) + * [`obj settings`](#obj-metricaggregationwithsettingssumsettings) + * [`fn withMissing(value)`](#fn-metricaggregationwithsettingssumsettingswithmissing) + * [`fn withScript(value)`](#fn-metricaggregationwithsettingssumsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingssumsettingswithscriptmixin) + * [`obj script`](#obj-metricaggregationwithsettingssumsettingsscript) + * [`fn withInline(value)`](#fn-metricaggregationwithsettingssumsettingsscriptwithinline) + * [`obj TopMetrics`](#obj-metricaggregationwithsettingstopmetrics) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingstopmetricswithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingstopmetricswithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingstopmetricswithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingstopmetricswithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingstopmetricswithtype) + * [`obj settings`](#obj-metricaggregationwithsettingstopmetricssettings) + * [`fn withMetrics(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithmetrics) + * [`fn withMetricsMixin(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithmetricsmixin) + * [`fn withOrder(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithorder) + * [`fn withOrderBy(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithorderby) + * [`obj UniqueCount`](#obj-metricaggregationwithsettingsuniquecount) + * [`fn withField(value)`](#fn-metricaggregationwithsettingsuniquecountwithfield) + * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsuniquecountwithhide) + * [`fn withId(value)`](#fn-metricaggregationwithsettingsuniquecountwithid) + * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsuniquecountwithsettings) + * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsuniquecountwithsettingsmixin) + * [`fn withType()`](#fn-metricaggregationwithsettingsuniquecountwithtype) + * [`obj settings`](#obj-metricaggregationwithsettingsuniquecountsettings) + * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsuniquecountsettingswithmissing) + * [`fn withPrecisionThreshold(value)`](#fn-metricaggregationwithsettingsuniquecountsettingswithprecisionthreshold) +* [`obj PipelineMetricAggregation`](#obj-pipelinemetricaggregation) + * [`obj BucketScript`](#obj-pipelinemetricaggregationbucketscript) + * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationbucketscriptwithhide) + * [`fn withId(value)`](#fn-pipelinemetricaggregationbucketscriptwithid) + * [`fn withPipelineVariables(value)`](#fn-pipelinemetricaggregationbucketscriptwithpipelinevariables) + * [`fn withPipelineVariablesMixin(value)`](#fn-pipelinemetricaggregationbucketscriptwithpipelinevariablesmixin) + * [`fn withSettings(value)`](#fn-pipelinemetricaggregationbucketscriptwithsettings) + * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationbucketscriptwithsettingsmixin) + * [`fn withType()`](#fn-pipelinemetricaggregationbucketscriptwithtype) + * [`obj settings`](#obj-pipelinemetricaggregationbucketscriptsettings) + * [`fn withScript(value)`](#fn-pipelinemetricaggregationbucketscriptsettingswithscript) + * [`fn withScriptMixin(value)`](#fn-pipelinemetricaggregationbucketscriptsettingswithscriptmixin) + * [`obj script`](#obj-pipelinemetricaggregationbucketscriptsettingsscript) + * [`fn withInline(value)`](#fn-pipelinemetricaggregationbucketscriptsettingsscriptwithinline) + * [`obj CumulativeSum`](#obj-pipelinemetricaggregationcumulativesum) + * [`fn withField(value)`](#fn-pipelinemetricaggregationcumulativesumwithfield) + * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationcumulativesumwithhide) + * [`fn withId(value)`](#fn-pipelinemetricaggregationcumulativesumwithid) + * [`fn withPipelineAgg(value)`](#fn-pipelinemetricaggregationcumulativesumwithpipelineagg) + * [`fn withSettings(value)`](#fn-pipelinemetricaggregationcumulativesumwithsettings) + * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationcumulativesumwithsettingsmixin) + * [`fn withType()`](#fn-pipelinemetricaggregationcumulativesumwithtype) + * [`obj settings`](#obj-pipelinemetricaggregationcumulativesumsettings) + * [`fn withFormat(value)`](#fn-pipelinemetricaggregationcumulativesumsettingswithformat) + * [`obj Derivative`](#obj-pipelinemetricaggregationderivative) + * [`fn withField(value)`](#fn-pipelinemetricaggregationderivativewithfield) + * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationderivativewithhide) + * [`fn withId(value)`](#fn-pipelinemetricaggregationderivativewithid) + * [`fn withPipelineAgg(value)`](#fn-pipelinemetricaggregationderivativewithpipelineagg) + * [`fn withSettings(value)`](#fn-pipelinemetricaggregationderivativewithsettings) + * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationderivativewithsettingsmixin) + * [`fn withType()`](#fn-pipelinemetricaggregationderivativewithtype) + * [`obj settings`](#obj-pipelinemetricaggregationderivativesettings) + * [`fn withUnit(value)`](#fn-pipelinemetricaggregationderivativesettingswithunit) + * [`obj MovingAverage`](#obj-pipelinemetricaggregationmovingaverage) + * [`fn withField(value)`](#fn-pipelinemetricaggregationmovingaveragewithfield) + * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationmovingaveragewithhide) + * [`fn withId(value)`](#fn-pipelinemetricaggregationmovingaveragewithid) + * [`fn withPipelineAgg(value)`](#fn-pipelinemetricaggregationmovingaveragewithpipelineagg) + * [`fn withSettings(value)`](#fn-pipelinemetricaggregationmovingaveragewithsettings) + * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationmovingaveragewithsettingsmixin) + * [`fn withType()`](#fn-pipelinemetricaggregationmovingaveragewithtype) + +## Fields + +### obj Count + + +#### fn Count.withHide + +```jsonnet +Count.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn Count.withId + +```jsonnet +Count.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn Count.withType + +```jsonnet +Count.withType() +``` + + + +### obj MetricAggregationWithSettings + + +#### obj MetricAggregationWithSettings.Average + + +##### fn MetricAggregationWithSettings.Average.withField + +```jsonnet +MetricAggregationWithSettings.Average.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Average.withHide + +```jsonnet +MetricAggregationWithSettings.Average.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.Average.withId + +```jsonnet +MetricAggregationWithSettings.Average.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Average.withSettings + +```jsonnet +MetricAggregationWithSettings.Average.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Average.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.Average.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Average.withType + +```jsonnet +MetricAggregationWithSettings.Average.withType() +``` + + + +##### obj MetricAggregationWithSettings.Average.settings + + +###### fn MetricAggregationWithSettings.Average.settings.withMissing + +```jsonnet +MetricAggregationWithSettings.Average.settings.withMissing(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.Average.settings.withScript + +```jsonnet +MetricAggregationWithSettings.Average.settings.withScript(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.Average.settings.withScriptMixin + +```jsonnet +MetricAggregationWithSettings.Average.settings.withScriptMixin(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### obj MetricAggregationWithSettings.Average.settings.script + + +####### fn MetricAggregationWithSettings.Average.settings.script.withInline + +```jsonnet +MetricAggregationWithSettings.Average.settings.script.withInline(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.BucketScript + + +##### fn MetricAggregationWithSettings.BucketScript.withHide + +```jsonnet +MetricAggregationWithSettings.BucketScript.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.BucketScript.withId + +```jsonnet +MetricAggregationWithSettings.BucketScript.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.BucketScript.withPipelineVariables + +```jsonnet +MetricAggregationWithSettings.BucketScript.withPipelineVariables(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn MetricAggregationWithSettings.BucketScript.withPipelineVariablesMixin + +```jsonnet +MetricAggregationWithSettings.BucketScript.withPipelineVariablesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn MetricAggregationWithSettings.BucketScript.withSettings + +```jsonnet +MetricAggregationWithSettings.BucketScript.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.BucketScript.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.BucketScript.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.BucketScript.withType + +```jsonnet +MetricAggregationWithSettings.BucketScript.withType() +``` + + + +##### obj MetricAggregationWithSettings.BucketScript.settings + + +###### fn MetricAggregationWithSettings.BucketScript.settings.withScript + +```jsonnet +MetricAggregationWithSettings.BucketScript.settings.withScript(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.BucketScript.settings.withScriptMixin + +```jsonnet +MetricAggregationWithSettings.BucketScript.settings.withScriptMixin(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### obj MetricAggregationWithSettings.BucketScript.settings.script + + +####### fn MetricAggregationWithSettings.BucketScript.settings.script.withInline + +```jsonnet +MetricAggregationWithSettings.BucketScript.settings.script.withInline(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.CumulativeSum + + +##### fn MetricAggregationWithSettings.CumulativeSum.withField + +```jsonnet +MetricAggregationWithSettings.CumulativeSum.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.CumulativeSum.withHide + +```jsonnet +MetricAggregationWithSettings.CumulativeSum.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.CumulativeSum.withId + +```jsonnet +MetricAggregationWithSettings.CumulativeSum.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.CumulativeSum.withPipelineAgg + +```jsonnet +MetricAggregationWithSettings.CumulativeSum.withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.CumulativeSum.withSettings + +```jsonnet +MetricAggregationWithSettings.CumulativeSum.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.CumulativeSum.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.CumulativeSum.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.CumulativeSum.withType + +```jsonnet +MetricAggregationWithSettings.CumulativeSum.withType() +``` + + + +##### obj MetricAggregationWithSettings.CumulativeSum.settings + + +###### fn MetricAggregationWithSettings.CumulativeSum.settings.withFormat + +```jsonnet +MetricAggregationWithSettings.CumulativeSum.settings.withFormat(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.Derivative + + +##### fn MetricAggregationWithSettings.Derivative.withField + +```jsonnet +MetricAggregationWithSettings.Derivative.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Derivative.withHide + +```jsonnet +MetricAggregationWithSettings.Derivative.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.Derivative.withId + +```jsonnet +MetricAggregationWithSettings.Derivative.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Derivative.withPipelineAgg + +```jsonnet +MetricAggregationWithSettings.Derivative.withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Derivative.withSettings + +```jsonnet +MetricAggregationWithSettings.Derivative.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Derivative.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.Derivative.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Derivative.withType + +```jsonnet +MetricAggregationWithSettings.Derivative.withType() +``` + + + +##### obj MetricAggregationWithSettings.Derivative.settings + + +###### fn MetricAggregationWithSettings.Derivative.settings.withUnit + +```jsonnet +MetricAggregationWithSettings.Derivative.settings.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.ExtendedStats + + +##### fn MetricAggregationWithSettings.ExtendedStats.withField + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.ExtendedStats.withHide + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.ExtendedStats.withId + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.ExtendedStats.withMeta + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.withMeta(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.ExtendedStats.withMetaMixin + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.withMetaMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.ExtendedStats.withSettings + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.ExtendedStats.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.ExtendedStats.withType + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.withType() +``` + + + +##### obj MetricAggregationWithSettings.ExtendedStats.settings + + +###### fn MetricAggregationWithSettings.ExtendedStats.settings.withMissing + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.settings.withMissing(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.ExtendedStats.settings.withScript + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.settings.withScript(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.ExtendedStats.settings.withScriptMixin + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.settings.withScriptMixin(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.ExtendedStats.settings.withSigma + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.settings.withSigma(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### obj MetricAggregationWithSettings.ExtendedStats.settings.script + + +####### fn MetricAggregationWithSettings.ExtendedStats.settings.script.withInline + +```jsonnet +MetricAggregationWithSettings.ExtendedStats.settings.script.withInline(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.Logs + + +##### fn MetricAggregationWithSettings.Logs.withHide + +```jsonnet +MetricAggregationWithSettings.Logs.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.Logs.withId + +```jsonnet +MetricAggregationWithSettings.Logs.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Logs.withSettings + +```jsonnet +MetricAggregationWithSettings.Logs.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Logs.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.Logs.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Logs.withType + +```jsonnet +MetricAggregationWithSettings.Logs.withType() +``` + + + +##### obj MetricAggregationWithSettings.Logs.settings + + +###### fn MetricAggregationWithSettings.Logs.settings.withLimit + +```jsonnet +MetricAggregationWithSettings.Logs.settings.withLimit(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.Max + + +##### fn MetricAggregationWithSettings.Max.withField + +```jsonnet +MetricAggregationWithSettings.Max.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Max.withHide + +```jsonnet +MetricAggregationWithSettings.Max.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.Max.withId + +```jsonnet +MetricAggregationWithSettings.Max.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Max.withSettings + +```jsonnet +MetricAggregationWithSettings.Max.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Max.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.Max.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Max.withType + +```jsonnet +MetricAggregationWithSettings.Max.withType() +``` + + + +##### obj MetricAggregationWithSettings.Max.settings + + +###### fn MetricAggregationWithSettings.Max.settings.withMissing + +```jsonnet +MetricAggregationWithSettings.Max.settings.withMissing(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.Max.settings.withScript + +```jsonnet +MetricAggregationWithSettings.Max.settings.withScript(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.Max.settings.withScriptMixin + +```jsonnet +MetricAggregationWithSettings.Max.settings.withScriptMixin(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### obj MetricAggregationWithSettings.Max.settings.script + + +####### fn MetricAggregationWithSettings.Max.settings.script.withInline + +```jsonnet +MetricAggregationWithSettings.Max.settings.script.withInline(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.Min + + +##### fn MetricAggregationWithSettings.Min.withField + +```jsonnet +MetricAggregationWithSettings.Min.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Min.withHide + +```jsonnet +MetricAggregationWithSettings.Min.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.Min.withId + +```jsonnet +MetricAggregationWithSettings.Min.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Min.withSettings + +```jsonnet +MetricAggregationWithSettings.Min.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Min.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.Min.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Min.withType + +```jsonnet +MetricAggregationWithSettings.Min.withType() +``` + + + +##### obj MetricAggregationWithSettings.Min.settings + + +###### fn MetricAggregationWithSettings.Min.settings.withMissing + +```jsonnet +MetricAggregationWithSettings.Min.settings.withMissing(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.Min.settings.withScript + +```jsonnet +MetricAggregationWithSettings.Min.settings.withScript(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.Min.settings.withScriptMixin + +```jsonnet +MetricAggregationWithSettings.Min.settings.withScriptMixin(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### obj MetricAggregationWithSettings.Min.settings.script + + +####### fn MetricAggregationWithSettings.Min.settings.script.withInline + +```jsonnet +MetricAggregationWithSettings.Min.settings.script.withInline(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.MovingAverage + + +##### fn MetricAggregationWithSettings.MovingAverage.withField + +```jsonnet +MetricAggregationWithSettings.MovingAverage.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.MovingAverage.withHide + +```jsonnet +MetricAggregationWithSettings.MovingAverage.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.MovingAverage.withId + +```jsonnet +MetricAggregationWithSettings.MovingAverage.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.MovingAverage.withPipelineAgg + +```jsonnet +MetricAggregationWithSettings.MovingAverage.withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.MovingAverage.withSettings + +```jsonnet +MetricAggregationWithSettings.MovingAverage.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.MovingAverage.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.MovingAverage.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.MovingAverage.withType + +```jsonnet +MetricAggregationWithSettings.MovingAverage.withType() +``` + + + +#### obj MetricAggregationWithSettings.MovingFunction + + +##### fn MetricAggregationWithSettings.MovingFunction.withField + +```jsonnet +MetricAggregationWithSettings.MovingFunction.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.MovingFunction.withHide + +```jsonnet +MetricAggregationWithSettings.MovingFunction.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.MovingFunction.withId + +```jsonnet +MetricAggregationWithSettings.MovingFunction.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.MovingFunction.withPipelineAgg + +```jsonnet +MetricAggregationWithSettings.MovingFunction.withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.MovingFunction.withSettings + +```jsonnet +MetricAggregationWithSettings.MovingFunction.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.MovingFunction.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.MovingFunction.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.MovingFunction.withType + +```jsonnet +MetricAggregationWithSettings.MovingFunction.withType() +``` + + + +##### obj MetricAggregationWithSettings.MovingFunction.settings + + +###### fn MetricAggregationWithSettings.MovingFunction.settings.withScript + +```jsonnet +MetricAggregationWithSettings.MovingFunction.settings.withScript(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.MovingFunction.settings.withScriptMixin + +```jsonnet +MetricAggregationWithSettings.MovingFunction.settings.withScriptMixin(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.MovingFunction.settings.withShift + +```jsonnet +MetricAggregationWithSettings.MovingFunction.settings.withShift(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.MovingFunction.settings.withWindow + +```jsonnet +MetricAggregationWithSettings.MovingFunction.settings.withWindow(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### obj MetricAggregationWithSettings.MovingFunction.settings.script + + +####### fn MetricAggregationWithSettings.MovingFunction.settings.script.withInline + +```jsonnet +MetricAggregationWithSettings.MovingFunction.settings.script.withInline(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.Percentiles + + +##### fn MetricAggregationWithSettings.Percentiles.withField + +```jsonnet +MetricAggregationWithSettings.Percentiles.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Percentiles.withHide + +```jsonnet +MetricAggregationWithSettings.Percentiles.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.Percentiles.withId + +```jsonnet +MetricAggregationWithSettings.Percentiles.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Percentiles.withSettings + +```jsonnet +MetricAggregationWithSettings.Percentiles.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Percentiles.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.Percentiles.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Percentiles.withType + +```jsonnet +MetricAggregationWithSettings.Percentiles.withType() +``` + + + +##### obj MetricAggregationWithSettings.Percentiles.settings + + +###### fn MetricAggregationWithSettings.Percentiles.settings.withMissing + +```jsonnet +MetricAggregationWithSettings.Percentiles.settings.withMissing(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.Percentiles.settings.withPercents + +```jsonnet +MetricAggregationWithSettings.Percentiles.settings.withPercents(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +###### fn MetricAggregationWithSettings.Percentiles.settings.withPercentsMixin + +```jsonnet +MetricAggregationWithSettings.Percentiles.settings.withPercentsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +###### fn MetricAggregationWithSettings.Percentiles.settings.withScript + +```jsonnet +MetricAggregationWithSettings.Percentiles.settings.withScript(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.Percentiles.settings.withScriptMixin + +```jsonnet +MetricAggregationWithSettings.Percentiles.settings.withScriptMixin(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### obj MetricAggregationWithSettings.Percentiles.settings.script + + +####### fn MetricAggregationWithSettings.Percentiles.settings.script.withInline + +```jsonnet +MetricAggregationWithSettings.Percentiles.settings.script.withInline(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.Rate + + +##### fn MetricAggregationWithSettings.Rate.withField + +```jsonnet +MetricAggregationWithSettings.Rate.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Rate.withHide + +```jsonnet +MetricAggregationWithSettings.Rate.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.Rate.withId + +```jsonnet +MetricAggregationWithSettings.Rate.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Rate.withSettings + +```jsonnet +MetricAggregationWithSettings.Rate.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Rate.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.Rate.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Rate.withType + +```jsonnet +MetricAggregationWithSettings.Rate.withType() +``` + + + +##### obj MetricAggregationWithSettings.Rate.settings + + +###### fn MetricAggregationWithSettings.Rate.settings.withMode + +```jsonnet +MetricAggregationWithSettings.Rate.settings.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.Rate.settings.withUnit + +```jsonnet +MetricAggregationWithSettings.Rate.settings.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.RawData + + +##### fn MetricAggregationWithSettings.RawData.withHide + +```jsonnet +MetricAggregationWithSettings.RawData.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.RawData.withId + +```jsonnet +MetricAggregationWithSettings.RawData.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.RawData.withSettings + +```jsonnet +MetricAggregationWithSettings.RawData.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.RawData.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.RawData.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.RawData.withType + +```jsonnet +MetricAggregationWithSettings.RawData.withType() +``` + + + +##### obj MetricAggregationWithSettings.RawData.settings + + +###### fn MetricAggregationWithSettings.RawData.settings.withSize + +```jsonnet +MetricAggregationWithSettings.RawData.settings.withSize(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.RawDocument + + +##### fn MetricAggregationWithSettings.RawDocument.withHide + +```jsonnet +MetricAggregationWithSettings.RawDocument.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.RawDocument.withId + +```jsonnet +MetricAggregationWithSettings.RawDocument.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.RawDocument.withSettings + +```jsonnet +MetricAggregationWithSettings.RawDocument.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.RawDocument.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.RawDocument.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.RawDocument.withType + +```jsonnet +MetricAggregationWithSettings.RawDocument.withType() +``` + + + +##### obj MetricAggregationWithSettings.RawDocument.settings + + +###### fn MetricAggregationWithSettings.RawDocument.settings.withSize + +```jsonnet +MetricAggregationWithSettings.RawDocument.settings.withSize(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.SerialDiff + + +##### fn MetricAggregationWithSettings.SerialDiff.withField + +```jsonnet +MetricAggregationWithSettings.SerialDiff.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.SerialDiff.withHide + +```jsonnet +MetricAggregationWithSettings.SerialDiff.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.SerialDiff.withId + +```jsonnet +MetricAggregationWithSettings.SerialDiff.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.SerialDiff.withPipelineAgg + +```jsonnet +MetricAggregationWithSettings.SerialDiff.withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.SerialDiff.withSettings + +```jsonnet +MetricAggregationWithSettings.SerialDiff.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.SerialDiff.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.SerialDiff.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.SerialDiff.withType + +```jsonnet +MetricAggregationWithSettings.SerialDiff.withType() +``` + + + +##### obj MetricAggregationWithSettings.SerialDiff.settings + + +###### fn MetricAggregationWithSettings.SerialDiff.settings.withLag + +```jsonnet +MetricAggregationWithSettings.SerialDiff.settings.withLag(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.Sum + + +##### fn MetricAggregationWithSettings.Sum.withField + +```jsonnet +MetricAggregationWithSettings.Sum.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Sum.withHide + +```jsonnet +MetricAggregationWithSettings.Sum.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.Sum.withId + +```jsonnet +MetricAggregationWithSettings.Sum.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.Sum.withSettings + +```jsonnet +MetricAggregationWithSettings.Sum.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Sum.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.Sum.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.Sum.withType + +```jsonnet +MetricAggregationWithSettings.Sum.withType() +``` + + + +##### obj MetricAggregationWithSettings.Sum.settings + + +###### fn MetricAggregationWithSettings.Sum.settings.withMissing + +```jsonnet +MetricAggregationWithSettings.Sum.settings.withMissing(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.Sum.settings.withScript + +```jsonnet +MetricAggregationWithSettings.Sum.settings.withScript(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn MetricAggregationWithSettings.Sum.settings.withScriptMixin + +```jsonnet +MetricAggregationWithSettings.Sum.settings.withScriptMixin(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### obj MetricAggregationWithSettings.Sum.settings.script + + +####### fn MetricAggregationWithSettings.Sum.settings.script.withInline + +```jsonnet +MetricAggregationWithSettings.Sum.settings.script.withInline(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.TopMetrics + + +##### fn MetricAggregationWithSettings.TopMetrics.withHide + +```jsonnet +MetricAggregationWithSettings.TopMetrics.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.TopMetrics.withId + +```jsonnet +MetricAggregationWithSettings.TopMetrics.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.TopMetrics.withSettings + +```jsonnet +MetricAggregationWithSettings.TopMetrics.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.TopMetrics.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.TopMetrics.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.TopMetrics.withType + +```jsonnet +MetricAggregationWithSettings.TopMetrics.withType() +``` + + + +##### obj MetricAggregationWithSettings.TopMetrics.settings + + +###### fn MetricAggregationWithSettings.TopMetrics.settings.withMetrics + +```jsonnet +MetricAggregationWithSettings.TopMetrics.settings.withMetrics(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +###### fn MetricAggregationWithSettings.TopMetrics.settings.withMetricsMixin + +```jsonnet +MetricAggregationWithSettings.TopMetrics.settings.withMetricsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +###### fn MetricAggregationWithSettings.TopMetrics.settings.withOrder + +```jsonnet +MetricAggregationWithSettings.TopMetrics.settings.withOrder(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.TopMetrics.settings.withOrderBy + +```jsonnet +MetricAggregationWithSettings.TopMetrics.settings.withOrderBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj MetricAggregationWithSettings.UniqueCount + + +##### fn MetricAggregationWithSettings.UniqueCount.withField + +```jsonnet +MetricAggregationWithSettings.UniqueCount.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.UniqueCount.withHide + +```jsonnet +MetricAggregationWithSettings.UniqueCount.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn MetricAggregationWithSettings.UniqueCount.withId + +```jsonnet +MetricAggregationWithSettings.UniqueCount.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn MetricAggregationWithSettings.UniqueCount.withSettings + +```jsonnet +MetricAggregationWithSettings.UniqueCount.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.UniqueCount.withSettingsMixin + +```jsonnet +MetricAggregationWithSettings.UniqueCount.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn MetricAggregationWithSettings.UniqueCount.withType + +```jsonnet +MetricAggregationWithSettings.UniqueCount.withType() +``` + + + +##### obj MetricAggregationWithSettings.UniqueCount.settings + + +###### fn MetricAggregationWithSettings.UniqueCount.settings.withMissing + +```jsonnet +MetricAggregationWithSettings.UniqueCount.settings.withMissing(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +###### fn MetricAggregationWithSettings.UniqueCount.settings.withPrecisionThreshold + +```jsonnet +MetricAggregationWithSettings.UniqueCount.settings.withPrecisionThreshold(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj PipelineMetricAggregation + + +#### obj PipelineMetricAggregation.BucketScript + + +##### fn PipelineMetricAggregation.BucketScript.withHide + +```jsonnet +PipelineMetricAggregation.BucketScript.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn PipelineMetricAggregation.BucketScript.withId + +```jsonnet +PipelineMetricAggregation.BucketScript.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.BucketScript.withPipelineVariables + +```jsonnet +PipelineMetricAggregation.BucketScript.withPipelineVariables(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn PipelineMetricAggregation.BucketScript.withPipelineVariablesMixin + +```jsonnet +PipelineMetricAggregation.BucketScript.withPipelineVariablesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +##### fn PipelineMetricAggregation.BucketScript.withSettings + +```jsonnet +PipelineMetricAggregation.BucketScript.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn PipelineMetricAggregation.BucketScript.withSettingsMixin + +```jsonnet +PipelineMetricAggregation.BucketScript.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn PipelineMetricAggregation.BucketScript.withType + +```jsonnet +PipelineMetricAggregation.BucketScript.withType() +``` + + + +##### obj PipelineMetricAggregation.BucketScript.settings + + +###### fn PipelineMetricAggregation.BucketScript.settings.withScript + +```jsonnet +PipelineMetricAggregation.BucketScript.settings.withScript(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### fn PipelineMetricAggregation.BucketScript.settings.withScriptMixin + +```jsonnet +PipelineMetricAggregation.BucketScript.settings.withScriptMixin(value) +``` + +PARAMETERS: + +* **value** (`object`,`string`) + + +###### obj PipelineMetricAggregation.BucketScript.settings.script + + +####### fn PipelineMetricAggregation.BucketScript.settings.script.withInline + +```jsonnet +PipelineMetricAggregation.BucketScript.settings.script.withInline(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj PipelineMetricAggregation.CumulativeSum + + +##### fn PipelineMetricAggregation.CumulativeSum.withField + +```jsonnet +PipelineMetricAggregation.CumulativeSum.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.CumulativeSum.withHide + +```jsonnet +PipelineMetricAggregation.CumulativeSum.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn PipelineMetricAggregation.CumulativeSum.withId + +```jsonnet +PipelineMetricAggregation.CumulativeSum.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.CumulativeSum.withPipelineAgg + +```jsonnet +PipelineMetricAggregation.CumulativeSum.withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.CumulativeSum.withSettings + +```jsonnet +PipelineMetricAggregation.CumulativeSum.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn PipelineMetricAggregation.CumulativeSum.withSettingsMixin + +```jsonnet +PipelineMetricAggregation.CumulativeSum.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn PipelineMetricAggregation.CumulativeSum.withType + +```jsonnet +PipelineMetricAggregation.CumulativeSum.withType() +``` + + + +##### obj PipelineMetricAggregation.CumulativeSum.settings + + +###### fn PipelineMetricAggregation.CumulativeSum.settings.withFormat + +```jsonnet +PipelineMetricAggregation.CumulativeSum.settings.withFormat(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj PipelineMetricAggregation.Derivative + + +##### fn PipelineMetricAggregation.Derivative.withField + +```jsonnet +PipelineMetricAggregation.Derivative.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.Derivative.withHide + +```jsonnet +PipelineMetricAggregation.Derivative.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn PipelineMetricAggregation.Derivative.withId + +```jsonnet +PipelineMetricAggregation.Derivative.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.Derivative.withPipelineAgg + +```jsonnet +PipelineMetricAggregation.Derivative.withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.Derivative.withSettings + +```jsonnet +PipelineMetricAggregation.Derivative.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn PipelineMetricAggregation.Derivative.withSettingsMixin + +```jsonnet +PipelineMetricAggregation.Derivative.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn PipelineMetricAggregation.Derivative.withType + +```jsonnet +PipelineMetricAggregation.Derivative.withType() +``` + + + +##### obj PipelineMetricAggregation.Derivative.settings + + +###### fn PipelineMetricAggregation.Derivative.settings.withUnit + +```jsonnet +PipelineMetricAggregation.Derivative.settings.withUnit(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### obj PipelineMetricAggregation.MovingAverage + + +##### fn PipelineMetricAggregation.MovingAverage.withField + +```jsonnet +PipelineMetricAggregation.MovingAverage.withField(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.MovingAverage.withHide + +```jsonnet +PipelineMetricAggregation.MovingAverage.withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +##### fn PipelineMetricAggregation.MovingAverage.withId + +```jsonnet +PipelineMetricAggregation.MovingAverage.withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.MovingAverage.withPipelineAgg + +```jsonnet +PipelineMetricAggregation.MovingAverage.withPipelineAgg(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn PipelineMetricAggregation.MovingAverage.withSettings + +```jsonnet +PipelineMetricAggregation.MovingAverage.withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn PipelineMetricAggregation.MovingAverage.withSettingsMixin + +```jsonnet +PipelineMetricAggregation.MovingAverage.withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +##### fn PipelineMetricAggregation.MovingAverage.withType + +```jsonnet +PipelineMetricAggregation.MovingAverage.withType() +``` + + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeClassicConditions/conditions.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeClassicConditions/conditions.md new file mode 100644 index 0000000..ec5853e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeClassicConditions/conditions.md @@ -0,0 +1,205 @@ +# conditions + + + +## Index + +* [`fn withEvaluator(value)`](#fn-withevaluator) +* [`fn withEvaluatorMixin(value)`](#fn-withevaluatormixin) +* [`fn withOperator(value)`](#fn-withoperator) +* [`fn withOperatorMixin(value)`](#fn-withoperatormixin) +* [`fn withQuery(value)`](#fn-withquery) +* [`fn withQueryMixin(value)`](#fn-withquerymixin) +* [`fn withReducer(value)`](#fn-withreducer) +* [`fn withReducerMixin(value)`](#fn-withreducermixin) +* [`obj evaluator`](#obj-evaluator) + * [`fn withParams(value)`](#fn-evaluatorwithparams) + * [`fn withParamsMixin(value)`](#fn-evaluatorwithparamsmixin) + * [`fn withType(value)`](#fn-evaluatorwithtype) +* [`obj operator`](#obj-operator) + * [`fn withType(value)`](#fn-operatorwithtype) +* [`obj query`](#obj-query) + * [`fn withParams(value)`](#fn-querywithparams) + * [`fn withParamsMixin(value)`](#fn-querywithparamsmixin) +* [`obj reducer`](#obj-reducer) + * [`fn withType(value)`](#fn-reducerwithtype) + +## Fields + +### fn withEvaluator + +```jsonnet +withEvaluator(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withEvaluatorMixin + +```jsonnet +withEvaluatorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withOperator + +```jsonnet +withOperator(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withOperatorMixin + +```jsonnet +withOperatorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withQuery + +```jsonnet +withQuery(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withQueryMixin + +```jsonnet +withQueryMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withReducer + +```jsonnet +withReducer(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withReducerMixin + +```jsonnet +withReducerMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### obj evaluator + + +#### fn evaluator.withParams + +```jsonnet +evaluator.withParams(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn evaluator.withParamsMixin + +```jsonnet +evaluator.withParamsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn evaluator.withType + +```jsonnet +evaluator.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +e.g. "gt" +### obj operator + + +#### fn operator.withType + +```jsonnet +operator.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"and"`, `"or"`, `"logic-or"` + + +### obj query + + +#### fn query.withParams + +```jsonnet +query.withParams(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn query.withParamsMixin + +```jsonnet +query.withParamsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### obj reducer + + +#### fn reducer.withType + +```jsonnet +reducer.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeClassicConditions/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeClassicConditions/index.md new file mode 100644 index 0000000..7d57eca --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeClassicConditions/index.md @@ -0,0 +1,315 @@ +# TypeClassicConditions + +grafonnet.query.expr.TypeClassicConditions + +## Subpackages + +* [conditions](conditions.md) + +## Index + +* [`fn withConditions(value)`](#fn-withconditions) +* [`fn withConditionsMixin(value)`](#fn-withconditionsmixin) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withIntervalMs(value)`](#fn-withintervalms) +* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withResultAssertions(value)`](#fn-withresultassertions) +* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) +* [`fn withTimeRange(value)`](#fn-withtimerange) +* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) +* [`fn withType()`](#fn-withtype) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj resultAssertions`](#obj-resultassertions) + * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) + * [`fn withType(value)`](#fn-resultassertionswithtype) + * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) + * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) +* [`obj timeRange`](#obj-timerange) + * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) + * [`fn withTo(value="now")`](#fn-timerangewithto) + +## Fields + +### fn withConditions + +```jsonnet +withConditions(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withConditionsMixin + +```jsonnet +withConditionsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withDatasourceMixin + +```jsonnet +withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +true if query is disabled (ie should not be returned to the dashboard) +NOTE: this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) +### fn withIntervalMs + +```jsonnet +withIntervalMs(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Interval is the suggested duration between time points in a time series query. +NOTE: the values for intervalMs is not saved in the query model. It is typically calculated +from the interval required to fill a pixels in the visualization +### fn withMaxDataPoints + +```jsonnet +withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +MaxDataPoints is the maximum number of data points that should be returned from a time series query. +NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated +from the number of pixels visible in a visualization +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +QueryType is an optional identifier for the type of query. +It can be used to distinguish different types of queries. +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +RefID is the unique identifier of the query, set by the frontend call. +### fn withResultAssertions + +```jsonnet +withResultAssertions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withResultAssertionsMixin + +```jsonnet +withResultAssertionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withTimeRange + +```jsonnet +withTimeRange(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withTimeRangeMixin + +```jsonnet +withTimeRangeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withType + +```jsonnet +withType() +``` + + + +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +### obj resultAssertions + + +#### fn resultAssertions.withMaxFrames + +```jsonnet +resultAssertions.withMaxFrames(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Maximum frame count +#### fn resultAssertions.withType + +```jsonnet +resultAssertions.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` + +Type asserts that the frame matches a known type structure. +Possible enum values: + - `""` + - `"timeseries-wide"` + - `"timeseries-long"` + - `"timeseries-many"` + - `"timeseries-multi"` + - `"directory-listing"` + - `"table"` + - `"numeric-wide"` + - `"numeric-multi"` + - `"numeric-long"` + - `"log-lines"` +#### fn resultAssertions.withTypeVersion + +```jsonnet +resultAssertions.withTypeVersion(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +#### fn resultAssertions.withTypeVersionMixin + +```jsonnet +resultAssertions.withTypeVersionMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +### obj timeRange + + +#### fn timeRange.withFrom + +```jsonnet +timeRange.withFrom(value="now-6h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now-6h"` + +From is the start time of the query. +#### fn timeRange.withTo + +```jsonnet +timeRange.withTo(value="now") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now"` + +To is the end time of the query. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeMath.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeMath.md new file mode 100644 index 0000000..5cdd604 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeMath.md @@ -0,0 +1,299 @@ +# TypeMath + +grafonnet.query.expr.TypeMath + +## Index + +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withExpression(value)`](#fn-withexpression) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withIntervalMs(value)`](#fn-withintervalms) +* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withResultAssertions(value)`](#fn-withresultassertions) +* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) +* [`fn withTimeRange(value)`](#fn-withtimerange) +* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) +* [`fn withType()`](#fn-withtype) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj resultAssertions`](#obj-resultassertions) + * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) + * [`fn withType(value)`](#fn-resultassertionswithtype) + * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) + * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) +* [`obj timeRange`](#obj-timerange) + * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) + * [`fn withTo(value="now")`](#fn-timerangewithto) + +## Fields + +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withDatasourceMixin + +```jsonnet +withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withExpression + +```jsonnet +withExpression(value) +``` + +PARAMETERS: + +* **value** (`string`) + +General math expression +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +true if query is disabled (ie should not be returned to the dashboard) +NOTE: this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) +### fn withIntervalMs + +```jsonnet +withIntervalMs(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Interval is the suggested duration between time points in a time series query. +NOTE: the values for intervalMs is not saved in the query model. It is typically calculated +from the interval required to fill a pixels in the visualization +### fn withMaxDataPoints + +```jsonnet +withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +MaxDataPoints is the maximum number of data points that should be returned from a time series query. +NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated +from the number of pixels visible in a visualization +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +QueryType is an optional identifier for the type of query. +It can be used to distinguish different types of queries. +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +RefID is the unique identifier of the query, set by the frontend call. +### fn withResultAssertions + +```jsonnet +withResultAssertions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withResultAssertionsMixin + +```jsonnet +withResultAssertionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withTimeRange + +```jsonnet +withTimeRange(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withTimeRangeMixin + +```jsonnet +withTimeRangeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withType + +```jsonnet +withType() +``` + + + +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +### obj resultAssertions + + +#### fn resultAssertions.withMaxFrames + +```jsonnet +resultAssertions.withMaxFrames(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Maximum frame count +#### fn resultAssertions.withType + +```jsonnet +resultAssertions.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` + +Type asserts that the frame matches a known type structure. +Possible enum values: + - `""` + - `"timeseries-wide"` + - `"timeseries-long"` + - `"timeseries-many"` + - `"timeseries-multi"` + - `"directory-listing"` + - `"table"` + - `"numeric-wide"` + - `"numeric-multi"` + - `"numeric-long"` + - `"log-lines"` +#### fn resultAssertions.withTypeVersion + +```jsonnet +resultAssertions.withTypeVersion(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +#### fn resultAssertions.withTypeVersionMixin + +```jsonnet +resultAssertions.withTypeVersionMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +### obj timeRange + + +#### fn timeRange.withFrom + +```jsonnet +timeRange.withFrom(value="now-6h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now-6h"` + +From is the start time of the query. +#### fn timeRange.withTo + +```jsonnet +timeRange.withTo(value="now") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now"` + +To is the end time of the query. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeReduce.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeReduce.md new file mode 100644 index 0000000..1caafbd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeReduce.md @@ -0,0 +1,376 @@ +# TypeReduce + +grafonnet.query.expr.TypeReduce + +## Index + +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withExpression(value)`](#fn-withexpression) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withIntervalMs(value)`](#fn-withintervalms) +* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withReducer(value)`](#fn-withreducer) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withResultAssertions(value)`](#fn-withresultassertions) +* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) +* [`fn withSettings(value)`](#fn-withsettings) +* [`fn withSettingsMixin(value)`](#fn-withsettingsmixin) +* [`fn withTimeRange(value)`](#fn-withtimerange) +* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) +* [`fn withType()`](#fn-withtype) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj resultAssertions`](#obj-resultassertions) + * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) + * [`fn withType(value)`](#fn-resultassertionswithtype) + * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) + * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) +* [`obj settings`](#obj-settings) + * [`fn withMode(value)`](#fn-settingswithmode) + * [`fn withReplaceWithValue(value)`](#fn-settingswithreplacewithvalue) +* [`obj timeRange`](#obj-timerange) + * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) + * [`fn withTo(value="now")`](#fn-timerangewithto) + +## Fields + +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withDatasourceMixin + +```jsonnet +withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withExpression + +```jsonnet +withExpression(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Reference to single query result +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +true if query is disabled (ie should not be returned to the dashboard) +NOTE: this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) +### fn withIntervalMs + +```jsonnet +withIntervalMs(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Interval is the suggested duration between time points in a time series query. +NOTE: the values for intervalMs is not saved in the query model. It is typically calculated +from the interval required to fill a pixels in the visualization +### fn withMaxDataPoints + +```jsonnet +withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +MaxDataPoints is the maximum number of data points that should be returned from a time series query. +NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated +from the number of pixels visible in a visualization +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +QueryType is an optional identifier for the type of query. +It can be used to distinguish different types of queries. +### fn withReducer + +```jsonnet +withReducer(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"sum"`, `"mean"`, `"min"`, `"max"`, `"count"`, `"last"`, `"median"` + +The reducer +Possible enum values: + - `"sum"` + - `"mean"` + - `"min"` + - `"max"` + - `"count"` + - `"last"` + - `"median"` +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +RefID is the unique identifier of the query, set by the frontend call. +### fn withResultAssertions + +```jsonnet +withResultAssertions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withResultAssertionsMixin + +```jsonnet +withResultAssertionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withSettings + +```jsonnet +withSettings(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Reducer Options +### fn withSettingsMixin + +```jsonnet +withSettingsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Reducer Options +### fn withTimeRange + +```jsonnet +withTimeRange(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withTimeRangeMixin + +```jsonnet +withTimeRangeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withType + +```jsonnet +withType() +``` + + + +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +### obj resultAssertions + + +#### fn resultAssertions.withMaxFrames + +```jsonnet +resultAssertions.withMaxFrames(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Maximum frame count +#### fn resultAssertions.withType + +```jsonnet +resultAssertions.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` + +Type asserts that the frame matches a known type structure. +Possible enum values: + - `""` + - `"timeseries-wide"` + - `"timeseries-long"` + - `"timeseries-many"` + - `"timeseries-multi"` + - `"directory-listing"` + - `"table"` + - `"numeric-wide"` + - `"numeric-multi"` + - `"numeric-long"` + - `"log-lines"` +#### fn resultAssertions.withTypeVersion + +```jsonnet +resultAssertions.withTypeVersion(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +#### fn resultAssertions.withTypeVersionMixin + +```jsonnet +resultAssertions.withTypeVersionMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +### obj settings + + +#### fn settings.withMode + +```jsonnet +settings.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"dropNN"`, `"replaceNN"` + +Non-number reduce behavior +Possible enum values: + - `"dropNN"` Drop non-numbers + - `"replaceNN"` Replace non-numbers +#### fn settings.withReplaceWithValue + +```jsonnet +settings.withReplaceWithValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Only valid when mode is replace +### obj timeRange + + +#### fn timeRange.withFrom + +```jsonnet +timeRange.withFrom(value="now-6h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now-6h"` + +From is the start time of the query. +#### fn timeRange.withTo + +```jsonnet +timeRange.withTo(value="now") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now"` + +To is the end time of the query. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeResample.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeResample.md new file mode 100644 index 0000000..447283f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeResample.md @@ -0,0 +1,349 @@ +# TypeResample + +grafonnet.query.expr.TypeResample + +## Index + +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withDownsampler(value)`](#fn-withdownsampler) +* [`fn withExpression(value)`](#fn-withexpression) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withIntervalMs(value)`](#fn-withintervalms) +* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withResultAssertions(value)`](#fn-withresultassertions) +* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) +* [`fn withTimeRange(value)`](#fn-withtimerange) +* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) +* [`fn withType()`](#fn-withtype) +* [`fn withUpsampler(value)`](#fn-withupsampler) +* [`fn withWindow(value)`](#fn-withwindow) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj resultAssertions`](#obj-resultassertions) + * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) + * [`fn withType(value)`](#fn-resultassertionswithtype) + * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) + * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) +* [`obj timeRange`](#obj-timerange) + * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) + * [`fn withTo(value="now")`](#fn-timerangewithto) + +## Fields + +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withDatasourceMixin + +```jsonnet +withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withDownsampler + +```jsonnet +withDownsampler(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"sum"`, `"mean"`, `"min"`, `"max"`, `"count"`, `"last"`, `"median"` + +The downsample function +Possible enum values: + - `"sum"` + - `"mean"` + - `"min"` + - `"max"` + - `"count"` + - `"last"` + - `"median"` +### fn withExpression + +```jsonnet +withExpression(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The math expression +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +true if query is disabled (ie should not be returned to the dashboard) +NOTE: this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) +### fn withIntervalMs + +```jsonnet +withIntervalMs(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Interval is the suggested duration between time points in a time series query. +NOTE: the values for intervalMs is not saved in the query model. It is typically calculated +from the interval required to fill a pixels in the visualization +### fn withMaxDataPoints + +```jsonnet +withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +MaxDataPoints is the maximum number of data points that should be returned from a time series query. +NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated +from the number of pixels visible in a visualization +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +QueryType is an optional identifier for the type of query. +It can be used to distinguish different types of queries. +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +RefID is the unique identifier of the query, set by the frontend call. +### fn withResultAssertions + +```jsonnet +withResultAssertions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withResultAssertionsMixin + +```jsonnet +withResultAssertionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withTimeRange + +```jsonnet +withTimeRange(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withTimeRangeMixin + +```jsonnet +withTimeRangeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withType + +```jsonnet +withType() +``` + + + +### fn withUpsampler + +```jsonnet +withUpsampler(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"pad"`, `"backfilling"`, `"fillna"` + +The upsample function +Possible enum values: + - `"pad"` Use the last seen value + - `"backfilling"` backfill + - `"fillna"` Do not fill values (nill) +### fn withWindow + +```jsonnet +withWindow(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The time duration +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +### obj resultAssertions + + +#### fn resultAssertions.withMaxFrames + +```jsonnet +resultAssertions.withMaxFrames(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Maximum frame count +#### fn resultAssertions.withType + +```jsonnet +resultAssertions.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` + +Type asserts that the frame matches a known type structure. +Possible enum values: + - `""` + - `"timeseries-wide"` + - `"timeseries-long"` + - `"timeseries-many"` + - `"timeseries-multi"` + - `"directory-listing"` + - `"table"` + - `"numeric-wide"` + - `"numeric-multi"` + - `"numeric-long"` + - `"log-lines"` +#### fn resultAssertions.withTypeVersion + +```jsonnet +resultAssertions.withTypeVersion(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +#### fn resultAssertions.withTypeVersionMixin + +```jsonnet +resultAssertions.withTypeVersionMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +### obj timeRange + + +#### fn timeRange.withFrom + +```jsonnet +timeRange.withFrom(value="now-6h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now-6h"` + +From is the start time of the query. +#### fn timeRange.withTo + +```jsonnet +timeRange.withTo(value="now") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now"` + +To is the end time of the query. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeSql.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeSql.md new file mode 100644 index 0000000..ac71f3e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeSql.md @@ -0,0 +1,299 @@ +# TypeSql + +grafonnet.query.expr.TypeSql + +## Index + +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withExpression(value)`](#fn-withexpression) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withIntervalMs(value)`](#fn-withintervalms) +* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withResultAssertions(value)`](#fn-withresultassertions) +* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) +* [`fn withTimeRange(value)`](#fn-withtimerange) +* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) +* [`fn withType()`](#fn-withtype) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj resultAssertions`](#obj-resultassertions) + * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) + * [`fn withType(value)`](#fn-resultassertionswithtype) + * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) + * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) +* [`obj timeRange`](#obj-timerange) + * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) + * [`fn withTo(value="now")`](#fn-timerangewithto) + +## Fields + +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withDatasourceMixin + +```jsonnet +withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withExpression + +```jsonnet +withExpression(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +true if query is disabled (ie should not be returned to the dashboard) +NOTE: this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) +### fn withIntervalMs + +```jsonnet +withIntervalMs(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Interval is the suggested duration between time points in a time series query. +NOTE: the values for intervalMs is not saved in the query model. It is typically calculated +from the interval required to fill a pixels in the visualization +### fn withMaxDataPoints + +```jsonnet +withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +MaxDataPoints is the maximum number of data points that should be returned from a time series query. +NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated +from the number of pixels visible in a visualization +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +QueryType is an optional identifier for the type of query. +It can be used to distinguish different types of queries. +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +RefID is the unique identifier of the query, set by the frontend call. +### fn withResultAssertions + +```jsonnet +withResultAssertions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withResultAssertionsMixin + +```jsonnet +withResultAssertionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withTimeRange + +```jsonnet +withTimeRange(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withTimeRangeMixin + +```jsonnet +withTimeRangeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withType + +```jsonnet +withType() +``` + + + +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +### obj resultAssertions + + +#### fn resultAssertions.withMaxFrames + +```jsonnet +resultAssertions.withMaxFrames(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Maximum frame count +#### fn resultAssertions.withType + +```jsonnet +resultAssertions.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` + +Type asserts that the frame matches a known type structure. +Possible enum values: + - `""` + - `"timeseries-wide"` + - `"timeseries-long"` + - `"timeseries-many"` + - `"timeseries-multi"` + - `"directory-listing"` + - `"table"` + - `"numeric-wide"` + - `"numeric-multi"` + - `"numeric-long"` + - `"log-lines"` +#### fn resultAssertions.withTypeVersion + +```jsonnet +resultAssertions.withTypeVersion(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +#### fn resultAssertions.withTypeVersionMixin + +```jsonnet +resultAssertions.withTypeVersionMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +### obj timeRange + + +#### fn timeRange.withFrom + +```jsonnet +timeRange.withFrom(value="now-6h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now-6h"` + +From is the start time of the query. +#### fn timeRange.withTo + +```jsonnet +timeRange.withTo(value="now") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now"` + +To is the end time of the query. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeThreshold/conditions.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeThreshold/conditions.md new file mode 100644 index 0000000..554ddb9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeThreshold/conditions.md @@ -0,0 +1,163 @@ +# conditions + + + +## Index + +* [`fn withEvaluator(value)`](#fn-withevaluator) +* [`fn withEvaluatorMixin(value)`](#fn-withevaluatormixin) +* [`fn withLoadedDimensions(value)`](#fn-withloadeddimensions) +* [`fn withLoadedDimensionsMixin(value)`](#fn-withloadeddimensionsmixin) +* [`fn withUnloadEvaluator(value)`](#fn-withunloadevaluator) +* [`fn withUnloadEvaluatorMixin(value)`](#fn-withunloadevaluatormixin) +* [`obj evaluator`](#obj-evaluator) + * [`fn withParams(value)`](#fn-evaluatorwithparams) + * [`fn withParamsMixin(value)`](#fn-evaluatorwithparamsmixin) + * [`fn withType(value)`](#fn-evaluatorwithtype) +* [`obj unloadEvaluator`](#obj-unloadevaluator) + * [`fn withParams(value)`](#fn-unloadevaluatorwithparams) + * [`fn withParamsMixin(value)`](#fn-unloadevaluatorwithparamsmixin) + * [`fn withType(value)`](#fn-unloadevaluatorwithtype) + +## Fields + +### fn withEvaluator + +```jsonnet +withEvaluator(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withEvaluatorMixin + +```jsonnet +withEvaluatorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withLoadedDimensions + +```jsonnet +withLoadedDimensions(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withLoadedDimensionsMixin + +```jsonnet +withLoadedDimensionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withUnloadEvaluator + +```jsonnet +withUnloadEvaluator(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withUnloadEvaluatorMixin + +```jsonnet +withUnloadEvaluatorMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### obj evaluator + + +#### fn evaluator.withParams + +```jsonnet +evaluator.withParams(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn evaluator.withParamsMixin + +```jsonnet +evaluator.withParamsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn evaluator.withType + +```jsonnet +evaluator.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"gt"`, `"lt"`, `"within_range"`, `"outside_range"` + +e.g. "gt" +### obj unloadEvaluator + + +#### fn unloadEvaluator.withParams + +```jsonnet +unloadEvaluator.withParams(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn unloadEvaluator.withParamsMixin + +```jsonnet +unloadEvaluator.withParamsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn unloadEvaluator.withType + +```jsonnet +unloadEvaluator.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"gt"`, `"lt"`, `"within_range"`, `"outside_range"` + +e.g. "gt" \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeThreshold/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeThreshold/index.md new file mode 100644 index 0000000..9d5783c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/TypeThreshold/index.md @@ -0,0 +1,327 @@ +# TypeThreshold + +grafonnet.query.expr.TypeThreshold + +## Subpackages + +* [conditions](conditions.md) + +## Index + +* [`fn withConditions(value)`](#fn-withconditions) +* [`fn withConditionsMixin(value)`](#fn-withconditionsmixin) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) +* [`fn withExpression(value)`](#fn-withexpression) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withIntervalMs(value)`](#fn-withintervalms) +* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withResultAssertions(value)`](#fn-withresultassertions) +* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) +* [`fn withTimeRange(value)`](#fn-withtimerange) +* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) +* [`fn withType()`](#fn-withtype) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj resultAssertions`](#obj-resultassertions) + * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) + * [`fn withType(value)`](#fn-resultassertionswithtype) + * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) + * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) +* [`obj timeRange`](#obj-timerange) + * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) + * [`fn withTo(value="now")`](#fn-timerangewithto) + +## Fields + +### fn withConditions + +```jsonnet +withConditions(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Threshold Conditions +### fn withConditionsMixin + +```jsonnet +withConditionsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Threshold Conditions +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withDatasourceMixin + +```jsonnet +withDatasourceMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Ref to a DataSource instance +### fn withExpression + +```jsonnet +withExpression(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Reference to single query result +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +true if query is disabled (ie should not be returned to the dashboard) +NOTE: this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) +### fn withIntervalMs + +```jsonnet +withIntervalMs(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Interval is the suggested duration between time points in a time series query. +NOTE: the values for intervalMs is not saved in the query model. It is typically calculated +from the interval required to fill a pixels in the visualization +### fn withMaxDataPoints + +```jsonnet +withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +MaxDataPoints is the maximum number of data points that should be returned from a time series query. +NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated +from the number of pixels visible in a visualization +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +QueryType is an optional identifier for the type of query. +It can be used to distinguish different types of queries. +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +RefID is the unique identifier of the query, set by the frontend call. +### fn withResultAssertions + +```jsonnet +withResultAssertions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withResultAssertionsMixin + +```jsonnet +withResultAssertionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withTimeRange + +```jsonnet +withTimeRange(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withTimeRangeMixin + +```jsonnet +withTimeRangeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withType + +```jsonnet +withType() +``` + + + +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +### obj resultAssertions + + +#### fn resultAssertions.withMaxFrames + +```jsonnet +resultAssertions.withMaxFrames(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Maximum frame count +#### fn resultAssertions.withType + +```jsonnet +resultAssertions.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` + +Type asserts that the frame matches a known type structure. +Possible enum values: + - `""` + - `"timeseries-wide"` + - `"timeseries-long"` + - `"timeseries-many"` + - `"timeseries-multi"` + - `"directory-listing"` + - `"table"` + - `"numeric-wide"` + - `"numeric-multi"` + - `"numeric-long"` + - `"log-lines"` +#### fn resultAssertions.withTypeVersion + +```jsonnet +resultAssertions.withTypeVersion(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +#### fn resultAssertions.withTypeVersionMixin + +```jsonnet +resultAssertions.withTypeVersionMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +### obj timeRange + + +#### fn timeRange.withFrom + +```jsonnet +timeRange.withFrom(value="now-6h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now-6h"` + +From is the start time of the query. +#### fn timeRange.withTo + +```jsonnet +timeRange.withTo(value="now") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now"` + +To is the end time of the query. \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/index.md new file mode 100644 index 0000000..a89a72a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/expr/index.md @@ -0,0 +1,12 @@ +# expr + +Server Side Expression operations for grafonnet.alerting.ruleGroup.rule + +## Subpackages + +* [TypeClassicConditions](TypeClassicConditions/index.md) +* [TypeMath](TypeMath.md) +* [TypeReduce](TypeReduce.md) +* [TypeResample](TypeResample.md) +* [TypeSql](TypeSql.md) +* [TypeThreshold](TypeThreshold/index.md) diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/googleCloudMonitoring.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/googleCloudMonitoring.md new file mode 100644 index 0000000..bdd9c76 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/googleCloudMonitoring.md @@ -0,0 +1,623 @@ +# googleCloudMonitoring + +grafonnet.query.googleCloudMonitoring + +## Index + +* [`fn withAliasBy(value)`](#fn-withaliasby) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withIntervalMs(value)`](#fn-withintervalms) +* [`fn withPromQLQuery(value)`](#fn-withpromqlquery) +* [`fn withPromQLQueryMixin(value)`](#fn-withpromqlquerymixin) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withSloQuery(value)`](#fn-withsloquery) +* [`fn withSloQueryMixin(value)`](#fn-withsloquerymixin) +* [`fn withTimeSeriesList(value)`](#fn-withtimeserieslist) +* [`fn withTimeSeriesListMixin(value)`](#fn-withtimeserieslistmixin) +* [`fn withTimeSeriesQuery(value)`](#fn-withtimeseriesquery) +* [`fn withTimeSeriesQueryMixin(value)`](#fn-withtimeseriesquerymixin) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj promQLQuery`](#obj-promqlquery) + * [`fn withExpr(value)`](#fn-promqlquerywithexpr) + * [`fn withProjectName(value)`](#fn-promqlquerywithprojectname) + * [`fn withStep(value)`](#fn-promqlquerywithstep) +* [`obj sloQuery`](#obj-sloquery) + * [`fn withAlignmentPeriod(value)`](#fn-sloquerywithalignmentperiod) + * [`fn withGoal(value)`](#fn-sloquerywithgoal) + * [`fn withLookbackPeriod(value)`](#fn-sloquerywithlookbackperiod) + * [`fn withPerSeriesAligner(value)`](#fn-sloquerywithperseriesaligner) + * [`fn withProjectName(value)`](#fn-sloquerywithprojectname) + * [`fn withSelectorName(value)`](#fn-sloquerywithselectorname) + * [`fn withServiceId(value)`](#fn-sloquerywithserviceid) + * [`fn withServiceName(value)`](#fn-sloquerywithservicename) + * [`fn withSloId(value)`](#fn-sloquerywithsloid) + * [`fn withSloName(value)`](#fn-sloquerywithsloname) +* [`obj timeSeriesList`](#obj-timeserieslist) + * [`fn withAlignmentPeriod(value)`](#fn-timeserieslistwithalignmentperiod) + * [`fn withCrossSeriesReducer(value)`](#fn-timeserieslistwithcrossseriesreducer) + * [`fn withFilters(value)`](#fn-timeserieslistwithfilters) + * [`fn withFiltersMixin(value)`](#fn-timeserieslistwithfiltersmixin) + * [`fn withGroupBys(value)`](#fn-timeserieslistwithgroupbys) + * [`fn withGroupBysMixin(value)`](#fn-timeserieslistwithgroupbysmixin) + * [`fn withPerSeriesAligner(value)`](#fn-timeserieslistwithperseriesaligner) + * [`fn withPreprocessor(value)`](#fn-timeserieslistwithpreprocessor) + * [`fn withProjectName(value)`](#fn-timeserieslistwithprojectname) + * [`fn withSecondaryAlignmentPeriod(value)`](#fn-timeserieslistwithsecondaryalignmentperiod) + * [`fn withSecondaryCrossSeriesReducer(value)`](#fn-timeserieslistwithsecondarycrossseriesreducer) + * [`fn withSecondaryGroupBys(value)`](#fn-timeserieslistwithsecondarygroupbys) + * [`fn withSecondaryGroupBysMixin(value)`](#fn-timeserieslistwithsecondarygroupbysmixin) + * [`fn withSecondaryPerSeriesAligner(value)`](#fn-timeserieslistwithsecondaryperseriesaligner) + * [`fn withText(value)`](#fn-timeserieslistwithtext) + * [`fn withTitle(value)`](#fn-timeserieslistwithtitle) + * [`fn withView(value)`](#fn-timeserieslistwithview) +* [`obj timeSeriesQuery`](#obj-timeseriesquery) + * [`fn withGraphPeriod(value="disabled")`](#fn-timeseriesquerywithgraphperiod) + * [`fn withProjectName(value)`](#fn-timeseriesquerywithprojectname) + * [`fn withQuery(value)`](#fn-timeseriesquerywithquery) + +## Fields + +### fn withAliasBy + +```jsonnet +withAliasBy(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail. +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Set the datasource for this query. +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. +### fn withIntervalMs + +```jsonnet +withIntervalMs(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Time interval in milliseconds. +### fn withPromQLQuery + +```jsonnet +withPromQLQuery(value) +``` + +PARAMETERS: + +* **value** (`object`) + +PromQL sub-query properties. +### fn withPromQLQueryMixin + +```jsonnet +withPromQLQueryMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +PromQL sub-query properties. +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specify the query flavor +TODO make this required and give it a default +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. +### fn withSloQuery + +```jsonnet +withSloQuery(value) +``` + +PARAMETERS: + +* **value** (`object`) + +SLO sub-query properties. +### fn withSloQueryMixin + +```jsonnet +withSloQueryMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +SLO sub-query properties. +### fn withTimeSeriesList + +```jsonnet +withTimeSeriesList(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Time Series List sub-query properties. +### fn withTimeSeriesListMixin + +```jsonnet +withTimeSeriesListMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Time Series List sub-query properties. +### fn withTimeSeriesQuery + +```jsonnet +withTimeSeriesQuery(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Time Series sub-query properties. +### fn withTimeSeriesQueryMixin + +```jsonnet +withTimeSeriesQueryMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Time Series sub-query properties. +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +### obj promQLQuery + + +#### fn promQLQuery.withExpr + +```jsonnet +promQLQuery.withExpr(value) +``` + +PARAMETERS: + +* **value** (`string`) + +PromQL expression/query to be executed. +#### fn promQLQuery.withProjectName + +```jsonnet +promQLQuery.withProjectName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +GCP project to execute the query against. +#### fn promQLQuery.withStep + +```jsonnet +promQLQuery.withStep(value) +``` + +PARAMETERS: + +* **value** (`string`) + +PromQL min step +### obj sloQuery + + +#### fn sloQuery.withAlignmentPeriod + +```jsonnet +sloQuery.withAlignmentPeriod(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto. +#### fn sloQuery.withGoal + +```jsonnet +sloQuery.withGoal(value) +``` + +PARAMETERS: + +* **value** (`number`) + +SLO goal value. +#### fn sloQuery.withLookbackPeriod + +```jsonnet +sloQuery.withLookbackPeriod(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific lookback period for the SLO. +#### fn sloQuery.withPerSeriesAligner + +```jsonnet +sloQuery.withPerSeriesAligner(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alignment function to be used. Defaults to ALIGN_MEAN. +#### fn sloQuery.withProjectName + +```jsonnet +sloQuery.withProjectName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +GCP project to execute the query against. +#### fn sloQuery.withSelectorName + +```jsonnet +sloQuery.withSelectorName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +SLO selector. +#### fn sloQuery.withServiceId + +```jsonnet +sloQuery.withServiceId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +ID for the service the SLO is in. +#### fn sloQuery.withServiceName + +```jsonnet +sloQuery.withServiceName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name for the service the SLO is in. +#### fn sloQuery.withSloId + +```jsonnet +sloQuery.withSloId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +ID for the SLO. +#### fn sloQuery.withSloName + +```jsonnet +sloQuery.withSloName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of the SLO. +### obj timeSeriesList + + +#### fn timeSeriesList.withAlignmentPeriod + +```jsonnet +timeSeriesList.withAlignmentPeriod(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto. +#### fn timeSeriesList.withCrossSeriesReducer + +```jsonnet +timeSeriesList.withCrossSeriesReducer(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Reducer applied across a set of time-series values. Defaults to REDUCE_NONE. +#### fn timeSeriesList.withFilters + +```jsonnet +timeSeriesList.withFilters(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Array of filters to query data by. Labels that can be filtered on are defined by the metric. +#### fn timeSeriesList.withFiltersMixin + +```jsonnet +timeSeriesList.withFiltersMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Array of filters to query data by. Labels that can be filtered on are defined by the metric. +#### fn timeSeriesList.withGroupBys + +```jsonnet +timeSeriesList.withGroupBys(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Array of labels to group data by. +#### fn timeSeriesList.withGroupBysMixin + +```jsonnet +timeSeriesList.withGroupBysMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Array of labels to group data by. +#### fn timeSeriesList.withPerSeriesAligner + +```jsonnet +timeSeriesList.withPerSeriesAligner(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Alignment function to be used. Defaults to ALIGN_MEAN. +#### fn timeSeriesList.withPreprocessor + +```jsonnet +timeSeriesList.withPreprocessor(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"none"`, `"rate"`, `"delta"` + +Types of pre-processor available. Defined by the metric. +#### fn timeSeriesList.withProjectName + +```jsonnet +timeSeriesList.withProjectName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +GCP project to execute the query against. +#### fn timeSeriesList.withSecondaryAlignmentPeriod + +```jsonnet +timeSeriesList.withSecondaryAlignmentPeriod(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Only present if a preprocessor is selected. Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto. +#### fn timeSeriesList.withSecondaryCrossSeriesReducer + +```jsonnet +timeSeriesList.withSecondaryCrossSeriesReducer(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Only present if a preprocessor is selected. Reducer applied across a set of time-series values. Defaults to REDUCE_NONE. +#### fn timeSeriesList.withSecondaryGroupBys + +```jsonnet +timeSeriesList.withSecondaryGroupBys(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Only present if a preprocessor is selected. Array of labels to group data by. +#### fn timeSeriesList.withSecondaryGroupBysMixin + +```jsonnet +timeSeriesList.withSecondaryGroupBysMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Only present if a preprocessor is selected. Array of labels to group data by. +#### fn timeSeriesList.withSecondaryPerSeriesAligner + +```jsonnet +timeSeriesList.withSecondaryPerSeriesAligner(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Only present if a preprocessor is selected. Alignment function to be used. Defaults to ALIGN_MEAN. +#### fn timeSeriesList.withText + +```jsonnet +timeSeriesList.withText(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Annotation text. +#### fn timeSeriesList.withTitle + +```jsonnet +timeSeriesList.withTitle(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Annotation title. +#### fn timeSeriesList.withView + +```jsonnet +timeSeriesList.withView(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Data view, defaults to FULL. +### obj timeSeriesQuery + + +#### fn timeSeriesQuery.withGraphPeriod + +```jsonnet +timeSeriesQuery.withGraphPeriod(value="disabled") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"disabled"` + +To disable the graphPeriod, it should explictly be set to 'disabled'. +#### fn timeSeriesQuery.withProjectName + +```jsonnet +timeSeriesQuery.withProjectName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +GCP project to execute the query against. +#### fn timeSeriesQuery.withQuery + +```jsonnet +timeSeriesQuery.withQuery(value) +``` + +PARAMETERS: + +* **value** (`string`) + +MQL query to be executed. \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/grafanaPyroscope.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/grafanaPyroscope.md similarity index 50% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/grafanaPyroscope.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/grafanaPyroscope.md index 36e0fce..a8dd684 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/grafanaPyroscope.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/grafanaPyroscope.md @@ -13,85 +13,162 @@ grafonnet.query.grafanaPyroscope * [`fn withProfileTypeId(value)`](#fn-withprofiletypeid) * [`fn withQueryType(value)`](#fn-withquerytype) * [`fn withRefId(value)`](#fn-withrefid) +* [`fn withSpanSelector(value)`](#fn-withspanselector) +* [`fn withSpanSelectorMixin(value)`](#fn-withspanselectormixin) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) ## Fields ### fn withDatasource -```ts +```jsonnet withDatasource(value) ``` -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null +PARAMETERS: +* **value** (`string`) + +Set the datasource for this query. ### fn withGroupBy -```ts +```jsonnet withGroupBy(value) ``` -Allows to group the results. +PARAMETERS: + +* **value** (`array`) +Allows to group the results. ### fn withGroupByMixin -```ts +```jsonnet withGroupByMixin(value) ``` -Allows to group the results. +PARAMETERS: + +* **value** (`array`) +Allows to group the results. ### fn withHide -```ts +```jsonnet withHide(value=true) ``` -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. ### fn withLabelSelector -```ts +```jsonnet withLabelSelector(value="{}") ``` -Specifies the query label selectors. +PARAMETERS: +* **value** (`string`) + - default value: `"{}"` + +Specifies the query label selectors. ### fn withMaxNodes -```ts +```jsonnet withMaxNodes(value) ``` -Sets the maximum number of nodes in the flamegraph. +PARAMETERS: + +* **value** (`integer`) +Sets the maximum number of nodes in the flamegraph. ### fn withProfileTypeId -```ts +```jsonnet withProfileTypeId(value) ``` -Specifies the type of profile to query. +PARAMETERS: + +* **value** (`string`) +Specifies the type of profile to query. ### fn withQueryType -```ts +```jsonnet withQueryType(value) ``` +PARAMETERS: + +* **value** (`string`) + Specify the query flavor TODO make this required and give it a default - ### fn withRefId -```ts +```jsonnet withRefId(value) ``` +PARAMETERS: + +* **value** (`string`) + A unique identifier for the query within the list of targets. In server side expressions, the refId is used as a variable name to identify results. By default, the UI will assign A->Z; however setting meaningful names may be useful. +### fn withSpanSelector + +```jsonnet +withSpanSelector(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Specifies the query span selectors. +### fn withSpanSelectorMixin + +```jsonnet +withSpanSelectorMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Specifies the query span selectors. +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/index.md new file mode 100644 index 0000000..2ca9588 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/index.md @@ -0,0 +1,19 @@ +# query + +grafonnet.query + +## Subpackages + +* [athena](athena.md) +* [azureMonitor](azureMonitor/index.md) +* [bigquery](bigquery/index.md) +* [cloudWatch](cloudWatch/index.md) +* [elasticsearch](elasticsearch/index.md) +* [expr](expr/index.md) +* [googleCloudMonitoring](googleCloudMonitoring.md) +* [grafanaPyroscope](grafanaPyroscope.md) +* [loki](loki.md) +* [parca](parca.md) +* [prometheus](prometheus.md) +* [tempo](tempo/index.md) +* [testData](testData/index.md) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/loki.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/loki.md similarity index 54% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/loki.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/loki.md index 27854ae..56eb6c7 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/loki.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/loki.md @@ -16,108 +16,186 @@ grafonnet.query.loki * [`fn withRange(value=true)`](#fn-withrange) * [`fn withRefId(value)`](#fn-withrefid) * [`fn withResolution(value)`](#fn-withresolution) +* [`fn withStep(value)`](#fn-withstep) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) ## Fields ### fn new -```ts +```jsonnet new(datasource, expr) ``` -Creates a new loki query target for panels. +PARAMETERS: + +* **datasource** (`string`) +* **expr** (`string`) +Creates a new loki query target for panels. ### fn withDatasource -```ts +```jsonnet withDatasource(value) ``` -Set the datasource for this query. +PARAMETERS: + +* **value** (`string`) +Set the datasource for this query. ### fn withEditorMode -```ts +```jsonnet withEditorMode(value) ``` +PARAMETERS: +* **value** (`string`) + - valid values: `"code"`, `"builder"` -Accepted values for `value` are "code", "builder" ### fn withExpr -```ts +```jsonnet withExpr(value) ``` -The LogQL query. +PARAMETERS: + +* **value** (`string`) +The LogQL query. ### fn withHide -```ts +```jsonnet withHide(value=true) ``` -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) +PARAMETERS: +* **value** (`boolean`) + - default value: `true` + +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. ### fn withInstant -```ts +```jsonnet withInstant(value=true) ``` -@deprecated, now use queryType. +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +@deprecated, now use queryType. ### fn withLegendFormat -```ts +```jsonnet withLegendFormat(value) ``` -Used to override the name of the series. +PARAMETERS: + +* **value** (`string`) +Used to override the name of the series. ### fn withMaxLines -```ts +```jsonnet withMaxLines(value) ``` -Used to limit the number of log rows returned. +PARAMETERS: + +* **value** (`integer`) +Used to limit the number of log rows returned. ### fn withQueryType -```ts +```jsonnet withQueryType(value) ``` +PARAMETERS: + +* **value** (`string`) + Specify the query flavor TODO make this required and give it a default - ### fn withRange -```ts +```jsonnet withRange(value=true) ``` -@deprecated, now use queryType. +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +@deprecated, now use queryType. ### fn withRefId -```ts +```jsonnet withRefId(value) ``` +PARAMETERS: + +* **value** (`string`) + A unique identifier for the query within the list of targets. In server side expressions, the refId is used as a variable name to identify results. By default, the UI will assign A->Z; however setting meaningful names may be useful. - ### fn withResolution -```ts +```jsonnet withResolution(value) ``` -Used to scale the interval value. +PARAMETERS: + +* **value** (`integer`) + +@deprecated, now use step. +### fn withStep + +```jsonnet +withStep(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Used to set step value for range queries. +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/parca.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/parca.md similarity index 53% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/parca.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/parca.md index 0c8f266..8790944 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/parca.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/parca.md @@ -10,61 +10,105 @@ grafonnet.query.parca * [`fn withProfileTypeId(value)`](#fn-withprofiletypeid) * [`fn withQueryType(value)`](#fn-withquerytype) * [`fn withRefId(value)`](#fn-withrefid) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) ## Fields ### fn withDatasource -```ts +```jsonnet withDatasource(value) ``` -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null +PARAMETERS: +* **value** (`string`) + +Set the datasource for this query. ### fn withHide -```ts +```jsonnet withHide(value=true) ``` -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. ### fn withLabelSelector -```ts +```jsonnet withLabelSelector(value="{}") ``` -Specifies the query label selectors. +PARAMETERS: + +* **value** (`string`) + - default value: `"{}"` +Specifies the query label selectors. ### fn withProfileTypeId -```ts +```jsonnet withProfileTypeId(value) ``` -Specifies the type of profile to query. +PARAMETERS: + +* **value** (`string`) +Specifies the type of profile to query. ### fn withQueryType -```ts +```jsonnet withQueryType(value) ``` +PARAMETERS: + +* **value** (`string`) + Specify the query flavor TODO make this required and give it a default - ### fn withRefId -```ts +```jsonnet withRefId(value) ``` +PARAMETERS: + +* **value** (`string`) + A unique identifier for the query within the list of targets. In server side expressions, the refId is used as a variable name to identify results. By default, the UI will assign A->Z; however setting meaningful names may be useful. +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/prometheus.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/prometheus.md similarity index 53% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/prometheus.md rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/prometheus.md index 2b76e8f..737c753 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/grafonnet/query/prometheus.md +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/prometheus.md @@ -12,123 +12,205 @@ grafonnet.query.prometheus * [`fn withFormat(value)`](#fn-withformat) * [`fn withHide(value=true)`](#fn-withhide) * [`fn withInstant(value=true)`](#fn-withinstant) +* [`fn withInterval(value)`](#fn-withinterval) * [`fn withIntervalFactor(value)`](#fn-withintervalfactor) * [`fn withLegendFormat(value)`](#fn-withlegendformat) * [`fn withQueryType(value)`](#fn-withquerytype) * [`fn withRange(value=true)`](#fn-withrange) * [`fn withRefId(value)`](#fn-withrefid) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) ## Fields ### fn new -```ts +```jsonnet new(datasource, expr) ``` -Creates a new prometheus query target for panels. +PARAMETERS: + +* **datasource** (`string`) +* **expr** (`string`) +Creates a new prometheus query target for panels. ### fn withDatasource -```ts +```jsonnet withDatasource(value) ``` -Set the datasource for this query. +PARAMETERS: + +* **value** (`string`) +Set the datasource for this query. ### fn withEditorMode -```ts +```jsonnet withEditorMode(value) ``` +PARAMETERS: +* **value** (`string`) + - valid values: `"code"`, `"builder"` -Accepted values for `value` are "code", "builder" - +Specifies which editor is being used to prepare the query. It can be "code" or "builder" ### fn withExemplar -```ts +```jsonnet withExemplar(value=true) ``` -Execute an additional query to identify interesting raw samples relevant for the given expr +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +Execute an additional query to identify interesting raw samples relevant for the given expr ### fn withExpr -```ts +```jsonnet withExpr(value) ``` -The actual expression/query that will be evaluated by Prometheus +PARAMETERS: + +* **value** (`string`) +The actual expression/query that will be evaluated by Prometheus ### fn withFormat -```ts +```jsonnet withFormat(value) ``` +PARAMETERS: +* **value** (`string`) + - valid values: `"time_series"`, `"table"`, `"heatmap"` -Accepted values for `value` are "time_series", "table", "heatmap" - +Query format to determine how to display data points in panel. It can be "time_series", "table", "heatmap" ### fn withHide -```ts +```jsonnet withHide(value=true) ``` -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. ### fn withInstant -```ts +```jsonnet withInstant(value=true) ``` +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + Returns only the latest value that Prometheus has scraped for the requested time series +### fn withInterval + +```jsonnet +withInterval(value) +``` + +PARAMETERS: + +* **value** (`string`) +An additional lower limit for the step parameter of the Prometheus query and for the +`$__interval` and `$__rate_interval` variables. ### fn withIntervalFactor -```ts +```jsonnet withIntervalFactor(value) ``` -Set the interval factor for this query. +PARAMETERS: + +* **value** (`string`) +Set the interval factor for this query. ### fn withLegendFormat -```ts +```jsonnet withLegendFormat(value) ``` -Set the legend format for this query. +PARAMETERS: + +* **value** (`string`) +Set the legend format for this query. ### fn withQueryType -```ts +```jsonnet withQueryType(value) ``` +PARAMETERS: + +* **value** (`string`) + Specify the query flavor TODO make this required and give it a default - ### fn withRange -```ts +```jsonnet withRange(value=true) ``` -Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` +Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series ### fn withRefId -```ts +```jsonnet withRefId(value) ``` +PARAMETERS: + +* **value** (`string`) + A unique identifier for the query within the list of targets. In server side expressions, the refId is used as a variable name to identify results. By default, the UI will assign A->Z; however setting meaningful names may be useful. +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/filters.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/filters.md new file mode 100644 index 0000000..4482fd2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/filters.md @@ -0,0 +1,94 @@ +# filters + + + +## Index + +* [`fn withId(value)`](#fn-withid) +* [`fn withOperator(value)`](#fn-withoperator) +* [`fn withScope(value)`](#fn-withscope) +* [`fn withTag(value)`](#fn-withtag) +* [`fn withValue(value)`](#fn-withvalue) +* [`fn withValueMixin(value)`](#fn-withvaluemixin) +* [`fn withValueType(value)`](#fn-withvaluetype) + +## Fields + +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Uniquely identify the filter, will not be used in the query generation +### fn withOperator + +```jsonnet +withOperator(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The operator that connects the tag to the value, for example: =, >, !=, =~ +### fn withScope + +```jsonnet +withScope(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"intrinsic"`, `"unscoped"`, `"resource"`, `"span"` + +static fields are pre-set in the UI, dynamic fields are added by the user +### fn withTag + +```jsonnet +withTag(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The tag for the search filter, for example: .http.status_code, .service.name, status +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`array`,`string`) + +The value for the search filter +### fn withValueMixin + +```jsonnet +withValueMixin(value) +``` + +PARAMETERS: + +* **value** (`array`,`string`) + +The value for the search filter +### fn withValueType + +```jsonnet +withValueType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/groupBy.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/groupBy.md new file mode 100644 index 0000000..795b78e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/groupBy.md @@ -0,0 +1,94 @@ +# groupBy + + + +## Index + +* [`fn withId(value)`](#fn-withid) +* [`fn withOperator(value)`](#fn-withoperator) +* [`fn withScope(value)`](#fn-withscope) +* [`fn withTag(value)`](#fn-withtag) +* [`fn withValue(value)`](#fn-withvalue) +* [`fn withValueMixin(value)`](#fn-withvaluemixin) +* [`fn withValueType(value)`](#fn-withvaluetype) + +## Fields + +### fn withId + +```jsonnet +withId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Uniquely identify the filter, will not be used in the query generation +### fn withOperator + +```jsonnet +withOperator(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The operator that connects the tag to the value, for example: =, >, !=, =~ +### fn withScope + +```jsonnet +withScope(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"intrinsic"`, `"unscoped"`, `"resource"`, `"span"` + +static fields are pre-set in the UI, dynamic fields are added by the user +### fn withTag + +```jsonnet +withTag(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The tag for the search filter, for example: .http.status_code, .service.name, status +### fn withValue + +```jsonnet +withValue(value) +``` + +PARAMETERS: + +* **value** (`array`,`string`) + +The value for the search filter +### fn withValueMixin + +```jsonnet +withValueMixin(value) +``` + +PARAMETERS: + +* **value** (`array`,`string`) + +The value for the search filter +### fn withValueType + +```jsonnet +withValueType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/index.md new file mode 100644 index 0000000..182301b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/tempo/index.md @@ -0,0 +1,314 @@ +# tempo + +grafonnet.query.tempo + +## Subpackages + +* [filters](filters.md) +* [groupBy](groupBy.md) + +## Index + +* [`fn new(datasource, query, filters)`](#fn-new) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withFilters(value)`](#fn-withfilters) +* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) +* [`fn withGroupBy(value)`](#fn-withgroupby) +* [`fn withGroupByMixin(value)`](#fn-withgroupbymixin) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withLimit(value)`](#fn-withlimit) +* [`fn withMaxDuration(value)`](#fn-withmaxduration) +* [`fn withMinDuration(value)`](#fn-withminduration) +* [`fn withQuery(value)`](#fn-withquery) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withSearch(value)`](#fn-withsearch) +* [`fn withServiceMapIncludeNamespace(value=true)`](#fn-withservicemapincludenamespace) +* [`fn withServiceMapQuery(value)`](#fn-withservicemapquery) +* [`fn withServiceMapQueryMixin(value)`](#fn-withservicemapquerymixin) +* [`fn withServiceName(value)`](#fn-withservicename) +* [`fn withSpanName(value)`](#fn-withspanname) +* [`fn withSpss(value)`](#fn-withspss) +* [`fn withStep(value)`](#fn-withstep) +* [`fn withTableType(value)`](#fn-withtabletype) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) + +## Fields + +### fn new + +```jsonnet +new(datasource, query, filters) +``` + +PARAMETERS: + +* **datasource** (`string`) +* **query** (`string`) +* **filters** (`array`) + +Creates a new tempo query target for panels. +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Set the datasource for this query. +### fn withFilters + +```jsonnet +withFilters(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withFiltersMixin + +```jsonnet +withFiltersMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withGroupBy + +```jsonnet +withGroupBy(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Filters that are used to query the metrics summary +### fn withGroupByMixin + +```jsonnet +withGroupByMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +Filters that are used to query the metrics summary +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. +### fn withLimit + +```jsonnet +withLimit(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Defines the maximum number of traces that are returned from Tempo +### fn withMaxDuration + +```jsonnet +withMaxDuration(value) +``` + +PARAMETERS: + +* **value** (`string`) + +@deprecated Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms +### fn withMinDuration + +```jsonnet +withMinDuration(value) +``` + +PARAMETERS: + +* **value** (`string`) + +@deprecated Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms +### fn withQuery + +```jsonnet +withQuery(value) +``` + +PARAMETERS: + +* **value** (`string`) + +TraceQL query or trace ID +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specify the query flavor +TODO make this required and give it a default +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +A unique identifier for the query within the list of targets. +In server side expressions, the refId is used as a variable name to identify results. +By default, the UI will assign A->Z; however setting meaningful names may be useful. +### fn withSearch + +```jsonnet +withSearch(value) +``` + +PARAMETERS: + +* **value** (`string`) + +@deprecated Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true +### fn withServiceMapIncludeNamespace + +```jsonnet +withServiceMapIncludeNamespace(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Use service.namespace in addition to service.name to uniquely identify a service. +### fn withServiceMapQuery + +```jsonnet +withServiceMapQuery(value) +``` + +PARAMETERS: + +* **value** (`array`,`string`) + +Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally. +### fn withServiceMapQueryMixin + +```jsonnet +withServiceMapQueryMixin(value) +``` + +PARAMETERS: + +* **value** (`array`,`string`) + +Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally. +### fn withServiceName + +```jsonnet +withServiceName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +@deprecated Query traces by service name +### fn withSpanName + +```jsonnet +withSpanName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +@deprecated Query traces by span name +### fn withSpss + +```jsonnet +withSpss(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Defines the maximum number of spans per spanset that are returned from Tempo +### fn withStep + +```jsonnet +withStep(value) +``` + +PARAMETERS: + +* **value** (`string`) + +For metric queries, the step size to use +### fn withTableType + +```jsonnet +withTableType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"traces"`, `"spans"`, `"raw"` + +The type of the table that is used to display the search results +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/testData/csvWave.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/testData/csvWave.md new file mode 100644 index 0000000..8927e1c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/testData/csvWave.md @@ -0,0 +1,56 @@ +# csvWave + + + +## Index + +* [`fn withLabels(value)`](#fn-withlabels) +* [`fn withName(value)`](#fn-withname) +* [`fn withTimeStep(value)`](#fn-withtimestep) +* [`fn withValuesCSV(value)`](#fn-withvaluescsv) + +## Fields + +### fn withLabels + +```jsonnet +withLabels(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withTimeStep + +```jsonnet +withTimeStep(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +### fn withValuesCSV + +```jsonnet +withValuesCSV(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/testData/index.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/testData/index.md new file mode 100644 index 0000000..7f02d6f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/query/testData/index.md @@ -0,0 +1,1111 @@ +# testData + +grafonnet.query.testData + +## Subpackages + +* [csvWave](csvWave.md) + +## Index + +* [`fn withAlias(value)`](#fn-withalias) +* [`fn withChannel(value)`](#fn-withchannel) +* [`fn withCsvContent(value)`](#fn-withcsvcontent) +* [`fn withCsvFileName(value)`](#fn-withcsvfilename) +* [`fn withCsvWave(value)`](#fn-withcsvwave) +* [`fn withCsvWaveMixin(value)`](#fn-withcsvwavemixin) +* [`fn withDatasource(value)`](#fn-withdatasource) +* [`fn withDropPercent(value)`](#fn-withdroppercent) +* [`fn withErrorType(value)`](#fn-witherrortype) +* [`fn withFlamegraphDiff(value=true)`](#fn-withflamegraphdiff) +* [`fn withHide(value=true)`](#fn-withhide) +* [`fn withIntervalMs(value)`](#fn-withintervalms) +* [`fn withLabels(value)`](#fn-withlabels) +* [`fn withLevelColumn(value=true)`](#fn-withlevelcolumn) +* [`fn withLines(value)`](#fn-withlines) +* [`fn withMax(value)`](#fn-withmax) +* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) +* [`fn withMin(value)`](#fn-withmin) +* [`fn withNodes(value)`](#fn-withnodes) +* [`fn withNodesMixin(value)`](#fn-withnodesmixin) +* [`fn withNoise(value)`](#fn-withnoise) +* [`fn withPoints(value)`](#fn-withpoints) +* [`fn withPointsMixin(value)`](#fn-withpointsmixin) +* [`fn withPulseWave(value)`](#fn-withpulsewave) +* [`fn withPulseWaveMixin(value)`](#fn-withpulsewavemixin) +* [`fn withQueryType(value)`](#fn-withquerytype) +* [`fn withRawFrameContent(value)`](#fn-withrawframecontent) +* [`fn withRefId(value)`](#fn-withrefid) +* [`fn withResultAssertions(value)`](#fn-withresultassertions) +* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) +* [`fn withScenarioId(value)`](#fn-withscenarioid) +* [`fn withSeriesCount(value)`](#fn-withseriescount) +* [`fn withSim(value)`](#fn-withsim) +* [`fn withSimMixin(value)`](#fn-withsimmixin) +* [`fn withSpanCount(value)`](#fn-withspancount) +* [`fn withSpread(value)`](#fn-withspread) +* [`fn withStartValue(value)`](#fn-withstartvalue) +* [`fn withStream(value)`](#fn-withstream) +* [`fn withStreamMixin(value)`](#fn-withstreammixin) +* [`fn withStringInput(value)`](#fn-withstringinput) +* [`fn withTimeRange(value)`](#fn-withtimerange) +* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) +* [`fn withUsa(value)`](#fn-withusa) +* [`fn withUsaMixin(value)`](#fn-withusamixin) +* [`fn withWithNil(value=true)`](#fn-withwithnil) +* [`obj datasource`](#obj-datasource) + * [`fn withType(value)`](#fn-datasourcewithtype) + * [`fn withUid(value)`](#fn-datasourcewithuid) +* [`obj nodes`](#obj-nodes) + * [`fn withCount(value)`](#fn-nodeswithcount) + * [`fn withSeed(value)`](#fn-nodeswithseed) + * [`fn withType(value)`](#fn-nodeswithtype) +* [`obj pulseWave`](#obj-pulsewave) + * [`fn withOffCount(value)`](#fn-pulsewavewithoffcount) + * [`fn withOffValue(value)`](#fn-pulsewavewithoffvalue) + * [`fn withOnCount(value)`](#fn-pulsewavewithoncount) + * [`fn withOnValue(value)`](#fn-pulsewavewithonvalue) + * [`fn withTimeStep(value)`](#fn-pulsewavewithtimestep) +* [`obj resultAssertions`](#obj-resultassertions) + * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) + * [`fn withType(value)`](#fn-resultassertionswithtype) + * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) + * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) +* [`obj sim`](#obj-sim) + * [`fn withConfig(value)`](#fn-simwithconfig) + * [`fn withConfigMixin(value)`](#fn-simwithconfigmixin) + * [`fn withKey(value)`](#fn-simwithkey) + * [`fn withKeyMixin(value)`](#fn-simwithkeymixin) + * [`fn withLast(value=true)`](#fn-simwithlast) + * [`fn withStream(value=true)`](#fn-simwithstream) + * [`obj key`](#obj-simkey) + * [`fn withTick(value)`](#fn-simkeywithtick) + * [`fn withType(value)`](#fn-simkeywithtype) + * [`fn withUid(value)`](#fn-simkeywithuid) +* [`obj stream`](#obj-stream) + * [`fn withBands(value)`](#fn-streamwithbands) + * [`fn withNoise(value)`](#fn-streamwithnoise) + * [`fn withSpeed(value)`](#fn-streamwithspeed) + * [`fn withSpread(value)`](#fn-streamwithspread) + * [`fn withType(value)`](#fn-streamwithtype) + * [`fn withUrl(value)`](#fn-streamwithurl) +* [`obj timeRange`](#obj-timerange) + * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) + * [`fn withTo(value="now")`](#fn-timerangewithto) +* [`obj usa`](#obj-usa) + * [`fn withFields(value)`](#fn-usawithfields) + * [`fn withFieldsMixin(value)`](#fn-usawithfieldsmixin) + * [`fn withMode(value)`](#fn-usawithmode) + * [`fn withPeriod(value)`](#fn-usawithperiod) + * [`fn withStates(value)`](#fn-usawithstates) + * [`fn withStatesMixin(value)`](#fn-usawithstatesmixin) + +## Fields + +### fn withAlias + +```jsonnet +withAlias(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withChannel + +```jsonnet +withChannel(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Used for live query +### fn withCsvContent + +```jsonnet +withCsvContent(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withCsvFileName + +```jsonnet +withCsvFileName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withCsvWave + +```jsonnet +withCsvWave(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withCsvWaveMixin + +```jsonnet +withCsvWaveMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withDatasource + +```jsonnet +withDatasource(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Set the datasource for this query. +### fn withDropPercent + +```jsonnet +withDropPercent(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Drop percentage (the chance we will lose a point 0-100) +### fn withErrorType + +```jsonnet +withErrorType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"frontend_exception"`, `"frontend_observable"`, `"server_panic"` + +Possible enum values: + - `"frontend_exception"` + - `"frontend_observable"` + - `"server_panic"` +### fn withFlamegraphDiff + +```jsonnet +withFlamegraphDiff(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withHide + +```jsonnet +withHide(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +true if query is disabled (ie should not be returned to the dashboard) +NOTE: this does not always imply that the query should not be executed since +the results from a hidden query may be used as the input to other queries (SSE etc) +### fn withIntervalMs + +```jsonnet +withIntervalMs(value) +``` + +PARAMETERS: + +* **value** (`number`) + +Interval is the suggested duration between time points in a time series query. +NOTE: the values for intervalMs is not saved in the query model. It is typically calculated +from the interval required to fill a pixels in the visualization +### fn withLabels + +```jsonnet +withLabels(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withLevelColumn + +```jsonnet +withLevelColumn(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### fn withLines + +```jsonnet +withLines(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +### fn withMax + +```jsonnet +withMax(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withMaxDataPoints + +```jsonnet +withMaxDataPoints(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +MaxDataPoints is the maximum number of data points that should be returned from a time series query. +NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated +from the number of pixels visible in a visualization +### fn withMin + +```jsonnet +withMin(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withNodes + +```jsonnet +withNodes(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withNodesMixin + +```jsonnet +withNodesMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withNoise + +```jsonnet +withNoise(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withPoints + +```jsonnet +withPoints(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withPointsMixin + +```jsonnet +withPointsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +### fn withPulseWave + +```jsonnet +withPulseWave(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withPulseWaveMixin + +```jsonnet +withPulseWaveMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withQueryType + +```jsonnet +withQueryType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +QueryType is an optional identifier for the type of query. +It can be used to distinguish different types of queries. +### fn withRawFrameContent + +```jsonnet +withRawFrameContent(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withRefId + +```jsonnet +withRefId(value) +``` + +PARAMETERS: + +* **value** (`string`) + +RefID is the unique identifier of the query, set by the frontend call. +### fn withResultAssertions + +```jsonnet +withResultAssertions(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withResultAssertionsMixin + +```jsonnet +withResultAssertionsMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +Optionally define expected query result behavior +### fn withScenarioId + +```jsonnet +withScenarioId(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"annotations"`, `"arrow"`, `"csv_content"`, `"csv_file"`, `"csv_metric_values"`, `"datapoints_outside_range"`, `"exponential_heatmap_bucket_data"`, `"flame_graph"`, `"grafana_api"`, `"linear_heatmap_bucket_data"`, `"live"`, `"logs"`, `"manual_entry"`, `"no_data_points"`, `"node_graph"`, `"predictable_csv_wave"`, `"predictable_pulse"`, `"random_walk"`, `"random_walk_table"`, `"random_walk_with_error"`, `"raw_frame"`, `"server_error_500"`, `"simulation"`, `"slow_query"`, `"streaming_client"`, `"table_static"`, `"trace"`, `"usa"`, `"variables-query"` + +Possible enum values: + - `"annotations"` + - `"arrow"` + - `"csv_content"` + - `"csv_file"` + - `"csv_metric_values"` + - `"datapoints_outside_range"` + - `"exponential_heatmap_bucket_data"` + - `"flame_graph"` + - `"grafana_api"` + - `"linear_heatmap_bucket_data"` + - `"live"` + - `"logs"` + - `"manual_entry"` + - `"no_data_points"` + - `"node_graph"` + - `"predictable_csv_wave"` + - `"predictable_pulse"` + - `"random_walk"` + - `"random_walk_table"` + - `"random_walk_with_error"` + - `"raw_frame"` + - `"server_error_500"` + - `"simulation"` + - `"slow_query"` + - `"streaming_client"` + - `"table_static"` + - `"trace"` + - `"usa"` + - `"variables-query"` +### fn withSeriesCount + +```jsonnet +withSeriesCount(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +### fn withSim + +```jsonnet +withSim(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withSimMixin + +```jsonnet +withSimMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withSpanCount + +```jsonnet +withSpanCount(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +### fn withSpread + +```jsonnet +withSpread(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withStartValue + +```jsonnet +withStartValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +### fn withStream + +```jsonnet +withStream(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withStreamMixin + +```jsonnet +withStreamMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withStringInput + +```jsonnet +withStringInput(value) +``` + +PARAMETERS: + +* **value** (`string`) + +common parameter used by many query types +### fn withTimeRange + +```jsonnet +withTimeRange(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withTimeRangeMixin + +```jsonnet +withTimeRangeMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +TimeRange represents the query range +NOTE: unlike generic /ds/query, we can now send explicit time values in each query +NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly +### fn withUsa + +```jsonnet +withUsa(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withUsaMixin + +```jsonnet +withUsaMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +### fn withWithNil + +```jsonnet +withWithNil(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +### obj datasource + + +#### fn datasource.withType + +```jsonnet +datasource.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The plugin type-id +#### fn datasource.withUid + +```jsonnet +datasource.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Specific datasource instance +### obj nodes + + +#### fn nodes.withCount + +```jsonnet +nodes.withCount(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +#### fn nodes.withSeed + +```jsonnet +nodes.withSeed(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +#### fn nodes.withType + +```jsonnet +nodes.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"random"`, `"random edges"`, `"response_medium"`, `"response_small"`, `"feature_showcase"` + +Possible enum values: + - `"random"` + - `"random edges"` + - `"response_medium"` + - `"response_small"` + - `"feature_showcase"` +### obj pulseWave + + +#### fn pulseWave.withOffCount + +```jsonnet +pulseWave.withOffCount(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +#### fn pulseWave.withOffValue + +```jsonnet +pulseWave.withOffValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn pulseWave.withOnCount + +```jsonnet +pulseWave.withOnCount(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +#### fn pulseWave.withOnValue + +```jsonnet +pulseWave.withOnValue(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn pulseWave.withTimeStep + +```jsonnet +pulseWave.withTimeStep(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +### obj resultAssertions + + +#### fn resultAssertions.withMaxFrames + +```jsonnet +resultAssertions.withMaxFrames(value) +``` + +PARAMETERS: + +* **value** (`integer`) + +Maximum frame count +#### fn resultAssertions.withType + +```jsonnet +resultAssertions.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` + +Type asserts that the frame matches a known type structure. +Possible enum values: + - `""` + - `"timeseries-wide"` + - `"timeseries-long"` + - `"timeseries-many"` + - `"timeseries-multi"` + - `"directory-listing"` + - `"table"` + - `"numeric-wide"` + - `"numeric-multi"` + - `"numeric-long"` + - `"log-lines"` +#### fn resultAssertions.withTypeVersion + +```jsonnet +resultAssertions.withTypeVersion(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +#### fn resultAssertions.withTypeVersionMixin + +```jsonnet +resultAssertions.withTypeVersionMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + +TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane +contract documentation https://grafana.github.io/dataplane/contract/. +### obj sim + + +#### fn sim.withConfig + +```jsonnet +sim.withConfig(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn sim.withConfigMixin + +```jsonnet +sim.withConfigMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn sim.withKey + +```jsonnet +sim.withKey(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn sim.withKeyMixin + +```jsonnet +sim.withKeyMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn sim.withLast + +```jsonnet +sim.withLast(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### fn sim.withStream + +```jsonnet +sim.withStream(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + + +#### obj sim.key + + +##### fn sim.key.withTick + +```jsonnet +sim.key.withTick(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +##### fn sim.key.withType + +```jsonnet +sim.key.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +##### fn sim.key.withUid + +```jsonnet +sim.key.withUid(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj stream + + +#### fn stream.withBands + +```jsonnet +stream.withBands(value) +``` + +PARAMETERS: + +* **value** (`integer`) + + +#### fn stream.withNoise + +```jsonnet +stream.withNoise(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn stream.withSpeed + +```jsonnet +stream.withSpeed(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn stream.withSpread + +```jsonnet +stream.withSpread(value) +``` + +PARAMETERS: + +* **value** (`number`) + + +#### fn stream.withType + +```jsonnet +stream.withType(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"fetch"`, `"logs"`, `"signal"`, `"traces"` + +Possible enum values: + - `"fetch"` + - `"logs"` + - `"signal"` + - `"traces"` +#### fn stream.withUrl + +```jsonnet +stream.withUrl(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj timeRange + + +#### fn timeRange.withFrom + +```jsonnet +timeRange.withFrom(value="now-6h") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now-6h"` + +From is the start time of the query. +#### fn timeRange.withTo + +```jsonnet +timeRange.withTo(value="now") +``` + +PARAMETERS: + +* **value** (`string`) + - default value: `"now"` + +To is the end time of the query. +### obj usa + + +#### fn usa.withFields + +```jsonnet +usa.withFields(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn usa.withFieldsMixin + +```jsonnet +usa.withFieldsMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn usa.withMode + +```jsonnet +usa.withMode(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn usa.withPeriod + +```jsonnet +usa.withPeriod(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +#### fn usa.withStates + +```jsonnet +usa.withStates(value) +``` + +PARAMETERS: + +* **value** (`array`) + + +#### fn usa.withStatesMixin + +```jsonnet +usa.withStatesMixin(value) +``` + +PARAMETERS: + +* **value** (`array`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/role.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/role.md new file mode 100644 index 0000000..b5b551c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/role.md @@ -0,0 +1,70 @@ +# role + +grafonnet.role + +## Index + +* [`fn withDescription(value)`](#fn-withdescription) +* [`fn withDisplayName(value)`](#fn-withdisplayname) +* [`fn withGroupName(value)`](#fn-withgroupname) +* [`fn withHidden(value=true)`](#fn-withhidden) +* [`fn withName(value)`](#fn-withname) + +## Fields + +### fn withDescription + +```jsonnet +withDescription(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Role description +### fn withDisplayName + +```jsonnet +withDisplayName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Optional display +### fn withGroupName + +```jsonnet +withGroupName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +Name of the team. +### fn withHidden + +```jsonnet +withHidden(value=true) +``` + +PARAMETERS: + +* **value** (`boolean`) + - default value: `true` + +Do not show this role +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The role identifier `managed:builtins:editor:permissions` \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/rolebinding.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/rolebinding.md new file mode 100644 index 0000000..fb8c746 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/rolebinding.md @@ -0,0 +1,189 @@ +# rolebinding + +grafonnet.rolebinding + +## Index + +* [`fn withRole(value)`](#fn-withrole) +* [`fn withRoleMixin(value)`](#fn-withrolemixin) +* [`fn withSubject(value)`](#fn-withsubject) +* [`fn withSubjectMixin(value)`](#fn-withsubjectmixin) +* [`obj role`](#obj-role) + * [`fn withBuiltinRoleRef(value)`](#fn-rolewithbuiltinroleref) + * [`fn withBuiltinRoleRefMixin(value)`](#fn-rolewithbuiltinrolerefmixin) + * [`fn withCustomRoleRef(value)`](#fn-rolewithcustomroleref) + * [`fn withCustomRoleRefMixin(value)`](#fn-rolewithcustomrolerefmixin) + * [`obj BuiltinRoleRef`](#obj-rolebuiltinroleref) + * [`fn withKind()`](#fn-rolebuiltinrolerefwithkind) + * [`fn withName(value)`](#fn-rolebuiltinrolerefwithname) + * [`obj CustomRoleRef`](#obj-rolecustomroleref) + * [`fn withKind()`](#fn-rolecustomrolerefwithkind) + * [`fn withName(value)`](#fn-rolecustomrolerefwithname) +* [`obj subject`](#obj-subject) + * [`fn withKind(value)`](#fn-subjectwithkind) + * [`fn withName(value)`](#fn-subjectwithname) + +## Fields + +### fn withRole + +```jsonnet +withRole(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The role we are discussing +### fn withRoleMixin + +```jsonnet +withRoleMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The role we are discussing +### fn withSubject + +```jsonnet +withSubject(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The team or user that has the specified role +### fn withSubjectMixin + +```jsonnet +withSubjectMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + +The team or user that has the specified role +### obj role + + +#### fn role.withBuiltinRoleRef + +```jsonnet +role.withBuiltinRoleRef(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn role.withBuiltinRoleRefMixin + +```jsonnet +role.withBuiltinRoleRefMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn role.withCustomRoleRef + +```jsonnet +role.withCustomRoleRef(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### fn role.withCustomRoleRefMixin + +```jsonnet +role.withCustomRoleRefMixin(value) +``` + +PARAMETERS: + +* **value** (`object`) + + +#### obj role.BuiltinRoleRef + + +##### fn role.BuiltinRoleRef.withKind + +```jsonnet +role.BuiltinRoleRef.withKind() +``` + + + +##### fn role.BuiltinRoleRef.withName + +```jsonnet +role.BuiltinRoleRef.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"viewer"`, `"editor"`, `"admin"` + + +#### obj role.CustomRoleRef + + +##### fn role.CustomRoleRef.withKind + +```jsonnet +role.CustomRoleRef.withKind() +``` + + + +##### fn role.CustomRoleRef.withName + +```jsonnet +role.CustomRoleRef.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### obj subject + + +#### fn subject.withKind + +```jsonnet +subject.withKind(value) +``` + +PARAMETERS: + +* **value** (`string`) + - valid values: `"Team"`, `"User"` + + +#### fn subject.withName + +```jsonnet +subject.withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + +The team/user identifier name \ No newline at end of file diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/team.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/team.md new file mode 100644 index 0000000..c62e20a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/team.md @@ -0,0 +1,32 @@ +# team + +grafonnet.team + +## Index + +* [`fn withEmail(value)`](#fn-withemail) +* [`fn withName(value)`](#fn-withname) + +## Fields + +### fn withEmail + +```jsonnet +withEmail(value) +``` + +PARAMETERS: + +* **value** (`string`) + + +### fn withName + +```jsonnet +withName(value) +``` + +PARAMETERS: + +* **value** (`string`) + diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/util.md b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/util.md new file mode 100644 index 0000000..af88a40 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/docs/util.md @@ -0,0 +1,328 @@ +# util + +Helper functions that work well with Grafonnet. + +## Index + +* [`obj dashboard`](#obj-dashboard) + * [`fn getOptionsForCustomQuery(query)`](#fn-dashboardgetoptionsforcustomquery) +* [`obj grid`](#obj-grid) + * [`fn makeGrid(panels, panelWidth, panelHeight, startY)`](#fn-gridmakegrid) + * [`fn wrapPanels(panels, panelWidth, panelHeight, startY)`](#fn-gridwrappanels) +* [`obj panel`](#obj-panel) + * [`fn calculateLowestYforPanel(panel, panels)`](#fn-panelcalculatelowestyforpanel) + * [`fn dedupeQueryTargets(panels)`](#fn-paneldedupequerytargets) + * [`fn getPanelIDs(panels)`](#fn-panelgetpanelids) + * [`fn getPanelsBeforeNextRow(panels)`](#fn-panelgetpanelsbeforenextrow) + * [`fn groupPanelsInRows(panels)`](#fn-panelgrouppanelsinrows) + * [`fn mapToRows(func, panels)`](#fn-panelmaptorows) + * [`fn normalizeY(panels)`](#fn-panelnormalizey) + * [`fn normalizeYInRow(rowPanel)`](#fn-panelnormalizeyinrow) + * [`fn resolveCollapsedFlagOnRows(panels)`](#fn-panelresolvecollapsedflagonrows) + * [`fn sanitizePanel(panel, defaultX=0, defaultY=0, defaultHeight=8, defaultWidth=8)`](#fn-panelsanitizepanel) + * [`fn setPanelIDs(panels, overrideExistingIDs=true)`](#fn-panelsetpanelids) + * [`fn setRefIDs(panel, overrideExistingIDs=true)`](#fn-panelsetrefids) + * [`fn setRefIDsOnPanels(panels)`](#fn-panelsetrefidsonpanels) + * [`fn sortPanelsByXY(panels)`](#fn-panelsortpanelsbyxy) + * [`fn sortPanelsInRow(rowPanel)`](#fn-panelsortpanelsinrow) + * [`fn validatePanelIDs(panels)`](#fn-panelvalidatepanelids) +* [`obj string`](#obj-string) + * [`fn slugify(string)`](#fn-stringslugify) + +## Fields + +### obj dashboard + + +#### fn dashboard.getOptionsForCustomQuery + +```jsonnet +dashboard.getOptionsForCustomQuery(query) +``` + +PARAMETERS: + +* **query** (`string`) + +`getOptionsForCustomQuery` provides values for the `options` and `current` fields. +These are required for template variables of type 'custom'but do not automatically +get populated by Grafana when importing a dashboard from JSON. + +This is a bit of a hack and should always be called on functions that set `type` on +a template variable. Ideally Grafana populates these fields from the `query` value +but this provides a backwards compatible solution. + +### obj grid + + +#### fn grid.makeGrid + +```jsonnet +grid.makeGrid(panels, panelWidth, panelHeight, startY) +``` + +PARAMETERS: + +* **panels** (`array`) +* **panelWidth** (`number`) +* **panelHeight** (`number`) +* **startY** (`number`) + +`makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` +and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, +then all panels below it will be folded into the row. + +This function will use the full grid of 24 columns, setting `panelWidth` to a value +that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) +Other value for `panelWidth` will leave a gap on the far right. + +Optional `startY` can be provided to place generated grid above or below existing panels. + +#### fn grid.wrapPanels + +```jsonnet +grid.wrapPanels(panels, panelWidth, panelHeight, startY) +``` + +PARAMETERS: + +* **panels** (`array`) +* **panelWidth** (`number`) +* **panelHeight** (`number`) +* **startY** (`number`) + +`wrapPanels` returns an array of `panels` organized in a grid, wrapping up to next 'row' if total width exceeds full grid of 24 columns. +'panelHeight' and 'panelWidth' are used unless panels already have height and width defined. + +### obj panel + + +#### fn panel.calculateLowestYforPanel + +```jsonnet +panel.calculateLowestYforPanel(panel, panels) +``` + +PARAMETERS: + +* **panel** (`object`) +* **panels** (`array`) + +`calculateLowestYforPanel` calculates Y for a given `panel` from the `gridPos` of an array of `panels`. This function is used in `normalizeY`. + +#### fn panel.dedupeQueryTargets + +```jsonnet +panel.dedupeQueryTargets(panels) +``` + +PARAMETERS: + +* **panels** (`array`) + +`dedupeQueryTargets` dedupes the query targets in a set of panels and replaces the duplicates with a ['shared query'](https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/share-query/). Sharing query results across panels reduces the number of queries made to your data source, which can improve the performance of your dashboard. + +This function requires that the query targets have `refId` set, `setRefIDs` and `setRefIDsOnPanels` can help with that. + +#### fn panel.getPanelIDs + +```jsonnet +panel.getPanelIDs(panels) +``` + +PARAMETERS: + +* **panels** (`array`) + +`getPanelIDs` returns an array with all panel IDs including IDs from panels in rows. + +#### fn panel.getPanelsBeforeNextRow + +```jsonnet +panel.getPanelsBeforeNextRow(panels) +``` + +PARAMETERS: + +* **panels** (`array`) + +`getPanelsBeforeNextRow` returns all panels in an array up until a row has been found. Used in `groupPanelsInRows`. + +#### fn panel.groupPanelsInRows + +```jsonnet +panel.groupPanelsInRows(panels) +``` + +PARAMETERS: + +* **panels** (`array`) + +`groupPanelsInRows` ensures that panels that come after a row panel in an array are added to the `row.panels` attribute. This can be useful to apply intermediate functions to only the panels that belong to a row. Finally the panel array should get processed by `resolveCollapsedFlagOnRows` to "unfold" the rows that are not collapsed into the main array. + +#### fn panel.mapToRows + +```jsonnet +panel.mapToRows(func, panels) +``` + +PARAMETERS: + +* **func** (`function`) +* **panels** (`array`) + +`mapToRows` is a little helper function that applies `func` to all row panels in an array. Other panels in that array are returned ad verbatim. + +#### fn panel.normalizeY + +```jsonnet +panel.normalizeY(panels) +``` + +PARAMETERS: + +* **panels** (`array`) + +`normalizeY` applies negative gravity on the inverted Y axis. This mimics the behavior of Grafana: when a panel is created without panel above it, then it'll float upward. + +This is strictly not required as Grafana will do this on dashboard load, however it might be helpful when used when calculating the correct `gridPos`. + +#### fn panel.normalizeYInRow + +```jsonnet +panel.normalizeYInRow(rowPanel) +``` + +PARAMETERS: + +* **rowPanel** (`object`) + +`normalizeYInRow` applies `normalizeY` to the panels in a row panel. + +#### fn panel.resolveCollapsedFlagOnRows + +```jsonnet +panel.resolveCollapsedFlagOnRows(panels) +``` + +PARAMETERS: + +* **panels** (`array`) + +`resolveCollapsedFlagOnRows` should be applied to the final panel array to "unfold" the rows that are not collapsed into the main array. + +#### fn panel.sanitizePanel + +```jsonnet +panel.sanitizePanel(panel, defaultX=0, defaultY=0, defaultHeight=8, defaultWidth=8) +``` + +PARAMETERS: + +* **panel** (`object`) +* **defaultX** (`number`) + - default value: `0` +* **defaultY** (`number`) + - default value: `0` +* **defaultHeight** (`number`) + - default value: `8` +* **defaultWidth** (`number`) + - default value: `8` + +`sanitizePanel` ensures the panel has a valid `gridPos` and row panels have `collapsed` and `panels`. This function is recursively applied to panels inside row panels. + +The default values for x,y,h,w are only applied if not already set. + +#### fn panel.setPanelIDs + +```jsonnet +panel.setPanelIDs(panels, overrideExistingIDs=true) +``` + +PARAMETERS: + +* **panels** (`array`) +* **overrideExistingIDs** (`bool`) + - default value: `true` + +`setPanelIDs` ensures that all `panels` have a unique ID, this function is used in `dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent experience. + +`overrideExistingIDs` can be set to not replace existing IDs, consider validating the IDs with `validatePanelIDs()` to ensure there are no duplicate IDs. + +#### fn panel.setRefIDs + +```jsonnet +panel.setRefIDs(panel, overrideExistingIDs=true) +``` + +PARAMETERS: + +* **panel** (`object`) +* **overrideExistingIDs** (`bool`) + - default value: `true` + +`setRefIDs` calculates the `refId` field for each target on a panel. + +#### fn panel.setRefIDsOnPanels + +```jsonnet +panel.setRefIDsOnPanels(panels) +``` + +PARAMETERS: + +* **panels** (`array`) + +`setRefIDsOnPanels` applies `setRefIDs on all `panels`. + +#### fn panel.sortPanelsByXY + +```jsonnet +panel.sortPanelsByXY(panels) +``` + +PARAMETERS: + +* **panels** (`array`) + +`sortPanelsByXY` applies a simple sorting algorithm, first by x then again by y. This does not take width and height into account. + +#### fn panel.sortPanelsInRow + +```jsonnet +panel.sortPanelsInRow(rowPanel) +``` + +PARAMETERS: + +* **rowPanel** (`object`) + +`sortPanelsInRow` applies `sortPanelsByXY` on the panels in a rowPanel. + +#### fn panel.validatePanelIDs + +```jsonnet +panel.validatePanelIDs(panels) +``` + +PARAMETERS: + +* **panels** (`array`) + +`validatePanelIDs` validates returns `false` if there are duplicate panel IDs in `panels`. + +### obj string + + +#### fn string.slugify + +```jsonnet +string.slugify(string) +``` + +PARAMETERS: + +* **string** (`string`) + +`slugify` will create a simple slug from `string`, keeping only alphanumeric +characters and replacing spaces with dashes. diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/folder.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/folder.libsonnet new file mode 100644 index 0000000..e462d48 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/folder.libsonnet @@ -0,0 +1,16 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.folder', name: 'folder' }, + '#withParentUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'only used if nested folders are enabled' } }, + withParentUid(value): { + parentUid: value, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Folder title' } }, + withTitle(value): { + title: value, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique folder id' } }, + withUid(value): { + uid: value, + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/jsonnetfile.json similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json rename to pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/jsonnetfile.json diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/librarypanel.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/librarypanel.libsonnet new file mode 100644 index 0000000..9c5194e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/librarypanel.libsonnet @@ -0,0 +1,1184 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.librarypanel', name: 'librarypanel' }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel description' } }, + withDescription(value): { + description: value, + }, + '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Folder UID' } }, + withFolderUid(value): { + folderUid: value, + }, + '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Object storage metadata' } }, + withMeta(value): { + meta: value, + }, + '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Object storage metadata' } }, + withMetaMixin(value): { + meta+: value, + }, + meta+: + { + '#withConnectedDashboards': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withConnectedDashboards(value): { + meta+: { + connectedDashboards: value, + }, + }, + '#withCreated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withCreated(value): { + meta+: { + created: value, + }, + }, + '#withCreatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withCreatedBy(value): { + meta+: { + createdBy: value, + }, + }, + '#withCreatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withCreatedByMixin(value): { + meta+: { + createdBy+: value, + }, + }, + createdBy+: + { + '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAvatarUrl(value): { + meta+: { + createdBy+: { + avatarUrl: value, + }, + }, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withId(value): { + meta+: { + createdBy+: { + id: value, + }, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + meta+: { + createdBy+: { + name: value, + }, + }, + }, + }, + '#withFolderName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFolderName(value): { + meta+: { + folderName: value, + }, + }, + '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFolderUid(value): { + meta+: { + folderUid: value, + }, + }, + '#withUpdated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withUpdated(value): { + meta+: { + updated: value, + }, + }, + '#withUpdatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUpdatedBy(value): { + meta+: { + updatedBy: value, + }, + }, + '#withUpdatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUpdatedByMixin(value): { + meta+: { + updatedBy+: value, + }, + }, + updatedBy+: + { + '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAvatarUrl(value): { + meta+: { + updatedBy+: { + avatarUrl: value, + }, + }, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withId(value): { + meta+: { + updatedBy+: { + id: value, + }, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + meta+: { + updatedBy+: { + name: value, + }, + }, + }, + }, + }, + '#withModel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Dashboard panels are the basic visualization building blocks.' } }, + withModel(value): { + model: value, + }, + '#withModelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Dashboard panels are the basic visualization building blocks.' } }, + withModelMixin(value): { + model+: value, + }, + model+: + { + '#withCacheTimeout': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets panel queries cache timeout.' } }, + withCacheTimeout(value): { + model+: { + cacheTimeout: value, + }, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + model+: { + datasource: value, + }, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + model+: { + datasource+: value, + }, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + model+: { + datasource+: { + type: value, + }, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + model+: { + datasource+: { + uid: value, + }, + }, + }, + }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel description.' } }, + withDescription(value): { + model+: { + description: value, + }, + }, + '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.\nEach column within this structure is called a field. A field can represent a single time series or table column.\nField options allow you to change how the data is displayed in your visualizations.' } }, + withFieldConfig(value): { + model+: { + fieldConfig: value, + }, + }, + '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.\nEach column within this structure is called a field. A field can represent a single time series or table column.\nField options allow you to change how the data is displayed in your visualizations.' } }, + withFieldConfigMixin(value): { + model+: { + fieldConfig+: value, + }, + }, + fieldConfig+: + { + '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.\nEach column within this structure is called a field. A field can represent a single time series or table column.\nField options allow you to change how the data is displayed in your visualizations.' } }, + withDefaults(value): { + model+: { + fieldConfig+: { + defaults: value, + }, + }, + }, + '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.\nEach column within this structure is called a field. A field can represent a single time series or table column.\nField options allow you to change how the data is displayed in your visualizations.' } }, + withDefaultsMixin(value): { + model+: { + fieldConfig+: { + defaults+: value, + }, + }, + }, + defaults+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map a field to a color.' } }, + withColor(value): { + model+: { + fieldConfig+: { + defaults+: { + color: value, + }, + }, + }, + }, + '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map a field to a color.' } }, + withColorMixin(value): { + model+: { + fieldConfig+: { + defaults+: { + color+: value, + }, + }, + }, + }, + color+: + { + '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The fixed color value for fixed or shades color modes.' } }, + withFixedColor(value): { + model+: { + fieldConfig+: { + defaults+: { + color+: { + fixedColor: value, + }, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['thresholds', 'palette-classic', 'palette-classic-by-name', 'continuous-GrYlRd', 'continuous-RdYlGr', 'continuous-BlYlRd', 'continuous-YlRd', 'continuous-BlPu', 'continuous-YlBl', 'continuous-blues', 'continuous-reds', 'continuous-greens', 'continuous-purples', 'fixed', 'shades'], name: 'value', type: ['string'] }], help: 'Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value.\nContinuous color interpolates a color using the percentage of a value relative to min and max.\nAccepted values are:\n`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold\n`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations\n`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations\n`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode\n`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode\n`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode\n`continuous-YlRd`: Continuous Yellow-Red palette mode\n`continuous-BlPu`: Continuous Blue-Purple palette mode\n`continuous-YlBl`: Continuous Yellow-Blue palette mode\n`continuous-blues`: Continuous Blue palette mode\n`continuous-reds`: Continuous Red palette mode\n`continuous-greens`: Continuous Green palette mode\n`continuous-purples`: Continuous Purple palette mode\n`shades`: Shades of a single color. Specify a single color, useful in an override rule.\n`fixed`: Fixed color mode. Specify a single color, useful in an override rule.' } }, + withMode(value): { + model+: { + fieldConfig+: { + defaults+: { + color+: { + mode: value, + }, + }, + }, + }, + }, + '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: ['string'] }], help: 'Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value.' } }, + withSeriesBy(value): { + model+: { + fieldConfig+: { + defaults+: { + color+: { + seriesBy: value, + }, + }, + }, + }, + }, + }, + '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'custom is specified by the FieldConfig field\nin panel plugin schemas.' } }, + withCustom(value): { + model+: { + fieldConfig+: { + defaults+: { + custom: value, + }, + }, + }, + }, + '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'custom is specified by the FieldConfig field\nin panel plugin schemas.' } }, + withCustomMixin(value): { + model+: { + fieldConfig+: { + defaults+: { + custom+: value, + }, + }, + }, + }, + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Specify the number of decimals Grafana includes in the rendered value.\nIf you leave this field blank, Grafana automatically truncates the number of decimals based on the value.\nFor example 1.1234 will display as 1.12 and 100.456 will display as 100.\nTo display all decimals, set the unit to `String`.' } }, + withDecimals(value): { + model+: { + fieldConfig+: { + defaults+: { + decimals: value, + }, + }, + }, + }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Human readable field metadata' } }, + withDescription(value): { + model+: { + fieldConfig+: { + defaults+: { + description: value, + }, + }, + }, + }, + '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The display value for this field. This supports template variables blank is auto' } }, + withDisplayName(value): { + model+: { + fieldConfig+: { + defaults+: { + displayName: value, + }, + }, + }, + }, + '#withDisplayNameFromDS': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'This can be used by data sources that return and explicit naming structure for values and labels\nWhen this property is configured, this value is used rather than the default naming strategy.' } }, + withDisplayNameFromDS(value): { + model+: { + fieldConfig+: { + defaults+: { + displayNameFromDS: value, + }, + }, + }, + }, + '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'True if data source field supports ad-hoc filters' } }, + withFilterable(value=true): { + model+: { + fieldConfig+: { + defaults+: { + filterable: value, + }, + }, + }, + }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, + withLinks(value): { + model+: { + fieldConfig+: { + defaults+: { + links: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, + withLinksMixin(value): { + model+: { + fieldConfig+: { + defaults+: { + links+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + links+: + { + '#': { help: '', name: 'links' }, + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards' } }, + withAsDropdown(value=true): { + asDropdown: value, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon name to be displayed with the link' } }, + withIcon(value): { + icon: value, + }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current template variables values in the link as query params' } }, + withIncludeVars(value=true): { + includeVars: value, + }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current time range in the link as query params' } }, + withKeepTime(value=true): { + keepTime: value, + }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, + withTags(value): { + tags: + (if std.isArray(value) + then value + else [value]), + }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, + withTagsMixin(value): { + tags+: + (if std.isArray(value) + then value + else [value]), + }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, the link will be opened in a new tab' } }, + withTargetBlank(value=true): { + targetBlank: value, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title to display with the link' } }, + withTitle(value): { + title: value, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Tooltip to display when the user hovers their mouse over it' } }, + withTooltip(value): { + tooltip: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)' } }, + withType(value): { + type: value, + }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Link URL. Only required/valid if the type is link' } }, + withUrl(value): { + url: value, + }, + }, + '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, + withMappings(value): { + model+: { + fieldConfig+: { + defaults+: { + mappings: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, + withMappingsMixin(value): { + model+: { + fieldConfig+: { + defaults+: { + mappings+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + mappings+: + { + ValueMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } }' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } }' } }, + withOptionsMixin(value): { + options+: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'value', + }, + }, + RangeMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Range to match against and the result to apply when the value is within the range' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Range to match against and the result to apply when the value is within the range' } }, + withOptionsMixin(value): { + options+: value, + }, + options+: + { + '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Min value of the range. It can be null which means -Infinity' } }, + withFrom(value): { + options+: { + from: value, + }, + }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResult(value): { + options+: { + result: value, + }, + }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResultMixin(value): { + options+: { + result+: value, + }, + }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, + withColor(value): { + options+: { + result+: { + color: value, + }, + }, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, + withIcon(value): { + options+: { + result+: { + icon: value, + }, + }, + }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, + withIndex(value): { + options+: { + result+: { + index: value, + }, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, + withText(value): { + options+: { + result+: { + text: value, + }, + }, + }, + }, + '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Max value of the range. It can be null which means +Infinity' } }, + withTo(value): { + options+: { + to: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'range', + }, + }, + RegexMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Regular expression to match against and the result to apply when the value matches the regex' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Regular expression to match against and the result to apply when the value matches the regex' } }, + withOptionsMixin(value): { + options+: value, + }, + options+: + { + '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Regular expression to match against' } }, + withPattern(value): { + options+: { + pattern: value, + }, + }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResult(value): { + options+: { + result: value, + }, + }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResultMixin(value): { + options+: { + result+: value, + }, + }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, + withColor(value): { + options+: { + result+: { + color: value, + }, + }, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, + withIcon(value): { + options+: { + result+: { + icon: value, + }, + }, + }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, + withIndex(value): { + options+: { + result+: { + index: value, + }, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, + withText(value): { + options+: { + result+: { + text: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'regex', + }, + }, + SpecialValueMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOptionsMixin(value): { + options+: value, + }, + options+: + { + '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false', 'null', 'nan', 'null+nan', 'empty'], name: 'value', type: ['string'] }], help: 'Special value types supported by the `SpecialValueMap`' } }, + withMatch(value): { + options+: { + match: value, + }, + }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResult(value): { + options+: { + result: value, + }, + }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResultMixin(value): { + options+: { + result+: value, + }, + }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, + withColor(value): { + options+: { + result+: { + color: value, + }, + }, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, + withIcon(value): { + options+: { + result+: { + icon: value, + }, + }, + }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, + withIndex(value): { + options+: { + result+: { + index: value, + }, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, + withText(value): { + options+: { + result+: { + text: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'special', + }, + }, + }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.' } }, + withMax(value): { + model+: { + fieldConfig+: { + defaults+: { + max: value, + }, + }, + }, + }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.' } }, + withMin(value): { + model+: { + fieldConfig+: { + defaults+: { + min: value, + }, + }, + }, + }, + '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alternative to empty string' } }, + withNoValue(value): { + model+: { + fieldConfig+: { + defaults+: { + noValue: value, + }, + }, + }, + }, + '#withPath': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An explicit path to the field in the datasource. When the frame meta includes a path,\nThis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used to update the results' } }, + withPath(value): { + model+: { + fieldConfig+: { + defaults+: { + path: value, + }, + }, + }, + }, + '#withThresholds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Thresholds configuration for the panel' } }, + withThresholds(value): { + model+: { + fieldConfig+: { + defaults+: { + thresholds: value, + }, + }, + }, + }, + '#withThresholdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Thresholds configuration for the panel' } }, + withThresholdsMixin(value): { + model+: { + fieldConfig+: { + defaults+: { + thresholds+: value, + }, + }, + }, + }, + thresholds+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: ['string'] }], help: 'Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1).' } }, + withMode(value): { + model+: { + fieldConfig+: { + defaults+: { + thresholds+: { + mode: value, + }, + }, + }, + }, + }, + '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, + withSteps(value): { + model+: { + fieldConfig+: { + defaults+: { + thresholds+: { + steps: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, + withStepsMixin(value): { + model+: { + fieldConfig+: { + defaults+: { + thresholds+: { + steps+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + steps+: + { + '#': { help: '', name: 'steps' }, + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded.' } }, + withColor(value): { + color: value, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded.\nNulls currently appear here when serializing -Infinity to JSON.' } }, + withValue(value): { + value: value, + }, + }, + }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit a field should use. The unit you select is applied to all fields except time.\nYou can use the units ID availables in Grafana or a custom unit.\nAvailable units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts\nAs custom unit, you can use the following formats:\n`suffix:` for custom unit that should go after value.\n`prefix:` for custom unit that should go before value.\n`time:` For custom date time formats type for example `time:YYYY-MM-DD`.\n`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character.\n`count:` for a custom count unit.\n`currency:` for custom a currency unit.' } }, + withUnit(value): { + model+: { + fieldConfig+: { + defaults+: { + unit: value, + }, + }, + }, + }, + '#withWriteable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'True if data source can write a value to the path. Auth/authz are supported separately' } }, + withWriteable(value=true): { + model+: { + fieldConfig+: { + defaults+: { + writeable: value, + }, + }, + }, + }, + }, + '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Overrides are the options applied to specific fields overriding the defaults.' } }, + withOverrides(value): { + model+: { + fieldConfig+: { + overrides: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Overrides are the options applied to specific fields overriding the defaults.' } }, + withOverridesMixin(value): { + model+: { + fieldConfig+: { + overrides+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + overrides+: + { + '#': { help: '', name: 'overrides' }, + '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, + withMatcher(value): { + matcher: value, + }, + '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, + withMatcherMixin(value): { + matcher+: value, + }, + matcher+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: 'The matcher id. This is used to find the matcher implementation from registry.' } }, + withId(value=''): { + matcher+: { + id: value, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, + withOptions(value): { + matcher+: { + options: value, + }, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, + withOptionsMixin(value): { + matcher+: { + options+: value, + }, + }, + }, + '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withProperties(value): { + properties: + (if std.isArray(value) + then value + else [value]), + }, + '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPropertiesMixin(value): { + properties+: + (if std.isArray(value) + then value + else [value]), + }, + properties+: + { + '#': { help: '', name: 'properties' }, + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value=''): { + id: value, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withValue(value): { + value: value, + }, + '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withValueMixin(value): { + value+: value, + }, + }, + }, + }, + '#withHideTimeOverride': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the timeFrom or timeShift overrides are shown in the panel header' } }, + withHideTimeOverride(value=true): { + model+: { + hideTimeOverride: value, + }, + }, + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables.\nThis value must be formatted as a number followed by a valid time\nidentifier like: "40s", "3d", etc.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, + withInterval(value): { + model+: { + interval: value, + }, + }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.' } }, + withLinks(value): { + model+: { + links: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.' } }, + withLinksMixin(value): { + model+: { + links+: + (if std.isArray(value) + then value + else [value]), + }, + }, + links+: + { + '#': { help: '', name: 'links' }, + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards' } }, + withAsDropdown(value=true): { + asDropdown: value, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon name to be displayed with the link' } }, + withIcon(value): { + icon: value, + }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current template variables values in the link as query params' } }, + withIncludeVars(value=true): { + includeVars: value, + }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current time range in the link as query params' } }, + withKeepTime(value=true): { + keepTime: value, + }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, + withTags(value): { + tags: + (if std.isArray(value) + then value + else [value]), + }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, + withTagsMixin(value): { + tags+: + (if std.isArray(value) + then value + else [value]), + }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, the link will be opened in a new tab' } }, + withTargetBlank(value=true): { + targetBlank: value, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title to display with the link' } }, + withTitle(value): { + title: value, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Tooltip to display when the user hovers their mouse over it' } }, + withTooltip(value): { + tooltip: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)' } }, + withType(value): { + type: value, + }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Link URL. Only required/valid if the type is link' } }, + withUrl(value): { + url: value, + }, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The maximum number of data points that the panel queries are retrieving.' } }, + withMaxDataPoints(value): { + model+: { + maxDataPoints: value, + }, + }, + '#withMaxPerRow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Option for repeated panels that controls max items per row\nOnly relevant for horizontally repeated panels' } }, + withMaxPerRow(value): { + model+: { + maxPerRow: value, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'It depends on the panel plugin. They are specified by the Options field in panel plugin schemas.' } }, + withOptions(value): { + model+: { + options: value, + }, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'It depends on the panel plugin. They are specified by the Options field in panel plugin schemas.' } }, + withOptionsMixin(value): { + model+: { + options+: value, + }, + }, + '#withPluginVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The version of the plugin that is used for this panel. This is used to find the plugin to display the panel and to migrate old panel configs.' } }, + withPluginVersion(value): { + model+: { + pluginVersion: value, + }, + }, + '#withQueryCachingTTL': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Overrides the data source configured time-to-live for a query cache item in milliseconds' } }, + withQueryCachingTTL(value): { + model+: { + queryCachingTTL: value, + }, + }, + '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of template variable to repeat for.' } }, + withRepeat(value): { + model+: { + repeat: value, + }, + }, + '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: ['string'] }], help: "Direction to repeat in if 'repeat' is set.\n`h` for horizontal, `v` for vertical." } }, + withRepeatDirection(value='h'): { + model+: { + repeatDirection: value, + }, + }, + '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Depends on the panel plugin. See the plugin documentation for details.' } }, + withTargets(value): { + model+: { + targets: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Depends on the panel plugin. See the plugin documentation for details.' } }, + withTargetsMixin(value): { + model+: { + targets+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Overrides the relative time range for individual panels,\nwhich causes them to be different than what is selected in\nthe dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different\ntime periods or days on the same dashboard.\nThe value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far),\n`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years).\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, + withTimeFrom(value): { + model+: { + timeFrom: value, + }, + }, + '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Overrides the time range for individual panels by shifting its start and end relative to the time picker.\nFor example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`.\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, + withTimeShift(value): { + model+: { + timeShift: value, + }, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel title.' } }, + withTitle(value): { + model+: { + title: value, + }, + }, + '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of transformations that are applied to the panel data before rendering.\nWhen there are multiple transformations, Grafana applies them in the order they are listed.\nEach transformation creates a result set that then passes on to the next transformation in the processing pipeline.' } }, + withTransformations(value): { + model+: { + transformations: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of transformations that are applied to the panel data before rendering.\nWhen there are multiple transformations, Grafana applies them in the order they are listed.\nEach transformation creates a result set that then passes on to the next transformation in the processing pipeline.' } }, + withTransformationsMixin(value): { + model+: { + transformations+: + (if std.isArray(value) + then value + else [value]), + }, + }, + transformations+: + { + '#': { help: '', name: 'transformations' }, + '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Disabled transformations are skipped' } }, + withDisabled(value=true): { + disabled: value, + }, + '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, + withFilter(value): { + filter: value, + }, + '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, + withFilterMixin(value): { + filter+: value, + }, + filter+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: 'The matcher id. This is used to find the matcher implementation from registry.' } }, + withId(value=''): { + filter+: { + id: value, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, + withOptions(value): { + filter+: { + options: value, + }, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, + withOptionsMixin(value): { + filter+: { + options+: value, + }, + }, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique identifier of transformer' } }, + withId(value): { + id: value, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, + withOptionsMixin(value): { + options+: value, + }, + '#withTopic': { 'function': { args: [{ default: null, enums: ['series', 'annotations', 'alertStates'], name: 'value', type: ['string'] }], help: 'Where to pull DataFrames from as input to transformation' } }, + withTopic(value): { + topic: value, + }, + }, + '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether to display the panel without a background.' } }, + withTransparent(value=true): { + model+: { + transparent: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The panel plugin type id. This is used to find the plugin to display the panel.' } }, + withType(value): { + model+: { + type: value, + }, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel name (also saved in the model)' } }, + withName(value): { + name: value, + }, + '#withSchemaVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Dashboard version when this was saved (zero if unknown)' } }, + withSchemaVersion(value): { + schemaVersion: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The panel type (from inside the model)' } }, + withType(value): { + type: value, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Library element UID' } }, + withUid(value): { + uid: value, + }, + '#withVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'panel version, incremented each time the dashboard is updated.' } }, + withVersion(value): { + version: value, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/main.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/main.libsonnet new file mode 100644 index 0000000..e80d456 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/main.libsonnet @@ -0,0 +1,26 @@ +// This file is generated, do not manually edit. +{ + '#': { + filename: 'main.libsonnet', + help: 'Jsonnet library for rendering Grafana resources\n## Install\n\n```\njb install github.com/grafana/grafonnet/gen/grafonnet-v11.4.0@main\n```\n\n## Usage\n\n```jsonnet\nlocal grafonnet = import "github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/main.libsonnet"\n```\n', + 'import': 'github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/main.libsonnet', + installTemplate: '\n## Install\n\n```\njb install %(url)s@%(version)s\n```\n', + name: 'grafonnet', + url: 'github.com/grafana/grafonnet/gen/grafonnet-v11.4.0', + usageTemplate: '\n## Usage\n\n```jsonnet\nlocal %(name)s = import "%(import)s"\n```\n', + version: 'main', + }, + accesspolicy: import 'accesspolicy.libsonnet', + dashboard: import 'dashboard.libsonnet', + librarypanel: import 'librarypanel.libsonnet', + preferences: import 'preferences.libsonnet', + publicdashboard: import 'publicdashboard.libsonnet', + role: import 'role.libsonnet', + rolebinding: import 'rolebinding.libsonnet', + team: import 'team.libsonnet', + folder: import 'folder.libsonnet', + panel: import 'panelindex.libsonnet', + query: import 'query.libsonnet', + util: import 'custom/util/main.libsonnet', + alerting: import 'alerting.libsonnet', +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel.libsonnet new file mode 100644 index 0000000..b613912 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel.libsonnet @@ -0,0 +1,803 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel', name: 'panel' }, + panelOptions+: + { + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel title.' } }, + withTitle(value): { + title: value, + }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel description.' } }, + withDescription(value): { + description: value, + }, + '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether to display the panel without a background.' } }, + withTransparent(value=true): { + transparent: value, + }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.' } }, + withLinks(value): { + links: + (if std.isArray(value) + then value + else [value]), + }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.' } }, + withLinksMixin(value): { + links+: + (if std.isArray(value) + then value + else [value]), + }, + '#withMaxPerRow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Option for repeated panels that controls max items per row\nOnly relevant for horizontally repeated panels' } }, + withMaxPerRow(value): { + maxPerRow: value, + }, + '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of template variable to repeat for.' } }, + withRepeat(value): { + repeat: value, + }, + '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: ['string'] }], help: "Direction to repeat in if 'repeat' is set.\n`h` for horizontal, `v` for vertical." } }, + withRepeatDirection(value='h'): { + repeatDirection: value, + }, + '#withPluginVersion': { 'function': { args: [], help: '' } }, + withPluginVersion(): { + pluginVersion: 'v11.4.0', + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The panel plugin type id. This is used to find the plugin to display the panel.' } }, + withType(value): { + type: value, + }, + link+: + { + '#': { help: '', name: 'link' }, + '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards' } }, + withAsDropdown(value=true): { + asDropdown: value, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon name to be displayed with the link' } }, + withIcon(value): { + icon: value, + }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current template variables values in the link as query params' } }, + withIncludeVars(value=true): { + includeVars: value, + }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current time range in the link as query params' } }, + withKeepTime(value=true): { + keepTime: value, + }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, + withTags(value): { + tags: + (if std.isArray(value) + then value + else [value]), + }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, + withTagsMixin(value): { + tags+: + (if std.isArray(value) + then value + else [value]), + }, + '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, the link will be opened in a new tab' } }, + withTargetBlank(value=true): { + targetBlank: value, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title to display with the link' } }, + withTitle(value): { + title: value, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Tooltip to display when the user hovers their mouse over it' } }, + withTooltip(value): { + tooltip: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)' } }, + withType(value): { + type: value, + }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Link URL. Only required/valid if the type is link' } }, + withUrl(value): { + url: value, + }, + }, + }, + queryOptions+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The maximum number of data points that the panel queries are retrieving.' } }, + withMaxDataPoints(value): { + maxDataPoints: value, + }, + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables.\nThis value must be formatted as a number followed by a valid time\nidentifier like: "40s", "3d", etc.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, + withInterval(value): { + interval: value, + }, + '#withQueryCachingTTL': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Overrides the data source configured time-to-live for a query cache item in milliseconds' } }, + withQueryCachingTTL(value): { + queryCachingTTL: value, + }, + '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Overrides the relative time range for individual panels,\nwhich causes them to be different than what is selected in\nthe dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different\ntime periods or days on the same dashboard.\nThe value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far),\n`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years).\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, + withTimeFrom(value): { + timeFrom: value, + }, + '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Overrides the time range for individual panels by shifting its start and end relative to the time picker.\nFor example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`.\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, + withTimeShift(value): { + timeShift: value, + }, + '#withHideTimeOverride': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the timeFrom or timeShift overrides are shown in the panel header' } }, + withHideTimeOverride(value=true): { + hideTimeOverride: value, + }, + '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Depends on the panel plugin. See the plugin documentation for details.' } }, + withTargets(value): { + targets: + (if std.isArray(value) + then value + else [value]), + }, + '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Depends on the panel plugin. See the plugin documentation for details.' } }, + withTargetsMixin(value): { + targets+: + (if std.isArray(value) + then value + else [value]), + }, + '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of transformations that are applied to the panel data before rendering.\nWhen there are multiple transformations, Grafana applies them in the order they are listed.\nEach transformation creates a result set that then passes on to the next transformation in the processing pipeline.' } }, + withTransformations(value): { + transformations: + (if std.isArray(value) + then value + else [value]), + }, + '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of transformations that are applied to the panel data before rendering.\nWhen there are multiple transformations, Grafana applies them in the order they are listed.\nEach transformation creates a result set that then passes on to the next transformation in the processing pipeline.' } }, + withTransformationsMixin(value): { + transformations+: + (if std.isArray(value) + then value + else [value]), + }, + transformation+: + { + '#': { help: '', name: 'transformation' }, + '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Disabled transformations are skipped' } }, + withDisabled(value=true): { + disabled: value, + }, + '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, + withFilter(value): { + filter: value, + }, + '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, + withFilterMixin(value): { + filter+: value, + }, + filter+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: 'The matcher id. This is used to find the matcher implementation from registry.' } }, + withId(value=''): { + filter+: { + id: value, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, + withOptions(value): { + filter+: { + options: value, + }, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, + withOptionsMixin(value): { + filter+: { + options+: value, + }, + }, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique identifier of transformer' } }, + withId(value): { + id: value, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, + withOptionsMixin(value): { + options+: value, + }, + '#withTopic': { 'function': { args: [{ default: null, enums: ['series', 'annotations', 'alertStates'], name: 'value', type: ['string'] }], help: 'Where to pull DataFrames from as input to transformation' } }, + withTopic(value): { + topic: value, + }, + }, + }, + standardOptions+: + { + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit a field should use. The unit you select is applied to all fields except time.\nYou can use the units ID availables in Grafana or a custom unit.\nAvailable units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts\nAs custom unit, you can use the following formats:\n`suffix:` for custom unit that should go after value.\n`prefix:` for custom unit that should go before value.\n`time:` For custom date time formats type for example `time:YYYY-MM-DD`.\n`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character.\n`count:` for a custom count unit.\n`currency:` for custom a currency unit.' } }, + withUnit(value): { + fieldConfig+: { + defaults+: { + unit: value, + }, + }, + }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.' } }, + withMin(value): { + fieldConfig+: { + defaults+: { + min: value, + }, + }, + }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.' } }, + withMax(value): { + fieldConfig+: { + defaults+: { + max: value, + }, + }, + }, + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Specify the number of decimals Grafana includes in the rendered value.\nIf you leave this field blank, Grafana automatically truncates the number of decimals based on the value.\nFor example 1.1234 will display as 1.12 and 100.456 will display as 100.\nTo display all decimals, set the unit to `String`.' } }, + withDecimals(value): { + fieldConfig+: { + defaults+: { + decimals: value, + }, + }, + }, + '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The display value for this field. This supports template variables blank is auto' } }, + withDisplayName(value): { + fieldConfig+: { + defaults+: { + displayName: value, + }, + }, + }, + color+: + { + '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The fixed color value for fixed or shades color modes.' } }, + withFixedColor(value): { + fieldConfig+: { + defaults+: { + color+: { + fixedColor: value, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['thresholds', 'palette-classic', 'palette-classic-by-name', 'continuous-GrYlRd', 'continuous-RdYlGr', 'continuous-BlYlRd', 'continuous-YlRd', 'continuous-BlPu', 'continuous-YlBl', 'continuous-blues', 'continuous-reds', 'continuous-greens', 'continuous-purples', 'fixed', 'shades'], name: 'value', type: ['string'] }], help: 'Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value.\nContinuous color interpolates a color using the percentage of a value relative to min and max.\nAccepted values are:\n`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold\n`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations\n`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations\n`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode\n`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode\n`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode\n`continuous-YlRd`: Continuous Yellow-Red palette mode\n`continuous-BlPu`: Continuous Blue-Purple palette mode\n`continuous-YlBl`: Continuous Yellow-Blue palette mode\n`continuous-blues`: Continuous Blue palette mode\n`continuous-reds`: Continuous Red palette mode\n`continuous-greens`: Continuous Green palette mode\n`continuous-purples`: Continuous Purple palette mode\n`shades`: Shades of a single color. Specify a single color, useful in an override rule.\n`fixed`: Fixed color mode. Specify a single color, useful in an override rule.' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + color+: { + mode: value, + }, + }, + }, + }, + '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: ['string'] }], help: 'Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value.' } }, + withSeriesBy(value): { + fieldConfig+: { + defaults+: { + color+: { + seriesBy: value, + }, + }, + }, + }, + }, + '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alternative to empty string' } }, + withNoValue(value): { + fieldConfig+: { + defaults+: { + noValue: value, + }, + }, + }, + '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, + withLinks(value): { + fieldConfig+: { + defaults+: { + links: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, + withLinksMixin(value): { + fieldConfig+: { + defaults+: { + links+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, + withMappings(value): { + fieldConfig+: { + defaults+: { + mappings: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, + withMappingsMixin(value): { + fieldConfig+: { + defaults+: { + mappings+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Overrides are the options applied to specific fields overriding the defaults.' } }, + withOverrides(value): { + fieldConfig+: { + overrides: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Overrides are the options applied to specific fields overriding the defaults.' } }, + withOverridesMixin(value): { + fieldConfig+: { + overrides+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'True if data source field supports ad-hoc filters' } }, + withFilterable(value=true): { + fieldConfig+: { + defaults+: { + filterable: value, + }, + }, + }, + '#withPath': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An explicit path to the field in the datasource. When the frame meta includes a path,\nThis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used to update the results' } }, + withPath(value): { + fieldConfig+: { + defaults+: { + path: value, + }, + }, + }, + thresholds+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: ['string'] }], help: 'Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1).' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + thresholds+: { + mode: value, + }, + }, + }, + }, + '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, + withSteps(value): { + fieldConfig+: { + defaults+: { + thresholds+: { + steps: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, + withStepsMixin(value): { + fieldConfig+: { + defaults+: { + thresholds+: { + steps+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + mapping+: + { + '#': { help: '', name: 'mapping' }, + ValueMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } }' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } }' } }, + withOptionsMixin(value): { + options+: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'value', + }, + }, + RangeMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Range to match against and the result to apply when the value is within the range' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Range to match against and the result to apply when the value is within the range' } }, + withOptionsMixin(value): { + options+: value, + }, + options+: + { + '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Min value of the range. It can be null which means -Infinity' } }, + withFrom(value): { + options+: { + from: value, + }, + }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResult(value): { + options+: { + result: value, + }, + }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResultMixin(value): { + options+: { + result+: value, + }, + }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, + withColor(value): { + options+: { + result+: { + color: value, + }, + }, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, + withIcon(value): { + options+: { + result+: { + icon: value, + }, + }, + }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, + withIndex(value): { + options+: { + result+: { + index: value, + }, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, + withText(value): { + options+: { + result+: { + text: value, + }, + }, + }, + }, + '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Max value of the range. It can be null which means +Infinity' } }, + withTo(value): { + options+: { + to: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'range', + }, + }, + RegexMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Regular expression to match against and the result to apply when the value matches the regex' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Regular expression to match against and the result to apply when the value matches the regex' } }, + withOptionsMixin(value): { + options+: value, + }, + options+: + { + '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Regular expression to match against' } }, + withPattern(value): { + options+: { + pattern: value, + }, + }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResult(value): { + options+: { + result: value, + }, + }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResultMixin(value): { + options+: { + result+: value, + }, + }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, + withColor(value): { + options+: { + result+: { + color: value, + }, + }, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, + withIcon(value): { + options+: { + result+: { + icon: value, + }, + }, + }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, + withIndex(value): { + options+: { + result+: { + index: value, + }, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, + withText(value): { + options+: { + result+: { + text: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'regex', + }, + }, + SpecialValueMap+: + { + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOptions(value): { + options: value, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOptionsMixin(value): { + options+: value, + }, + options+: + { + '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false', 'null', 'nan', 'null+nan', 'empty'], name: 'value', type: ['string'] }], help: 'Special value types supported by the `SpecialValueMap`' } }, + withMatch(value): { + options+: { + match: value, + }, + }, + '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResult(value): { + options+: { + result: value, + }, + }, + '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, + withResultMixin(value): { + options+: { + result+: value, + }, + }, + result+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, + withColor(value): { + options+: { + result+: { + color: value, + }, + }, + }, + '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, + withIcon(value): { + options+: { + result+: { + icon: value, + }, + }, + }, + '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, + withIndex(value): { + options+: { + result+: { + index: value, + }, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, + withText(value): { + options+: { + result+: { + text: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'special', + }, + }, + }, + threshold+: { + step+: + { + '#': { help: '', name: 'step' }, + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded.' } }, + withColor(value): { + color: value, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded.\nNulls currently appear here when serializing -Infinity to JSON.' } }, + withValue(value): { + value: value, + }, + }, + }, + override+: + { + '#': { help: '', name: 'override' }, + '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, + withMatcher(value): { + matcher: value, + }, + '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, + withMatcherMixin(value): { + matcher+: value, + }, + matcher+: + { + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: 'The matcher id. This is used to find the matcher implementation from registry.' } }, + withId(value=''): { + matcher+: { + id: value, + }, + }, + '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, + withOptions(value): { + matcher+: { + options: value, + }, + }, + '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, + withOptionsMixin(value): { + matcher+: { + options+: value, + }, + }, + }, + '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withProperties(value): { + properties: + (if std.isArray(value) + then value + else [value]), + }, + '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPropertiesMixin(value): { + properties+: + (if std.isArray(value) + then value + else [value]), + }, + properties+: + { + '#': { help: '', name: 'properties' }, + '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value=''): { + id: value, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withValue(value): { + value: value, + }, + '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withValueMixin(value): { + value+: value, + }, + }, + }, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + libraryPanel+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Library panel name' } }, + withName(value): { + libraryPanel+: { + name: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Library panel uid' } }, + withUid(value): { + libraryPanel+: { + uid: value, + }, + }, + }, + gridPos+: + { + '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: ['integer'] }], help: 'Panel height. The height is the number of rows from the top edge of the panel.' } }, + withH(value=9): { + gridPos+: { + h: value, + }, + }, + '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: "Whether the panel is fixed within the grid. If true, the panel will not be affected by other panels' interactions" } }, + withStatic(value=true): { + gridPos+: { + static: value, + }, + }, + '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: ['integer'] }], help: 'Panel width. The width is the number of columns from the left edge of the panel.' } }, + withW(value=12): { + gridPos+: { + w: value, + }, + }, + '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel x. The x coordinate is the number of columns from the left edge of the grid' } }, + withX(value=0): { + gridPos+: { + x: value, + }, + }, + '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel y. The y coordinate is the number of rows from the top edge of the grid' } }, + withY(value=0): { + gridPos+: { + y: value, + }, + }, + }, +} ++ (import 'custom/panel.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/alertList.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/alertList.libsonnet new file mode 100644 index 0000000..0865829 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/alertList.libsonnet @@ -0,0 +1,341 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.alertList', name: 'alertList' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'alertlist', + }, + }, + options+: + { + '#withAlertListOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAlertListOptions(value): { + options+: { + AlertListOptions: value, + }, + }, + '#withAlertListOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAlertListOptionsMixin(value): { + options+: { + AlertListOptions+: value, + }, + }, + AlertListOptions+: + { + '#withAlertName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAlertName(value): { + options+: { + alertName: value, + }, + }, + '#withDashboardAlerts': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withDashboardAlerts(value=true): { + options+: { + dashboardAlerts: value, + }, + }, + '#withDashboardTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withDashboardTitle(value): { + options+: { + dashboardTitle: value, + }, + }, + '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withFolderId(value): { + options+: { + folderId: value, + }, + }, + '#withMaxItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxItems(value): { + options+: { + maxItems: value, + }, + }, + '#withShowOptions': { 'function': { args: [{ default: null, enums: ['current', 'changes'], name: 'value', type: ['string'] }], help: '' } }, + withShowOptions(value): { + options+: { + showOptions: value, + }, + }, + '#withSortOrder': { 'function': { args: [{ default: null, enums: [1, 2, 3, 4, 5], name: 'value', type: ['number'] }], help: '' } }, + withSortOrder(value): { + options+: { + sortOrder: value, + }, + }, + '#withStateFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withStateFilter(value): { + options+: { + stateFilter: value, + }, + }, + '#withStateFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withStateFilterMixin(value): { + options+: { + stateFilter+: value, + }, + }, + stateFilter+: + { + '#withAlerting': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAlerting(value=true): { + options+: { + stateFilter+: { + alerting: value, + }, + }, + }, + '#withExecutionError': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withExecutionError(value=true): { + options+: { + stateFilter+: { + execution_error: value, + }, + }, + }, + '#withNoData': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withNoData(value=true): { + options+: { + stateFilter+: { + no_data: value, + }, + }, + }, + '#withOk': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withOk(value=true): { + options+: { + stateFilter+: { + ok: value, + }, + }, + }, + '#withPaused': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withPaused(value=true): { + options+: { + stateFilter+: { + paused: value, + }, + }, + }, + '#withPending': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withPending(value=true): { + options+: { + stateFilter+: { + pending: value, + }, + }, + }, + }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTags(value): { + options+: { + tags: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTagsMixin(value): { + options+: { + tags+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withUnifiedAlertListOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUnifiedAlertListOptions(value): { + options+: { + UnifiedAlertListOptions: value, + }, + }, + '#withUnifiedAlertListOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUnifiedAlertListOptionsMixin(value): { + options+: { + UnifiedAlertListOptions+: value, + }, + }, + UnifiedAlertListOptions+: + { + '#withAlertInstanceLabelFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAlertInstanceLabelFilter(value): { + options+: { + alertInstanceLabelFilter: value, + }, + }, + '#withAlertName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAlertName(value): { + options+: { + alertName: value, + }, + }, + '#withDashboardAlerts': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withDashboardAlerts(value=true): { + options+: { + dashboardAlerts: value, + }, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withDatasource(value): { + options+: { + datasource: value, + }, + }, + '#withFolder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withFolder(value): { + options+: { + folder: value, + }, + }, + '#withFolderMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withFolderMixin(value): { + options+: { + folder+: value, + }, + }, + folder+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withId(value): { + options+: { + folder+: { + id: value, + }, + }, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTitle(value): { + options+: { + folder+: { + title: value, + }, + }, + }, + }, + '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withGroupBy(value): { + options+: { + groupBy: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withGroupByMixin(value): { + options+: { + groupBy+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withGroupMode': { 'function': { args: [{ default: null, enums: ['default', 'custom'], name: 'value', type: ['string'] }], help: '' } }, + withGroupMode(value): { + options+: { + groupMode: value, + }, + }, + '#withMaxItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxItems(value): { + options+: { + maxItems: value, + }, + }, + '#withShowInstances': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowInstances(value=true): { + options+: { + showInstances: value, + }, + }, + '#withSortOrder': { 'function': { args: [{ default: null, enums: [1, 2, 3, 4, 5], name: 'value', type: ['number'] }], help: '' } }, + withSortOrder(value): { + options+: { + sortOrder: value, + }, + }, + '#withStateFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withStateFilter(value): { + options+: { + stateFilter: value, + }, + }, + '#withStateFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withStateFilterMixin(value): { + options+: { + stateFilter+: value, + }, + }, + stateFilter+: + { + '#withError': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withError(value=true): { + options+: { + stateFilter+: { + 'error': value, + }, + }, + }, + '#withFiring': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withFiring(value=true): { + options+: { + stateFilter+: { + firing: value, + }, + }, + }, + '#withInactive': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withInactive(value=true): { + options+: { + stateFilter+: { + inactive: value, + }, + }, + }, + '#withNoData': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withNoData(value=true): { + options+: { + stateFilter+: { + noData: value, + }, + }, + }, + '#withNormal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withNormal(value=true): { + options+: { + stateFilter+: { + normal: value, + }, + }, + }, + '#withPending': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withPending(value=true): { + options+: { + stateFilter+: { + pending: value, + }, + }, + }, + }, + '#withViewMode': { 'function': { args: [{ default: null, enums: ['list', 'stat'], name: 'value', type: ['string'] }], help: '' } }, + withViewMode(value): { + options+: { + viewMode: value, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/annotationsList.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/annotationsList.libsonnet new file mode 100644 index 0000000..ccf1c12 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/annotationsList.libsonnet @@ -0,0 +1,94 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.annotationsList', name: 'annotationsList' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'annolist', + }, + }, + options+: + { + '#withLimit': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withLimit(value=10): { + options+: { + limit: value, + }, + }, + '#withNavigateAfter': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withNavigateAfter(value='10m'): { + options+: { + navigateAfter: value, + }, + }, + '#withNavigateBefore': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withNavigateBefore(value='10m'): { + options+: { + navigateBefore: value, + }, + }, + '#withNavigateToPanel': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withNavigateToPanel(value=true): { + options+: { + navigateToPanel: value, + }, + }, + '#withOnlyFromThisDashboard': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withOnlyFromThisDashboard(value=true): { + options+: { + onlyFromThisDashboard: value, + }, + }, + '#withOnlyInTimeRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withOnlyInTimeRange(value=true): { + options+: { + onlyInTimeRange: value, + }, + }, + '#withShowTags': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowTags(value=true): { + options+: { + showTags: value, + }, + }, + '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowTime(value=true): { + options+: { + showTime: value, + }, + }, + '#withShowUser': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowUser(value=true): { + options+: { + showUser: value, + }, + }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTags(value): { + options+: { + tags: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTagsMixin(value): { + options+: { + tags+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/barChart.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/barChart.libsonnet new file mode 100644 index 0000000..ccba369 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/barChart.libsonnet @@ -0,0 +1,553 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.barChart', name: 'barChart' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'barchart', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisBorderShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisBorderShow: value, + }, + }, + }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisCenteredZero(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisCenteredZero: value, + }, + }, + }, + }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisColorMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisColorMode: value, + }, + }, + }, + }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisGridShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisGridShow: value, + }, + }, + }, + }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAxisLabel(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisLabel: value, + }, + }, + }, + }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisPlacement(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisPlacement: value, + }, + }, + }, + }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMax(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMax: value, + }, + }, + }, + }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMin(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMin: value, + }, + }, + }, + }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisWidth: value, + }, + }, + }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the fill opacity of the bars.' } }, + withFillOpacity(value=80): { + fieldConfig+: { + defaults+: { + custom+: { + fillOpacity: value, + }, + }, + }, + }, + '#withGradientMode': { 'function': { args: [{ default: 'none', enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withGradientMode(value='none'): { + fieldConfig+: { + defaults+: { + custom+: { + gradientMode: value, + }, + }, + }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls line width of the bars.' } }, + withLineWidth(value=1): { + fieldConfig+: { + defaults+: { + custom+: { + lineWidth: value, + }, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution: value, + }, + }, + }, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: value, + }, + }, + }, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + linearThreshold: value, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + log: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + type: value, + }, + }, + }, + }, + }, + }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle: value, + }, + }, + }, + }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle+: value, + }, + }, + }, + }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle+: { + mode: value, + }, + }, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withBarRadius': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Controls the radius of each bar.' } }, + withBarRadius(value=0): { + options+: { + barRadius: value, + }, + }, + '#withBarWidth': { 'function': { args: [{ default: 0.97, enums: null, name: 'value', type: ['number'] }], help: 'Controls the width of bars. 1 = Max width, 0 = Min width.' } }, + withBarWidth(value=0.97): { + options+: { + barWidth: value, + }, + }, + '#withColorByField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Use the color value for a sibling field to color each bar value.' } }, + withColorByField(value): { + options+: { + colorByField: value, + }, + }, + '#withFullHighlight': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enables mode which highlights the entire bar area and shows tooltip when cursor\nhovers over highlighted area' } }, + withFullHighlight(value=true): { + options+: { + fullHighlight: value, + }, + }, + '#withGroupWidth': { 'function': { args: [{ default: 0.7, enums: null, name: 'value', type: ['number'] }], help: 'Controls the width of groups. 1 = max with, 0 = min width.' } }, + withGroupWidth(value=0.7): { + options+: { + groupWidth: value, + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegend(value): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: 'list', enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value='list'): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: 'bottom', enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value='bottom'): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withOrientation': { 'function': { args: [{ default: 'auto', enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withOrientation(value='auto'): { + options+: { + orientation: value, + }, + }, + '#withShowValue': { 'function': { args: [{ default: 'auto', enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withShowValue(value='auto'): { + options+: { + showValue: value, + }, + }, + '#withStacking': { 'function': { args: [{ default: 'none', enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withStacking(value='none'): { + options+: { + stacking: value, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withText(value): { + options+: { + text: value, + }, + }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTextMixin(value): { + options+: { + text+: value, + }, + }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, + withTitleSize(value): { + options+: { + text+: { + titleSize: value, + }, + }, + }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, + withValueSize(value): { + options+: { + text+: { + valueSize: value, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withSort(value): { + options+: { + tooltip+: { + sort: value, + }, + }, + }, + }, + '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Manually select which field from the dataset to represent the x field.' } }, + withXField(value): { + options+: { + xField: value, + }, + }, + '#withXTickLabelMaxLength': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Sets the max length that a label can have before it is truncated.' } }, + withXTickLabelMaxLength(value): { + options+: { + xTickLabelMaxLength: value, + }, + }, + '#withXTickLabelRotation': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the rotation of the x axis labels.' } }, + withXTickLabelRotation(value=0): { + options+: { + xTickLabelRotation: value, + }, + }, + '#withXTickLabelSpacing': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the spacing between x axis labels.\nnegative values indicate backwards skipping behavior' } }, + withXTickLabelSpacing(value=0): { + options+: { + xTickLabelSpacing: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/barGauge.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/barGauge.libsonnet new file mode 100644 index 0000000..837d4ff --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/barGauge.libsonnet @@ -0,0 +1,269 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.barGauge', name: 'barGauge' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'bargauge', + }, + }, + options+: + { + '#withDisplayMode': { 'function': { args: [{ default: 'gradient', enums: ['basic', 'lcd', 'gradient'], name: 'value', type: ['string'] }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, + withDisplayMode(value='gradient'): { + options+: { + displayMode: value, + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegend(value): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: 'list', enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value='list'): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: 'bottom', enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value='bottom'): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withMaxVizHeight': { 'function': { args: [{ default: 300, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withMaxVizHeight(value=300): { + options+: { + maxVizHeight: value, + }, + }, + '#withMinVizHeight': { 'function': { args: [{ default: 16, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withMinVizHeight(value=16): { + options+: { + minVizHeight: value, + }, + }, + '#withMinVizWidth': { 'function': { args: [{ default: 8, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withMinVizWidth(value=8): { + options+: { + minVizWidth: value, + }, + }, + '#withNamePlacement': { 'function': { args: [{ default: 'auto', enums: ['auto', 'top', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'Allows for the bar gauge name to be placed explicitly' } }, + withNamePlacement(value='auto'): { + options+: { + namePlacement: value, + }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withOrientation(value): { + options+: { + orientation: value, + }, + }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withReduceOptions(value): { + options+: { + reduceOptions: value, + }, + }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { + options+: { + reduceOptions+: value, + }, + }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { + options+: { + reduceOptions+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { + options+: { + reduceOptions+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { + options+: { + reduceOptions+: { + fields: value, + }, + }, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, + withLimit(value): { + options+: { + reduceOptions+: { + limit: value, + }, + }, + }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, + withValues(value=true): { + options+: { + reduceOptions+: { + values: value, + }, + }, + }, + }, + '#withShowUnfilled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowUnfilled(value=true): { + options+: { + showUnfilled: value, + }, + }, + '#withSizing': { 'function': { args: [{ default: 'auto', enums: ['auto', 'manual'], name: 'value', type: ['string'] }], help: 'Allows for the bar gauge size to be set explicitly' } }, + withSizing(value='auto'): { + options+: { + sizing: value, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withText(value): { + options+: { + text: value, + }, + }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTextMixin(value): { + options+: { + text+: value, + }, + }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, + withTitleSize(value): { + options+: { + text+: { + titleSize: value, + }, + }, + }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, + withValueSize(value): { + options+: { + text+: { + valueSize: value, + }, + }, + }, + }, + '#withValueMode': { 'function': { args: [{ default: 'color', enums: ['color', 'text', 'hidden'], name: 'value', type: ['string'] }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, + withValueMode(value='color'): { + options+: { + valueMode: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/candlestick.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/candlestick.libsonnet new file mode 100644 index 0000000..2baf833 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/candlestick.libsonnet @@ -0,0 +1,850 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.candlestick', name: 'candlestick' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'candlestick', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisBorderShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisBorderShow: value, + }, + }, + }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisCenteredZero(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisCenteredZero: value, + }, + }, + }, + }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisColorMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisColorMode: value, + }, + }, + }, + }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisGridShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisGridShow: value, + }, + }, + }, + }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAxisLabel(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisLabel: value, + }, + }, + }, + }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisPlacement(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisPlacement: value, + }, + }, + }, + }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMax(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMax: value, + }, + }, + }, + }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMin(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMin: value, + }, + }, + }, + }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisWidth: value, + }, + }, + }, + }, + '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withBarAlignment(value): { + fieldConfig+: { + defaults+: { + custom+: { + barAlignment: value, + }, + }, + }, + }, + '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withBarMaxWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + barMaxWidth: value, + }, + }, + }, + }, + '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withBarWidthFactor(value): { + fieldConfig+: { + defaults+: { + custom+: { + barWidthFactor: value, + }, + }, + }, + }, + '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withDrawStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + drawStyle: value, + }, + }, + }, + }, + '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFillBelowTo(value): { + fieldConfig+: { + defaults+: { + custom+: { + fillBelowTo: value, + }, + }, + }, + }, + '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFillColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + fillColor: value, + }, + }, + }, + }, + '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withFillOpacity(value): { + fieldConfig+: { + defaults+: { + custom+: { + fillOpacity: value, + }, + }, + }, + }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withGradientMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + gradientMode: value, + }, + }, + }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + '#withInsertNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: '' } }, + withInsertNulls(value): { + fieldConfig+: { + defaults+: { + custom+: { + insertNulls: value, + }, + }, + }, + }, + '#withInsertNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: '' } }, + withInsertNullsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + insertNulls+: value, + }, + }, + }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLineColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineColor: value, + }, + }, + }, + }, + '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withLineInterpolation(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineInterpolation: value, + }, + }, + }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle: value, + }, + }, + }, + }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: value, + }, + }, + }, + }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDash(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + dash: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDashMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + dash+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, + withFill(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + fill: value, + }, + }, + }, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLineWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineWidth: value, + }, + }, + }, + }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPointColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointColor: value, + }, + }, + }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withPointSize(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize: value, + }, + }, + }, + }, + '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPointSymbol(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSymbol: value, + }, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution: value, + }, + }, + }, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: value, + }, + }, + }, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + linearThreshold: value, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + log: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + type: value, + }, + }, + }, + }, + }, + }, + '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withShowPoints(value): { + fieldConfig+: { + defaults+: { + custom+: { + showPoints: value, + }, + }, + }, + }, + '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNulls(value): { + fieldConfig+: { + defaults+: { + custom+: { + spanNulls: value, + }, + }, + }, + }, + '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNullsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + spanNulls+: value, + }, + }, + }, + }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStacking(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking: value, + }, + }, + }, + }, + '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStackingMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: value, + }, + }, + }, + }, + stacking+: + { + '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withGroup(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: { + group: value, + }, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: { + mode: value, + }, + }, + }, + }, + }, + }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle: value, + }, + }, + }, + }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle+: value, + }, + }, + }, + }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle+: { + mode: value, + }, + }, + }, + }, + }, + }, + '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withTransform(value): { + fieldConfig+: { + defaults+: { + custom+: { + transform: value, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withCandleStyle': { 'function': { args: [{ default: 'candles', enums: ['candles', 'ohlcbars'], name: 'value', type: ['string'] }], help: 'Sets the style of the candlesticks' } }, + withCandleStyle(value='candles'): { + options+: { + candleStyle: value, + }, + }, + '#withColorStrategy': { 'function': { args: [{ default: 'open-close', enums: ['open-close', 'close-close'], name: 'value', type: ['string'] }], help: 'Sets the color strategy for the candlesticks' } }, + withColorStrategy(value='open-close'): { + options+: { + colorStrategy: value, + }, + }, + '#withColors': { 'function': { args: [{ default: { down: 'red', flat: 'gray', up: 'green' }, enums: null, name: 'value', type: ['object'] }], help: 'Set which colors are used when the price movement is up or down' } }, + withColors(value={ down: 'red', flat: 'gray', up: 'green' }): { + options+: { + colors: value, + }, + }, + '#withColorsMixin': { 'function': { args: [{ default: { down: 'red', flat: 'gray', up: 'green' }, enums: null, name: 'value', type: ['object'] }], help: 'Set which colors are used when the price movement is up or down' } }, + withColorsMixin(value): { + options+: { + colors+: value, + }, + }, + colors+: + { + '#withDown': { 'function': { args: [{ default: 'red', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withDown(value='red'): { + options+: { + colors+: { + down: value, + }, + }, + }, + '#withFlat': { 'function': { args: [{ default: 'gray', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFlat(value='gray'): { + options+: { + colors+: { + flat: value, + }, + }, + }, + '#withUp': { 'function': { args: [{ default: 'green', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withUp(value='green'): { + options+: { + colors+: { + up: value, + }, + }, + }, + }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map fields to appropriate dimension' } }, + withFields(value): { + options+: { + fields: value, + }, + }, + '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map fields to appropriate dimension' } }, + withFieldsMixin(value): { + options+: { + fields+: value, + }, + }, + fields+: + { + '#withClose': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the final (end) value of the given period' } }, + withClose(value): { + options+: { + fields+: { + close: value, + }, + }, + }, + '#withHigh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the highest value of the given period' } }, + withHigh(value): { + options+: { + fields+: { + high: value, + }, + }, + }, + '#withLow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the lowest value of the given period' } }, + withLow(value): { + options+: { + fields+: { + low: value, + }, + }, + }, + '#withOpen': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the starting value of the given period' } }, + withOpen(value): { + options+: { + fields+: { + open: value, + }, + }, + }, + '#withVolume': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the sample count in the given period. (e.g. number of trades)' } }, + withVolume(value): { + options+: { + fields+: { + volume: value, + }, + }, + }, + }, + '#withIncludeAllFields': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When enabled, all fields will be sent to the graph' } }, + withIncludeAllFields(value=true): { + options+: { + includeAllFields: value, + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegend(value): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: 'list', enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value='list'): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: 'bottom', enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value='bottom'): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: 'candles+volume', enums: ['candles+volume', 'candles', 'volume'], name: 'value', type: ['string'] }], help: 'Sets which dimensions are used for the visualization' } }, + withMode(value='candles+volume'): { + options+: { + mode: value, + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withSort(value): { + options+: { + tooltip+: { + sort: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/canvas.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/canvas.libsonnet new file mode 100644 index 0000000..2cf777f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/canvas.libsonnet @@ -0,0 +1,544 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.canvas', name: 'canvas' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'canvas', + }, + }, + options+: + { + '#withInfinitePan': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enable infinite pan' } }, + withInfinitePan(value=true): { + options+: { + infinitePan: value, + }, + }, + '#withInlineEditing': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enable inline editing' } }, + withInlineEditing(value=true): { + options+: { + inlineEditing: value, + }, + }, + '#withPanZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enable pan and zoom' } }, + withPanZoom(value=true): { + options+: { + panZoom: value, + }, + }, + '#withRoot': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The root element of canvas (frame), where all canvas elements are nested\nTODO: Figure out how to define a default value for this' } }, + withRoot(value): { + options+: { + root: value, + }, + }, + '#withRootMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The root element of canvas (frame), where all canvas elements are nested\nTODO: Figure out how to define a default value for this' } }, + withRootMixin(value): { + options+: { + root+: value, + }, + }, + root+: + { + '#withElements': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The list of canvas elements attached to the root element' } }, + withElements(value): { + options+: { + root+: { + elements: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withElementsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The list of canvas elements attached to the root element' } }, + withElementsMixin(value): { + options+: { + root+: { + elements+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + elements+: + { + '#': { help: '', name: 'elements' }, + '#withBackground': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withBackground(value): { + background: value, + }, + '#withBackgroundMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withBackgroundMixin(value): { + background+: value, + }, + background+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withColor(value): { + background+: { + color: value, + }, + }, + '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withColorMixin(value): { + background+: { + color+: value, + }, + }, + color+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + background+: { + color+: { + field: value, + }, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, + withFixed(value): { + background+: { + color+: { + fixed: value, + }, + }, + }, + }, + '#withImage': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Links to a resource (image/svg path)' } }, + withImage(value): { + background+: { + image: value, + }, + }, + '#withImageMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Links to a resource (image/svg path)' } }, + withImageMixin(value): { + background+: { + image+: value, + }, + }, + image+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + background+: { + image+: { + field: value, + }, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFixed(value): { + background+: { + image+: { + fixed: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'mapping'], name: 'value', type: ['string'] }], help: '' } }, + withMode(value): { + background+: { + image+: { + mode: value, + }, + }, + }, + }, + '#withSize': { 'function': { args: [{ default: null, enums: ['original', 'contain', 'cover', 'fill', 'tile'], name: 'value', type: ['string'] }], help: '' } }, + withSize(value): { + background+: { + size: value, + }, + }, + }, + '#withBorder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withBorder(value): { + border: value, + }, + '#withBorderMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withBorderMixin(value): { + border+: value, + }, + border+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withColor(value): { + border+: { + color: value, + }, + }, + '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withColorMixin(value): { + border+: { + color+: value, + }, + }, + color+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + border+: { + color+: { + field: value, + }, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, + withFixed(value): { + border+: { + color+: { + fixed: value, + }, + }, + }, + }, + '#withRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withRadius(value): { + border+: { + radius: value, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + border+: { + width: value, + }, + }, + }, + '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: figure out how to define this (element config(s))' } }, + withConfig(value): { + config: value, + }, + '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: figure out how to define this (element config(s))' } }, + withConfigMixin(value): { + config+: value, + }, + '#withConnections': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withConnections(value): { + connections: + (if std.isArray(value) + then value + else [value]), + }, + '#withConnectionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withConnectionsMixin(value): { + connections+: + (if std.isArray(value) + then value + else [value]), + }, + connections+: + { + '#': { help: '', name: 'connections' }, + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withColor(value): { + color: value, + }, + '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withColorMixin(value): { + color+: value, + }, + color+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + color+: { + field: value, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, + withFixed(value): { + color+: { + fixed: value, + }, + }, + }, + '#withPath': { 'function': { args: [{ default: null, enums: ['straight'], name: 'value', type: ['string'] }], help: '' } }, + withPath(value): { + path: value, + }, + '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSize(value): { + size: value, + }, + '#withSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSizeMixin(value): { + size+: value, + }, + size+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + size+: { + field: value, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withFixed(value): { + size+: { + fixed: value, + }, + }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMax(value): { + size+: { + max: value, + }, + }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMin(value): { + size+: { + min: value, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '| *"linear"' } }, + withMode(value): { + size+: { + mode: value, + }, + }, + }, + '#withSource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSource(value): { + source: value, + }, + '#withSourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSourceMixin(value): { + source+: value, + }, + source+: + { + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withX(value): { + source+: { + x: value, + }, + }, + '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withY(value): { + source+: { + y: value, + }, + }, + }, + '#withSourceOriginal': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSourceOriginal(value): { + sourceOriginal: value, + }, + '#withSourceOriginalMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSourceOriginalMixin(value): { + sourceOriginal+: value, + }, + sourceOriginal+: + { + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withX(value): { + sourceOriginal+: { + x: value, + }, + }, + '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withY(value): { + sourceOriginal+: { + y: value, + }, + }, + }, + '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withTarget(value): { + target: value, + }, + '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withTargetMixin(value): { + target+: value, + }, + target+: + { + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withX(value): { + target+: { + x: value, + }, + }, + '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withY(value): { + target+: { + y: value, + }, + }, + }, + '#withTargetName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTargetName(value): { + targetName: value, + }, + '#withTargetOriginal': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withTargetOriginal(value): { + targetOriginal: value, + }, + '#withTargetOriginalMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withTargetOriginalMixin(value): { + targetOriginal+: value, + }, + targetOriginal+: + { + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withX(value): { + targetOriginal+: { + x: value, + }, + }, + '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withY(value): { + targetOriginal+: { + y: value, + }, + }, + }, + '#withVertices': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withVertices(value): { + vertices: + (if std.isArray(value) + then value + else [value]), + }, + '#withVerticesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withVerticesMixin(value): { + vertices+: + (if std.isArray(value) + then value + else [value]), + }, + vertices+: + { + '#': { help: '', name: 'vertices' }, + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withX(value): { + x: value, + }, + '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withY(value): { + y: value, + }, + }, + }, + '#withConstraint': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withConstraint(value): { + constraint: value, + }, + '#withConstraintMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withConstraintMixin(value): { + constraint+: value, + }, + constraint+: + { + '#withHorizontal': { 'function': { args: [{ default: null, enums: ['left', 'right', 'leftright', 'center', 'scale'], name: 'value', type: ['string'] }], help: '' } }, + withHorizontal(value): { + constraint+: { + horizontal: value, + }, + }, + '#withVertical': { 'function': { args: [{ default: null, enums: ['top', 'bottom', 'topbottom', 'center', 'scale'], name: 'value', type: ['string'] }], help: '' } }, + withVertical(value): { + constraint+: { + vertical: value, + }, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withPlacement': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPlacement(value): { + placement: value, + }, + '#withPlacementMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPlacementMixin(value): { + placement+: value, + }, + placement+: + { + '#withBottom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withBottom(value): { + placement+: { + bottom: value, + }, + }, + '#withHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withHeight(value): { + placement+: { + height: value, + }, + }, + '#withLeft': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLeft(value): { + placement+: { + left: value, + }, + }, + '#withRight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withRight(value): { + placement+: { + right: value, + }, + }, + '#withRotation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withRotation(value): { + placement+: { + rotation: value, + }, + }, + '#withTop': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withTop(value): { + placement+: { + top: value, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + placement+: { + width: value, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + type: value, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the root element' } }, + withName(value): { + options+: { + root+: { + name: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: 'Type of root element (frame)' } }, + withType(): { + options+: { + root+: { + type: 'frame', + }, + }, + }, + }, + '#withShowAdvancedTypes': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show all available element types' } }, + withShowAdvancedTypes(value=true): { + options+: { + showAdvancedTypes: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/dashboardList.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/dashboardList.libsonnet new file mode 100644 index 0000000..48d9cdd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/dashboardList.libsonnet @@ -0,0 +1,106 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.dashboardList', name: 'dashboardList' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'dashlist', + }, + }, + options+: + { + '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'folderId is deprecated, and migrated to folderUid on panel init' } }, + withFolderId(value): { + options+: { + folderId: value, + }, + }, + '#withFolderUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFolderUID(value): { + options+: { + folderUID: value, + }, + }, + '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIncludeVars(value=true): { + options+: { + includeVars: value, + }, + }, + '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withKeepTime(value=true): { + options+: { + keepTime: value, + }, + }, + '#withMaxItems': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withMaxItems(value=10): { + options+: { + maxItems: value, + }, + }, + '#withQuery': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withQuery(value=''): { + options+: { + query: value, + }, + }, + '#withShowFolderNames': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowFolderNames(value=true): { + options+: { + showFolderNames: value, + }, + }, + '#withShowHeadings': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowHeadings(value=true): { + options+: { + showHeadings: value, + }, + }, + '#withShowRecentlyViewed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowRecentlyViewed(value=true): { + options+: { + showRecentlyViewed: value, + }, + }, + '#withShowSearch': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowSearch(value=true): { + options+: { + showSearch: value, + }, + }, + '#withShowStarred': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowStarred(value=true): { + options+: { + showStarred: value, + }, + }, + '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTags(value): { + options+: { + tags: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTagsMixin(value): { + options+: { + tags+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/datagrid.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/datagrid.libsonnet new file mode 100644 index 0000000..c93f787 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/datagrid.libsonnet @@ -0,0 +1,28 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.datagrid', name: 'datagrid' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'datagrid', + }, + }, + options+: + { + '#withSelectedSeries': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withSelectedSeries(value=0): { + options+: { + selectedSeries: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/debug.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/debug.libsonnet new file mode 100644 index 0000000..3cc3f99 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/debug.libsonnet @@ -0,0 +1,67 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.debug', name: 'debug' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'debug', + }, + }, + options+: + { + '#withCounters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withCounters(value): { + options+: { + counters: value, + }, + }, + '#withCountersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withCountersMixin(value): { + options+: { + counters+: value, + }, + }, + counters+: + { + '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withDataChanged(value=true): { + options+: { + counters+: { + dataChanged: value, + }, + }, + }, + '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withRender(value=true): { + options+: { + counters+: { + render: value, + }, + }, + }, + '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSchemaChanged(value=true): { + options+: { + counters+: { + schemaChanged: value, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: ['string'] }], help: '' } }, + withMode(value): { + options+: { + mode: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/gauge.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/gauge.libsonnet new file mode 100644 index 0000000..f627a73 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/gauge.libsonnet @@ -0,0 +1,150 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.gauge', name: 'gauge' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'gauge', + }, + }, + options+: + { + '#withMinVizHeight': { 'function': { args: [{ default: 75, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withMinVizHeight(value=75): { + options+: { + minVizHeight: value, + }, + }, + '#withMinVizWidth': { 'function': { args: [{ default: 75, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withMinVizWidth(value=75): { + options+: { + minVizWidth: value, + }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withOrientation(value): { + options+: { + orientation: value, + }, + }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withReduceOptions(value): { + options+: { + reduceOptions: value, + }, + }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { + options+: { + reduceOptions+: value, + }, + }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { + options+: { + reduceOptions+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { + options+: { + reduceOptions+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { + options+: { + reduceOptions+: { + fields: value, + }, + }, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, + withLimit(value): { + options+: { + reduceOptions+: { + limit: value, + }, + }, + }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, + withValues(value=true): { + options+: { + reduceOptions+: { + values: value, + }, + }, + }, + }, + '#withShowThresholdLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowThresholdLabels(value=true): { + options+: { + showThresholdLabels: value, + }, + }, + '#withShowThresholdMarkers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowThresholdMarkers(value=true): { + options+: { + showThresholdMarkers: value, + }, + }, + '#withSizing': { 'function': { args: [{ default: 'auto', enums: ['auto', 'manual'], name: 'value', type: ['string'] }], help: 'Allows for the bar gauge size to be set explicitly' } }, + withSizing(value='auto'): { + options+: { + sizing: value, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withText(value): { + options+: { + text: value, + }, + }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTextMixin(value): { + options+: { + text+: value, + }, + }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, + withTitleSize(value): { + options+: { + text+: { + titleSize: value, + }, + }, + }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, + withValueSize(value): { + options+: { + text+: { + valueSize: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/geomap.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/geomap.libsonnet new file mode 100644 index 0000000..61dcd96 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/geomap.libsonnet @@ -0,0 +1,486 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.geomap', name: 'geomap' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'geomap', + }, + }, + options+: + { + '#withBasemap': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withBasemap(value): { + options+: { + basemap: value, + }, + }, + '#withBasemapMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withBasemapMixin(value): { + options+: { + basemap+: value, + }, + }, + basemap+: + { + '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Custom options depending on the type' } }, + withConfig(value): { + options+: { + basemap+: { + config: value, + }, + }, + }, + '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Custom options depending on the type' } }, + withConfigMixin(value): { + options+: { + basemap+: { + config+: value, + }, + }, + }, + '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, + withFilterData(value): { + options+: { + basemap+: { + filterData: value, + }, + }, + }, + '#withFilterDataMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, + withFilterDataMixin(value): { + options+: { + basemap+: { + filterData+: value, + }, + }, + }, + '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Common method to define geometry fields' } }, + withLocation(value): { + options+: { + basemap+: { + location: value, + }, + }, + }, + '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Common method to define geometry fields' } }, + withLocationMixin(value): { + options+: { + basemap+: { + location+: value, + }, + }, + }, + location+: + { + '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Path to Gazetteer' } }, + withGazetteer(value): { + options+: { + basemap+: { + location+: { + gazetteer: value, + }, + }, + }, + }, + '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field mappings' } }, + withGeohash(value): { + options+: { + basemap+: { + location+: { + geohash: value, + }, + }, + }, + }, + '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLatitude(value): { + options+: { + basemap+: { + location+: { + latitude: value, + }, + }, + }, + }, + '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLongitude(value): { + options+: { + basemap+: { + location+: { + longitude: value, + }, + }, + }, + }, + '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLookup(value): { + options+: { + basemap+: { + location+: { + lookup: value, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: ['string'] }], help: '' } }, + withMode(value): { + options+: { + basemap+: { + location+: { + mode: value, + }, + }, + }, + }, + '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withWkt(value): { + options+: { + basemap+: { + location+: { + wkt: value, + }, + }, + }, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'configured unique display name' } }, + withName(value): { + options+: { + basemap+: { + name: value, + }, + }, + }, + '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, + withOpacity(value): { + options+: { + basemap+: { + opacity: value, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Check tooltip (defaults to true)' } }, + withTooltip(value=true): { + options+: { + basemap+: { + tooltip: value, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + options+: { + basemap+: { + type: value, + }, + }, + }, + }, + '#withControls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withControls(value): { + options+: { + controls: value, + }, + }, + '#withControlsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withControlsMixin(value): { + options+: { + controls+: value, + }, + }, + controls+: + { + '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'let the mouse wheel zoom' } }, + withMouseWheelZoom(value=true): { + options+: { + controls+: { + mouseWheelZoom: value, + }, + }, + }, + '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Lower right' } }, + withShowAttribution(value=true): { + options+: { + controls+: { + showAttribution: value, + }, + }, + }, + '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show debug' } }, + withShowDebug(value=true): { + options+: { + controls+: { + showDebug: value, + }, + }, + }, + '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show measure' } }, + withShowMeasure(value=true): { + options+: { + controls+: { + showMeasure: value, + }, + }, + }, + '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Scale options' } }, + withShowScale(value=true): { + options+: { + controls+: { + showScale: value, + }, + }, + }, + '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Zoom (upper left)' } }, + withShowZoom(value=true): { + options+: { + controls+: { + showZoom: value, + }, + }, + }, + }, + '#withLayers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withLayers(value): { + options+: { + layers: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withLayersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withLayersMixin(value): { + options+: { + layers+: + (if std.isArray(value) + then value + else [value]), + }, + }, + layers+: + { + '#': { help: '', name: 'layers' }, + '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Custom options depending on the type' } }, + withConfig(value): { + config: value, + }, + '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Custom options depending on the type' } }, + withConfigMixin(value): { + config+: value, + }, + '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, + withFilterData(value): { + filterData: value, + }, + '#withFilterDataMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, + withFilterDataMixin(value): { + filterData+: value, + }, + '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Common method to define geometry fields' } }, + withLocation(value): { + location: value, + }, + '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Common method to define geometry fields' } }, + withLocationMixin(value): { + location+: value, + }, + location+: + { + '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Path to Gazetteer' } }, + withGazetteer(value): { + location+: { + gazetteer: value, + }, + }, + '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field mappings' } }, + withGeohash(value): { + location+: { + geohash: value, + }, + }, + '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLatitude(value): { + location+: { + latitude: value, + }, + }, + '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLongitude(value): { + location+: { + longitude: value, + }, + }, + '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLookup(value): { + location+: { + lookup: value, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: ['string'] }], help: '' } }, + withMode(value): { + location+: { + mode: value, + }, + }, + '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withWkt(value): { + location+: { + wkt: value, + }, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'configured unique display name' } }, + withName(value): { + name: value, + }, + '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, + withOpacity(value): { + opacity: value, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Check tooltip (defaults to true)' } }, + withTooltip(value=true): { + tooltip: value, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + type: value, + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: ['string'] }], help: '' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + }, + '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withView(value): { + options+: { + view: value, + }, + }, + '#withViewMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withViewMixin(value): { + options+: { + view+: value, + }, + }, + view+: + { + '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAllLayers(value=true): { + options+: { + view+: { + allLayers: value, + }, + }, + }, + '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value='zero'): { + options+: { + view+: { + id: value, + }, + }, + }, + '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLastOnly(value=true): { + options+: { + view+: { + lastOnly: value, + }, + }, + }, + '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withLat(value=0): { + options+: { + view+: { + lat: value, + }, + }, + }, + '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLayer(value): { + options+: { + view+: { + layer: value, + }, + }, + }, + '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withLon(value=0): { + options+: { + view+: { + lon: value, + }, + }, + }, + '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withMaxZoom(value): { + options+: { + view+: { + maxZoom: value, + }, + }, + }, + '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withMinZoom(value): { + options+: { + view+: { + minZoom: value, + }, + }, + }, + '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withPadding(value): { + options+: { + view+: { + padding: value, + }, + }, + }, + '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShared(value=true): { + options+: { + view+: { + shared: value, + }, + }, + }, + '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withZoom(value=1): { + options+: { + view+: { + zoom: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/heatmap.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/heatmap.libsonnet new file mode 100644 index 0000000..0f7a870 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/heatmap.libsonnet @@ -0,0 +1,845 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.heatmap', name: 'heatmap' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'heatmap', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution: value, + }, + }, + }, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: value, + }, + }, + }, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + linearThreshold: value, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + log: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + type: value, + }, + }, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withCalculate': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the heatmap should be calculated from data' } }, + withCalculate(value=true): { + options+: { + calculate: value, + }, + }, + '#withCalculation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Calculation options for the heatmap' } }, + withCalculation(value): { + options+: { + calculation: value, + }, + }, + '#withCalculationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Calculation options for the heatmap' } }, + withCalculationMixin(value): { + options+: { + calculation+: value, + }, + }, + calculation+: + { + '#withXBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The number of buckets to use for the xAxis in the heatmap' } }, + withXBuckets(value): { + options+: { + calculation+: { + xBuckets: value, + }, + }, + }, + '#withXBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The number of buckets to use for the xAxis in the heatmap' } }, + withXBucketsMixin(value): { + options+: { + calculation+: { + xBuckets+: value, + }, + }, + }, + xBuckets+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: ['string'] }], help: 'Sets the bucket calculation mode' } }, + withMode(value): { + options+: { + calculation+: { + xBuckets+: { + mode: value, + }, + }, + }, + }, + '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScale(value): { + options+: { + calculation+: { + xBuckets+: { + scale: value, + }, + }, + }, + }, + '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleMixin(value): { + options+: { + calculation+: { + xBuckets+: { + scale+: value, + }, + }, + }, + }, + scale+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + options+: { + calculation+: { + xBuckets+: { + scale+: { + linearThreshold: value, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + options+: { + calculation+: { + xBuckets+: { + scale+: { + log: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + options+: { + calculation+: { + xBuckets+: { + scale+: { + type: value, + }, + }, + }, + }, + }, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The number of buckets to use for the axis in the heatmap' } }, + withValue(value): { + options+: { + calculation+: { + xBuckets+: { + value: value, + }, + }, + }, + }, + }, + '#withYBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The number of buckets to use for the yAxis in the heatmap' } }, + withYBuckets(value): { + options+: { + calculation+: { + yBuckets: value, + }, + }, + }, + '#withYBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The number of buckets to use for the yAxis in the heatmap' } }, + withYBucketsMixin(value): { + options+: { + calculation+: { + yBuckets+: value, + }, + }, + }, + yBuckets+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: ['string'] }], help: 'Sets the bucket calculation mode' } }, + withMode(value): { + options+: { + calculation+: { + yBuckets+: { + mode: value, + }, + }, + }, + }, + '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScale(value): { + options+: { + calculation+: { + yBuckets+: { + scale: value, + }, + }, + }, + }, + '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleMixin(value): { + options+: { + calculation+: { + yBuckets+: { + scale+: value, + }, + }, + }, + }, + scale+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + options+: { + calculation+: { + yBuckets+: { + scale+: { + linearThreshold: value, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + options+: { + calculation+: { + yBuckets+: { + scale+: { + log: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + options+: { + calculation+: { + yBuckets+: { + scale+: { + type: value, + }, + }, + }, + }, + }, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The number of buckets to use for the axis in the heatmap' } }, + withValue(value): { + options+: { + calculation+: { + yBuckets+: { + value: value, + }, + }, + }, + }, + }, + }, + '#withCellGap': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls gap between cells' } }, + withCellGap(value=1): { + options+: { + cellGap: value, + }, + }, + '#withCellRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls cell radius' } }, + withCellRadius(value): { + options+: { + cellRadius: value, + }, + }, + '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, + withCellValues(value): { + options+: { + cellValues: value, + }, + }, + '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, + withCellValuesMixin(value): { + options+: { + cellValues+: value, + }, + }, + cellValues+: + { + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for cell values' } }, + withDecimals(value): { + options+: { + cellValues+: { + decimals: value, + }, + }, + }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the cell value unit' } }, + withUnit(value): { + options+: { + cellValues+: { + unit: value, + }, + }, + }, + }, + '#withColor': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, + withColor(value={ exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }): { + options+: { + color: value, + }, + }, + '#withColorMixin': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, + withColorMixin(value): { + options+: { + color+: value, + }, + }, + color+: + { + '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the exponent when scale is set to exponential' } }, + withExponent(value): { + options+: { + color+: { + exponent: value, + }, + }, + }, + '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color fill when in opacity mode' } }, + withFill(value): { + options+: { + color+: { + fill: value, + }, + }, + }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the color scale' } }, + withMax(value): { + options+: { + color+: { + max: value, + }, + }, + }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the color scale' } }, + withMin(value): { + options+: { + color+: { + min: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: ['string'] }], help: 'Controls the color mode of the heatmap' } }, + withMode(value): { + options+: { + color+: { + mode: value, + }, + }, + }, + '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the color scheme' } }, + withReverse(value=true): { + options+: { + color+: { + reverse: value, + }, + }, + }, + '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: ['string'] }], help: 'Controls the color scale of the heatmap' } }, + withScale(value): { + options+: { + color+: { + scale: value, + }, + }, + }, + '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color scheme used' } }, + withScheme(value): { + options+: { + color+: { + scheme: value, + }, + }, + }, + '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the number of color steps' } }, + withSteps(value): { + options+: { + color+: { + steps: value, + }, + }, + }, + }, + '#withExemplars': { 'function': { args: [{ default: { color: 'rgba(255,0,255,0.7)' }, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, + withExemplars(value={ color: 'rgba(255,0,255,0.7)' }): { + options+: { + exemplars: value, + }, + }, + '#withExemplarsMixin': { 'function': { args: [{ default: { color: 'rgba(255,0,255,0.7)' }, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, + withExemplarsMixin(value): { + options+: { + exemplars+: value, + }, + }, + exemplars+: + { + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the color of the exemplar markers' } }, + withColor(value): { + options+: { + exemplars+: { + color: value, + }, + }, + }, + }, + '#withFilterValues': { 'function': { args: [{ default: { le: 0.000000001 }, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, + withFilterValues(value={ le: 0.000000001 }): { + options+: { + filterValues: value, + }, + }, + '#withFilterValuesMixin': { 'function': { args: [{ default: { le: 0.000000001 }, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, + withFilterValuesMixin(value): { + options+: { + filterValues+: value, + }, + }, + filterValues+: + { + '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values greater than or equal to the given value' } }, + withGe(value): { + options+: { + filterValues+: { + ge: value, + }, + }, + }, + '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values less than or equal to the given value' } }, + withLe(value): { + options+: { + filterValues+: { + le: value, + }, + }, + }, + }, + '#withLegend': { 'function': { args: [{ default: { show: true }, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, + withLegend(value={ show: true }): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: { show: true }, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the legend is shown' } }, + withShow(value=true): { + options+: { + legend+: { + show: value, + }, + }, + }, + }, + '#withRowsFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, + withRowsFrame(value): { + options+: { + rowsFrame: value, + }, + }, + '#withRowsFrameMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, + withRowsFrameMixin(value): { + options+: { + rowsFrame+: value, + }, + }, + rowsFrame+: + { + '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: ['string'] }], help: 'Controls tick alignment when not calculating from data' } }, + withLayout(value): { + options+: { + rowsFrame+: { + layout: value, + }, + }, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the name of the cell when not calculating from data' } }, + withValue(value): { + options+: { + rowsFrame+: { + value: value, + }, + }, + }, + }, + '#withSelectionMode': { 'function': { args: [{ default: 'x', enums: ['x', 'y', 'xy'], name: 'value', type: ['string'] }], help: 'Controls which axis to allow selection on' } }, + withSelectionMode(value='x'): { + options+: { + selectionMode: value, + }, + }, + '#withShowValue': { 'function': { args: [{ default: 'auto', enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withShowValue(value='auto'): { + options+: { + showValue: value, + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withShowColorScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip shows a color scale in header' } }, + withShowColorScale(value=true): { + options+: { + tooltip+: { + showColorScale: value, + }, + }, + }, + '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, + withYHistogram(value=true): { + options+: { + tooltip+: { + yHistogram: value, + }, + }, + }, + }, + '#withYAxis': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, + withYAxis(value): { + options+: { + yAxis: value, + }, + }, + '#withYAxisMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, + withYAxisMixin(value): { + options+: { + yAxis+: value, + }, + }, + yAxis+: + { + '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisBorderShow(value=true): { + options+: { + yAxis+: { + axisBorderShow: value, + }, + }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisCenteredZero(value=true): { + options+: { + yAxis+: { + axisCenteredZero: value, + }, + }, + }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisColorMode(value): { + options+: { + yAxis+: { + axisColorMode: value, + }, + }, + }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisGridShow(value=true): { + options+: { + yAxis+: { + axisGridShow: value, + }, + }, + }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAxisLabel(value): { + options+: { + yAxis+: { + axisLabel: value, + }, + }, + }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisPlacement(value): { + options+: { + yAxis+: { + axisPlacement: value, + }, + }, + }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMax(value): { + options+: { + yAxis+: { + axisSoftMax: value, + }, + }, + }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMin(value): { + options+: { + yAxis+: { + axisSoftMin: value, + }, + }, + }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisWidth(value): { + options+: { + yAxis+: { + axisWidth: value, + }, + }, + }, + '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for yAxis values' } }, + withDecimals(value): { + options+: { + yAxis+: { + decimals: value, + }, + }, + }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the yAxis' } }, + withMax(value): { + options+: { + yAxis+: { + max: value, + }, + }, + }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the yAxis' } }, + withMin(value): { + options+: { + yAxis+: { + min: value, + }, + }, + }, + '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the yAxis' } }, + withReverse(value=true): { + options+: { + yAxis+: { + reverse: value, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + options+: { + yAxis+: { + scaleDistribution: value, + }, + }, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + options+: { + yAxis+: { + scaleDistribution+: value, + }, + }, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + options+: { + yAxis+: { + scaleDistribution+: { + linearThreshold: value, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + options+: { + yAxis+: { + scaleDistribution+: { + log: value, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + options+: { + yAxis+: { + scaleDistribution+: { + type: value, + }, + }, + }, + }, + }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the yAxis unit' } }, + withUnit(value): { + options+: { + yAxis+: { + unit: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/histogram.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/histogram.libsonnet new file mode 100644 index 0000000..d95f1e7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/histogram.libsonnet @@ -0,0 +1,486 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.histogram', name: 'histogram' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'histogram', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisBorderShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisBorderShow: value, + }, + }, + }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisCenteredZero(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisCenteredZero: value, + }, + }, + }, + }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisColorMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisColorMode: value, + }, + }, + }, + }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisGridShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisGridShow: value, + }, + }, + }, + }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAxisLabel(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisLabel: value, + }, + }, + }, + }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisPlacement(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisPlacement: value, + }, + }, + }, + }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMax(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMax: value, + }, + }, + }, + }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMin(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMin: value, + }, + }, + }, + }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisWidth: value, + }, + }, + }, + }, + '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the fill opacity of the bars.' } }, + withFillOpacity(value=80): { + fieldConfig+: { + defaults+: { + custom+: { + fillOpacity: value, + }, + }, + }, + }, + '#withGradientMode': { 'function': { args: [{ default: 'none', enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withGradientMode(value='none'): { + fieldConfig+: { + defaults+: { + custom+: { + gradientMode: value, + }, + }, + }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls line width of the bars.' } }, + withLineWidth(value=1): { + fieldConfig+: { + defaults+: { + custom+: { + lineWidth: value, + }, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution: value, + }, + }, + }, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: value, + }, + }, + }, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + linearThreshold: value, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + log: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + type: value, + }, + }, + }, + }, + }, + }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStacking(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking: value, + }, + }, + }, + }, + '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStackingMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: value, + }, + }, + }, + }, + stacking+: + { + '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withGroup(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: { + group: value, + }, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: { + mode: value, + }, + }, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withBucketCount': { 'function': { args: [{ default: 30, enums: null, name: 'value', type: ['integer'] }], help: 'Bucket count (approx)' } }, + withBucketCount(value=30): { + options+: { + bucketCount: value, + }, + }, + '#withBucketOffset': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Offset buckets by this amount' } }, + withBucketOffset(value=0): { + options+: { + bucketOffset: value, + }, + }, + '#withBucketSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Size of each bucket' } }, + withBucketSize(value): { + options+: { + bucketSize: value, + }, + }, + '#withCombine': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Combines multiple series into a single histogram' } }, + withCombine(value=true): { + options+: { + combine: value, + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegend(value): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: 'list', enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value='list'): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: 'bottom', enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value='bottom'): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withSort(value): { + options+: { + tooltip+: { + sort: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/logs.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/logs.libsonnet new file mode 100644 index 0000000..c418388 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/logs.libsonnet @@ -0,0 +1,178 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.logs', name: 'logs' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'logs', + }, + }, + options+: + { + '#withDedupStrategy': { 'function': { args: [{ default: null, enums: ['none', 'exact', 'numbers', 'signature'], name: 'value', type: ['string'] }], help: '' } }, + withDedupStrategy(value): { + options+: { + dedupStrategy: value, + }, + }, + '#withDisplayedFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDisplayedFields(value): { + options+: { + displayedFields: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withDisplayedFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDisplayedFieldsMixin(value): { + options+: { + displayedFields+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withEnableLogDetails': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withEnableLogDetails(value=true): { + options+: { + enableLogDetails: value, + }, + }, + '#withIsFilterLabelActive': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withIsFilterLabelActive(value): { + options+: { + isFilterLabelActive: value, + }, + }, + '#withIsFilterLabelActiveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withIsFilterLabelActiveMixin(value): { + options+: { + isFilterLabelActive+: value, + }, + }, + '#withOnClickFilterLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: figure out how to define callbacks' } }, + withOnClickFilterLabel(value): { + options+: { + onClickFilterLabel: value, + }, + }, + '#withOnClickFilterLabelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: figure out how to define callbacks' } }, + withOnClickFilterLabelMixin(value): { + options+: { + onClickFilterLabel+: value, + }, + }, + '#withOnClickFilterOutLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickFilterOutLabel(value): { + options+: { + onClickFilterOutLabel: value, + }, + }, + '#withOnClickFilterOutLabelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickFilterOutLabelMixin(value): { + options+: { + onClickFilterOutLabel+: value, + }, + }, + '#withOnClickFilterOutString': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickFilterOutString(value): { + options+: { + onClickFilterOutString: value, + }, + }, + '#withOnClickFilterOutStringMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickFilterOutStringMixin(value): { + options+: { + onClickFilterOutString+: value, + }, + }, + '#withOnClickFilterString': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickFilterString(value): { + options+: { + onClickFilterString: value, + }, + }, + '#withOnClickFilterStringMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickFilterStringMixin(value): { + options+: { + onClickFilterString+: value, + }, + }, + '#withOnClickHideField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickHideField(value): { + options+: { + onClickHideField: value, + }, + }, + '#withOnClickHideFieldMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickHideFieldMixin(value): { + options+: { + onClickHideField+: value, + }, + }, + '#withOnClickShowField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickShowField(value): { + options+: { + onClickShowField: value, + }, + }, + '#withOnClickShowFieldMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOnClickShowFieldMixin(value): { + options+: { + onClickShowField+: value, + }, + }, + '#withPrettifyLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withPrettifyLogMessage(value=true): { + options+: { + prettifyLogMessage: value, + }, + }, + '#withShowCommonLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowCommonLabels(value=true): { + options+: { + showCommonLabels: value, + }, + }, + '#withShowLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLabels(value=true): { + options+: { + showLabels: value, + }, + }, + '#withShowLogContextToggle': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLogContextToggle(value=true): { + options+: { + showLogContextToggle: value, + }, + }, + '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowTime(value=true): { + options+: { + showTime: value, + }, + }, + '#withSortOrder': { 'function': { args: [{ default: null, enums: ['Descending', 'Ascending'], name: 'value', type: ['string'] }], help: '' } }, + withSortOrder(value): { + options+: { + sortOrder: value, + }, + }, + '#withWrapLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withWrapLogMessage(value=true): { + options+: { + wrapLogMessage: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/news.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/news.libsonnet new file mode 100644 index 0000000..eede487 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/news.libsonnet @@ -0,0 +1,34 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.news', name: 'news' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'news', + }, + }, + options+: + { + '#withFeedUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'empty/missing will default to grafana blog' } }, + withFeedUrl(value): { + options+: { + feedUrl: value, + }, + }, + '#withShowImage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowImage(value=true): { + options+: { + showImage: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/nodeGraph.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/nodeGraph.libsonnet new file mode 100644 index 0000000..75e183a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/nodeGraph.libsonnet @@ -0,0 +1,118 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.nodeGraph', name: 'nodeGraph' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'nodeGraph', + }, + }, + options+: + { + '#withEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withEdges(value): { + options+: { + edges: value, + }, + }, + '#withEdgesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withEdgesMixin(value): { + options+: { + edges+: value, + }, + }, + edges+: + { + '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, + withMainStatUnit(value): { + options+: { + edges+: { + mainStatUnit: value, + }, + }, + }, + '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, + withSecondaryStatUnit(value): { + options+: { + edges+: { + secondaryStatUnit: value, + }, + }, + }, + }, + '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withNodes(value): { + options+: { + nodes: value, + }, + }, + '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withNodesMixin(value): { + options+: { + nodes+: value, + }, + }, + nodes+: + { + '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, + withArcs(value): { + options+: { + nodes+: { + arcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, + withArcsMixin(value): { + options+: { + nodes+: { + arcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + arcs+: + { + '#': { help: '', name: 'arcs' }, + '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The color of the arc.' } }, + withColor(value): { + color: value, + }, + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, + withField(value): { + field: value, + }, + }, + '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, + withMainStatUnit(value): { + options+: { + nodes+: { + mainStatUnit: value, + }, + }, + }, + '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, + withSecondaryStatUnit(value): { + options+: { + nodes+: { + secondaryStatUnit: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/pieChart.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/pieChart.libsonnet new file mode 100644 index 0000000..9ec5edc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/pieChart.libsonnet @@ -0,0 +1,380 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.pieChart', name: 'pieChart' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'piechart', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withDisplayLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDisplayLabels(value): { + options+: { + displayLabels: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withDisplayLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDisplayLabelsMixin(value): { + options+: { + displayLabels+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLegend(value): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withValues(value): { + options+: { + legend+: { + values: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withValuesMixin(value): { + options+: { + legend+: { + values+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withOrientation(value): { + options+: { + orientation: value, + }, + }, + '#withPieType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: ['string'] }], help: 'Select the pie chart display style.' } }, + withPieType(value): { + options+: { + pieType: value, + }, + }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withReduceOptions(value): { + options+: { + reduceOptions: value, + }, + }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { + options+: { + reduceOptions+: value, + }, + }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { + options+: { + reduceOptions+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { + options+: { + reduceOptions+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { + options+: { + reduceOptions+: { + fields: value, + }, + }, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, + withLimit(value): { + options+: { + reduceOptions+: { + limit: value, + }, + }, + }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, + withValues(value=true): { + options+: { + reduceOptions+: { + values: value, + }, + }, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withText(value): { + options+: { + text: value, + }, + }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTextMixin(value): { + options+: { + text+: value, + }, + }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, + withTitleSize(value): { + options+: { + text+: { + titleSize: value, + }, + }, + }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, + withValueSize(value): { + options+: { + text+: { + valueSize: value, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withSort(value): { + options+: { + tooltip+: { + sort: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/row.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/row.libsonnet new file mode 100644 index 0000000..1548d38 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/row.libsonnet @@ -0,0 +1,103 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel.row', name: 'row' }, + '#withCollapsed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether this row should be collapsed or not.' } }, + withCollapsed(value=true): { + collapsed: value, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withGridPos': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Position and dimensions of a panel in the grid' } }, + withGridPos(value): { + gridPos: value, + }, + '#withGridPosMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Position and dimensions of a panel in the grid' } }, + withGridPosMixin(value): { + gridPos+: value, + }, + gridPos+: + { + '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: ['integer'] }], help: 'Panel height. The height is the number of rows from the top edge of the panel.' } }, + withH(value=9): { + gridPos+: { + h: value, + }, + }, + '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: "Whether the panel is fixed within the grid. If true, the panel will not be affected by other panels' interactions" } }, + withStatic(value=true): { + gridPos+: { + static: value, + }, + }, + '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: ['integer'] }], help: 'Panel width. The width is the number of columns from the left edge of the panel.' } }, + withW(value=12): { + gridPos+: { + w: value, + }, + }, + '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel x. The x coordinate is the number of columns from the left edge of the grid' } }, + withX(value=0): { + gridPos+: { + x: value, + }, + }, + '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel y. The y coordinate is the number of rows from the top edge of the grid' } }, + withY(value=0): { + gridPos+: { + y: value, + }, + }, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Unique identifier of the panel. Generated by Grafana when creating a new panel. It must be unique within a dashboard, but not globally.' } }, + withId(value): { + id: value, + }, + '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPanels(value): { + panels: + (if std.isArray(value) + then value + else [value]), + }, + '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPanelsMixin(value): { + panels+: + (if std.isArray(value) + then value + else [value]), + }, + '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of template variable to repeat for.' } }, + withRepeat(value): { + repeat: value, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Row title' } }, + withTitle(value): { + title: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'row', + }, +} ++ (import '../custom/row.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/stat.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/stat.libsonnet new file mode 100644 index 0000000..e7266c0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/stat.libsonnet @@ -0,0 +1,162 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.stat', name: 'stat' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'stat', + }, + }, + options+: + { + '#withColorMode': { 'function': { args: [{ default: 'value', enums: ['value', 'background', 'background_solid', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withColorMode(value='value'): { + options+: { + colorMode: value, + }, + }, + '#withGraphMode': { 'function': { args: [{ default: 'area', enums: ['none', 'line', 'area'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withGraphMode(value='area'): { + options+: { + graphMode: value, + }, + }, + '#withJustifyMode': { 'function': { args: [{ default: 'auto', enums: ['auto', 'center'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withJustifyMode(value='auto'): { + options+: { + justifyMode: value, + }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withOrientation(value): { + options+: { + orientation: value, + }, + }, + '#withPercentChangeColorMode': { 'function': { args: [{ default: 'standard', enums: ['standard', 'inverted', 'same_as_value'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPercentChangeColorMode(value='standard'): { + options+: { + percentChangeColorMode: value, + }, + }, + '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withReduceOptions(value): { + options+: { + reduceOptions: value, + }, + }, + '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withReduceOptionsMixin(value): { + options+: { + reduceOptions+: value, + }, + }, + reduceOptions+: + { + '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, + withCalcs(value): { + options+: { + reduceOptions+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, + withCalcsMixin(value): { + options+: { + reduceOptions+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, + withFields(value): { + options+: { + reduceOptions+: { + fields: value, + }, + }, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, + withLimit(value): { + options+: { + reduceOptions+: { + limit: value, + }, + }, + }, + '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, + withValues(value=true): { + options+: { + reduceOptions+: { + values: value, + }, + }, + }, + }, + '#withShowPercentChange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowPercentChange(value=true): { + options+: { + showPercentChange: value, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withText(value): { + options+: { + text: value, + }, + }, + '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTextMixin(value): { + options+: { + text+: value, + }, + }, + text+: + { + '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, + withTitleSize(value): { + options+: { + text+: { + titleSize: value, + }, + }, + }, + '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, + withValueSize(value): { + options+: { + text+: { + valueSize: value, + }, + }, + }, + }, + '#withTextMode': { 'function': { args: [{ default: 'auto', enums: ['auto', 'value', 'value_and_name', 'name', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withTextMode(value='auto'): { + options+: { + textMode: value, + }, + }, + '#withWideLayout': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withWideLayout(value=true): { + options+: { + wideLayout: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/stateTimeline.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/stateTimeline.libsonnet new file mode 100644 index 0000000..4ae00a9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/stateTimeline.libsonnet @@ -0,0 +1,304 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.stateTimeline', name: 'stateTimeline' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'state-timeline', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withFillOpacity(value=70): { + fieldConfig+: { + defaults+: { + custom+: { + fillOpacity: value, + }, + }, + }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withLineWidth(value=0): { + fieldConfig+: { + defaults+: { + custom+: { + lineWidth: value, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withAlignValue': { 'function': { args: [{ default: 'left', enums: ['center', 'left', 'right'], name: 'value', type: ['string'] }], help: 'Controls the value alignment in the TimelineChart component' } }, + withAlignValue(value='left'): { + options+: { + alignValue: value, + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegend(value): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: 'list', enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value='list'): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: 'bottom', enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value='bottom'): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withMergeValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Merge equal consecutive values' } }, + withMergeValues(value=true): { + options+: { + mergeValues: value, + }, + }, + '#withPerPage': { 'function': { args: [{ default: 20, enums: null, name: 'value', type: ['number'] }], help: 'Enables pagination when > 0' } }, + withPerPage(value=20): { + options+: { + perPage: value, + }, + }, + '#withRowHeight': { 'function': { args: [{ default: 0.9, enums: null, name: 'value', type: ['number'] }], help: 'Controls the row height' } }, + withRowHeight(value=0.9): { + options+: { + rowHeight: value, + }, + }, + '#withShowValue': { 'function': { args: [{ default: 'auto', enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withShowValue(value='auto'): { + options+: { + showValue: value, + }, + }, + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimezone(value): { + options+: { + timezone: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimezoneMixin(value): { + options+: { + timezone+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withSort(value): { + options+: { + tooltip+: { + sort: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/statusHistory.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/statusHistory.libsonnet new file mode 100644 index 0000000..7d6b8f4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/statusHistory.libsonnet @@ -0,0 +1,292 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.statusHistory', name: 'statusHistory' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'status-history', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withFillOpacity(value=70): { + fieldConfig+: { + defaults+: { + custom+: { + fillOpacity: value, + }, + }, + }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withLineWidth(value=1): { + fieldConfig+: { + defaults+: { + custom+: { + lineWidth: value, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withColWidth': { 'function': { args: [{ default: 0.9, enums: null, name: 'value', type: ['number'] }], help: 'Controls the column width' } }, + withColWidth(value=0.9): { + options+: { + colWidth: value, + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegend(value): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: 'list', enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value='list'): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: 'bottom', enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value='bottom'): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withRowHeight': { 'function': { args: [{ default: 0.9, enums: null, name: 'value', type: ['number'] }], help: 'Set the height of the rows' } }, + withRowHeight(value=0.9): { + options+: { + rowHeight: value, + }, + }, + '#withShowValue': { 'function': { args: [{ default: 'auto', enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withShowValue(value='auto'): { + options+: { + showValue: value, + }, + }, + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimezone(value): { + options+: { + timezone: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimezoneMixin(value): { + options+: { + timezone+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withSort(value): { + options+: { + tooltip+: { + sort: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/table.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/table.libsonnet new file mode 100644 index 0000000..d90bd8b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/table.libsonnet @@ -0,0 +1,1358 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.table', name: 'table' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'table', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withAlign': { 'function': { args: [{ default: 'auto', enums: ['auto', 'left', 'right', 'center'], name: 'value', type: ['string'] }], help: 'TODO -- should not be table specific!\nTODO docs' } }, + withAlign(value='auto'): { + fieldConfig+: { + defaults+: { + custom+: { + align: value, + }, + }, + }, + }, + '#withCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: 'Table cell options. Each cell has a display mode\nand other potential options for that display.' } }, + withCellOptions(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions: value, + }, + }, + }, + }, + '#withCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: 'Table cell options. Each cell has a display mode\nand other potential options for that display.' } }, + withCellOptionsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: value, + }, + }, + }, + }, + cellOptions+: + { + '#withTableAutoCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Auto mode table cell options' } }, + withTableAutoCellOptions(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableAutoCellOptions: value, + }, + }, + }, + }, + }, + '#withTableAutoCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Auto mode table cell options' } }, + withTableAutoCellOptionsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableAutoCellOptions+: value, + }, + }, + }, + }, + }, + TableAutoCellOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + type: 'auto', + }, + }, + }, + }, + }, + '#withWrapText': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withWrapText(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + wrapText: value, + }, + }, + }, + }, + }, + }, + '#withTableSparklineCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Sparkline cell options' } }, + withTableSparklineCellOptions(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableSparklineCellOptions: value, + }, + }, + }, + }, + }, + '#withTableSparklineCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Sparkline cell options' } }, + withTableSparklineCellOptionsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableSparklineCellOptions+: value, + }, + }, + }, + }, + }, + TableSparklineCellOptions+: + { + '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisBorderShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + axisBorderShow: value, + }, + }, + }, + }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisCenteredZero(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + axisCenteredZero: value, + }, + }, + }, + }, + }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisColorMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + axisColorMode: value, + }, + }, + }, + }, + }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisGridShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + axisGridShow: value, + }, + }, + }, + }, + }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAxisLabel(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + axisLabel: value, + }, + }, + }, + }, + }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisPlacement(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + axisPlacement: value, + }, + }, + }, + }, + }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMax(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + axisSoftMax: value, + }, + }, + }, + }, + }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + axisSoftMin: value, + }, + }, + }, + }, + }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + axisWidth: value, + }, + }, + }, + }, + }, + '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withBarAlignment(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + barAlignment: value, + }, + }, + }, + }, + }, + '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withBarMaxWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + barMaxWidth: value, + }, + }, + }, + }, + }, + '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withBarWidthFactor(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + barWidthFactor: value, + }, + }, + }, + }, + }, + '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withDrawStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + drawStyle: value, + }, + }, + }, + }, + }, + '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFillBelowTo(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + fillBelowTo: value, + }, + }, + }, + }, + }, + '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFillColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + fillColor: value, + }, + }, + }, + }, + }, + '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withFillOpacity(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + fillOpacity: value, + }, + }, + }, + }, + }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withGradientMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + gradientMode: value, + }, + }, + }, + }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + hideFrom: value, + }, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + hideFrom+: value, + }, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + }, + '#withHideValue': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHideValue(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + hideValue: value, + }, + }, + }, + }, + }, + '#withInsertNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: '' } }, + withInsertNulls(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + insertNulls: value, + }, + }, + }, + }, + }, + '#withInsertNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: '' } }, + withInsertNullsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + insertNulls+: value, + }, + }, + }, + }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLineColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + lineColor: value, + }, + }, + }, + }, + }, + '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withLineInterpolation(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + lineInterpolation: value, + }, + }, + }, + }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + lineStyle: value, + }, + }, + }, + }, + }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + lineStyle+: value, + }, + }, + }, + }, + }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDash(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + lineStyle+: { + dash: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDashMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + lineStyle+: { + dash+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, + withFill(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + lineStyle+: { + fill: value, + }, + }, + }, + }, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLineWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + lineWidth: value, + }, + }, + }, + }, + }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPointColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + pointColor: value, + }, + }, + }, + }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withPointSize(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + pointSize: value, + }, + }, + }, + }, + }, + '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPointSymbol(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + pointSymbol: value, + }, + }, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + scaleDistribution: value, + }, + }, + }, + }, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + scaleDistribution+: value, + }, + }, + }, + }, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + scaleDistribution+: { + linearThreshold: value, + }, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + scaleDistribution+: { + log: value, + }, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + scaleDistribution+: { + type: value, + }, + }, + }, + }, + }, + }, + }, + '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withShowPoints(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + showPoints: value, + }, + }, + }, + }, + }, + '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNulls(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + spanNulls: value, + }, + }, + }, + }, + }, + '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNullsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + spanNulls+: value, + }, + }, + }, + }, + }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStacking(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + stacking: value, + }, + }, + }, + }, + }, + '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStackingMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + stacking+: value, + }, + }, + }, + }, + }, + stacking+: + { + '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withGroup(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + stacking+: { + group: value, + }, + }, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + stacking+: { + mode: value, + }, + }, + }, + }, + }, + }, + }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + thresholdsStyle: value, + }, + }, + }, + }, + }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + thresholdsStyle+: value, + }, + }, + }, + }, + }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + thresholdsStyle+: { + mode: value, + }, + }, + }, + }, + }, + }, + }, + '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withTransform(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + transform: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + type: 'sparkline', + }, + }, + }, + }, + }, + }, + '#withTableBarGaugeCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Gauge cell options' } }, + withTableBarGaugeCellOptions(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableBarGaugeCellOptions: value, + }, + }, + }, + }, + }, + '#withTableBarGaugeCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Gauge cell options' } }, + withTableBarGaugeCellOptionsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableBarGaugeCellOptions+: value, + }, + }, + }, + }, + }, + TableBarGaugeCellOptions+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['basic', 'lcd', 'gradient'], name: 'value', type: ['string'] }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + mode: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + type: 'gauge', + }, + }, + }, + }, + }, + '#withValueDisplayMode': { 'function': { args: [{ default: null, enums: ['color', 'text', 'hidden'], name: 'value', type: ['string'] }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, + withValueDisplayMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + valueDisplayMode: value, + }, + }, + }, + }, + }, + }, + '#withTableColoredBackgroundCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored background cell options' } }, + withTableColoredBackgroundCellOptions(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableColoredBackgroundCellOptions: value, + }, + }, + }, + }, + }, + '#withTableColoredBackgroundCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored background cell options' } }, + withTableColoredBackgroundCellOptionsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableColoredBackgroundCellOptions+: value, + }, + }, + }, + }, + }, + TableColoredBackgroundCellOptions+: + { + '#withApplyToRow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withApplyToRow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + applyToRow: value, + }, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['basic', 'gradient'], name: 'value', type: ['string'] }], help: 'Display mode to the "Colored Background" display\nmode for table cells. Either displays a solid color (basic mode)\nor a gradient.' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + mode: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + type: 'color-background', + }, + }, + }, + }, + }, + '#withWrapText': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withWrapText(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + wrapText: value, + }, + }, + }, + }, + }, + }, + '#withTableColorTextCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored text cell options' } }, + withTableColorTextCellOptions(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableColorTextCellOptions: value, + }, + }, + }, + }, + }, + '#withTableColorTextCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored text cell options' } }, + withTableColorTextCellOptionsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableColorTextCellOptions+: value, + }, + }, + }, + }, + }, + TableColorTextCellOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + type: 'color-text', + }, + }, + }, + }, + }, + '#withWrapText': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withWrapText(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + wrapText: value, + }, + }, + }, + }, + }, + }, + '#withTableImageCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, + withTableImageCellOptions(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableImageCellOptions: value, + }, + }, + }, + }, + }, + '#withTableImageCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, + withTableImageCellOptionsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableImageCellOptions+: value, + }, + }, + }, + }, + }, + TableImageCellOptions+: + { + '#withAlt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAlt(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + alt: value, + }, + }, + }, + }, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTitle(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + title: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + type: 'image', + }, + }, + }, + }, + }, + }, + '#withTableDataLinksCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Show data links in the cell' } }, + withTableDataLinksCellOptions(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableDataLinksCellOptions: value, + }, + }, + }, + }, + }, + '#withTableDataLinksCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Show data links in the cell' } }, + withTableDataLinksCellOptionsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableDataLinksCellOptions+: value, + }, + }, + }, + }, + }, + TableDataLinksCellOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + type: 'data-links', + }, + }, + }, + }, + }, + }, + '#withTableJsonViewCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, + withTableJsonViewCellOptions(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableJsonViewCellOptions: value, + }, + }, + }, + }, + }, + '#withTableJsonViewCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, + withTableJsonViewCellOptionsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + TableJsonViewCellOptions+: value, + }, + }, + }, + }, + }, + TableJsonViewCellOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + fieldConfig+: { + defaults+: { + custom+: { + cellOptions+: { + type: 'json-view', + }, + }, + }, + }, + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['auto', 'color-text', 'color-background', 'color-background-solid', 'gradient-gauge', 'lcd-gauge', 'json-view', 'basic', 'image', 'gauge', 'sparkline', 'data-links', 'custom'], name: 'value', type: ['string'] }], help: "Internally, this is the \"type\" of cell that's being displayed\nin the table such as colored text, JSON, gauge, etc.\nThe color-background-solid, gradient-gauge, and lcd-gauge\nmodes are deprecated in favor of new cell subOptions" } }, + withDisplayMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + displayMode: value, + }, + }, + }, + }, + '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withFilterable(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + filterable: value, + }, + }, + }, + }, + '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '?? default is missing or false ??' } }, + withHidden(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hidden: value, + }, + }, + }, + }, + '#withHideHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Hides any header for a column, useful for columns that show some static content or buttons.' } }, + withHideHeader(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideHeader: value, + }, + }, + }, + }, + '#withInspect': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withInspect(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + inspect: value, + }, + }, + }, + }, + '#withMinWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMinWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + minWidth: value, + }, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + width: value, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withCellHeight': { 'function': { args: [{ default: 'sm', enums: ['sm', 'md', 'lg', 'auto'], name: 'value', type: ['string'] }], help: 'Height of a table cell' } }, + withCellHeight(value='sm'): { + options+: { + cellHeight: value, + }, + }, + '#withFooter': { 'function': { args: [{ default: { countRows: false, reducer: null, show: false }, enums: null, name: 'value', type: ['object'] }], help: 'Footer options' } }, + withFooter(value={ countRows: false, reducer: null, show: false }): { + options+: { + footer: value, + }, + }, + '#withFooterMixin': { 'function': { args: [{ default: { countRows: false, reducer: null, show: false }, enums: null, name: 'value', type: ['object'] }], help: 'Footer options' } }, + withFooterMixin(value): { + options+: { + footer+: value, + }, + }, + footer+: + { + '#withCountRows': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withCountRows(value=true): { + options+: { + footer+: { + countRows: value, + }, + }, + }, + '#withEnablePagination': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withEnablePagination(value=true): { + options+: { + footer+: { + enablePagination: value, + }, + }, + }, + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withFields(value): { + options+: { + footer+: { + fields: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withFieldsMixin(value): { + options+: { + footer+: { + fields+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'actually 1 value' } }, + withReducer(value): { + options+: { + footer+: { + reducer: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'actually 1 value' } }, + withReducerMixin(value): { + options+: { + footer+: { + reducer+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShow(value=true): { + options+: { + footer+: { + show: value, + }, + }, + }, + }, + '#withFrameIndex': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Represents the index of the selected frame' } }, + withFrameIndex(value=0): { + options+: { + frameIndex: value, + }, + }, + '#withShowHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls whether the panel should show the header' } }, + withShowHeader(value=true): { + options+: { + showHeader: value, + }, + }, + '#withShowTypeIcons': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls whether the header should show icons for the column types' } }, + withShowTypeIcons(value=true): { + options+: { + showTypeIcons: value, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Used to control row sorting' } }, + withSortBy(value): { + options+: { + sortBy: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withSortByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Used to control row sorting' } }, + withSortByMixin(value): { + options+: { + sortBy+: + (if std.isArray(value) + then value + else [value]), + }, + }, + sortBy+: + { + '#': { help: '', name: 'sortBy' }, + '#withDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag used to indicate descending sort order' } }, + withDesc(value=true): { + desc: value, + }, + '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the display name of the field to sort by' } }, + withDisplayName(value): { + displayName: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/text.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/text.libsonnet new file mode 100644 index 0000000..4fbad9f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/text.libsonnet @@ -0,0 +1,73 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.text', name: 'text' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'text', + }, + }, + options+: + { + '#withCode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withCode(value): { + options+: { + code: value, + }, + }, + '#withCodeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withCodeMixin(value): { + options+: { + code+: value, + }, + }, + code+: + { + '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['json', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'plaintext'], name: 'value', type: ['string'] }], help: 'The language passed to monaco code editor' } }, + withLanguage(value='plaintext'): { + options+: { + code+: { + language: value, + }, + }, + }, + '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLineNumbers(value=true): { + options+: { + code+: { + showLineNumbers: value, + }, + }, + }, + '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowMiniMap(value=true): { + options+: { + code+: { + showMiniMap: value, + }, + }, + }, + }, + '#withContent': { 'function': { args: [{ default: '# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withContent(value='# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)'): { + options+: { + content: value, + }, + }, + '#withMode': { 'function': { args: [{ default: 'markdown', enums: ['html', 'markdown', 'code'], name: 'value', type: ['string'] }], help: '' } }, + withMode(value='markdown'): { + options+: { + mode: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/timeSeries.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/timeSeries.libsonnet new file mode 100644 index 0000000..95f529c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/timeSeries.libsonnet @@ -0,0 +1,756 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.timeSeries', name: 'timeSeries' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'timeseries', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisBorderShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisBorderShow: value, + }, + }, + }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisCenteredZero(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisCenteredZero: value, + }, + }, + }, + }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisColorMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisColorMode: value, + }, + }, + }, + }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisGridShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisGridShow: value, + }, + }, + }, + }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAxisLabel(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisLabel: value, + }, + }, + }, + }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisPlacement(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisPlacement: value, + }, + }, + }, + }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMax(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMax: value, + }, + }, + }, + }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMin(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMin: value, + }, + }, + }, + }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisWidth: value, + }, + }, + }, + }, + '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withBarAlignment(value): { + fieldConfig+: { + defaults+: { + custom+: { + barAlignment: value, + }, + }, + }, + }, + '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withBarMaxWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + barMaxWidth: value, + }, + }, + }, + }, + '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withBarWidthFactor(value): { + fieldConfig+: { + defaults+: { + custom+: { + barWidthFactor: value, + }, + }, + }, + }, + '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withDrawStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + drawStyle: value, + }, + }, + }, + }, + '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFillBelowTo(value): { + fieldConfig+: { + defaults+: { + custom+: { + fillBelowTo: value, + }, + }, + }, + }, + '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFillColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + fillColor: value, + }, + }, + }, + }, + '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withFillOpacity(value): { + fieldConfig+: { + defaults+: { + custom+: { + fillOpacity: value, + }, + }, + }, + }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withGradientMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + gradientMode: value, + }, + }, + }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + '#withInsertNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: '' } }, + withInsertNulls(value): { + fieldConfig+: { + defaults+: { + custom+: { + insertNulls: value, + }, + }, + }, + }, + '#withInsertNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: '' } }, + withInsertNullsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + insertNulls+: value, + }, + }, + }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLineColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineColor: value, + }, + }, + }, + }, + '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withLineInterpolation(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineInterpolation: value, + }, + }, + }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle: value, + }, + }, + }, + }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: value, + }, + }, + }, + }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDash(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + dash: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDashMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + dash+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, + withFill(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + fill: value, + }, + }, + }, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLineWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineWidth: value, + }, + }, + }, + }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPointColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointColor: value, + }, + }, + }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withPointSize(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize: value, + }, + }, + }, + }, + '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPointSymbol(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSymbol: value, + }, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution: value, + }, + }, + }, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: value, + }, + }, + }, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + linearThreshold: value, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + log: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + type: value, + }, + }, + }, + }, + }, + }, + '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withShowPoints(value): { + fieldConfig+: { + defaults+: { + custom+: { + showPoints: value, + }, + }, + }, + }, + '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNulls(value): { + fieldConfig+: { + defaults+: { + custom+: { + spanNulls: value, + }, + }, + }, + }, + '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNullsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + spanNulls+: value, + }, + }, + }, + }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStacking(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking: value, + }, + }, + }, + }, + '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStackingMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: value, + }, + }, + }, + }, + stacking+: + { + '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withGroup(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: { + group: value, + }, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: { + mode: value, + }, + }, + }, + }, + }, + }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle: value, + }, + }, + }, + }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle+: value, + }, + }, + }, + }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle+: { + mode: value, + }, + }, + }, + }, + }, + }, + '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withTransform(value): { + fieldConfig+: { + defaults+: { + custom+: { + transform: value, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withLegend': { 'function': { args: [{ default: { calcs: [], displayMode: 'list', placement: 'bottom' }, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegend(value={ calcs: [], displayMode: 'list', placement: 'bottom' }): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: { calcs: [], displayMode: 'list', placement: 'bottom' }, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: 'list', enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value='list'): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: 'bottom', enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value='bottom'): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withOrientation(value): { + options+: { + orientation: value, + }, + }, + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimezone(value): { + options+: { + timezone: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withTimezoneMixin(value): { + options+: { + timezone+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withSort(value): { + options+: { + tooltip+: { + sort: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/trend.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/trend.libsonnet new file mode 100644 index 0000000..815aa0e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/trend.libsonnet @@ -0,0 +1,738 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.trend', name: 'trend' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'trend', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisBorderShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisBorderShow: value, + }, + }, + }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisCenteredZero(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisCenteredZero: value, + }, + }, + }, + }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisColorMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisColorMode: value, + }, + }, + }, + }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisGridShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisGridShow: value, + }, + }, + }, + }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAxisLabel(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisLabel: value, + }, + }, + }, + }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisPlacement(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisPlacement: value, + }, + }, + }, + }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMax(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMax: value, + }, + }, + }, + }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMin(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMin: value, + }, + }, + }, + }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisWidth: value, + }, + }, + }, + }, + '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withBarAlignment(value): { + fieldConfig+: { + defaults+: { + custom+: { + barAlignment: value, + }, + }, + }, + }, + '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withBarMaxWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + barMaxWidth: value, + }, + }, + }, + }, + '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withBarWidthFactor(value): { + fieldConfig+: { + defaults+: { + custom+: { + barWidthFactor: value, + }, + }, + }, + }, + '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withDrawStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + drawStyle: value, + }, + }, + }, + }, + '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFillBelowTo(value): { + fieldConfig+: { + defaults+: { + custom+: { + fillBelowTo: value, + }, + }, + }, + }, + '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFillColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + fillColor: value, + }, + }, + }, + }, + '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withFillOpacity(value): { + fieldConfig+: { + defaults+: { + custom+: { + fillOpacity: value, + }, + }, + }, + }, + '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withGradientMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + gradientMode: value, + }, + }, + }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + '#withInsertNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: '' } }, + withInsertNulls(value): { + fieldConfig+: { + defaults+: { + custom+: { + insertNulls: value, + }, + }, + }, + }, + '#withInsertNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: '' } }, + withInsertNullsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + insertNulls+: value, + }, + }, + }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLineColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineColor: value, + }, + }, + }, + }, + '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withLineInterpolation(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineInterpolation: value, + }, + }, + }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle: value, + }, + }, + }, + }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: value, + }, + }, + }, + }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDash(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + dash: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDashMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + dash+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, + withFill(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + fill: value, + }, + }, + }, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLineWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineWidth: value, + }, + }, + }, + }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPointColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointColor: value, + }, + }, + }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withPointSize(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize: value, + }, + }, + }, + }, + '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPointSymbol(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSymbol: value, + }, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution: value, + }, + }, + }, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: value, + }, + }, + }, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + linearThreshold: value, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + log: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + type: value, + }, + }, + }, + }, + }, + }, + '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withShowPoints(value): { + fieldConfig+: { + defaults+: { + custom+: { + showPoints: value, + }, + }, + }, + }, + '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNulls(value): { + fieldConfig+: { + defaults+: { + custom+: { + spanNulls: value, + }, + }, + }, + }, + '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, + withSpanNullsMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + spanNulls+: value, + }, + }, + }, + }, + '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStacking(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking: value, + }, + }, + }, + }, + '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withStackingMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: value, + }, + }, + }, + }, + stacking+: + { + '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withGroup(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: { + group: value, + }, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + stacking+: { + mode: value, + }, + }, + }, + }, + }, + }, + '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle: value, + }, + }, + }, + }, + '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withThresholdsStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle+: value, + }, + }, + }, + }, + thresholdsStyle+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + thresholdsStyle+: { + mode: value, + }, + }, + }, + }, + }, + }, + '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withTransform(value): { + fieldConfig+: { + defaults+: { + custom+: { + transform: value, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegend(value): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: 'list', enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value='list'): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: 'bottom', enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value='bottom'): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withSort(value): { + options+: { + tooltip+: { + sort: value, + }, + }, + }, + }, + '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the x field to use (defaults to first number)' } }, + withXField(value): { + options+: { + xField: value, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/xyChart.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/xyChart.libsonnet new file mode 100644 index 0000000..7a1065d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panel/xyChart.libsonnet @@ -0,0 +1,1070 @@ +// This file is generated, do not manually edit. +(import '../panel.libsonnet') ++ { + '#': { help: 'grafonnet.panel.xyChart', name: 'xyChart' }, + panelOptions+: + { + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'xychart', + }, + }, + fieldConfig+: { + defaults+: { + custom+: + { + '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisBorderShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisBorderShow: value, + }, + }, + }, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisCenteredZero(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisCenteredZero: value, + }, + }, + }, + }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisColorMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisColorMode: value, + }, + }, + }, + }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisGridShow(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + axisGridShow: value, + }, + }, + }, + }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAxisLabel(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisLabel: value, + }, + }, + }, + }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisPlacement(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisPlacement: value, + }, + }, + }, + }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMax(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMax: value, + }, + }, + }, + }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMin(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisSoftMin: value, + }, + }, + }, + }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + axisWidth: value, + }, + }, + }, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom: value, + }, + }, + }, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: value, + }, + }, + }, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + legend: value, + }, + }, + }, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + tooltip: value, + }, + }, + }, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + fieldConfig+: { + defaults+: { + custom+: { + hideFrom+: { + viz: value, + }, + }, + }, + }, + }, + }, + '#withLabel': { 'function': { args: [{ default: 'auto', enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withLabel(value='auto'): { + fieldConfig+: { + defaults+: { + custom+: { + label: value, + }, + }, + }, + }, + '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLabelValue(value): { + fieldConfig+: { + defaults+: { + custom+: { + labelValue: value, + }, + }, + }, + }, + '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLabelValueMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + labelValue+: value, + }, + }, + }, + }, + labelValue+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + fieldConfig+: { + defaults+: { + custom+: { + labelValue+: { + field: value, + }, + }, + }, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFixed(value): { + fieldConfig+: { + defaults+: { + custom+: { + labelValue+: { + fixed: value, + }, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: ['string'] }], help: '' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + labelValue+: { + mode: value, + }, + }, + }, + }, + }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLineColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineColor: value, + }, + }, + }, + }, + '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLineColorMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineColor+: value, + }, + }, + }, + }, + lineColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineColor+: { + field: value, + }, + }, + }, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, + withFixed(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineColor+: { + fixed: value, + }, + }, + }, + }, + }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyle(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle: value, + }, + }, + }, + }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyleMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: value, + }, + }, + }, + }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDash(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + dash: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDashMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + dash+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + }, + }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, + withFill(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineStyle+: { + fill: value, + }, + }, + }, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withLineWidth(value): { + fieldConfig+: { + defaults+: { + custom+: { + lineWidth: value, + }, + }, + }, + }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPointColor(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointColor: value, + }, + }, + }, + }, + '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPointColorMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointColor+: value, + }, + }, + }, + }, + pointColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointColor+: { + field: value, + }, + }, + }, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, + withFixed(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointColor+: { + fixed: value, + }, + }, + }, + }, + }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPointSize(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize: value, + }, + }, + }, + }, + '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPointSizeMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize+: value, + }, + }, + }, + }, + pointSize+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize+: { + field: value, + }, + }, + }, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withFixed(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize+: { + fixed: value, + }, + }, + }, + }, + }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMax(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize+: { + max: value, + }, + }, + }, + }, + }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMin(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize+: { + min: value, + }, + }, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '| *"linear"' } }, + withMode(value): { + fieldConfig+: { + defaults+: { + custom+: { + pointSize+: { + mode: value, + }, + }, + }, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution: value, + }, + }, + }, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: value, + }, + }, + }, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + linearThreshold: value, + }, + }, + }, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + log: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + fieldConfig+: { + defaults+: { + custom+: { + scaleDistribution+: { + type: value, + }, + }, + }, + }, + }, + }, + '#withShow': { 'function': { args: [{ default: 'points', enums: ['points', 'lines', 'points+lines'], name: 'value', type: ['string'] }], help: '' } }, + withShow(value='points'): { + fieldConfig+: { + defaults+: { + custom+: { + show: value, + }, + }, + }, + }, + }, + }, + }, + options+: + { + '#withDims': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration for the Table/Auto mode' } }, + withDims(value): { + options+: { + dims: value, + }, + }, + '#withDimsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration for the Table/Auto mode' } }, + withDimsMixin(value): { + options+: { + dims+: value, + }, + }, + dims+: + { + '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withExclude(value): { + options+: { + dims+: { + exclude: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withExcludeMixin(value): { + options+: { + dims+: { + exclude+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withFrame(value): { + options+: { + dims+: { + frame: value, + }, + }, + }, + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withX(value): { + options+: { + dims+: { + x: value, + }, + }, + }, + }, + '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegend(value): { + options+: { + legend: value, + }, + }, + '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLegendMixin(value): { + options+: { + legend+: value, + }, + }, + legend+: + { + '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAsTable(value=true): { + options+: { + legend+: { + asTable: value, + }, + }, + }, + '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcs(value): { + options+: { + legend+: { + calcs: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCalcsMixin(value): { + options+: { + legend+: { + calcs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDisplayMode': { 'function': { args: [{ default: 'list', enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, + withDisplayMode(value='list'): { + options+: { + legend+: { + displayMode: value, + }, + }, + }, + '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withIsVisible(value=true): { + options+: { + legend+: { + isVisible: value, + }, + }, + }, + '#withPlacement': { 'function': { args: [{ default: 'bottom', enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withPlacement(value='bottom'): { + options+: { + legend+: { + placement: value, + }, + }, + }, + '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withShowLegend(value=true): { + options+: { + legend+: { + showLegend: value, + }, + }, + }, + '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSortBy(value): { + options+: { + legend+: { + sortBy: value, + }, + }, + }, + '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSortDesc(value=true): { + options+: { + legend+: { + sortDesc: value, + }, + }, + }, + '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withWidth(value): { + options+: { + legend+: { + width: value, + }, + }, + }, + }, + '#withSeries': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Manual Mode' } }, + withSeries(value): { + options+: { + series: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withSeriesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Manual Mode' } }, + withSeriesMixin(value): { + options+: { + series+: + (if std.isArray(value) + then value + else [value]), + }, + }, + series+: + { + '#': { help: '', name: 'series' }, + '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisBorderShow(value=true): { + axisBorderShow: value, + }, + '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisCenteredZero(value=true): { + axisCenteredZero: value, + }, + '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisColorMode(value): { + axisColorMode: value, + }, + '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withAxisGridShow(value=true): { + axisGridShow: value, + }, + '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAxisLabel(value): { + axisLabel: value, + }, + '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withAxisPlacement(value): { + axisPlacement: value, + }, + '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMax(value): { + axisSoftMax: value, + }, + '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisSoftMin(value): { + axisSoftMin: value, + }, + '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withAxisWidth(value): { + axisWidth: value, + }, + '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withFrame(value): { + frame: value, + }, + '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFrom(value): { + hideFrom: value, + }, + '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withHideFromMixin(value): { + hideFrom+: value, + }, + hideFrom+: + { + '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLegend(value=true): { + hideFrom+: { + legend: value, + }, + }, + '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withTooltip(value=true): { + hideFrom+: { + tooltip: value, + }, + }, + '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withViz(value=true): { + hideFrom+: { + viz: value, + }, + }, + }, + '#withLabel': { 'function': { args: [{ default: 'auto', enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withLabel(value='auto'): { + label: value, + }, + '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLabelValue(value): { + labelValue: value, + }, + '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLabelValueMixin(value): { + labelValue+: value, + }, + labelValue+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + labelValue+: { + field: value, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFixed(value): { + labelValue+: { + fixed: value, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: ['string'] }], help: '' } }, + withMode(value): { + labelValue+: { + mode: value, + }, + }, + }, + '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLineColor(value): { + lineColor: value, + }, + '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLineColorMixin(value): { + lineColor+: value, + }, + lineColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + lineColor+: { + field: value, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, + withFixed(value): { + lineColor+: { + fixed: value, + }, + }, + }, + '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyle(value): { + lineStyle: value, + }, + '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withLineStyleMixin(value): { + lineStyle+: value, + }, + lineStyle+: + { + '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDash(value): { + lineStyle+: { + dash: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withDashMixin(value): { + lineStyle+: { + dash+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, + withFill(value): { + lineStyle+: { + fill: value, + }, + }, + }, + '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withLineWidth(value): { + lineWidth: value, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPointColor(value): { + pointColor: value, + }, + '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPointColorMixin(value): { + pointColor+: value, + }, + pointColor+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + pointColor+: { + field: value, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, + withFixed(value): { + pointColor+: { + fixed: value, + }, + }, + }, + '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPointSize(value): { + pointSize: value, + }, + '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPointSizeMixin(value): { + pointSize+: value, + }, + pointSize+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, + withField(value): { + pointSize+: { + field: value, + }, + }, + '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withFixed(value): { + pointSize+: { + fixed: value, + }, + }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMax(value): { + pointSize+: { + max: value, + }, + }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMin(value): { + pointSize+: { + min: value, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '| *"linear"' } }, + withMode(value): { + pointSize+: { + mode: value, + }, + }, + }, + '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistribution(value): { + scaleDistribution: value, + }, + '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withScaleDistributionMixin(value): { + scaleDistribution+: value, + }, + scaleDistribution+: + { + '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLinearThreshold(value): { + scaleDistribution+: { + linearThreshold: value, + }, + }, + '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withLog(value): { + scaleDistribution+: { + log: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withType(value): { + scaleDistribution+: { + type: value, + }, + }, + }, + '#withShow': { 'function': { args: [{ default: 'points', enums: ['points', 'lines', 'points+lines'], name: 'value', type: ['string'] }], help: '' } }, + withShow(value='points'): { + show: value, + }, + '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withX(value): { + x: value, + }, + '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withY(value): { + y: value, + }, + }, + '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: ['string'] }], help: 'Auto is "table" in the UI' } }, + withSeriesMapping(value): { + options+: { + seriesMapping: value, + }, + }, + '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltip(value): { + options+: { + tooltip: value, + }, + }, + '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, + withTooltipMixin(value): { + options+: { + tooltip+: value, + }, + }, + tooltip+: + { + '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxHeight(value): { + options+: { + tooltip+: { + maxHeight: value, + }, + }, + }, + '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMaxWidth(value): { + options+: { + tooltip+: { + maxWidth: value, + }, + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withMode(value): { + options+: { + tooltip+: { + mode: value, + }, + }, + }, + '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, + withSort(value): { + options+: { + tooltip+: { + sort: value, + }, + }, + }, + }, + }, +} ++ { + panelOptions+: { + '#withType':: { + ignore: true, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panelindex.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panelindex.libsonnet new file mode 100644 index 0000000..cffcdad --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/panelindex.libsonnet @@ -0,0 +1,30 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.panel', name: 'panel' }, + alertList: import 'panel/alertList.libsonnet', + annotationsList: import 'panel/annotationsList.libsonnet', + barChart: import 'panel/barChart.libsonnet', + barGauge: import 'panel/barGauge.libsonnet', + candlestick: import 'panel/candlestick.libsonnet', + canvas: import 'panel/canvas.libsonnet', + dashboardList: import 'panel/dashboardList.libsonnet', + datagrid: import 'panel/datagrid.libsonnet', + debug: import 'panel/debug.libsonnet', + gauge: import 'panel/gauge.libsonnet', + geomap: import 'panel/geomap.libsonnet', + heatmap: import 'panel/heatmap.libsonnet', + histogram: import 'panel/histogram.libsonnet', + logs: import 'panel/logs.libsonnet', + news: import 'panel/news.libsonnet', + nodeGraph: import 'panel/nodeGraph.libsonnet', + pieChart: import 'panel/pieChart.libsonnet', + stat: import 'panel/stat.libsonnet', + stateTimeline: import 'panel/stateTimeline.libsonnet', + statusHistory: import 'panel/statusHistory.libsonnet', + table: import 'panel/table.libsonnet', + text: import 'panel/text.libsonnet', + timeSeries: import 'panel/timeSeries.libsonnet', + trend: import 'panel/trend.libsonnet', + xyChart: import 'panel/xyChart.libsonnet', + row: import 'panel/row.libsonnet', +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/preferences.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/preferences.libsonnet new file mode 100644 index 0000000..4fd7743 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/preferences.libsonnet @@ -0,0 +1,117 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.preferences', name: 'preferences' }, + '#withCookiePreferences': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Cookie preferences' } }, + withCookiePreferences(value): { + cookiePreferences: value, + }, + '#withCookiePreferencesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Cookie preferences' } }, + withCookiePreferencesMixin(value): { + cookiePreferences+: value, + }, + cookiePreferences+: + { + '#withAnalytics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAnalytics(value): { + cookiePreferences+: { + analytics: value, + }, + }, + '#withAnalyticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAnalyticsMixin(value): { + cookiePreferences+: { + analytics+: value, + }, + }, + '#withFunctional': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withFunctional(value): { + cookiePreferences+: { + functional: value, + }, + }, + '#withFunctionalMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withFunctionalMixin(value): { + cookiePreferences+: { + functional+: value, + }, + }, + '#withPerformance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPerformance(value): { + cookiePreferences+: { + performance: value, + }, + }, + '#withPerformanceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPerformanceMixin(value): { + cookiePreferences+: { + performance+: value, + }, + }, + }, + '#withHomeDashboardUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'UID for the home dashboard' } }, + withHomeDashboardUID(value): { + homeDashboardUID: value, + }, + '#withLanguage': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Selected language (beta)' } }, + withLanguage(value): { + language: value, + }, + '#withNavbar': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Navigation preferences' } }, + withNavbar(value): { + navbar: value, + }, + '#withNavbarMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Navigation preferences' } }, + withNavbarMixin(value): { + navbar+: value, + }, + navbar+: + { + '#withBookmarkUrls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withBookmarkUrls(value): { + navbar+: { + bookmarkUrls: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withBookmarkUrlsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withBookmarkUrlsMixin(value): { + navbar+: { + bookmarkUrls+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withQueryHistory': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Explore query history preferences' } }, + withQueryHistory(value): { + queryHistory: value, + }, + '#withQueryHistoryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Explore query history preferences' } }, + withQueryHistoryMixin(value): { + queryHistory+: value, + }, + queryHistory+: + { + '#withHomeTab': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "one of: '' | 'query' | 'starred';" } }, + withHomeTab(value): { + queryHistory+: { + homeTab: value, + }, + }, + }, + '#withTheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'light, dark, empty is default' } }, + withTheme(value): { + theme: value, + }, + '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The timezone selection\nTODO: this should use the timezone defined in common' } }, + withTimezone(value): { + timezone: value, + }, + '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'day of the week (sunday, monday, etc)' } }, + withWeekStart(value): { + weekStart: value, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/publicdashboard.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/publicdashboard.libsonnet new file mode 100644 index 0000000..200e638 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/publicdashboard.libsonnet @@ -0,0 +1,28 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.publicdashboard', name: 'publicdashboard' }, + '#withAccessToken': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique public access token' } }, + withAccessToken(value): { + accessToken: value, + }, + '#withAnnotationsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag that indicates if annotations are enabled' } }, + withAnnotationsEnabled(value=true): { + annotationsEnabled: value, + }, + '#withDashboardUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Dashboard unique identifier referenced by this public dashboard' } }, + withDashboardUid(value): { + dashboardUid: value, + }, + '#withIsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag that indicates if the public dashboard is enabled' } }, + withIsEnabled(value=true): { + isEnabled: value, + }, + '#withTimeSelectionEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag that indicates if the time range picker is enabled' } }, + withTimeSelectionEnabled(value=true): { + timeSelectionEnabled: value, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique public dashboard identifier' } }, + withUid(value): { + uid: value, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query.libsonnet new file mode 100644 index 0000000..fea2747 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query.libsonnet @@ -0,0 +1,17 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query', name: 'query' }, + athena: import 'query/athena.libsonnet', + azureMonitor: import 'query/azureMonitor.libsonnet', + bigquery: import 'query/bigquery.libsonnet', + cloudWatch: import 'query/cloudWatch.libsonnet', + elasticsearch: import 'query/elasticsearch.libsonnet', + expr: import 'query/expr.libsonnet', + googleCloudMonitoring: import 'query/googleCloudMonitoring.libsonnet', + grafanaPyroscope: import 'query/grafanaPyroscope.libsonnet', + loki: import 'query/loki.libsonnet', + parca: import 'query/parca.libsonnet', + prometheus: import 'query/prometheus.libsonnet', + tempo: import 'query/tempo.libsonnet', + testData: import 'query/testData.libsonnet', +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/athena.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/athena.libsonnet new file mode 100644 index 0000000..3ddc5cd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/athena.libsonnet @@ -0,0 +1,100 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.athena', name: 'athena' }, + '#withColumn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withColumn(value): { + column: value, + }, + '#withConnectionArgs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withConnectionArgs(value): { + connectionArgs: value, + }, + '#withConnectionArgsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withConnectionArgsMixin(value): { + connectionArgs+: value, + }, + connectionArgs+: + { + '#withCatalog': { 'function': { args: [{ default: '__default', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withCatalog(value='__default'): { + connectionArgs+: { + catalog: value, + }, + }, + '#withDatabase': { 'function': { args: [{ default: '__default', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withDatabase(value='__default'): { + connectionArgs+: { + database: value, + }, + }, + '#withRegion': { 'function': { args: [{ default: '__default', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRegion(value='__default'): { + connectionArgs+: { + region: value, + }, + }, + '#withResultReuseEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withResultReuseEnabled(value=true): { + connectionArgs+: { + resultReuseEnabled: value, + }, + }, + '#withResultReuseMaxAgeInMinutes': { 'function': { args: [{ default: 60, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withResultReuseMaxAgeInMinutes(value=60): { + connectionArgs+: { + resultReuseMaxAgeInMinutes: value, + }, + }, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withFormat': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: ['string'] }], help: '' } }, + withFormat(value): { + format: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withQueryID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withQueryID(value): { + queryID: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRawSQL': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawSQL(value=''): { + rawSQL: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withTable': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTable(value): { + table: value, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/azureMonitor.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/azureMonitor.libsonnet new file mode 100644 index 0000000..dfbdb6a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/azureMonitor.libsonnet @@ -0,0 +1,885 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.azureMonitor', name: 'azureMonitor' }, + '#withAzureLogAnalytics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Monitor Logs sub-query properties' } }, + withAzureLogAnalytics(value): { + azureLogAnalytics: value, + }, + '#withAzureLogAnalyticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Monitor Logs sub-query properties' } }, + withAzureLogAnalyticsMixin(value): { + azureLogAnalytics+: value, + }, + azureLogAnalytics+: + { + '#withBasicLogsQuery': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If set to true the query will be run as a basic logs query' } }, + withBasicLogsQuery(value=true): { + azureLogAnalytics+: { + basicLogsQuery: value, + }, + }, + '#withDashboardTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If set to true the dashboard time range will be used as a filter for the query. Otherwise the query time ranges will be used. Defaults to false.' } }, + withDashboardTime(value=true): { + azureLogAnalytics+: { + dashboardTime: value, + }, + }, + '#withIntersectTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated Use dashboardTime instead' } }, + withIntersectTime(value=true): { + azureLogAnalytics+: { + intersectTime: value, + }, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'KQL query to be executed.' } }, + withQuery(value): { + azureLogAnalytics+: { + query: value, + }, + }, + '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resources instead' } }, + withResource(value): { + azureLogAnalytics+: { + resource: value, + }, + }, + '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, + withResources(value): { + azureLogAnalytics+: { + resources: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, + withResourcesMixin(value): { + azureLogAnalytics+: { + resources+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace', 'logs'], name: 'value', type: ['string'] }], help: 'Specifies the format results should be returned as.' } }, + withResultFormat(value): { + azureLogAnalytics+: { + resultFormat: value, + }, + }, + '#withTimeColumn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'If dashboardTime is set to true this value dictates which column the time filter will be applied to. Defaults to the first tables timeSpan column, the first datetime column found, or TimeGenerated' } }, + withTimeColumn(value): { + azureLogAnalytics+: { + timeColumn: value, + }, + }, + '#withWorkspace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Workspace ID. This was removed in Grafana 8, but remains for backwards compat.' } }, + withWorkspace(value): { + azureLogAnalytics+: { + workspace: value, + }, + }, + }, + '#withAzureMonitor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Monitor Metrics sub-query properties.' } }, + withAzureMonitor(value): { + azureMonitor: value, + }, + '#withAzureMonitorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Monitor Metrics sub-query properties.' } }, + withAzureMonitorMixin(value): { + azureMonitor+: value, + }, + azureMonitor+: + { + '#withAggregation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric.' } }, + withAggregation(value): { + azureMonitor+: { + aggregation: value, + }, + }, + '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail.' } }, + withAlias(value): { + azureMonitor+: { + alias: value, + }, + }, + '#withAllowedTimeGrainsMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Time grains that are supported by the metric.' } }, + withAllowedTimeGrainsMs(value): { + azureMonitor+: { + allowedTimeGrainsMs: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withAllowedTimeGrainsMsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Time grains that are supported by the metric.' } }, + withAllowedTimeGrainsMsMixin(value): { + azureMonitor+: { + allowedTimeGrainsMs+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withCustomNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "Used as the value for the metricNamespace property when it's different from the resource namespace." } }, + withCustomNamespace(value): { + azureMonitor+: { + customNamespace: value, + }, + }, + '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, + withDimension(value): { + azureMonitor+: { + dimension: value, + }, + }, + '#withDimensionFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, + withDimensionFilter(value): { + azureMonitor+: { + dimensionFilter: value, + }, + }, + '#withDimensionFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, + withDimensionFilters(value): { + azureMonitor+: { + dimensionFilters: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withDimensionFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, + withDimensionFiltersMixin(value): { + azureMonitor+: { + dimensionFilters+: + (if std.isArray(value) + then value + else [value]), + }, + }, + dimensionFilters+: + { + '#': { help: '', name: 'dimensionFilters' }, + '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of Dimension to be filtered on.' } }, + withDimension(value): { + dimension: value, + }, + '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated filter is deprecated in favour of filters to support multiselect.' } }, + withFilter(value): { + filter: value, + }, + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to match with the filter.' } }, + withFilters(value): { + filters: + (if std.isArray(value) + then value + else [value]), + }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to match with the filter.' } }, + withFiltersMixin(value): { + filters+: + (if std.isArray(value) + then value + else [value]), + }, + '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators." } }, + withOperator(value): { + operator: value, + }, + }, + '#withMetricDefinition': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use metricNamespace instead' } }, + withMetricDefinition(value): { + azureMonitor+: { + metricDefinition: value, + }, + }, + '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The metric to query data for within the specified metricNamespace. e.g. UsedCapacity' } }, + withMetricName(value): { + azureMonitor+: { + metricName: value, + }, + }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "metricNamespace is used as the resource type (or resource namespace).\nIt's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts\nKept the name of the variable as metricNamespace to avoid backward incompatibility issues." } }, + withMetricNamespace(value): { + azureMonitor+: { + metricNamespace: value, + }, + }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The Azure region containing the resource(s).' } }, + withRegion(value): { + azureMonitor+: { + region: value, + }, + }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resources instead' } }, + withResourceGroup(value): { + azureMonitor+: { + resourceGroup: value, + }, + }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resources instead' } }, + withResourceName(value): { + azureMonitor+: { + resourceName: value, + }, + }, + '#withResourceUri': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resourceGroup, resourceName and metricNamespace instead' } }, + withResourceUri(value): { + azureMonitor+: { + resourceUri: value, + }, + }, + '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, + withResources(value): { + azureMonitor+: { + resources: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, + withResourcesMixin(value): { + azureMonitor+: { + resources+: + (if std.isArray(value) + then value + else [value]), + }, + }, + resources+: + { + '#': { help: '', name: 'resources' }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMetricNamespace(value): { + metricNamespace: value, + }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRegion(value): { + region: value, + }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResourceGroup(value): { + resourceGroup: value, + }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResourceName(value): { + resourceName: value, + }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSubscription(value): { + subscription: value, + }, + }, + '#withTimeGrain': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The granularity of data points to be queried. Defaults to auto.' } }, + withTimeGrain(value): { + azureMonitor+: { + timeGrain: value, + }, + }, + '#withTimeGrainUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated' } }, + withTimeGrainUnit(value): { + azureMonitor+: { + timeGrainUnit: value, + }, + }, + '#withTop': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Maximum number of records to return. Defaults to 10.' } }, + withTop(value): { + azureMonitor+: { + top: value, + }, + }, + }, + '#withAzureResourceGraph': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Resource Graph sub-query properties.' } }, + withAzureResourceGraph(value): { + azureResourceGraph: value, + }, + '#withAzureResourceGraphMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Resource Graph sub-query properties.' } }, + withAzureResourceGraphMixin(value): { + azureResourceGraph+: value, + }, + azureResourceGraph+: + { + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Azure Resource Graph KQL query to be executed.' } }, + withQuery(value): { + azureResourceGraph+: { + query: value, + }, + }, + '#withResultFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specifies the format results should be returned as. Defaults to table.' } }, + withResultFormat(value): { + azureResourceGraph+: { + resultFormat: value, + }, + }, + }, + '#withAzureTraces': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Application Insights Traces sub-query properties' } }, + withAzureTraces(value): { + azureTraces: value, + }, + '#withAzureTracesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Application Insights Traces sub-query properties' } }, + withAzureTracesMixin(value): { + azureTraces+: value, + }, + azureTraces+: + { + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters for property values.' } }, + withFilters(value): { + azureTraces+: { + filters: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters for property values.' } }, + withFiltersMixin(value): { + azureTraces+: { + filters+: + (if std.isArray(value) + then value + else [value]), + }, + }, + filters+: + { + '#': { help: '', name: 'filters' }, + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to filter by.' } }, + withFilters(value): { + filters: + (if std.isArray(value) + then value + else [value]), + }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to filter by.' } }, + withFiltersMixin(value): { + filters+: + (if std.isArray(value) + then value + else [value]), + }, + '#withOperation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Comparison operator to use. Either equals or not equals.' } }, + withOperation(value): { + operation: value, + }, + '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Property name, auto-populated based on available traces.' } }, + withProperty(value): { + property: value, + }, + }, + '#withOperationId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Operation ID. Used only for Traces queries.' } }, + withOperationId(value): { + azureTraces+: { + operationId: value, + }, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'KQL query to be executed.' } }, + withQuery(value): { + azureTraces+: { + query: value, + }, + }, + '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, + withResources(value): { + azureTraces+: { + resources: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, + withResourcesMixin(value): { + azureTraces+: { + resources+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace', 'logs'], name: 'value', type: ['string'] }], help: 'Specifies the format results should be returned as.' } }, + withResultFormat(value): { + azureTraces+: { + resultFormat: value, + }, + }, + '#withTraceTypes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Types of events to filter by.' } }, + withTraceTypes(value): { + azureTraces+: { + traceTypes: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTraceTypesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Types of events to filter by.' } }, + withTraceTypesMixin(value): { + azureTraces+: { + traceTypes+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withGrafanaTemplateVariableFn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: '@deprecated Legacy template variable support.' } }, + withGrafanaTemplateVariableFn(value): { + grafanaTemplateVariableFn: value, + }, + '#withGrafanaTemplateVariableFnMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: '@deprecated Legacy template variable support.' } }, + withGrafanaTemplateVariableFnMixin(value): { + grafanaTemplateVariableFn+: value, + }, + grafanaTemplateVariableFn+: + { + '#withAppInsightsMetricNameQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAppInsightsMetricNameQuery(value): { + grafanaTemplateVariableFn+: { + AppInsightsMetricNameQuery: value, + }, + }, + '#withAppInsightsMetricNameQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAppInsightsMetricNameQueryMixin(value): { + grafanaTemplateVariableFn+: { + AppInsightsMetricNameQuery+: value, + }, + }, + AppInsightsMetricNameQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'AppInsightsMetricNameQuery', + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + }, + '#withAppInsightsGroupByQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAppInsightsGroupByQuery(value): { + grafanaTemplateVariableFn+: { + AppInsightsGroupByQuery: value, + }, + }, + '#withAppInsightsGroupByQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withAppInsightsGroupByQueryMixin(value): { + grafanaTemplateVariableFn+: { + AppInsightsGroupByQuery+: value, + }, + }, + AppInsightsGroupByQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'AppInsightsGroupByQuery', + }, + }, + '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMetricName(value): { + grafanaTemplateVariableFn+: { + metricName: value, + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + }, + '#withSubscriptionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSubscriptionsQuery(value): { + grafanaTemplateVariableFn+: { + SubscriptionsQuery: value, + }, + }, + '#withSubscriptionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSubscriptionsQueryMixin(value): { + grafanaTemplateVariableFn+: { + SubscriptionsQuery+: value, + }, + }, + SubscriptionsQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'SubscriptionsQuery', + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + }, + '#withResourceGroupsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withResourceGroupsQuery(value): { + grafanaTemplateVariableFn+: { + ResourceGroupsQuery: value, + }, + }, + '#withResourceGroupsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withResourceGroupsQueryMixin(value): { + grafanaTemplateVariableFn+: { + ResourceGroupsQuery+: value, + }, + }, + ResourceGroupsQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'ResourceGroupsQuery', + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSubscription(value): { + grafanaTemplateVariableFn+: { + subscription: value, + }, + }, + }, + '#withResourceNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withResourceNamesQuery(value): { + grafanaTemplateVariableFn+: { + ResourceNamesQuery: value, + }, + }, + '#withResourceNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withResourceNamesQueryMixin(value): { + grafanaTemplateVariableFn+: { + ResourceNamesQuery+: value, + }, + }, + ResourceNamesQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'ResourceNamesQuery', + }, + }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMetricNamespace(value): { + grafanaTemplateVariableFn+: { + metricNamespace: value, + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResourceGroup(value): { + grafanaTemplateVariableFn+: { + resourceGroup: value, + }, + }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSubscription(value): { + grafanaTemplateVariableFn+: { + subscription: value, + }, + }, + }, + '#withMetricNamespaceQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withMetricNamespaceQuery(value): { + grafanaTemplateVariableFn+: { + MetricNamespaceQuery: value, + }, + }, + '#withMetricNamespaceQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withMetricNamespaceQueryMixin(value): { + grafanaTemplateVariableFn+: { + MetricNamespaceQuery+: value, + }, + }, + MetricNamespaceQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'MetricNamespaceQuery', + }, + }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMetricNamespace(value): { + grafanaTemplateVariableFn+: { + metricNamespace: value, + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResourceGroup(value): { + grafanaTemplateVariableFn+: { + resourceGroup: value, + }, + }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResourceName(value): { + grafanaTemplateVariableFn+: { + resourceName: value, + }, + }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSubscription(value): { + grafanaTemplateVariableFn+: { + subscription: value, + }, + }, + }, + '#withMetricDefinitionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '@deprecated Use MetricNamespaceQuery instead' } }, + withMetricDefinitionsQuery(value): { + grafanaTemplateVariableFn+: { + MetricDefinitionsQuery: value, + }, + }, + '#withMetricDefinitionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '@deprecated Use MetricNamespaceQuery instead' } }, + withMetricDefinitionsQueryMixin(value): { + grafanaTemplateVariableFn+: { + MetricDefinitionsQuery+: value, + }, + }, + MetricDefinitionsQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'MetricDefinitionsQuery', + }, + }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMetricNamespace(value): { + grafanaTemplateVariableFn+: { + metricNamespace: value, + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResourceGroup(value): { + grafanaTemplateVariableFn+: { + resourceGroup: value, + }, + }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResourceName(value): { + grafanaTemplateVariableFn+: { + resourceName: value, + }, + }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSubscription(value): { + grafanaTemplateVariableFn+: { + subscription: value, + }, + }, + }, + '#withMetricNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withMetricNamesQuery(value): { + grafanaTemplateVariableFn+: { + MetricNamesQuery: value, + }, + }, + '#withMetricNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withMetricNamesQueryMixin(value): { + grafanaTemplateVariableFn+: { + MetricNamesQuery+: value, + }, + }, + MetricNamesQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'MetricNamesQuery', + }, + }, + '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMetricNamespace(value): { + grafanaTemplateVariableFn+: { + metricNamespace: value, + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResourceGroup(value): { + grafanaTemplateVariableFn+: { + resourceGroup: value, + }, + }, + '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResourceName(value): { + grafanaTemplateVariableFn+: { + resourceName: value, + }, + }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSubscription(value): { + grafanaTemplateVariableFn+: { + subscription: value, + }, + }, + }, + '#withWorkspacesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withWorkspacesQuery(value): { + grafanaTemplateVariableFn+: { + WorkspacesQuery: value, + }, + }, + '#withWorkspacesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withWorkspacesQueryMixin(value): { + grafanaTemplateVariableFn+: { + WorkspacesQuery+: value, + }, + }, + WorkspacesQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'WorkspacesQuery', + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSubscription(value): { + grafanaTemplateVariableFn+: { + subscription: value, + }, + }, + }, + '#withUnknownQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUnknownQuery(value): { + grafanaTemplateVariableFn+: { + UnknownQuery: value, + }, + }, + '#withUnknownQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUnknownQueryMixin(value): { + grafanaTemplateVariableFn+: { + UnknownQuery+: value, + }, + }, + UnknownQuery+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + grafanaTemplateVariableFn+: { + kind: 'UnknownQuery', + }, + }, + '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawQuery(value): { + grafanaTemplateVariableFn+: { + rawQuery: value, + }, + }, + }, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withNamespace(value): { + namespace: value, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Used only for exemplar queries from Prometheus' } }, + withQuery(value): { + query: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRegion(value): { + region: value, + }, + '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withResource(value): { + resource: value, + }, + '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Template variables params. These exist for backwards compatiblity with legacy template variables.' } }, + withResourceGroup(value): { + resourceGroup: value, + }, + '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Azure subscription containing the resource(s) to be queried.' } }, + withSubscription(value): { + subscription: value, + }, + '#withSubscriptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, + withSubscriptions(value): { + subscriptions: + (if std.isArray(value) + then value + else [value]), + }, + '#withSubscriptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, + withSubscriptionsMixin(value): { + subscriptions+: + (if std.isArray(value) + then value + else [value]), + }, +} ++ (import '../custom/query/azureMonitor.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/bigquery.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/bigquery.libsonnet new file mode 100644 index 0000000..0d69b7a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/bigquery.libsonnet @@ -0,0 +1,303 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.bigquery', name: 'bigquery' }, + '#withConvertToUTC': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withConvertToUTC(value=true): { + convertToUTC: value, + }, + '#withDataset': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withDataset(value): { + dataset: value, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: ['string'] }], help: '' } }, + withEditorMode(value): { + editorMode: value, + }, + '#withFormat': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: ['string'] }], help: '' } }, + withFormat(value): { + format: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLocation(value): { + location: value, + }, + '#withPartitioned': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withPartitioned(value=true): { + partitioned: value, + }, + '#withPartitionedField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPartitionedField(value): { + partitionedField: value, + }, + '#withProject': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withProject(value): { + project: value, + }, + '#withQueryPriority': { 'function': { args: [{ default: null, enums: ['INTERACTIVE', 'BATCH'], name: 'value', type: ['string'] }], help: '' } }, + withQueryPriority(value): { + queryPriority: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRawQuery': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withRawQuery(value=true): { + rawQuery: value, + }, + '#withRawSql': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawSql(value): { + rawSql: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withSharded': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withSharded(value=true): { + sharded: value, + }, + '#withSql': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSql(value): { + sql: value, + }, + '#withSqlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSqlMixin(value): { + sql+: value, + }, + sql+: + { + '#withColumns': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withColumns(value): { + sql+: { + columns: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withColumnsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withColumnsMixin(value): { + sql+: { + columns+: + (if std.isArray(value) + then value + else [value]), + }, + }, + columns+: + { + '#': { help: '', name: 'columns' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParameters(value): { + parameters: + (if std.isArray(value) + then value + else [value]), + }, + '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParametersMixin(value): { + parameters+: + (if std.isArray(value) + then value + else [value]), + }, + parameters+: + { + '#': { help: '', name: 'parameters' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'functionParameter', + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'function', + }, + }, + '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFrom(value): { + sql+: { + from: value, + }, + }, + '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withGroupBy(value): { + sql+: { + groupBy: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withGroupByMixin(value): { + sql+: { + groupBy+: + (if std.isArray(value) + then value + else [value]), + }, + }, + groupBy+: + { + '#': { help: '', name: 'groupBy' }, + '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withProperty(value): { + property: value, + }, + '#withPropertyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPropertyMixin(value): { + property+: value, + }, + property+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + property+: { + name: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['string'], name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + property+: { + type: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'groupBy', + }, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withLimit(value): { + sql+: { + limit: value, + }, + }, + '#withOffset': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withOffset(value): { + sql+: { + offset: value, + }, + }, + '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOrderBy(value): { + sql+: { + orderBy: value, + }, + }, + '#withOrderByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOrderByMixin(value): { + sql+: { + orderBy+: value, + }, + }, + orderBy+: + { + '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withProperty(value): { + sql+: { + orderBy+: { + property: value, + }, + }, + }, + '#withPropertyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPropertyMixin(value): { + sql+: { + orderBy+: { + property+: value, + }, + }, + }, + property+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + sql+: { + orderBy+: { + property+: { + name: value, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['string'], name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + sql+: { + orderBy+: { + property+: { + type: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + sql+: { + orderBy+: { + type: 'property', + }, + }, + }, + }, + '#withOrderByDirection': { 'function': { args: [{ default: null, enums: ['ASC', 'DESC'], name: 'value', type: ['string'] }], help: '' } }, + withOrderByDirection(value): { + sql+: { + orderByDirection: value, + }, + }, + '#withWhereString': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'whereJsonTree?: _' } }, + withWhereString(value): { + sql+: { + whereString: value, + }, + }, + }, + '#withTable': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTable(value): { + table: value, + }, + '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTimeShift(value): { + timeShift: value, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/cloudWatch.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/cloudWatch.libsonnet new file mode 100644 index 0000000..fe411c4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/cloudWatch.libsonnet @@ -0,0 +1,742 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.cloudWatch', name: 'cloudWatch' }, + CloudWatchAnnotationQuery+: + { + '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, + withAccountId(value): { + accountId: value, + }, + '#withActionPrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Use this parameter to filter the results of the operation to only those alarms\nthat use a certain alarm action. For example, you could specify the ARN of\nan SNS topic to find all alarms that send notifications to that topic.\ne.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action`\nbut not match `arn:aws:sns:us-east-1:123456789012:your-app-action`' } }, + withActionPrefix(value): { + actionPrefix: value, + }, + '#withAlarmNamePrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An alarm name prefix. If you specify this parameter, you receive information\nabout all alarms that have names that start with this prefix.\ne.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu`' } }, + withAlarmNamePrefix(value): { + alarmNamePrefix: value, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, + withDimensions(value): { + dimensions: value, + }, + '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, + withDimensionsMixin(value): { + dimensions+: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only show metrics that exactly match all defined dimension names.' } }, + withMatchExact(value=true): { + matchExact: value, + }, + '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the metric' } }, + withMetricName(value): { + metricName: value, + }, + '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, + withNamespace(value): { + namespace: value, + }, + '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, + withPeriod(value): { + period: value, + }, + '#withPrefixMatching': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix' } }, + withPrefixMatching(value=true): { + prefixMatching: value, + }, + '#withQueryMode': { 'function': { args: [{ default: 'Annotations', enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: ['string'] }], help: 'Whether a query is a Metrics, Logs, or Annotations query' } }, + withQueryMode(value='Annotations'): { + queryMode: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AWS region to query for the metric' } }, + withRegion(value): { + region: value, + }, + '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, + withStatistic(value): { + statistic: value, + }, + '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, + withStatistics(value): { + statistics: + (if std.isArray(value) + then value + else [value]), + }, + '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, + withStatisticsMixin(value): { + statistics+: + (if std.isArray(value) + then value + else [value]), + }, + }, + CloudWatchLogsQuery+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The CloudWatch Logs Insights query to execute' } }, + withExpression(value): { + expression: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withLogGroupNames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use logGroups' } }, + withLogGroupNames(value): { + logGroupNames: + (if std.isArray(value) + then value + else [value]), + }, + '#withLogGroupNamesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use logGroups' } }, + withLogGroupNamesMixin(value): { + logGroupNames+: + (if std.isArray(value) + then value + else [value]), + }, + '#withLogGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Log groups to query' } }, + withLogGroups(value): { + logGroups: + (if std.isArray(value) + then value + else [value]), + }, + '#withLogGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Log groups to query' } }, + withLogGroupsMixin(value): { + logGroups+: + (if std.isArray(value) + then value + else [value]), + }, + logGroups+: + { + '#': { help: '', name: 'logGroups' }, + '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AccountId of the log group' } }, + withAccountId(value): { + accountId: value, + }, + '#withAccountLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Label of the log group' } }, + withAccountLabel(value): { + accountLabel: value, + }, + '#withArn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ARN of the log group' } }, + withArn(value): { + arn: value, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the log group' } }, + withName(value): { + name: value, + }, + }, + '#withQueryLanguage': { 'function': { args: [{ default: null, enums: ['CWLI', 'SQL', 'PPL'], name: 'value', type: ['string'] }], help: 'Language used for querying logs, can be CWLI, SQL, or PPL. If empty, the default language is CWLI.' } }, + withQueryLanguage(value): { + queryLanguage: value, + }, + '#withQueryMode': { 'function': { args: [{ default: 'Logs', enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: ['string'] }], help: 'Whether a query is a Metrics, Logs, or Annotations query' } }, + withQueryMode(value='Logs'): { + queryMode: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AWS region to query for the logs' } }, + withRegion(value): { + region: value, + }, + '#withStatsGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, + withStatsGroups(value): { + statsGroups: + (if std.isArray(value) + then value + else [value]), + }, + '#withStatsGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, + withStatsGroupsMixin(value): { + statsGroups+: + (if std.isArray(value) + then value + else [value]), + }, + }, + CloudWatchMetricsQuery+: + { + '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, + withAccountId(value): { + accountId: value, + }, + '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Deprecated: use label\n@deprecated use label' } }, + withAlias(value): { + alias: value, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, + withDimensions(value): { + dimensions: value, + }, + '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, + withDimensionsMixin(value): { + dimensions+: value, + }, + '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Math expression query' } }, + withExpression(value): { + expression: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter.' } }, + withId(value): { + id: value, + }, + '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details.' } }, + withLabel(value): { + label: value, + }, + '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only show metrics that exactly match all defined dimension names.' } }, + withMatchExact(value=true): { + matchExact: value, + }, + '#withMetricEditorMode': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: ['string'] }], help: 'Whether to use the query builder or code editor to create the query' } }, + withMetricEditorMode(value): { + metricEditorMode: value, + }, + '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the metric' } }, + withMetricName(value): { + metricName: value, + }, + '#withMetricQueryType': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: ['string'] }], help: 'Whether to use a metric search or metric insights query' } }, + withMetricQueryType(value): { + metricQueryType: value, + }, + '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, + withNamespace(value): { + namespace: value, + }, + '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, + withPeriod(value): { + period: value, + }, + '#withQueryMode': { 'function': { args: [{ default: 'Metrics', enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: ['string'] }], help: 'Whether a query is a Metrics, Logs, or Annotations query' } }, + withQueryMode(value='Metrics'): { + queryMode: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AWS region to query for the metric' } }, + withRegion(value): { + region: value, + }, + '#withSql': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'When the metric query type is set to `Insights` and the `metricEditorMode` is set to `Builder`, this field is used to build up an object representation of a SQL query.' } }, + withSql(value): { + sql: value, + }, + '#withSqlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'When the metric query type is set to `Insights` and the `metricEditorMode` is set to `Builder`, this field is used to build up an object representation of a SQL query.' } }, + withSqlMixin(value): { + sql+: value, + }, + sql+: + { + '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: 'FROM part of the SQL expression' } }, + withFrom(value): { + sql+: { + from: value, + }, + }, + '#withFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: 'FROM part of the SQL expression' } }, + withFromMixin(value): { + sql+: { + from+: value, + }, + }, + from+: + { + '#withQueryEditorPropertyExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withQueryEditorPropertyExpression(value): { + sql+: { + from+: { + QueryEditorPropertyExpression: value, + }, + }, + }, + '#withQueryEditorPropertyExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withQueryEditorPropertyExpressionMixin(value): { + sql+: { + from+: { + QueryEditorPropertyExpression+: value, + }, + }, + }, + QueryEditorPropertyExpression+: + { + '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withProperty(value): { + sql+: { + from+: { + property: value, + }, + }, + }, + '#withPropertyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPropertyMixin(value): { + sql+: { + from+: { + property+: value, + }, + }, + }, + property+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + sql+: { + from+: { + property+: { + name: value, + }, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['string'], name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + sql+: { + from+: { + property+: { + type: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + sql+: { + from+: { + type: 'property', + }, + }, + }, + }, + '#withQueryEditorFunctionExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withQueryEditorFunctionExpression(value): { + sql+: { + from+: { + QueryEditorFunctionExpression: value, + }, + }, + }, + '#withQueryEditorFunctionExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withQueryEditorFunctionExpressionMixin(value): { + sql+: { + from+: { + QueryEditorFunctionExpression+: value, + }, + }, + }, + QueryEditorFunctionExpression+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + sql+: { + from+: { + name: value, + }, + }, + }, + '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParameters(value): { + sql+: { + from+: { + parameters: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParametersMixin(value): { + sql+: { + from+: { + parameters+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + parameters+: + { + '#': { help: '', name: 'parameters' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'functionParameter', + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + sql+: { + from+: { + type: 'function', + }, + }, + }, + }, + }, + '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'GROUP BY part of the SQL expression' } }, + withGroupBy(value): { + sql+: { + groupBy: value, + }, + }, + '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'GROUP BY part of the SQL expression' } }, + withGroupByMixin(value): { + sql+: { + groupBy+: value, + }, + }, + groupBy+: + { + '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withExpressions(value): { + sql+: { + groupBy+: { + expressions: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withExpressionsMixin(value): { + sql+: { + groupBy+: { + expressions+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + sql+: { + groupBy+: { + type: value, + }, + }, + }, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'LIMIT part of the SQL expression' } }, + withLimit(value): { + sql+: { + limit: value, + }, + }, + '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'ORDER BY part of the SQL expression' } }, + withOrderBy(value): { + sql+: { + orderBy: value, + }, + }, + '#withOrderByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'ORDER BY part of the SQL expression' } }, + withOrderByMixin(value): { + sql+: { + orderBy+: value, + }, + }, + orderBy+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + sql+: { + orderBy+: { + name: value, + }, + }, + }, + '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParameters(value): { + sql+: { + orderBy+: { + parameters: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParametersMixin(value): { + sql+: { + orderBy+: { + parameters+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + parameters+: + { + '#': { help: '', name: 'parameters' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'functionParameter', + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + sql+: { + orderBy+: { + type: 'function', + }, + }, + }, + }, + '#withOrderByDirection': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The sort order of the SQL expression, `ASC` or `DESC`' } }, + withOrderByDirection(value): { + sql+: { + orderByDirection: value, + }, + }, + '#withSelect': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'SELECT part of the SQL expression' } }, + withSelect(value): { + sql+: { + select: value, + }, + }, + '#withSelectMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'SELECT part of the SQL expression' } }, + withSelectMixin(value): { + sql+: { + select+: value, + }, + }, + select+: + { + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + sql+: { + select+: { + name: value, + }, + }, + }, + '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParameters(value): { + sql+: { + select+: { + parameters: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParametersMixin(value): { + sql+: { + select+: { + parameters+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + parameters+: + { + '#': { help: '', name: 'parameters' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'functionParameter', + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + sql+: { + select+: { + type: 'function', + }, + }, + }, + }, + '#withWhere': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'WHERE part of the SQL expression' } }, + withWhere(value): { + sql+: { + where: value, + }, + }, + '#withWhereMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'WHERE part of the SQL expression' } }, + withWhereMixin(value): { + sql+: { + where+: value, + }, + }, + where+: + { + '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withExpressions(value): { + sql+: { + where+: { + expressions: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withExpressionsMixin(value): { + sql+: { + where+: { + expressions+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + sql+: { + where+: { + type: value, + }, + }, + }, + }, + }, + '#withSqlExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'When the metric query type is set to `Insights`, this field is used to specify the query string.' } }, + withSqlExpression(value): { + sqlExpression: value, + }, + '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, + withStatistic(value): { + statistic: value, + }, + '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, + withStatistics(value): { + statistics: + (if std.isArray(value) + then value + else [value]), + }, + '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, + withStatisticsMixin(value): { + statistics+: + (if std.isArray(value) + then value + else [value]), + }, + }, +} ++ (import '../custom/query/cloudWatch.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/elasticsearch.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/elasticsearch.libsonnet new file mode 100644 index 0000000..15b634b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/elasticsearch.libsonnet @@ -0,0 +1,1467 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.elasticsearch', name: 'elasticsearch' }, + '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alias pattern' } }, + withAlias(value): { + alias: value, + }, + '#withBucketAggs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of bucket aggregations' } }, + withBucketAggs(value): { + bucketAggs: + (if std.isArray(value) + then value + else [value]), + }, + '#withBucketAggsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of bucket aggregations' } }, + withBucketAggsMixin(value): { + bucketAggs+: + (if std.isArray(value) + then value + else [value]), + }, + bucketAggs+: + { + DateHistogram+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInterval(value): { + settings+: { + interval: value, + }, + }, + '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMinDocCount(value): { + settings+: { + min_doc_count: value, + }, + }, + '#withOffset': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withOffset(value): { + settings+: { + offset: value, + }, + }, + '#withTimeZone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTimeZone(value): { + settings+: { + timeZone: value, + }, + }, + '#withTrimEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withTrimEdges(value): { + settings+: { + trimEdges: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'date_histogram', + }, + }, + Histogram+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInterval(value): { + settings+: { + interval: value, + }, + }, + '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMinDocCount(value): { + settings+: { + min_doc_count: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'histogram', + }, + }, + Terms+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMinDocCount(value): { + settings+: { + min_doc_count: value, + }, + }, + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMissing(value): { + settings+: { + missing: value, + }, + }, + '#withOrder': { 'function': { args: [{ default: null, enums: ['desc', 'asc'], name: 'value', type: ['string'] }], help: '' } }, + withOrder(value): { + settings+: { + order: value, + }, + }, + '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withOrderBy(value): { + settings+: { + orderBy: value, + }, + }, + '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSize(value): { + settings+: { + size: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'terms', + }, + }, + Filters+: + { + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withFilters(value): { + settings+: { + filters: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withFiltersMixin(value): { + settings+: { + filters+: + (if std.isArray(value) + then value + else [value]), + }, + }, + filters+: + { + '#': { help: '', name: 'filters' }, + '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLabel(value): { + label: value, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withQuery(value): { + query: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'filters', + }, + }, + GeoHashGrid+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withPrecision': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPrecision(value): { + settings+: { + precision: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'geohash_grid', + }, + }, + Nested+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'nested', + }, + }, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of metric aggregations' } }, + withMetrics(value): { + metrics: + (if std.isArray(value) + then value + else [value]), + }, + '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of metric aggregations' } }, + withMetricsMixin(value): { + metrics+: + (if std.isArray(value) + then value + else [value]), + }, + metrics+: + { + Count+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'count', + }, + }, + PipelineMetricAggregation+: + { + MovingAverage+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'moving_avg', + }, + }, + Derivative+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withUnit(value): { + settings+: { + unit: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'derivative', + }, + }, + CumulativeSum+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFormat(value): { + settings+: { + format: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'cumulative_sum', + }, + }, + BucketScript+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPipelineVariables(value): { + pipelineVariables: + (if std.isArray(value) + then value + else [value]), + }, + '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPipelineVariablesMixin(value): { + pipelineVariables+: + (if std.isArray(value) + then value + else [value]), + }, + pipelineVariables+: + { + '#': { help: '', name: 'pipelineVariables' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScript(value): { + settings+: { + script: value, + }, + }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScriptMixin(value): { + settings+: { + script+: value, + }, + }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInline(value): { + settings+: { + script+: { + inline: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'bucket_script', + }, + }, + }, + MetricAggregationWithSettings+: + { + BucketScript+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPipelineVariables(value): { + pipelineVariables: + (if std.isArray(value) + then value + else [value]), + }, + '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPipelineVariablesMixin(value): { + pipelineVariables+: + (if std.isArray(value) + then value + else [value]), + }, + pipelineVariables+: + { + '#': { help: '', name: 'pipelineVariables' }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScript(value): { + settings+: { + script: value, + }, + }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScriptMixin(value): { + settings+: { + script+: value, + }, + }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInline(value): { + settings+: { + script+: { + inline: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'bucket_script', + }, + }, + CumulativeSum+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withFormat(value): { + settings+: { + format: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'cumulative_sum', + }, + }, + Derivative+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withUnit(value): { + settings+: { + unit: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'derivative', + }, + }, + SerialDiff+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withLag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLag(value): { + settings+: { + lag: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'serial_diff', + }, + }, + RawData+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSize(value): { + settings+: { + size: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'raw_data', + }, + }, + RawDocument+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSize(value): { + settings+: { + size: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'raw_document', + }, + }, + UniqueCount+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMissing(value): { + settings+: { + missing: value, + }, + }, + '#withPrecisionThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPrecisionThreshold(value): { + settings+: { + precision_threshold: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'cardinality', + }, + }, + Percentiles+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMissing(value): { + settings+: { + missing: value, + }, + }, + '#withPercents': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPercents(value): { + settings+: { + percents: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withPercentsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPercentsMixin(value): { + settings+: { + percents+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScript(value): { + settings+: { + script: value, + }, + }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScriptMixin(value): { + settings+: { + script+: value, + }, + }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInline(value): { + settings+: { + script+: { + inline: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'percentiles', + }, + }, + ExtendedStats+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withMeta(value): { + meta: value, + }, + '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withMetaMixin(value): { + meta+: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMissing(value): { + settings+: { + missing: value, + }, + }, + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScript(value): { + settings+: { + script: value, + }, + }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScriptMixin(value): { + settings+: { + script+: value, + }, + }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInline(value): { + settings+: { + script+: { + inline: value, + }, + }, + }, + }, + '#withSigma': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withSigma(value): { + settings+: { + sigma: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'extended_stats', + }, + }, + Min+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMissing(value): { + settings+: { + missing: value, + }, + }, + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScript(value): { + settings+: { + script: value, + }, + }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScriptMixin(value): { + settings+: { + script+: value, + }, + }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInline(value): { + settings+: { + script+: { + inline: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'min', + }, + }, + Max+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMissing(value): { + settings+: { + missing: value, + }, + }, + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScript(value): { + settings+: { + script: value, + }, + }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScriptMixin(value): { + settings+: { + script+: value, + }, + }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInline(value): { + settings+: { + script+: { + inline: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'max', + }, + }, + Sum+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMissing(value): { + settings+: { + missing: value, + }, + }, + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScript(value): { + settings+: { + script: value, + }, + }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScriptMixin(value): { + settings+: { + script+: value, + }, + }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInline(value): { + settings+: { + script+: { + inline: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'sum', + }, + }, + Average+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMissing(value): { + settings+: { + missing: value, + }, + }, + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScript(value): { + settings+: { + script: value, + }, + }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScriptMixin(value): { + settings+: { + script+: value, + }, + }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInline(value): { + settings+: { + script+: { + inline: value, + }, + }, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'avg', + }, + }, + MovingAverage+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'moving_avg', + }, + }, + MovingFunction+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPipelineAgg(value): { + pipelineAgg: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScript(value): { + settings+: { + script: value, + }, + }, + '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, + withScriptMixin(value): { + settings+: { + script+: value, + }, + }, + script+: + { + '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withInline(value): { + settings+: { + script+: { + inline: value, + }, + }, + }, + }, + '#withShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withShift(value): { + settings+: { + shift: value, + }, + }, + '#withWindow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withWindow(value): { + settings+: { + window: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'moving_fn', + }, + }, + Logs+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLimit(value): { + settings+: { + limit: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'logs', + }, + }, + Rate+: + { + '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withField(value): { + field: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMode(value): { + settings+: { + mode: value, + }, + }, + '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withUnit(value): { + settings+: { + unit: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'rate', + }, + }, + TopMetrics+: + { + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withHide(value=true): { + hide: value, + }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withId(value): { + id: value, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withMetrics(value): { + settings+: { + metrics: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withMetricsMixin(value): { + settings+: { + metrics+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withOrder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withOrder(value): { + settings+: { + order: value, + }, + }, + '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withOrderBy(value): { + settings+: { + orderBy: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'top_metrics', + }, + }, + }, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Lucene query' } }, + withQuery(value): { + query: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withTimeField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of time field' } }, + withTimeField(value): { + timeField: value, + }, +} ++ (import '../custom/query/elasticsearch.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/expr.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/expr.libsonnet new file mode 100644 index 0000000..a073852 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/expr.libsonnet @@ -0,0 +1,960 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.expr', name: 'expr' }, + TypeMath+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'General math expression' } }, + withExpression(value): { + expression: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { + hide: value, + }, + '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, + withIntervalMs(value): { + intervalMs: value, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, + withMaxDataPoints(value): { + maxDataPoints: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, + withRefId(value): { + refId: value, + }, + '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertions(value): { + resultAssertions: value, + }, + '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertionsMixin(value): { + resultAssertions+: value, + }, + resultAssertions+: + { + '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, + withMaxFrames(value): { + resultAssertions+: { + maxFrames: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, + withType(value): { + resultAssertions+: { + type: value, + }, + }, + '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersion(value): { + resultAssertions+: { + typeVersion: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersionMixin(value): { + resultAssertions+: { + typeVersion+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRange(value): { + timeRange: value, + }, + '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRangeMixin(value): { + timeRange+: value, + }, + timeRange+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, + withFrom(value='now-6h'): { + timeRange+: { + from: value, + }, + }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, + withTo(value='now'): { + timeRange+: { + to: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'math', + }, + }, + TypeReduce+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Reference to single query result' } }, + withExpression(value): { + expression: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { + hide: value, + }, + '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, + withIntervalMs(value): { + intervalMs: value, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, + withMaxDataPoints(value): { + maxDataPoints: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, + withQueryType(value): { + queryType: value, + }, + '#withReducer': { 'function': { args: [{ default: null, enums: ['sum', 'mean', 'min', 'max', 'count', 'last', 'median'], name: 'value', type: ['string'] }], help: 'The reducer\nPossible enum values:\n - `"sum"` \n - `"mean"` \n - `"min"` \n - `"max"` \n - `"count"` \n - `"last"` \n - `"median"` ' } }, + withReducer(value): { + reducer: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, + withRefId(value): { + refId: value, + }, + '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertions(value): { + resultAssertions: value, + }, + '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertionsMixin(value): { + resultAssertions+: value, + }, + resultAssertions+: + { + '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, + withMaxFrames(value): { + resultAssertions+: { + maxFrames: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, + withType(value): { + resultAssertions+: { + type: value, + }, + }, + '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersion(value): { + resultAssertions+: { + typeVersion: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersionMixin(value): { + resultAssertions+: { + typeVersion+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Reducer Options' } }, + withSettings(value): { + settings: value, + }, + '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Reducer Options' } }, + withSettingsMixin(value): { + settings+: value, + }, + settings+: + { + '#withMode': { 'function': { args: [{ default: null, enums: ['dropNN', 'replaceNN'], name: 'value', type: ['string'] }], help: 'Non-number reduce behavior\nPossible enum values:\n - `"dropNN"` Drop non-numbers\n - `"replaceNN"` Replace non-numbers' } }, + withMode(value): { + settings+: { + mode: value, + }, + }, + '#withReplaceWithValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Only valid when mode is replace' } }, + withReplaceWithValue(value): { + settings+: { + replaceWithValue: value, + }, + }, + }, + '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRange(value): { + timeRange: value, + }, + '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRangeMixin(value): { + timeRange+: value, + }, + timeRange+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, + withFrom(value='now-6h'): { + timeRange+: { + from: value, + }, + }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, + withTo(value='now'): { + timeRange+: { + to: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'reduce', + }, + }, + TypeResample+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withDownsampler': { 'function': { args: [{ default: null, enums: ['sum', 'mean', 'min', 'max', 'count', 'last', 'median'], name: 'value', type: ['string'] }], help: 'The downsample function\nPossible enum values:\n - `"sum"` \n - `"mean"` \n - `"min"` \n - `"max"` \n - `"count"` \n - `"last"` \n - `"median"` ' } }, + withDownsampler(value): { + downsampler: value, + }, + '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The math expression' } }, + withExpression(value): { + expression: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { + hide: value, + }, + '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, + withIntervalMs(value): { + intervalMs: value, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, + withMaxDataPoints(value): { + maxDataPoints: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, + withRefId(value): { + refId: value, + }, + '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertions(value): { + resultAssertions: value, + }, + '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertionsMixin(value): { + resultAssertions+: value, + }, + resultAssertions+: + { + '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, + withMaxFrames(value): { + resultAssertions+: { + maxFrames: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, + withType(value): { + resultAssertions+: { + type: value, + }, + }, + '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersion(value): { + resultAssertions+: { + typeVersion: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersionMixin(value): { + resultAssertions+: { + typeVersion+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRange(value): { + timeRange: value, + }, + '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRangeMixin(value): { + timeRange+: value, + }, + timeRange+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, + withFrom(value='now-6h'): { + timeRange+: { + from: value, + }, + }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, + withTo(value='now'): { + timeRange+: { + to: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'resample', + }, + '#withUpsampler': { 'function': { args: [{ default: null, enums: ['pad', 'backfilling', 'fillna'], name: 'value', type: ['string'] }], help: 'The upsample function\nPossible enum values:\n - `"pad"` Use the last seen value\n - `"backfilling"` backfill\n - `"fillna"` Do not fill values (nill)' } }, + withUpsampler(value): { + upsampler: value, + }, + '#withWindow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The time duration' } }, + withWindow(value): { + window: value, + }, + }, + TypeClassicConditions+: + { + '#withConditions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withConditions(value): { + conditions: + (if std.isArray(value) + then value + else [value]), + }, + '#withConditionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withConditionsMixin(value): { + conditions+: + (if std.isArray(value) + then value + else [value]), + }, + conditions+: + { + '#': { help: '', name: 'conditions' }, + '#withEvaluator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withEvaluator(value): { + evaluator: value, + }, + '#withEvaluatorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withEvaluatorMixin(value): { + evaluator+: value, + }, + evaluator+: + { + '#withParams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParams(value): { + evaluator+: { + params: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withParamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParamsMixin(value): { + evaluator+: { + params+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'e.g. "gt"' } }, + withType(value): { + evaluator+: { + type: value, + }, + }, + }, + '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOperator(value): { + operator: value, + }, + '#withOperatorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withOperatorMixin(value): { + operator+: value, + }, + operator+: + { + '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or', 'logic-or'], name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + operator+: { + type: value, + }, + }, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withQuery(value): { + query: value, + }, + '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withQueryMixin(value): { + query+: value, + }, + query+: + { + '#withParams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParams(value): { + query+: { + params: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withParamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParamsMixin(value): { + query+: { + params+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withReducer(value): { + reducer: value, + }, + '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withReducerMixin(value): { + reducer+: value, + }, + reducer+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + reducer+: { + type: value, + }, + }, + }, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { + hide: value, + }, + '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, + withIntervalMs(value): { + intervalMs: value, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, + withMaxDataPoints(value): { + maxDataPoints: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, + withRefId(value): { + refId: value, + }, + '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertions(value): { + resultAssertions: value, + }, + '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertionsMixin(value): { + resultAssertions+: value, + }, + resultAssertions+: + { + '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, + withMaxFrames(value): { + resultAssertions+: { + maxFrames: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, + withType(value): { + resultAssertions+: { + type: value, + }, + }, + '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersion(value): { + resultAssertions+: { + typeVersion: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersionMixin(value): { + resultAssertions+: { + typeVersion+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRange(value): { + timeRange: value, + }, + '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRangeMixin(value): { + timeRange+: value, + }, + timeRange+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, + withFrom(value='now-6h'): { + timeRange+: { + from: value, + }, + }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, + withTo(value='now'): { + timeRange+: { + to: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'classic_conditions', + }, + }, + TypeThreshold+: + { + '#withConditions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Threshold Conditions' } }, + withConditions(value): { + conditions: + (if std.isArray(value) + then value + else [value]), + }, + '#withConditionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Threshold Conditions' } }, + withConditionsMixin(value): { + conditions+: + (if std.isArray(value) + then value + else [value]), + }, + conditions+: + { + '#': { help: '', name: 'conditions' }, + '#withEvaluator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withEvaluator(value): { + evaluator: value, + }, + '#withEvaluatorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withEvaluatorMixin(value): { + evaluator+: value, + }, + evaluator+: + { + '#withParams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParams(value): { + evaluator+: { + params: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withParamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParamsMixin(value): { + evaluator+: { + params+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['gt', 'lt', 'within_range', 'outside_range'], name: 'value', type: ['string'] }], help: 'e.g. "gt"' } }, + withType(value): { + evaluator+: { + type: value, + }, + }, + }, + '#withLoadedDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLoadedDimensions(value): { + loadedDimensions: value, + }, + '#withLoadedDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withLoadedDimensionsMixin(value): { + loadedDimensions+: value, + }, + '#withUnloadEvaluator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUnloadEvaluator(value): { + unloadEvaluator: value, + }, + '#withUnloadEvaluatorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUnloadEvaluatorMixin(value): { + unloadEvaluator+: value, + }, + unloadEvaluator+: + { + '#withParams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParams(value): { + unloadEvaluator+: { + params: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withParamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withParamsMixin(value): { + unloadEvaluator+: { + params+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['gt', 'lt', 'within_range', 'outside_range'], name: 'value', type: ['string'] }], help: 'e.g. "gt"' } }, + withType(value): { + unloadEvaluator+: { + type: value, + }, + }, + }, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Reference to single query result' } }, + withExpression(value): { + expression: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { + hide: value, + }, + '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, + withIntervalMs(value): { + intervalMs: value, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, + withMaxDataPoints(value): { + maxDataPoints: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, + withRefId(value): { + refId: value, + }, + '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertions(value): { + resultAssertions: value, + }, + '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertionsMixin(value): { + resultAssertions+: value, + }, + resultAssertions+: + { + '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, + withMaxFrames(value): { + resultAssertions+: { + maxFrames: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, + withType(value): { + resultAssertions+: { + type: value, + }, + }, + '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersion(value): { + resultAssertions+: { + typeVersion: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersionMixin(value): { + resultAssertions+: { + typeVersion+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRange(value): { + timeRange: value, + }, + '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRangeMixin(value): { + timeRange+: value, + }, + timeRange+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, + withFrom(value='now-6h'): { + timeRange+: { + from: value, + }, + }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, + withTo(value='now'): { + timeRange+: { + to: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'threshold', + }, + }, + TypeSql+: + { + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withExpression(value): { + expression: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { + hide: value, + }, + '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, + withIntervalMs(value): { + intervalMs: value, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, + withMaxDataPoints(value): { + maxDataPoints: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, + withRefId(value): { + refId: value, + }, + '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertions(value): { + resultAssertions: value, + }, + '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertionsMixin(value): { + resultAssertions+: value, + }, + resultAssertions+: + { + '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, + withMaxFrames(value): { + resultAssertions+: { + maxFrames: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, + withType(value): { + resultAssertions+: { + type: value, + }, + }, + '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersion(value): { + resultAssertions+: { + typeVersion: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersionMixin(value): { + resultAssertions+: { + typeVersion+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRange(value): { + timeRange: value, + }, + '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRangeMixin(value): { + timeRange+: value, + }, + timeRange+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, + withFrom(value='now-6h'): { + timeRange+: { + from: value, + }, + }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, + withTo(value='now'): { + timeRange+: { + to: value, + }, + }, + }, + '#withType': { 'function': { args: [], help: '' } }, + withType(): { + type: 'sql', + }, + }, +} ++ (import '../custom/query/expr.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/googleCloudMonitoring.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/googleCloudMonitoring.libsonnet new file mode 100644 index 0000000..6135c5b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/googleCloudMonitoring.libsonnet @@ -0,0 +1,308 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.googleCloudMonitoring', name: 'googleCloudMonitoring' }, + '#withAliasBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail.' } }, + withAliasBy(value): { + aliasBy: value, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Time interval in milliseconds.' } }, + withIntervalMs(value): { + intervalMs: value, + }, + '#withPromQLQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'PromQL sub-query properties.' } }, + withPromQLQuery(value): { + promQLQuery: value, + }, + '#withPromQLQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'PromQL sub-query properties.' } }, + withPromQLQueryMixin(value): { + promQLQuery+: value, + }, + promQLQuery+: + { + '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'PromQL expression/query to be executed.' } }, + withExpr(value): { + promQLQuery+: { + expr: value, + }, + }, + '#withProjectName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'GCP project to execute the query against.' } }, + withProjectName(value): { + promQLQuery+: { + projectName: value, + }, + }, + '#withStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'PromQL min step' } }, + withStep(value): { + promQLQuery+: { + step: value, + }, + }, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withSloQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'SLO sub-query properties.' } }, + withSloQuery(value): { + sloQuery: value, + }, + '#withSloQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'SLO sub-query properties.' } }, + withSloQueryMixin(value): { + sloQuery+: value, + }, + sloQuery+: + { + '#withAlignmentPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.' } }, + withAlignmentPeriod(value): { + sloQuery+: { + alignmentPeriod: value, + }, + }, + '#withGoal': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'SLO goal value.' } }, + withGoal(value): { + sloQuery+: { + goal: value, + }, + }, + '#withLookbackPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific lookback period for the SLO.' } }, + withLookbackPeriod(value): { + sloQuery+: { + lookbackPeriod: value, + }, + }, + '#withPerSeriesAligner': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alignment function to be used. Defaults to ALIGN_MEAN.' } }, + withPerSeriesAligner(value): { + sloQuery+: { + perSeriesAligner: value, + }, + }, + '#withProjectName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'GCP project to execute the query against.' } }, + withProjectName(value): { + sloQuery+: { + projectName: value, + }, + }, + '#withSelectorName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'SLO selector.' } }, + withSelectorName(value): { + sloQuery+: { + selectorName: value, + }, + }, + '#withServiceId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ID for the service the SLO is in.' } }, + withServiceId(value): { + sloQuery+: { + serviceId: value, + }, + }, + '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name for the service the SLO is in.' } }, + withServiceName(value): { + sloQuery+: { + serviceName: value, + }, + }, + '#withSloId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ID for the SLO.' } }, + withSloId(value): { + sloQuery+: { + sloId: value, + }, + }, + '#withSloName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the SLO.' } }, + withSloName(value): { + sloQuery+: { + sloName: value, + }, + }, + }, + '#withTimeSeriesList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time Series List sub-query properties.' } }, + withTimeSeriesList(value): { + timeSeriesList: value, + }, + '#withTimeSeriesListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time Series List sub-query properties.' } }, + withTimeSeriesListMixin(value): { + timeSeriesList+: value, + }, + timeSeriesList+: + { + '#withAlignmentPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.' } }, + withAlignmentPeriod(value): { + timeSeriesList+: { + alignmentPeriod: value, + }, + }, + '#withCrossSeriesReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.' } }, + withCrossSeriesReducer(value): { + timeSeriesList+: { + crossSeriesReducer: value, + }, + }, + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of filters to query data by. Labels that can be filtered on are defined by the metric.' } }, + withFilters(value): { + timeSeriesList+: { + filters: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of filters to query data by. Labels that can be filtered on are defined by the metric.' } }, + withFiltersMixin(value): { + timeSeriesList+: { + filters+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withGroupBys': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of labels to group data by.' } }, + withGroupBys(value): { + timeSeriesList+: { + groupBys: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withGroupBysMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of labels to group data by.' } }, + withGroupBysMixin(value): { + timeSeriesList+: { + groupBys+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withPerSeriesAligner': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alignment function to be used. Defaults to ALIGN_MEAN.' } }, + withPerSeriesAligner(value): { + timeSeriesList+: { + perSeriesAligner: value, + }, + }, + '#withPreprocessor': { 'function': { args: [{ default: null, enums: ['none', 'rate', 'delta'], name: 'value', type: ['string'] }], help: 'Types of pre-processor available. Defined by the metric.' } }, + withPreprocessor(value): { + timeSeriesList+: { + preprocessor: value, + }, + }, + '#withProjectName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'GCP project to execute the query against.' } }, + withProjectName(value): { + timeSeriesList+: { + projectName: value, + }, + }, + '#withSecondaryAlignmentPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only present if a preprocessor is selected. Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.' } }, + withSecondaryAlignmentPeriod(value): { + timeSeriesList+: { + secondaryAlignmentPeriod: value, + }, + }, + '#withSecondaryCrossSeriesReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only present if a preprocessor is selected. Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.' } }, + withSecondaryCrossSeriesReducer(value): { + timeSeriesList+: { + secondaryCrossSeriesReducer: value, + }, + }, + '#withSecondaryGroupBys': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only present if a preprocessor is selected. Array of labels to group data by.' } }, + withSecondaryGroupBys(value): { + timeSeriesList+: { + secondaryGroupBys: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withSecondaryGroupBysMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only present if a preprocessor is selected. Array of labels to group data by.' } }, + withSecondaryGroupBysMixin(value): { + timeSeriesList+: { + secondaryGroupBys+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withSecondaryPerSeriesAligner': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only present if a preprocessor is selected. Alignment function to be used. Defaults to ALIGN_MEAN.' } }, + withSecondaryPerSeriesAligner(value): { + timeSeriesList+: { + secondaryPerSeriesAligner: value, + }, + }, + '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Annotation text.' } }, + withText(value): { + timeSeriesList+: { + text: value, + }, + }, + '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Annotation title.' } }, + withTitle(value): { + timeSeriesList+: { + title: value, + }, + }, + '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Data view, defaults to FULL.' } }, + withView(value): { + timeSeriesList+: { + view: value, + }, + }, + }, + '#withTimeSeriesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time Series sub-query properties.' } }, + withTimeSeriesQuery(value): { + timeSeriesQuery: value, + }, + '#withTimeSeriesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time Series sub-query properties.' } }, + withTimeSeriesQueryMixin(value): { + timeSeriesQuery+: value, + }, + timeSeriesQuery+: + { + '#withGraphPeriod': { 'function': { args: [{ default: 'disabled', enums: null, name: 'value', type: ['string'] }], help: "To disable the graphPeriod, it should explictly be set to 'disabled'." } }, + withGraphPeriod(value='disabled'): { + timeSeriesQuery+: { + graphPeriod: value, + }, + }, + '#withProjectName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'GCP project to execute the query against.' } }, + withProjectName(value): { + timeSeriesQuery+: { + projectName: value, + }, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'MQL query to be executed.' } }, + withQuery(value): { + timeSeriesQuery+: { + query: value, + }, + }, + }, +} ++ (import '../custom/query/googleCloudMonitoring.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/grafanaPyroscope.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/grafanaPyroscope.libsonnet new file mode 100644 index 0000000..70c949d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/grafanaPyroscope.libsonnet @@ -0,0 +1,80 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.grafanaPyroscope', name: 'grafanaPyroscope' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Allows to group the results.' } }, + withGroupBy(value): { + groupBy: + (if std.isArray(value) + then value + else [value]), + }, + '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Allows to group the results.' } }, + withGroupByMixin(value): { + groupBy+: + (if std.isArray(value) + then value + else [value]), + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: ['string'] }], help: 'Specifies the query label selectors.' } }, + withLabelSelector(value='{}'): { + labelSelector: value, + }, + '#withMaxNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Sets the maximum number of nodes in the flamegraph.' } }, + withMaxNodes(value): { + maxNodes: value, + }, + '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specifies the type of profile to query.' } }, + withProfileTypeId(value): { + profileTypeId: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withSpanSelector': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Specifies the query span selectors.' } }, + withSpanSelector(value): { + spanSelector: + (if std.isArray(value) + then value + else [value]), + }, + '#withSpanSelectorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Specifies the query span selectors.' } }, + withSpanSelectorMixin(value): { + spanSelector+: + (if std.isArray(value) + then value + else [value]), + }, +} ++ (import '../custom/query/grafanaPyroscope.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/loki.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/loki.libsonnet new file mode 100644 index 0000000..60f46b0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/loki.libsonnet @@ -0,0 +1,72 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.loki', name: 'loki' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: ['string'] }], help: '' } }, + withEditorMode(value): { + editorMode: value, + }, + '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The LogQL query.' } }, + withExpr(value): { + expr: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated, now use queryType.' } }, + withInstant(value=true): { + instant: value, + }, + '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Used to override the name of the series.' } }, + withLegendFormat(value): { + legendFormat: value, + }, + '#withMaxLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Used to limit the number of log rows returned.' } }, + withMaxLines(value): { + maxLines: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated, now use queryType.' } }, + withRange(value=true): { + range: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withResolution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '@deprecated, now use step.' } }, + withResolution(value): { + resolution: value, + }, + '#withStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Used to set step value for range queries.' } }, + withStep(value): { + step: value, + }, +} ++ (import '../custom/query/loki.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/parca.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/parca.libsonnet new file mode 100644 index 0000000..c2939fd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/parca.libsonnet @@ -0,0 +1,48 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.parca', name: 'parca' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: ['string'] }], help: 'Specifies the query label selectors.' } }, + withLabelSelector(value='{}'): { + labelSelector: value, + }, + '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specifies the type of profile to query.' } }, + withProfileTypeId(value): { + profileTypeId: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, +} ++ (import '../custom/query/parca.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/prometheus.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/prometheus.libsonnet new file mode 100644 index 0000000..7ebcdf8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/prometheus.libsonnet @@ -0,0 +1,76 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.prometheus', name: 'prometheus' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: ['string'] }], help: 'Specifies which editor is being used to prepare the query. It can be "code" or "builder"' } }, + withEditorMode(value): { + editorMode: value, + }, + '#withExemplar': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Execute an additional query to identify interesting raw samples relevant for the given expr' } }, + withExemplar(value=true): { + exemplar: value, + }, + '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The actual expression/query that will be evaluated by Prometheus' } }, + withExpr(value): { + expr: value, + }, + '#withFormat': { 'function': { args: [{ default: null, enums: ['time_series', 'table', 'heatmap'], name: 'value', type: ['string'] }], help: 'Query format to determine how to display data points in panel. It can be "time_series", "table", "heatmap"' } }, + withFormat(value): { + format: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Returns only the latest value that Prometheus has scraped for the requested time series' } }, + withInstant(value=true): { + instant: value, + }, + '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An additional lower limit for the step parameter of the Prometheus query and for the\n`$__interval` and `$__rate_interval` variables.' } }, + withInterval(value): { + interval: value, + }, + '#withIntervalFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '@deprecated Used to specify how many times to divide max data points by. We use max data points under query options\nSee https://github.com/grafana/grafana/issues/48081' } }, + withIntervalFactor(value): { + intervalFactor: value, + }, + '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname' } }, + withLegendFormat(value): { + legendFormat: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series' } }, + withRange(value=true): { + range: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, +} ++ (import '../custom/query/prometheus.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/tempo.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/tempo.libsonnet new file mode 100644 index 0000000..42cff36 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/tempo.libsonnet @@ -0,0 +1,184 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.tempo', name: 'tempo' }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withFilters(value): { + filters: + (if std.isArray(value) + then value + else [value]), + }, + '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withFiltersMixin(value): { + filters+: + (if std.isArray(value) + then value + else [value]), + }, + filters+: + { + '#': { help: '', name: 'filters' }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, + withId(value): { + id: value, + }, + '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, + withOperator(value): { + operator: value, + }, + '#withScope': { 'function': { args: [{ default: null, enums: ['intrinsic', 'unscoped', 'resource', 'span'], name: 'value', type: ['string'] }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, + withScope(value): { + scope: value, + }, + '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, + withTag(value): { + tag: value, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, + withValue(value): { + value: value, + }, + '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, + withValueMixin(value): { + value+: value, + }, + '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, + withValueType(value): { + valueType: value, + }, + }, + '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters that are used to query the metrics summary' } }, + withGroupBy(value): { + groupBy: + (if std.isArray(value) + then value + else [value]), + }, + '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters that are used to query the metrics summary' } }, + withGroupByMixin(value): { + groupBy+: + (if std.isArray(value) + then value + else [value]), + }, + groupBy+: + { + '#': { help: '', name: 'groupBy' }, + '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, + withId(value): { + id: value, + }, + '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, + withOperator(value): { + operator: value, + }, + '#withScope': { 'function': { args: [{ default: null, enums: ['intrinsic', 'unscoped', 'resource', 'span'], name: 'value', type: ['string'] }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, + withScope(value): { + scope: value, + }, + '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, + withTag(value): { + tag: value, + }, + '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, + withValue(value): { + value: value, + }, + '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, + withValueMixin(value): { + value+: value, + }, + '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, + withValueType(value): { + valueType: value, + }, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, + withHide(value=true): { + hide: value, + }, + '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Defines the maximum number of traces that are returned from Tempo' } }, + withLimit(value): { + limit: value, + }, + '#withMaxDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, + withMaxDuration(value): { + maxDuration: value, + }, + '#withMinDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, + withMinDuration(value): { + minDuration: value, + }, + '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TraceQL query or trace ID' } }, + withQuery(value): { + query: value, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, + withQueryType(value): { + queryType: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, + withRefId(value): { + refId: value, + }, + '#withSearch': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true' } }, + withSearch(value): { + search: value, + }, + '#withServiceMapIncludeNamespace': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Use service.namespace in addition to service.name to uniquely identify a service.' } }, + withServiceMapIncludeNamespace(value=true): { + serviceMapIncludeNamespace: value, + }, + '#withServiceMapQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally.' } }, + withServiceMapQuery(value): { + serviceMapQuery: value, + }, + '#withServiceMapQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally.' } }, + withServiceMapQueryMixin(value): { + serviceMapQuery+: value, + }, + '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Query traces by service name' } }, + withServiceName(value): { + serviceName: value, + }, + '#withSpanName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Query traces by span name' } }, + withSpanName(value): { + spanName: value, + }, + '#withSpss': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Defines the maximum number of spans per spanset that are returned from Tempo' } }, + withSpss(value): { + spss: value, + }, + '#withStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'For metric queries, the step size to use' } }, + withStep(value): { + step: value, + }, + '#withTableType': { 'function': { args: [{ default: null, enums: ['traces', 'spans', 'raw'], name: 'value', type: ['string'] }], help: 'The type of the table that is used to display the search results' } }, + withTableType(value): { + tableType: value, + }, +} ++ (import '../custom/query/tempo.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/testData.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/testData.libsonnet new file mode 100644 index 0000000..db81210 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/query/testData.libsonnet @@ -0,0 +1,494 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.query.testData', name: 'testData' }, + '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withAlias(value): { + alias: value, + }, + '#withChannel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Used for live query' } }, + withChannel(value): { + channel: value, + }, + '#withCsvContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withCsvContent(value): { + csvContent: value, + }, + '#withCsvFileName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withCsvFileName(value): { + csvFileName: value, + }, + '#withCsvWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCsvWave(value): { + csvWave: + (if std.isArray(value) + then value + else [value]), + }, + '#withCsvWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withCsvWaveMixin(value): { + csvWave+: + (if std.isArray(value) + then value + else [value]), + }, + csvWave+: + { + '#': { help: '', name: 'csvWave' }, + '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLabels(value): { + labels: value, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, + '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withTimeStep(value): { + timeStep: value, + }, + '#withValuesCSV': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withValuesCSV(value): { + valuesCSV: value, + }, + }, + '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasource(value): { + datasource: value, + }, + '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, + withDatasourceMixin(value): { + datasource+: value, + }, + datasource+: + { + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, + withType(value): { + datasource+: { + type: value, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, + withUid(value): { + datasource+: { + uid: value, + }, + }, + }, + '#withDropPercent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Drop percentage (the chance we will lose a point 0-100)' } }, + withDropPercent(value): { + dropPercent: value, + }, + '#withErrorType': { 'function': { args: [{ default: null, enums: ['frontend_exception', 'frontend_observable', 'server_panic'], name: 'value', type: ['string'] }], help: 'Possible enum values:\n - `"frontend_exception"` \n - `"frontend_observable"` \n - `"server_panic"` ' } }, + withErrorType(value): { + errorType: value, + }, + '#withFlamegraphDiff': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withFlamegraphDiff(value=true): { + flamegraphDiff: value, + }, + '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, + withHide(value=true): { + hide: value, + }, + '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, + withIntervalMs(value): { + intervalMs: value, + }, + '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withLabels(value): { + labels: value, + }, + '#withLevelColumn': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLevelColumn(value=true): { + levelColumn: value, + }, + '#withLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withLines(value): { + lines: value, + }, + '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMax(value): { + max: value, + }, + '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, + withMaxDataPoints(value): { + maxDataPoints: value, + }, + '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withMin(value): { + min: value, + }, + '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withNodes(value): { + nodes: value, + }, + '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withNodesMixin(value): { + nodes+: value, + }, + nodes+: + { + '#withCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withCount(value): { + nodes+: { + count: value, + }, + }, + '#withSeed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withSeed(value): { + nodes+: { + seed: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['random', 'random edges', 'response_medium', 'response_small', 'feature_showcase'], name: 'value', type: ['string'] }], help: 'Possible enum values:\n - `"random"` \n - `"random edges"` \n - `"response_medium"` \n - `"response_small"` \n - `"feature_showcase"` ' } }, + withType(value): { + nodes+: { + type: value, + }, + }, + }, + '#withNoise': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withNoise(value): { + noise: value, + }, + '#withPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPoints(value): { + points: + (if std.isArray(value) + then value + else [value]), + }, + '#withPointsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withPointsMixin(value): { + points+: + (if std.isArray(value) + then value + else [value]), + }, + '#withPulseWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPulseWave(value): { + pulseWave: value, + }, + '#withPulseWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withPulseWaveMixin(value): { + pulseWave+: value, + }, + pulseWave+: + { + '#withOffCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withOffCount(value): { + pulseWave+: { + offCount: value, + }, + }, + '#withOffValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withOffValue(value): { + pulseWave+: { + offValue: value, + }, + }, + '#withOnCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withOnCount(value): { + pulseWave+: { + onCount: value, + }, + }, + '#withOnValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withOnValue(value): { + pulseWave+: { + onValue: value, + }, + }, + '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withTimeStep(value): { + pulseWave+: { + timeStep: value, + }, + }, + }, + '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, + withQueryType(value): { + queryType: value, + }, + '#withRawFrameContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withRawFrameContent(value): { + rawFrameContent: value, + }, + '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, + withRefId(value): { + refId: value, + }, + '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertions(value): { + resultAssertions: value, + }, + '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, + withResultAssertionsMixin(value): { + resultAssertions+: value, + }, + resultAssertions+: + { + '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, + withMaxFrames(value): { + resultAssertions+: { + maxFrames: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, + withType(value): { + resultAssertions+: { + type: value, + }, + }, + '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersion(value): { + resultAssertions+: { + typeVersion: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, + withTypeVersionMixin(value): { + resultAssertions+: { + typeVersion+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withScenarioId': { 'function': { args: [{ default: null, enums: ['annotations', 'arrow', 'csv_content', 'csv_file', 'csv_metric_values', 'datapoints_outside_range', 'exponential_heatmap_bucket_data', 'flame_graph', 'grafana_api', 'linear_heatmap_bucket_data', 'live', 'logs', 'manual_entry', 'no_data_points', 'node_graph', 'predictable_csv_wave', 'predictable_pulse', 'random_walk', 'random_walk_table', 'random_walk_with_error', 'raw_frame', 'server_error_500', 'simulation', 'slow_query', 'streaming_client', 'table_static', 'trace', 'usa', 'variables-query'], name: 'value', type: ['string'] }], help: 'Possible enum values:\n - `"annotations"` \n - `"arrow"` \n - `"csv_content"` \n - `"csv_file"` \n - `"csv_metric_values"` \n - `"datapoints_outside_range"` \n - `"exponential_heatmap_bucket_data"` \n - `"flame_graph"` \n - `"grafana_api"` \n - `"linear_heatmap_bucket_data"` \n - `"live"` \n - `"logs"` \n - `"manual_entry"` \n - `"no_data_points"` \n - `"node_graph"` \n - `"predictable_csv_wave"` \n - `"predictable_pulse"` \n - `"random_walk"` \n - `"random_walk_table"` \n - `"random_walk_with_error"` \n - `"raw_frame"` \n - `"server_error_500"` \n - `"simulation"` \n - `"slow_query"` \n - `"streaming_client"` \n - `"table_static"` \n - `"trace"` \n - `"usa"` \n - `"variables-query"` ' } }, + withScenarioId(value): { + scenarioId: value, + }, + '#withSeriesCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withSeriesCount(value): { + seriesCount: value, + }, + '#withSim': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSim(value): { + sim: value, + }, + '#withSimMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withSimMixin(value): { + sim+: value, + }, + sim+: + { + '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withConfig(value): { + sim+: { + config: value, + }, + }, + '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withConfigMixin(value): { + sim+: { + config+: value, + }, + }, + '#withKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withKey(value): { + sim+: { + key: value, + }, + }, + '#withKeyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withKeyMixin(value): { + sim+: { + key+: value, + }, + }, + key+: + { + '#withTick': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withTick(value): { + sim+: { + key+: { + tick: value, + }, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withType(value): { + sim+: { + key+: { + type: value, + }, + }, + }, + '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withUid(value): { + sim+: { + key+: { + uid: value, + }, + }, + }, + }, + '#withLast': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withLast(value=true): { + sim+: { + last: value, + }, + }, + '#withStream': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withStream(value=true): { + sim+: { + stream: value, + }, + }, + }, + '#withSpanCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withSpanCount(value): { + spanCount: value, + }, + '#withSpread': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withSpread(value): { + spread: value, + }, + '#withStartValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withStartValue(value): { + startValue: value, + }, + '#withStream': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withStream(value): { + stream: value, + }, + '#withStreamMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withStreamMixin(value): { + stream+: value, + }, + stream+: + { + '#withBands': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, + withBands(value): { + stream+: { + bands: value, + }, + }, + '#withNoise': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withNoise(value): { + stream+: { + noise: value, + }, + }, + '#withSpeed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withSpeed(value): { + stream+: { + speed: value, + }, + }, + '#withSpread': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, + withSpread(value): { + stream+: { + spread: value, + }, + }, + '#withType': { 'function': { args: [{ default: null, enums: ['fetch', 'logs', 'signal', 'traces'], name: 'value', type: ['string'] }], help: 'Possible enum values:\n - `"fetch"` \n - `"logs"` \n - `"signal"` \n - `"traces"` ' } }, + withType(value): { + stream+: { + type: value, + }, + }, + '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withUrl(value): { + stream+: { + url: value, + }, + }, + }, + '#withStringInput': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'common parameter used by many query types' } }, + withStringInput(value): { + stringInput: value, + }, + '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRange(value): { + timeRange: value, + }, + '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, + withTimeRangeMixin(value): { + timeRange+: value, + }, + timeRange+: + { + '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, + withFrom(value='now-6h'): { + timeRange+: { + from: value, + }, + }, + '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, + withTo(value='now'): { + timeRange+: { + to: value, + }, + }, + }, + '#withUsa': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUsa(value): { + usa: value, + }, + '#withUsaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withUsaMixin(value): { + usa+: value, + }, + usa+: + { + '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withFields(value): { + usa+: { + fields: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withFieldsMixin(value): { + usa+: { + fields+: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withMode(value): { + usa+: { + mode: value, + }, + }, + '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withPeriod(value): { + usa+: { + period: value, + }, + }, + '#withStates': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withStates(value): { + usa+: { + states: + (if std.isArray(value) + then value + else [value]), + }, + }, + '#withStatesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, + withStatesMixin(value): { + usa+: { + states+: + (if std.isArray(value) + then value + else [value]), + }, + }, + }, + '#withWithNil': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, + withWithNil(value=true): { + withNil: value, + }, +} ++ (import '../custom/query/testData.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/role.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/role.libsonnet new file mode 100644 index 0000000..552f5a3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/role.libsonnet @@ -0,0 +1,24 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.role', name: 'role' }, + '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Role description' } }, + withDescription(value): { + description: value, + }, + '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Optional display' } }, + withDisplayName(value): { + displayName: value, + }, + '#withGroupName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the team.' } }, + withGroupName(value): { + groupName: value, + }, + '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Do not show this role' } }, + withHidden(value=true): { + hidden: value, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The role identifier `managed:builtins:editor:permissions`' } }, + withName(value): { + name: value, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/rolebinding.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/rolebinding.libsonnet new file mode 100644 index 0000000..a0aab6c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/rolebinding.libsonnet @@ -0,0 +1,92 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.rolebinding', name: 'rolebinding' }, + '#withRole': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: 'The role we are discussing' } }, + withRole(value): { + role: value, + }, + '#withRoleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: 'The role we are discussing' } }, + withRoleMixin(value): { + role+: value, + }, + role+: + { + '#withBuiltinRoleRef': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withBuiltinRoleRef(value): { + role+: { + BuiltinRoleRef: value, + }, + }, + '#withBuiltinRoleRefMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withBuiltinRoleRefMixin(value): { + role+: { + BuiltinRoleRef+: value, + }, + }, + BuiltinRoleRef+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + role+: { + kind: 'BuiltinRole', + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: ['viewer', 'editor', 'admin'], name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + role+: { + name: value, + }, + }, + }, + '#withCustomRoleRef': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withCustomRoleRef(value): { + role+: { + CustomRoleRef: value, + }, + }, + '#withCustomRoleRefMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, + withCustomRoleRefMixin(value): { + role+: { + CustomRoleRef+: value, + }, + }, + CustomRoleRef+: + { + '#withKind': { 'function': { args: [], help: '' } }, + withKind(): { + role+: { + kind: 'Role', + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + role+: { + name: value, + }, + }, + }, + }, + '#withSubject': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The team or user that has the specified role' } }, + withSubject(value): { + subject: value, + }, + '#withSubjectMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The team or user that has the specified role' } }, + withSubjectMixin(value): { + subject+: value, + }, + subject+: + { + '#withKind': { 'function': { args: [{ default: null, enums: ['Team', 'User'], name: 'value', type: ['string'] }], help: '' } }, + withKind(value): { + subject+: { + kind: value, + }, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The team/user identifier name' } }, + withName(value): { + subject+: { + name: value, + }, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/team.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/team.libsonnet new file mode 100644 index 0000000..561194d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.4.0/team.libsonnet @@ -0,0 +1,12 @@ +// This file is generated, do not manually edit. +{ + '#': { help: 'grafonnet.team', name: 'team' }, + '#withEmail': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withEmail(value): { + email: value, + }, + '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, + withName(value): { + name: value, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/grafana.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/grafana.libsonnet new file mode 100644 index 0000000..9f6c760 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/grafana.libsonnet @@ -0,0 +1,67 @@ +// grafana.libsonnet provides the k-compat layer with grafana-opinionated defaults +(import 'k-compat.libsonnet') ++ { + core+: { + v1+: { + containerPort+:: { + // Force all ports to have names. + new(name, port):: + super.newNamed(name=name, containerPort=port), + + // Shortcut constructor for UDP ports. + newUDP(name, port):: + super.newNamedUDP(name=name, containerPort=port), + }, + + container+:: { + new(name, image):: + super.new(name, image) + + super.withImagePullPolicy('IfNotPresent'), + }, + }, + }, + + local appsExtentions = { + daemonSet+: { + new(name, containers, podLabels={}):: + super.new(name, containers, podLabels={}) + + + // Can't think of a reason we wouldn't want a DaemonSet to run on + // every node. + super.mixin.spec.template.spec.withTolerations([ + $.core.v1.toleration.new() + + $.core.v1.toleration.withOperator('Exists') + + $.core.v1.toleration.withEffect('NoSchedule'), + ]) + + + // We want to specify a minReadySeconds on every deamonset, so we get some + // very basic canarying, for instance, with bad arguments. + super.mixin.spec.withMinReadySeconds(10) + + super.mixin.spec.updateStrategy.withType('RollingUpdate'), + }, + + deployment+: { + new(name, replicas, containers, podLabels={}):: + super.new(name, replicas, containers, podLabels) + + + // We want to specify a minReadySeconds on every deployment, so we get some + // very basic canarying, for instance, with bad arguments. + super.mixin.spec.withMinReadySeconds(10) + + + // We want to add a sensible default for the number of old deployments + // handing around. + super.mixin.spec.withRevisionHistoryLimit(10), + }, + + statefulSet+: { + new(name, replicas, containers, volumeClaims=[], podLabels={}):: + super.new(name, replicas, containers, volumeClaims, podLabels) + + super.mixin.spec.updateStrategy.withType('RollingUpdate'), + }, + }, + + apps+: { + v1beta1+: appsExtentions, + v1+: appsExtentions, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/k-compat.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/k-compat.libsonnet new file mode 100644 index 0000000..389dcab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/k-compat.libsonnet @@ -0,0 +1,22 @@ +// k-compat.libsonnet provides a compatibility layer between k8s-libsonnet and ksonnet-lib. As ksonnet-lib has been +// abandoned, we consider it deprecated. This layer will generate a deprecation warning to those that still use it. +local k = import 'k.libsonnet'; + +k ++ ( + if std.objectHas(k, '__ksonnet') + then + std.trace( + 'Deprecated: ksonnet-lib has been abandoned, please consider using https://github.com/jsonnet-libs/k8s-libsonnet.', + (import 'legacy-types.libsonnet') + + (import 'legacy-custom.libsonnet') + + (import 'legacy-noname.libsonnet')({ + new(name=''):: super.new() + (if name != '' then super.mixin.metadata.withName(name) else {}), + }) + ) + else + (import 'legacy-subtypes.libsonnet') + + (import 'legacy-noname.libsonnet')({ + new(name=''):: super.new(name), + }) +) diff --git a/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/kausal.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/kausal.libsonnet new file mode 100644 index 0000000..6a6f149 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/kausal.libsonnet @@ -0,0 +1,29 @@ +// kausal.libsonnet provides a backwards compatible way as many libraries leverage kausal.libsonnet. +// Ideally util.libsonnet is consumed separately. + +(import 'grafana.libsonnet') ++ { + local this = self, + _config+:: { + enable_rbac: true, + enable_pod_priorities: false, + namespace: error 'Must define a namespace', + }, + + util+:: + (import 'util.libsonnet').withK(this) + + { + rbac(name, rules):: + if $._config.enable_rbac + then super.rbac(name, rules, $._config.namespace) + else {}, + namespacedRBAC(name, rules):: + if $._config.enable_rbac + then super.namespacedRBAC(name, rules, $._config.namespace) + else {}, + podPriority(p): + if $._config.enable_pod_priorities + then super.podPriority(p) + else {}, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-custom.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-custom.libsonnet new file mode 100644 index 0000000..ba39d7a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-custom.libsonnet @@ -0,0 +1,152 @@ +// legacy-custom.libsonnet retrofits k8s-libsonnet functionality into ksonnet-lib +{ + core+: { + v1+: { + configMap+: { + // allow configMap without data + new(name, data={}):: + super.new(name, data), + withData(data):: + // don't add 'data' key if data={} + if (data == {}) then {} + else super.withData(data), + withDataMixin(data):: + // don't add 'data' key if data={} + if (data == {}) then {} + else super.withDataMixin(data), + }, + + volume+:: { + // Make items parameter optional from fromConfigMap + fromConfigMap(name, configMapName, configMapItems=[]):: + { + configMap+: + if configMapItems == [] then { items:: null } + else {}, + } + + super.fromConfigMap(name, configMapName, configMapItems), + + // Shortcut constructor for secret volumes. + fromSecret(name, secretName):: + super.withName(name) + + super.mixin.secret.withSecretName(secretName), + + // Rename emptyDir to claimName + fromPersistentVolumeClaim(name='', claimName=''):: super.fromPersistentVolumeClaim(name=name, emptyDir=claimName), + }, + + volumeMount+:: { + // Override new, such that it doesn't always set readOnly: false. + new(name, mountPath, readOnly=false):: + {} + self.withName(name) + self.withMountPath(mountPath) + + if readOnly + then self.withReadOnly(readOnly) + else {}, + }, + + containerPort+:: { + // Shortcut constructor for UDP ports. + newNamedUDP(name, containerPort):: + super.newNamed(name=name, containerPort=containerPort) + + super.withProtocol('UDP'), + }, + + persistentVolumeClaim+:: { + new(name=''):: + super.new() + + (if name != '' + then super.mixin.metadata.withName(name) + else {}), + }, + + container+:: { + withEnvMixin(es):: + // if an envvar has an empty value ("") we want to remove that property + // because k8s will remove that and then it would always + // show up as a difference. + local removeEmptyValue(obj) = + if std.objectHas(obj, 'value') && std.length(obj.value) == 0 then + { + [k]: obj[k] + for k in std.objectFields(obj) + if k != 'value' + } + else + obj; + super.withEnvMixin([ + removeEmptyValue(envvar) + for envvar in es + ]), + + withEnvMap(es):: + self.withEnvMixin([ + $.core.v1.envVar.new(k, es[k]) + for k in std.objectFields(es) + ]), + }, + }, + }, + + batch+: { + v1beta1+: { + cronJob+: { + new(name='', schedule='', containers=[]):: + super.new() + + super.mixin.spec.jobTemplate.spec.template.spec.withContainers(containers) + + (if name != '' + then + super.mixin.metadata.withName(name) + + super.mixin.spec.jobTemplate.spec.template.metadata.withLabels({ name: name }) + else {}) + + ( + if schedule != '' + then super.mixin.spec.withSchedule(schedule) + else {} + ), + }, + }, + }, + + local appsExtentions = { + daemonSet+: { + new(name, containers, podLabels={}):: + local labels = podLabels { name: name }; + super.new() + + super.mixin.metadata.withName(name) + + super.mixin.spec.template.metadata.withLabels(labels) + + super.mixin.spec.template.spec.withContainers(containers) + + // apps.v1 requires an explicit selector: + super.mixin.spec.selector.withMatchLabels(labels), + }, + deployment+: { + new(name, replicas, containers, podLabels={}):: + local labels = podLabels { name: name }; + super.new(name, replicas, containers, labels) + + + // apps.v1 requires an explicit selector: + super.mixin.spec.selector.withMatchLabels(labels), + }, + statefulSet+: { + new(name, replicas, containers, volumeClaims=[], podLabels={}):: + local labels = podLabels { name: name }; + super.new(name, replicas, containers, volumeClaims, labels) + + + // apps.v1 requires an explicit selector: + super.mixin.spec.selector.withMatchLabels(labels) + + + // remove volumeClaimTemplates if empty + // (otherwise it will create a diff all the time) + ( + if std.length(volumeClaims) > 0 + then super.mixin.spec.withVolumeClaimTemplates(volumeClaims) + else {} + ), + }, + }, + + apps+: { + v1beta1+: appsExtentions, + v1+: appsExtentions, + }, + +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-noname.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-noname.libsonnet new file mode 100644 index 0000000..30b54c0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-noname.libsonnet @@ -0,0 +1,46 @@ +// legacy-noname.libsonnet provides two-way compatibility, in k8s-libsonnet many new() functions have a mandatory name +// argument while they are absent in ksonnet-lib. `noNewEmptyNameMixin` allows us to make the argument optional in +// either situation. +function(noNewEmptyNameMixin) { + core+: { v1+: { + persistentVolumeClaim+: noNewEmptyNameMixin, + } }, + networking+: { + v1beta1+: { + ingress+: noNewEmptyNameMixin, + }, + }, + batch+: { + v1+: { + job+: noNewEmptyNameMixin, + }, + v1beta1+: { + job+: noNewEmptyNameMixin, + }, + }, + local rbacPatch = { + role+: noNewEmptyNameMixin, + clusterRole+: noNewEmptyNameMixin, + roleBinding+: noNewEmptyNameMixin, + clusterRoleBinding+: noNewEmptyNameMixin, + }, + rbac+: { + v1+: rbacPatch, + v1beta1+: rbacPatch, + }, + policy+: { v1beta1+: { + podDisruptionBudget+: noNewEmptyNameMixin, + podSecurityPolicy+: noNewEmptyNameMixin, + } }, + storage+: { v1+: { + storageClass+: noNewEmptyNameMixin, + } }, + + scheduling+: { v1beta1+: { + priorityClass+: noNewEmptyNameMixin, + } }, + admissionregistration+: { v1beta1+: { + mutatingWebhookConfiguration+: noNewEmptyNameMixin, + validatingWebhookConfiguration+: noNewEmptyNameMixin, + } }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-subtypes.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-subtypes.libsonnet new file mode 100644 index 0000000..59cd1b8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-subtypes.libsonnet @@ -0,0 +1,158 @@ +// legacy-subtypes.libsonnet makes first-class entities available as subtypes like in ksonnet-lib. +// It also makes the empty new() functions and camelCased functions available. +// This is largely based on kausal-shim.libsonnet from k8s-libsonnet. +{ + core+: { v1+: { + container+: { + envType: $.core.v1.envVar, + envFromType: $.core.v1.envFromSource, + portsType: $.core.v1.containerPort, + volumeMountsType: $.core.v1.volumeMount, + }, + pod+: { + spec+: { + volumesType: $.core.v1.volume, + }, + }, + service+: { + spec+: { + withClusterIp: self.withClusterIP, + withLoadBalancerIp: self.withLoadBalancerIP, + portsType: $.core.v1.servicePort, + }, + }, + + envFromSource+: { new():: {} }, + nodeSelector+: { new():: {} }, + nodeSelectorTerm+: { new():: {} }, + podAffinityTerm+: { new():: {} }, + preferredSchedulingTerm+: { new():: {} }, + toleration+: { new():: {} }, + localObjectReference+: { new():: {} }, + } }, + + local appsAffinityPatch = { + nodeAffinity+: { + requiredDuringSchedulingIgnoredDuringExecutionType: $.core.v1.nodeSelector { + nodeSelectorTermsType: $.core.v1.nodeSelectorTerm { + matchFieldsType: $.core.v1.nodeSelectorRequirement, + }, + }, + preferredDuringSchedulingIgnoredDuringExecutionType: $.core.v1.preferredSchedulingTerm { + preferenceType: { + matchFieldsType: $.core.v1.nodeSelectorRequirement, + }, + }, + }, + podAntiAffinity+: { + requiredDuringSchedulingIgnoredDuringExecutionType: $.core.v1.podAffinityTerm, + }, + }, + + local appsPatch = { + deployment+: { + spec+: { template+: { spec+: { + volumesType: $.core.v1.volume, + containersType: $.core.v1.container, + tolerationsType: $.core.v1.toleration, + affinity+: appsAffinityPatch, + } } }, + }, + daemonSet+: { + spec+: { template+: { spec+: { + withHostPid:: self.withHostPID, + tolerationsType: $.core.v1.toleration, + affinity+: appsAffinityPatch, + } } }, + }, + statefulSet+: { + spec+: { template+: { spec+: { + volumesType: $.core.v1.volume, + affinity+: appsAffinityPatch, + tolerationsType: $.core.v1.toleration, + imagePullSecretsType: $.core.v1.localObjectReference, + } } }, + }, + }, + + apps+: { + v1+: appsPatch, + v1beta1+: appsPatch, + }, + + batch+: { + local patch = { + mixin+: { spec+: { jobTemplate+: { spec+: { template+: { spec+: { + imagePullSecretsType: $.core.v1.localObjectReference, + } } } } } }, + }, + + v1+: { + job+: patch, + cronJob+: patch, + }, + v1beta1+: { + job+: patch, + cronJob+: patch, + }, + }, + + + local rbacPatch = { + local role = { + rulesType: $.rbac.v1.policyRule, + }, + role+: role, + clusterRole+: role, + + local binding = { + subjectsType: $.rbac.v1.subject, + }, + roleBinding+: binding, + clusterRoleBinding+: binding, + subject+: { new():: {} }, + + policyRule+: { + new():: {}, + withNonResourceUrls: self.withNonResourceURLs, + }, + }, + rbac+: { + v1+: rbacPatch, + // TODO: the v1beta1 RBAC API has been removed in Kubernetes 1.22 and should get removed once 1.22 is the oldest supported version + v1beta1+: rbacPatch, + }, + + policy+: { + v1beta1+: { + idRange+: { new():: {} }, + podSecurityPolicy+: { + mixin+: { spec+: { + runAsUser+: { rangesType: $.policy.v1beta1.idRange }, + withHostIpc: self.withHostIPC, + withHostPid: self.withHostPID, + } }, + }, + }, + }, + + admissionregistration+: { v1beta1+: { + webhook+: { new():: {} }, + ruleWithOperations+: { new():: {} }, + local webhooksType = $.admissionregistration.v1beta1.webhook { + rulesType: $.admissionregistration.v1beta1.ruleWithOperations, + mixin+: { namespaceSelector+: { matchExpressionsType: { + new():: {}, + withKey(key):: { key: key }, + withOperator(operator):: { operator: operator }, + withValues(values):: { values: if std.isArray(values) then values else [values] }, + } } }, + }, + mutatingWebhookConfiguration+: { + webhooksType: webhooksType, + }, + validatingWebhookConfiguration+: { + webhooksType: webhooksType, + }, + } }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-types.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-types.libsonnet new file mode 100644 index 0000000..6118ac5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/legacy-types.libsonnet @@ -0,0 +1,27 @@ +// legacy-types.libsonnet exposes hidden types from ksonnet-lib as first class citizens +// This list is likely to be incomplete. +{ + core+: { + v1+: { + container:: $.apps.v1.deployment.mixin.spec.template.spec.containersType, + containerPort:: $.core.v1.container.portsType, + envVar:: $.core.v1.container.envType, + envFromSource:: $.core.v1.container.envFromType, + servicePort:: $.core.v1.service.mixin.spec.portsType, + toleration:: $.apps.v1.deployment.mixin.spec.template.spec.tolerationsType, + volume:: $.core.v1.pod.mixin.spec.volumesType, + volumeMount:: $.core.v1.container.volumeMountsType, + }, + }, + rbac+: { + v1+: { + policyRule:: $.rbac.v1.clusterRole.rulesType, + subject:: $.rbac.v1.clusterRoleBinding.subjectsType, + }, + // TODO: the v1beta1 RBAC API has been removed in Kubernetes 1.22 and should get removed once 1.22 is the oldest supported version + v1beta1+: { + policyRule:: $.rbac.v1.clusterRole.rulesType, + subject:: $.rbac.v1.clusterRoleBinding.subjectsType, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/util.libsonnet b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/util.libsonnet new file mode 100644 index 0000000..f8b798a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/grafana/jsonnet-libs/ksonnet-util/util.libsonnet @@ -0,0 +1,309 @@ +// util.libsonnet provides a number of useful (opinionated) shortcuts to replace boilerplate code + +local util(k) = { + // checkFlagsMap checks map for presence of flags that values with both with and without prefix set ('foo' and '-foo'). + checkFlagsMap(map, prefix): [ + error 'key "%(key)s" provided with value "%(value)s" but key "%(prefix)s%(key)s" was provided too with value "%(otherValue)s", if want to ignore this, set check=false in mapToFlags' % + { key: key, value: map[key], prefix: prefix, otherValue: map[prefix + key] } + for key in std.objectFields(map) + if map[key] != null && std.objectHas(map, prefix + key) && map[prefix + key] != null + ], + + // mapToFlags converts a map to a set of golang-style command line flags. + // if check=true, it will check for 'foo' and '-foo' presence, failing in that case. + mapToFlags(map, prefix='-', check=true): [ + '%s%s=%s' % [prefix, key, map[key]] + for key in std.objectFields(map) + if map[key] != null + ] + if check then $.checkFlagsMap(map, prefix) else [], + + // serviceFor create service for a given deployment. + serviceFor(deployment, ignored_labels=[], nameFormat='%(container)s-%(port)s'):: + local container = k.core.v1.container; + local service = k.core.v1.service; + local servicePort = k.core.v1.servicePort; + local ports = [ + servicePort.newNamed( + name=(nameFormat % { container: c.name, port: port.name }), + port=port.containerPort, + targetPort=port.containerPort + ) + + if std.objectHas(port, 'protocol') + then servicePort.withProtocol(port.protocol) + else {} + for c in deployment.spec.template.spec.containers + for port in (c + container.withPortsMixin([])).ports + ]; + local labels = { + [x]: deployment.spec.template.metadata.labels[x] + for x in std.objectFields(deployment.spec.template.metadata.labels) + if std.count(ignored_labels, x) == 0 + }; + + service.new( + deployment.metadata.name, // name + labels, // selector + ports, + ) + + service.mixin.metadata.withLabels({ name: deployment.metadata.name }), + + // rbac creates a service account, role and role binding with the given + // name and rules. + rbac(name, rules, namespace):: { + local clusterRole = k.rbac.v1.clusterRole, + local clusterRoleBinding = k.rbac.v1.clusterRoleBinding, + local subject = k.rbac.v1.subject, + local serviceAccount = k.core.v1.serviceAccount, + + service_account: + serviceAccount.new(name), + + cluster_role: + clusterRole.new() + + clusterRole.mixin.metadata.withName(name) + + clusterRole.withRules(rules), + + cluster_role_binding: + clusterRoleBinding.new() + + clusterRoleBinding.mixin.metadata.withName(name) + + clusterRoleBinding.mixin.roleRef.withApiGroup('rbac.authorization.k8s.io') + + clusterRoleBinding.mixin.roleRef.withKind('ClusterRole') + + clusterRoleBinding.mixin.roleRef.withName(name) + + clusterRoleBinding.withSubjects([ + subject.new() + + subject.withKind('ServiceAccount') + + subject.withName(name) + + subject.withNamespace(namespace), + ]), + }, + + namespacedRBAC(name, rules, namespace):: { + local role = k.rbac.v1.role, + local roleBinding = k.rbac.v1.roleBinding, + local subject = k.rbac.v1.subject, + local serviceAccount = k.core.v1.serviceAccount, + + service_account: + serviceAccount.new(name) + + serviceAccount.mixin.metadata.withNamespace(namespace), + + role: + role.new() + + role.mixin.metadata.withName(name) + + role.mixin.metadata.withNamespace(namespace) + + role.withRules(rules), + + role_binding: + roleBinding.new() + + roleBinding.mixin.metadata.withName(name) + + roleBinding.mixin.metadata.withNamespace(namespace) + + roleBinding.mixin.roleRef.withApiGroup('rbac.authorization.k8s.io') + + roleBinding.mixin.roleRef.withKind('Role') + + roleBinding.mixin.roleRef.withName(name) + + roleBinding.withSubjects([ + subject.new() + + subject.withKind('ServiceAccount') + + subject.withName(name) + + subject.withNamespace(namespace), + ]), + }, + + // VolumeMount helper functions can be augmented with mixins. + // For example, passing "volumeMount.withSubPath(subpath)" will result in + // a subpath mixin. + configVolumeMount(name, path, volumeMountMixin={}):: + $.volumeMounts([$.volumeMountItem(name, path, volumeMountMixin)]), + + // configMapVolumeMount adds a configMap to deployment-like objects. + // It will also add an annotation hash to ensure the pods are re-deployed + // when the config map changes. + configMapVolumeMount(configMap, path, volumeMountMixin={}):: + $.volumeMounts([$.configMapVolumeMountItem(configMap, path, volumeMountMixin)]), + + + // configMapVolumeMountItem represents a config map to be mounted. + // It is used in the volumeMounts function + configMapVolumeMountItem(configMap, path, volumeMountMixin={}):: + local name = configMap.metadata.name; + local annotations = { ['%s-hash' % name]: std.md5(std.toString(configMap)) }; + $.volumeMountItem(name, path, volumeMountMixin, annotations), + + // volumeMountItem represents a volume to be mounted. + // It is used in the volumeMounts function + volumeMountItem(name, path, volumeMountMixin={}, annotations={}):: { + name: name, + path: path, + volumeMountMixin: volumeMountMixin, + annotations: annotations, + }, + + // volumeMounts adds an array of volumeMountItem to deployment-like objects. + // It can also add a set of annotations for each mount + volumeMounts(mounts):: + local container = k.core.v1.container, + deployment = k.apps.v1.deployment, + volumeMount = k.core.v1.volumeMount, + volume = k.core.v1.volume; + local addMounts(c) = c + container.withVolumeMountsMixin([ + volumeMount.new(m.name, m.path) + + m.volumeMountMixin + for m in mounts + ]); + local annotations = std.foldl( + function(acc, ann) acc + ann, + [m.annotations for m in mounts], + {} + ); + + deployment.mapContainers(addMounts) + + deployment.mixin.spec.template.spec.withVolumesMixin([ + volume.fromConfigMap(m.name, m.name) + for m in mounts + ]) + + (if annotations != {} then deployment.mixin.spec.template.metadata.withAnnotationsMixin(annotations) else {}), + + hostVolumeMount(name, hostPath, path, readOnly=false, volumeMountMixin={}, volumeMixin={}):: + local container = k.core.v1.container, + deployment = k.apps.v1.deployment, + volumeMount = k.core.v1.volumeMount, + volume = k.core.v1.volume, + addMount(c) = c + container.withVolumeMountsMixin( + volumeMount.new(name, path, readOnly=readOnly) + + volumeMountMixin, + ); + + deployment.mapContainers(addMount) + + deployment.mixin.spec.template.spec.withVolumesMixin([ + volume.fromHostPath(name, hostPath) + + volumeMixin, + ]), + + pvcVolumeMount(pvcName, path, readOnly=false, volumeMountMixin={}):: + local container = k.core.v1.container, + deployment = k.apps.v1.deployment, + volumeMount = k.core.v1.volumeMount, + volume = k.core.v1.volume, + addMount(c) = c + container.withVolumeMountsMixin( + volumeMount.new(pvcName, path, readOnly=readOnly) + + volumeMountMixin, + ); + + deployment.mapContainers(addMount) + + deployment.mixin.spec.template.spec.withVolumesMixin([ + volume.fromPersistentVolumeClaim(pvcName, pvcName), + ]), + + secretVolumeMount(name, path, defaultMode=256, volumeMountMixin={}):: + local container = k.core.v1.container, + deployment = k.apps.v1.deployment, + volumeMount = k.core.v1.volumeMount, + volume = k.core.v1.volume, + addMount(c) = c + container.withVolumeMountsMixin( + volumeMount.new(name, path) + + volumeMountMixin, + ); + + deployment.mapContainers(addMount) + + deployment.mixin.spec.template.spec.withVolumesMixin([ + volume.fromSecret(name, secretName=name) + + volume.mixin.secret.withDefaultMode(defaultMode), + ]), + + emptyVolumeMount(name, path, volumeMountMixin={}, volumeMixin={}):: + local container = k.core.v1.container, + deployment = k.apps.v1.deployment, + volumeMount = k.core.v1.volumeMount, + volume = k.core.v1.volume, + addMount(c) = c + container.withVolumeMountsMixin( + volumeMount.new(name, path) + + volumeMountMixin, + ); + + deployment.mapContainers(addMount) + + deployment.mixin.spec.template.spec.withVolumesMixin([ + volume.fromEmptyDir(name) + volumeMixin, + ]), + + manifestYaml(value):: ( + local f = std.native('manifestYamlFromJson'); + if f != null + then f(std.toString(value)) + else std.manifestYamlDoc(value) + ), + + resourcesRequests(cpu, memory):: + k.core.v1.container.mixin.resources.withRequests( + (if cpu != null + then { cpu: cpu } + else {}) + + (if memory != null + then { memory: memory } + else {}) + ), + + resourcesRequestsMixin(cpu, memory):: + k.core.v1.container.mixin.resources.withRequestsMixin( + (if cpu != null + then { cpu: cpu } + else {}) + + (if memory != null + then { memory: memory } + else {}) + ), + + resourcesLimits(cpu, memory):: + k.core.v1.container.mixin.resources.withLimits( + (if cpu != null + then { cpu: cpu } + else {}) + + (if memory != null + then { memory: memory } + else {}) + ), + + resourcesLimitsMixin(cpu, memory):: + k.core.v1.container.mixin.resources.withLimitsMixin( + (if cpu != null + then { cpu: cpu } + else {}) + + (if memory != null + then { memory: memory } + else {}) + ), + + antiAffinity: + { + local deployment = k.apps.v1.deployment, + local podAntiAffinity = deployment.mixin.spec.template.spec.affinity.podAntiAffinity, + local name = super.spec.template.metadata.labels.name, + + spec+: podAntiAffinity.withRequiredDuringSchedulingIgnoredDuringExecution([ + podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecutionType.new() + + podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecutionType.mixin.labelSelector.withMatchLabels({ name: name }) + + podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecutionType.withTopologyKey('kubernetes.io/hostname'), + ]).spec, + }, + + antiAffinityStatefulSet: + { + local statefulSet = k.apps.v1.statefulSet, + local podAntiAffinity = statefulSet.mixin.spec.template.spec.affinity.podAntiAffinity, + local name = super.spec.template.metadata.labels.name, + + spec+: podAntiAffinity.withRequiredDuringSchedulingIgnoredDuringExecution([ + podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecutionType.new() + + podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecutionType.mixin.labelSelector.withMatchLabels({ name: name }) + + podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecutionType.withTopologyKey('kubernetes.io/hostname'), + ]).spec, + }, + + // Add a priority to the pods in a deployment (or deployment-like objects + // such as a statefulset). + local deployment = k.apps.v1.deployment, + podPriority(p): + deployment.mixin.spec.template.spec.withPriorityClassName(p), +}; + +util((import 'grafana.libsonnet')) + { + withK(k):: util(k), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md similarity index 65% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md index aa19a25..c677742 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md @@ -3,7 +3,6 @@ `doc-util` provides a Jsonnet interface for `docsonnet`, a Jsonnet API doc generator that uses structured data instead of comments. - ## Install ``` @@ -16,6 +15,7 @@ jb install github.com/jsonnet-libs/docsonnet/doc-util@master local d = import "github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet" ``` + ## Index * [`fn arg(name, type, default, enums)`](#fn-arg) @@ -25,6 +25,7 @@ local d = import "github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet" * [`fn render(obj)`](#fn-render) * [`fn val(type, help, default)`](#fn-val) * [`obj argument`](#obj-argument) + * [`fn fromSchema(name, schema)`](#fn-argumentfromschema) * [`fn new(name, type, default, enums)`](#fn-argumentnew) * [`obj func`](#obj-func) * [`fn new(help, args)`](#fn-funcnew) @@ -44,42 +45,69 @@ local d = import "github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet" ### fn arg -```ts +```jsonnet arg(name, type, default, enums) ``` -`arg` is a shorthand for `argument.new` +PARAMETERS: + +* **name** (`string`) +* **type** (`string`) +* **default** (`any`) +* **enums** (`array`) +`arg` is a shorthand for `argument.new` ### fn fn -```ts +```jsonnet fn(help, args) ``` -`fn` is a shorthand for `func.new` +PARAMETERS: +* **help** (`string`) +* **args** (`array`) + +`fn` is a shorthand for `func.new` ### fn obj -```ts +```jsonnet obj(help, fields) ``` -`obj` is a shorthand for `object.new` +PARAMETERS: + +* **help** (`string`) +* **fields** (`object`) +`obj` is a shorthand for `object.new` ### fn pkg -```ts +```jsonnet pkg(name, url, help, filename="", version="master") ``` -`new` is a shorthand for `package.new` +PARAMETERS: + +* **name** (`string`) +* **url** (`string`) +* **help** (`string`) +* **filename** (`string`) + - default value: `""` +* **version** (`string`) + - default value: `"master"` +`new` is a shorthand for `package.new` ### fn render -```ts +```jsonnet render(obj) ``` +PARAMETERS: + +* **obj** (`object`) + `render` converts the docstrings to human readable Markdown files. Usage: @@ -91,25 +119,59 @@ d.render(import 'main.libsonnet') Call with: `jsonnet -S -c -m docs/ docs.jsonnet` - ### fn val -```ts +```jsonnet val(type, help, default) ``` -`val` is a shorthand for `value.new` +PARAMETERS: + +* **type** (`string`) +* **help** (`string`) +* **default** (`any`) +`val` is a shorthand for `value.new` ### obj argument Utilities for creating function arguments +#### fn argument.fromSchema + +```jsonnet +argument.fromSchema(name, schema) +``` + +PARAMETERS: + +* **name** (`string`) +* **schema** (`object`) + +`fromSchema` creates a new function argument, taking a JSON `schema` to describe the type information for this argument. + +Examples: + +```jsonnet +[ + d.argument.fromSchema('foo', { type: 'string' }), + d.argument.fromSchema('bar', { type: 'string', default='loo' }), + d.argument.fromSchema('baz', { type: 'number', enum=[1,2,3] }), +] +``` + #### fn argument.new -```ts -new(name, type, default, enums) +```jsonnet +argument.new(name, type, default, enums) ``` +PARAMETERS: + +* **name** (`string`) +* **type** (`string`) +* **default** (`any`) +* **enums** (`array`) + `new` creates a new function argument, taking the `name`, the `type`. Optionally it can take a `default` value and `enum`-erate potential values. @@ -123,69 +185,89 @@ Examples: ] ``` - ### obj func Utilities for documenting Jsonnet methods (functions of objects) #### fn func.new -```ts -new(help, args) +```jsonnet +func.new(help, args) ``` -new creates a new function, optionally with description and arguments +PARAMETERS: + +* **help** (`string`) +* **args** (`array`) +new creates a new function, optionally with description and arguments #### fn func.withArgs -```ts -withArgs(args) +```jsonnet +func.withArgs(args) ``` -The `withArgs` modifier overrides the arguments of that function +PARAMETERS: + +* **args** (`array`) +The `withArgs` modifier overrides the arguments of that function #### fn func.withHelp -```ts -withHelp(help) +```jsonnet +func.withHelp(help) ``` -The `withHelp` modifier overrides the help text of that function +PARAMETERS: +* **help** (`string`) + +The `withHelp` modifier overrides the help text of that function ### obj object Utilities for documenting Jsonnet objects (`{ }`). #### fn object.new -```ts -new(help, fields) +```jsonnet +object.new(help, fields) ``` -new creates a new object, optionally with description and fields +PARAMETERS: +* **help** (`string`) +* **fields** (`object`) + +new creates a new object, optionally with description and fields #### fn object.withFields -```ts -withFields(fields) +```jsonnet +object.withFields(fields) ``` -The `withFields` modifier overrides the fields property of an already created object +PARAMETERS: + +* **fields** (`object`) +The `withFields` modifier overrides the fields property of an already created object ### obj value Utilities for documenting plain Jsonnet values (primitives) #### fn value.new -```ts -new(type, help, default) +```jsonnet +value.new(type, help, default) ``` -new creates a new object of given type, optionally with description and default value +PARAMETERS: -### obj T +* **type** (`string`) +* **help** (`string`) +* **default** (`any`) +new creates a new object of given type, optionally with description and default value +### obj T * `T.any` (`string`): `"any"` - argument of type "any" * `T.array` (`string`): `"array"` - argument of type "array" @@ -201,10 +283,20 @@ new creates a new object of given type, optionally with description and default #### fn package.new -```ts -new(name, url, help, filename="", version="master") +```jsonnet +package.new(name, url, help, filename="", version="master") ``` +PARAMETERS: + +* **name** (`string`) +* **url** (`string`) +* **help** (`string`) +* **filename** (`string`) + - default value: `""` +* **version** (`string`) + - default value: `"master"` + `new` creates a new package Arguments: @@ -215,17 +307,20 @@ Arguments: * `filename` for the import, defaults to blank for backward compatibility * `version` for jsonnet-bundler install, defaults to `master` just like jsonnet-bundler - #### fn package.newSub -```ts -newSub(name, help) +```jsonnet +package.newSub(name, help) ``` +PARAMETERS: + +* **name** (`string`) +* **help** (`string`) + `newSub` creates a package without the preconfigured install/usage templates. Arguments: * given `name` * `help` text - diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet similarity index 84% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet index f47c83d..f3ec298 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet @@ -36,7 +36,10 @@ new(name, url, help, filename='', version='master'):: { name: name, - help: help, + help: + help + + std.get(self, 'installTemplate', '') % self + + std.get(self, 'usageTemplate', '') % self, 'import': if filename != '' then url + '/' + filename @@ -70,12 +73,34 @@ help: help, }, - withUsageTemplate(template):: { - usageTemplate: template, + withInstallTemplate(template):: { + installTemplate: + if template != null + then + ||| + + ## Install + + ``` + %s + ``` + ||| % template + else '', }, - withInstallTemplate(template):: { - installTemplate: template, + withUsageTemplate(template):: { + usageTemplate: + if template != null + then + ||| + + ## Usage + + ```jsonnet + %s + ``` + ||| % template + else '', }, }, @@ -148,6 +173,26 @@ default: default, enums: enums, }, + '#fromSchema': d.fn(||| + `fromSchema` creates a new function argument, taking a JSON `schema` to describe the type information for this argument. + + Examples: + + ```jsonnet + [ + d.argument.fromSchema('foo', { type: 'string' }), + d.argument.fromSchema('bar', { type: 'string', default='loo' }), + d.argument.fromSchema('baz', { type: 'number', enum=[1,2,3] }), + ] + ``` + |||, [ + d.arg('name', d.T.string), + d.arg('schema', d.T.object), + ]), + fromSchema(name, schema): { + name: name, + schema: schema, + }, }, '#arg': self.argument['#new'] + self.func.withHelp('`arg` is a shorthand for `argument.new`'), arg:: self.argument.new, diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet new file mode 100644 index 0000000..758b033 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet @@ -0,0 +1,479 @@ +{ + local root = self, + + render(obj): + assert std.isObject(obj) && '#' in obj : 'error: object is not a docsonnet package'; + local package = self.package(obj); + package.toFiles(), + + findPackages(obj, path=[]): { + local find(obj, path, parentWasPackage=true) = + std.foldl( + function(acc, k) + acc + + ( + // If matches a package but warn if also has an object docstring + if '#' in obj[k] && '#' + k in obj + && !std.objectHasAll(obj[k]['#'], 'ignore') + then std.trace( + 'warning: %s both defined as object and package' % k, + [root.package(obj[k], path + [k], parentWasPackage)] + ) + // If matches a package, return it + else if '#' in obj[k] + && !std.objectHasAll(obj[k]['#'], 'ignore') + then [root.package(obj[k], path + [k], parentWasPackage)] + // If not, keep looking + else find(obj[k], path + [k], parentWasPackage=false) + ), + std.filter( + function(k) + !std.startsWith(k, '#') + && std.isObject(obj[k]), + std.objectFieldsAll(obj) + ), + [] + ), + + packages: find(obj, path), + + hasPackages(): std.length(self.packages) > 0, + + toIndex(relativeTo=[]): + if self.hasPackages() + then + std.join('\n', [ + '* ' + p.link(relativeTo) + for p in self.packages + ]) + + '\n' + else '', + + toFiles(): + std.foldl( + function(acc, p) + acc + + { [p.path]: p.toString() } + + p.packages.toFiles(), + self.packages, + {} + ), + }, + + package(obj, path=[], parentWasPackage=true): { + local this = self, + local doc = obj['#'], + + packages: root.findPackages(obj, path), + fields: root.fields(obj), + + local pathsuffix = + (if self.packages.hasPackages() + then '/index.md' + else '.md'), + + // filepath on disk + path: + std.join('/', path) + + pathsuffix, + + link(relativeTo): + local relativepath = root.util.getRelativePath(path, relativeTo); + '[%s](%s)' % [ + std.join('.', relativepath), + std.join('/', relativepath) + + pathsuffix, + ], + + toFiles(): + { 'README.md': this.toString() } + + self.packages.toFiles(), + + toString(): + std.join( + '\n', + [ + '# ' + doc.name + '\n', + std.get(doc, 'help', ''), + '', + ] + + (if self.packages.hasPackages() + then [ + '## Subpackages\n\n' + + self.packages.toIndex(path), + ] + else []) + + (if self.fields.hasFields() + then [ + '## Index\n\n' + + self.fields.toIndex() + + '\n## Fields\n' + + self.fields.toString(), + ] + else []) + ), + }, + + fields(obj, path=[]): { + values: root.findValues(obj, path), + functions: root.findFunctions(obj, path), + objects: root.findObjects(obj, path), + + hasFields(): + std.any([ + self.values.hasFields(), + self.functions.hasFields(), + self.objects.hasFields(), + ]), + + toIndex(): + std.join('', [ + self.functions.toIndex(), + self.objects.toIndex(), + ]), + + toString(): + std.join('', [ + self.values.toString(), + self.functions.toString(), + self.objects.toString(), + ]), + }, + + findObjects(obj, path=[]): { + local keys = + std.filter( + root.util.filter('object', obj), + std.objectFieldsAll(obj) + ), + + local undocumentedKeys = + std.filter( + function(k) + std.all([ + !std.startsWith(k, '#'), + std.isObject(obj[k]), + !std.objectHasAll(obj[k], 'ignore'), + !('#' + k in obj), // not documented in parent + !('#' in obj[k]), // not a sub package + ]), + std.objectFieldsAll(obj) + ), + + objects: + std.foldl( + function(acc, k) + acc + [ + root.obj( + root.util.realkey(k), + obj[k], + obj[root.util.realkey(k)], + path, + ), + ], + keys, + [] + ) + + std.foldl( + function(acc, k) + local o = root.obj( + k, + { object: { help: '' } }, + obj[k], + path, + ); + acc + + (if o.fields.hasFields() + then [o] + else []), + undocumentedKeys, + [] + ), + + hasFields(): std.length(self.objects) > 0, + + toIndex(): + if self.hasFields() + then + std.join('', [ + std.join( + '', + [' ' for d in std.range(0, (std.length(path) * 2) - 1)] + + ['* ', f.link] + + ['\n'] + + (if f.fields.hasFields() + then [f.fields.toIndex()] + else []) + ) + for f in self.objects + ]) + else '', + + toString(): + if self.hasFields() + then + std.join('', [ + o.toString() + for o in self.objects + ]) + else '', + }, + + obj(name, doc, obj, path): { + fields: root.fields(obj, path + [name]), + + path: std.join('.', path + [name]), + fragment: root.util.fragment(std.join('', path + [name])), + link: '[`obj %s`](#obj-%s)' % [name, self.fragment], + + toString(): + std.join( + '\n', + [root.util.title('obj ' + self.path, std.length(path) + 2)] + + (if std.get(doc.object, 'help', '') != '' + then [doc.object.help] + else []) + + [self.fields.toString()] + ), + }, + + findFunctions(obj, path=[]): { + local keys = + std.filter( + root.util.filter('function', obj), + std.objectFieldsAll(obj) + ), + + functions: + std.foldl( + function(acc, k) + acc + [ + root.func( + root.util.realkey(k), + obj[k], + path, + ), + ], + keys, + [] + ), + + hasFields(): std.length(self.functions) > 0, + + toIndex(): + if self.hasFields() + then + std.join('', [ + std.join( + '', + [' ' for d in std.range(0, (std.length(path) * 2) - 1)] + + ['* ', f.link] + + ['\n'] + ) + for f in self.functions + ]) + else '', + + toString(): + if self.hasFields() + then + std.join('', [ + f.toString() + for f in self.functions + ]) + else '', + }, + + func(name, doc, path): { + path: std.join('.', path + [name]), + fragment: root.util.fragment(std.join('', path + [name])), + link: '[`fn %s(%s)`](#fn-%s)' % [name, self.args, self.fragment], + + local getType(arg) = + local type = + if 'schema' in arg + then std.get(arg.schema, 'type', '') + else std.get(arg, 'type', ''); + if std.isArray(type) + then std.join(',', ['`%s`' % t for t in std.set(type)]) + else '`%s`' % type, + + // Use BelRune as default can be 'null' as a value. Only supported for arg.schema, arg.default didn't support this, not sure how to support without breaking asssumptions downstream. + local BelRune = std.char(7), + local getDefault(arg) = + if 'schema' in arg + then std.get(arg.schema, 'default', BelRune) + else + local d = std.get(arg, 'default', BelRune); + if d == null + then BelRune + else d, + + local getEnum(arg) = + if 'schema' in arg + then std.get(arg.schema, 'enum', []) + else + local d = std.get(arg, 'enums', []); + if d == null + then [] + else d, + + local manifest(value) = + std.manifestJsonEx(value, '', '', ': '), + + args: + std.join(', ', [ + local default = getDefault(arg); + if default != BelRune + then std.join('=', [ + arg.name, + manifest(default), + ]) + else arg.name + for arg in doc['function'].args + ]), + + + args_list: + if std.length(doc['function'].args) > 0 + then + '\nPARAMETERS:\n\n' + + std.join('\n', [ + '* **%s** (%s)' % [arg.name, getType(arg)] + + ( + local default = getDefault(arg); + if default != BelRune + then '\n - default value: `%s`' % manifest(default) + else '' + ) + + ( + local enum = getEnum(arg); + if enum != [] + then + '\n - valid values: %s' % + std.join(', ', [ + '`%s`' % manifest(item) + for item in enum + ]) + else '' + ) + for arg in doc['function'].args + ]) + else '', + + toString(): + std.join('\n', [ + root.util.title('fn ' + self.path, std.length(path) + 2), + ||| + ```jsonnet + %s(%s) + ``` + %s + ||| % [self.path, self.args, self.args_list], + std.get(doc['function'], 'help', ''), + ]), + }, + + findValues(obj, path=[]): { + local keys = + std.filter( + root.util.filter('value', obj), + std.objectFieldsAll(obj) + ), + + values: + std.foldl( + function(acc, k) + acc + [ + root.val( + root.util.realkey(k), + obj[k], + obj[root.util.realkey(k)], + path, + ), + ], + keys, + [] + ), + + hasFields(): std.length(self.values) > 0, + + toString(): + if self.hasFields() + then + std.join('\n', [ + '* ' + f.toString() + for f in self.values + ]) + '\n' + else '', + }, + + val(name, doc, obj, path): { + toString(): + std.join(' ', [ + '`%s`' % std.join('.', path + [name]), + '(`%s`):' % doc.value.type, + '`"%s"`' % obj, + '-', + std.get(doc.value, 'help', ''), + ]), + }, + + util: { + realkey(key): + assert std.startsWith(key, '#') : 'Key %s not a docstring key' % key; + key[1:], + title(title, depth=0): + std.join( + '', + ['\n'] + + ['#' for i in std.range(0, depth)] + + [' ', title, '\n'] + ), + fragment(title): + std.asciiLower( + std.strReplace( + std.strReplace(title, '.', '') + , ' ', '-' + ) + ), + filter(type, obj): + function(k) + std.all([ + std.startsWith(k, '#'), + std.isObject(obj[k]), + !std.objectHasAll(obj[k], 'ignore'), + type in obj[k], + root.util.realkey(k) in obj, + ]), + + getRelativePath(path, relativeTo): + local shortest = std.min(std.length(relativeTo), std.length(path)); + + local commonIndex = + std.foldl( + function(acc, i) ( + if acc.stop + then acc + else + acc + { + // stop count if path diverges + local stop = relativeTo[i] != path[i], + stop: stop, + count+: if stop then 0 else 1, + } + ), + std.range(0, shortest - 1), + { stop: false, count: 0 } + ).count; + + local _relativeTo = relativeTo[commonIndex:]; + local _path = path[commonIndex:]; + + // prefix for relative difference + local prefix = ['..' for i in std.range(0, std.length(_relativeTo) - 1)]; + + // return path with prefix + prefix + _path, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/apps.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/apps.libsonnet new file mode 100644 index 0000000..1586fa7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/apps.libsonnet @@ -0,0 +1,79 @@ +local gen = import '../gen.libsonnet'; +local d = import 'doc-util/main.libsonnet'; + +local patch = { + daemonSet+: { + '#new'+: d.func.withArgs([ + d.arg('name', d.T.string), + d.arg('containers', d.T.array), + d.arg('podLabels', d.T.object, {}), + ]), + new( + name, + containers=[], + podLabels={} + ):: + local labels = { name: name } + podLabels; + super.new(name) + + super.spec.template.spec.withContainers(containers) + + super.spec.template.metadata.withLabels(labels) + + super.spec.selector.withMatchLabels(labels), + }, + deployment+: { + '#new'+: d.func.withArgs([ + d.arg('name', d.T.string), + d.arg('replicas', d.T.int, 1), + d.arg('containers', d.T.array), + d.arg('podLabels', d.T.object, {}), + ]), + new( + name, + replicas=1, + containers=error 'containers unset', + podLabels={}, + ):: + local labels = { name: name } + podLabels; + super.new(name) + + (if replicas == null then {} else super.spec.withReplicas(replicas)) + + super.spec.template.spec.withContainers(containers) + + super.spec.template.metadata.withLabels(labels) + + super.spec.selector.withMatchLabels(labels), + }, + + statefulSet+: { + '#new'+: d.func.withArgs([ + d.arg('name', d.T.string), + d.arg('replicas', d.T.int, 1), + d.arg('containers', d.T.array), + d.arg('volumeClaims', d.T.array, []), + d.arg('podLabels', d.T.object, {}), + ]), + new( + name, + replicas=1, + containers=error 'containers unset', + volumeClaims=[], + podLabels={}, + ):: + local labels = { name: name } + podLabels; + super.new(name) + + super.spec.withReplicas(replicas) + + super.spec.template.spec.withContainers(containers) + + super.spec.template.metadata.withLabels(labels) + + super.spec.selector.withMatchLabels(labels) + + // remove volumeClaimTemplates if empty + // (otherwise it will create a diff all the time) + + ( + if std.length(volumeClaims) > 0 + then super.spec.withVolumeClaimTemplates(volumeClaims) + else {} + ), + }, +}; + +{ + apps+: { + v1+: patch, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/autoscaling.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/autoscaling.libsonnet new file mode 100644 index 0000000..d48005c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/autoscaling.libsonnet @@ -0,0 +1,31 @@ +local d = import 'doc-util/main.libsonnet'; + +local withApiVersion = { + '#withApiVersion':: d.fn(help='API version of the referent', args=[d.arg(name='apiversion', type=d.T.string)]), + withApiVersion(apiversion): { apiVersion: apiversion }, +}; + + +local withScaleTargetRef = { + '#withScaleTargetRef':: d.fn(help='Set spec.ScaleTargetRef to `object`', args=[d.arg(name='object', type=d.T.object)]), + withScaleTargetRef(object): + { spec+: { scaleTargetRef+: { + apiVersion: object.apiVersion, + kind: object.kind, + name: object.metadata.name, + } } }, +}; + +local patch = { + crossVersionObjectReference+: withApiVersion, + horizontalPodAutoscaler+: { + spec+: withScaleTargetRef, + }, +}; + +{ + autoscaling+: { + v1+: patch, + v2+: patch, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/batch.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/batch.libsonnet new file mode 100644 index 0000000..3b39ad7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/batch.libsonnet @@ -0,0 +1,26 @@ +local d = import 'doc-util/main.libsonnet'; + +local patch = { + cronJob+: { + '#new'+: d.func.withArgs([ + d.arg('name', d.T.string), + d.arg('schedule', d.T.string), + d.arg('containers', d.T.array), + ]), + new( + name, + schedule='', + containers=[] + ):: + super.new(name) + + super.spec.withSchedule(schedule) + + super.spec.jobTemplate.spec.template.spec.withContainers(containers) + + super.spec.jobTemplate.spec.template.metadata.withLabels({ name: name }), + }, +}; + +{ + batch+: { + v1+: patch, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/core.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/core.libsonnet new file mode 100644 index 0000000..7f4577a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/core.libsonnet @@ -0,0 +1,266 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + core+: { + v1+: { + configMap+: { + local withData(data) = if data != {} then super.withData(data) else {}, + withData:: withData, + + local withDataMixin(data) = if data != {} then super.withDataMixin(data) else {}, + withDataMixin:: withDataMixin, + + '#new': d.fn('new creates a new `ConfigMap` of given `name` and `data`', [d.arg('name', d.T.string), d.arg('data', d.T.object)]), + new(name, data={}):: + super.new(name) + + super.metadata.withName(name) + + withData(data), + }, + + container+: { + '#new': d.fn('new returns a new `container` of given `name` and `image`', [d.arg('name', d.T.string), d.arg('image', d.T.string)]), + new(name, image):: super.withName(name) + super.withImage(image), + + withEnvMixin(env):: + // if an envvar has an empty value ("") we want to remove that property + // because k8s will remove that and then it would always + // show up as a difference. + local removeEmptyValue(obj) = + if std.objectHas(obj, 'value') && std.length(obj.value) == 0 then + { + [k]: obj[k] + for k in std.objectFields(obj) + if k != 'value' + } + else + obj; + super.withEnvMixin([ + removeEmptyValue(envvar) + for envvar in env + ]), + + '#withEnvMap': d.fn(||| + + `withEnvMap` works like `withEnvMixin` but accepts a key/value map, + this map is converted a list of core.v1.envVar(key, value)`. + + If the value is an object instead of a string, it is placed under + the `valueFrom` key. + + |||, + [d.arg('env', d.T.object)] + ), + withEnvMap(env):: + self.withEnvMixin([ + ( + if std.type(env[k]) == 'object' then + $.core.v1.envVar.withName(k) + + { valueFrom: env[k] } + else + $.core.v1.envVar.new(k, env[k]) + ) + for k in std.objectFields(env) + ]), + + withResourcesRequests(cpu, memory):: + self.resources.withRequests( + (if cpu != null + then { cpu: cpu } + else {}) + + (if memory != null + then { memory: memory } + else {}) + ), + + withResourcesLimits(cpu, memory):: + self.resources.withLimits( + (if cpu != null + then { cpu: cpu } + else {}) + + (if memory != null + then { memory: memory } + else {}) + ), + }, + + containerPort+: { + // using a local here to re-use new, because it is lexically scoped, + // while `self` is not + local new(containerPort) = super.withContainerPort(containerPort), + local newNamed(containerPort, name) = new(containerPort) + super.withName(name), + '#new': d.fn('new returns a new `containerPort`', [d.arg('containerPort', d.T.int)]), + new:: new, + '#newNamed': d.fn('newNamed works like `new`, but also sets the `name`', [d.arg('containerPort', d.T.int), d.arg('name', d.T.string)]), + newNamed:: newNamed, + '#newUDP': d.fn('newUDP works like `new`, but also sets protocal to UDP', [d.arg('containerPort', d.T.int)]), + newUDP(containerPort):: new(containerPort) + super.withProtocol('UDP'), + '#newNamedUDP': d.fn('newNamedUDP works like `newNamed`, but also sets protocal to UDP', [d.arg('containerPort', d.T.int), d.arg('name', d.T.string)]), + newNamedUDP(containerPort, name):: newNamed(containerPort, name) + super.withProtocol('UDP'), + }, + + envVar+: { + '#new': d.fn('new returns a new `envVar` of given `name` and `value`', [d.arg('name', d.T.string), d.arg('value', d.T.string)]), + new(name, value):: super.withName(name) + super.withValue(value), + + '#fromSecretRef': d.fn('fromSecretRef creates a `envVar` from a secret reference', [ + d.arg('name', d.T.string), + d.arg('secretRefName', d.T.string), + d.arg('secretRefKey', d.T.string), + ]), + fromSecretRef(name, secretRefName, secretRefKey):: + super.withName(name) + + super.valueFrom.secretKeyRef.withName(secretRefName) + + super.valueFrom.secretKeyRef.withKey(secretRefKey), + + '#fromFieldPath': d.fn('fromFieldPath creates a `envVar` from a field path', [ + d.arg('name', d.T.string), + d.arg('fieldPath', d.T.string), + ]), + fromFieldPath(name, fieldPath):: + super.withName(name) + + super.valueFrom.fieldRef.withFieldPath(fieldPath), + }, + + keyToPath+:: { + '#new': d.fn('new creates a new `keyToPath`', [d.arg('key', d.T.string), d.arg('path', d.T.string)]), + new(key, path):: super.withKey(key) + super.withPath(path), + }, + + persistentVolume+: { + '#new':: d.fn(help='new returns an instance of Persistentvolume', args=[d.arg(name='name', type=d.T.string)]), + new(name=''): { + apiVersion: 'v1', + kind: 'PersistentVolume', + } + ( + if name != '' + then self.metadata.withName(name=name) + else {} + ), + }, + + secret+:: { + '#new'+: d.func.withArgs([ + d.arg('name', d.T.string), + d.arg('data', d.T.object), + d.arg('type', d.T.string, 'Opaque'), + ]), + new(name, data, type='Opaque'):: + super.new(name) + + super.withData(data) + + super.withType(type), + }, + + service+:: { + '#new'+: d.func.withArgs([ + d.arg('name', d.T.string), + d.arg('selector', d.T.object), + d.arg('ports', d.T.array), + ]), + new(name, selector, ports):: + super.new(name) + + super.spec.withSelector(selector) + + super.spec.withPorts(ports), + '#newWithoutSelector'+: d.fn('newWithoutSelector works like `new`, but creates a Service without ports and selector', [ + d.arg('name', d.T.string), + ]), + newWithoutSelector(name):: + super.new(name), + }, + + servicePort+:: { + local new(port, targetPort) = super.withPort(port) + super.withTargetPort(targetPort), + '#new': d.fn('new returns a new `servicePort`', [ + d.arg('port', d.T.int), + d.arg('targetPort', d.T.any), + ]), + new:: new, + + '#newNamed': d.fn('newNamed works like `new`, but also sets the `name`', [ + d.arg('name', d.T.string), + d.arg('port', d.T.int), + d.arg('targetPort', d.T.any), + ]), + newNamed(name, port, targetPort):: + new(port, targetPort) + super.withName(name), + }, + + volume+:: { + '#fromConfigMap': d.fn('Creates a new volume from a `ConfigMap`', [ + d.arg('name', d.T.string), + d.arg('configMapName', d.T.string), + d.arg('configMapItems', d.T.array), + ]), + fromConfigMap(name, configMapName, configMapItems=[]):: + super.withName(name) + + super.configMap.withName(configMapName) + + ( + if configMapItems != [] + then super.configMap.withItems(configMapItems) + else {} + ), + + '#fromEmptyDir': d.fn('Creates a new volume of type `emptyDir`', [ + d.arg('name', d.T.string), + d.arg('emptyDir', d.T.object, {}), + ]), + fromEmptyDir(name, emptyDir={}):: + super.withName(name) + { emptyDir: emptyDir }, + + '#fromPersistentVolumeClaim': d.fn('Creates a new volume using a `PersistentVolumeClaim`.', [ + d.arg('name', d.T.string), + d.arg('claimName', d.T.string), + ]), + fromPersistentVolumeClaim(name, claimName='', emptyDir=''):: + // Note: emptyDir is inherited from ksonnet-lib, this provides backwards compatibility + local claim = + if (claimName == '' && emptyDir != '') + then emptyDir + else + if claimName == '' + then error 'claimName not set' + else claimName; + super.withName(name) + super.persistentVolumeClaim.withClaimName(claim), + + '#fromHostPath': d.fn('Creates a new volume using a `hostPath`', [ + d.arg('name', d.T.string), + d.arg('hostPath', d.T.string), + ]), + fromHostPath(name, hostPath):: + super.withName(name) + super.hostPath.withPath(hostPath), + + '#fromSecret': d.fn('Creates a new volume from a `Secret`', [ + d.arg('name', d.T.string), + d.arg('secretName', d.T.string), + ]), + fromSecret(name, secretName):: + super.withName(name) + super.secret.withSecretName(secretName), + + '#fromCsi': d.fn('Creates a new volume of type `csi`', [ + d.arg('name', d.T.string), + d.arg('driver', d.T.string), + d.arg('volumeAttributes', d.T.object, {}), + ]), + fromCsi(name, driver, volumeAttributes={}):: + super.withName(name) + { + csi: { + driver: driver, + readOnly: true, + volumeAttributes: volumeAttributes + } + }, + }, + + volumeMount+:: { + '#new': d.fn('new creates a new `volumeMount`', [ + d.arg('name', d.T.string), + d.arg('mountPath', d.T.string), + d.arg('readOnly', d.T.bool), + ]), + new(name, mountPath, readOnly=false):: + super.withName(name) + + super.withMountPath(mountPath) + + (if readOnly then self.withReadOnly(readOnly) else {}), + }, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/list.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/list.libsonnet new file mode 100644 index 0000000..44a151c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/list.libsonnet @@ -0,0 +1,27 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + core+: { + v1+: { + list: { + '#':: d.pkg(name='list', url='', help='List represents a generic list of items.'), + '#new': d.fn( + '`new` returns an instance of List.', + [d.arg('items', d.T.array)] + ), + new(items):: { + apiVersion: 'v1', + kind: 'List', + } + self.withItems(items), + '#withItems': d.fn( + '`withItems` List of items to populate the items in a list.', + [d.arg('items', d.T.array)] + ), + withItems(items):: + if std.isArray(v=items) + then { items+: items } + else { items+: [items] }, + }, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/mapContainers.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/mapContainers.libsonnet new file mode 100644 index 0000000..bba2659 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/mapContainers.libsonnet @@ -0,0 +1,80 @@ +local d = import 'doc-util/main.libsonnet'; + +local patch = { + '#mapContainers': d.fn( + ||| + `mapContainers` applies the function f to each container. + It works exactly as `std.map`, but on the containers of this object. + + **Signature of `f`**: + ```ts + f(container: Object) Object + ``` + |||, + [d.arg('f', d.T.func)] + ), + mapContainers(f, includeInitContainers=false):: { + local podContainers = super.spec.template.spec.containers, + local podInitContainers = super.spec.template.spec.initContainers, + spec+: { + template+: { + spec+: { + containers: std.map(f, podContainers), + [if includeInitContainers then 'initContainers']: std.map(f, podInitContainers), + }, + }, + }, + }, + + '#mapContainersWithName': d.fn('`mapContainersWithName` is like `mapContainers`, but only applies to those containers in the `names` array', + [d.arg('names', d.T.array), d.arg('f', d.T.func)]), + mapContainersWithName(names, f, includeInitContainers=false):: + local nameSet = if std.type(names) == 'array' then std.set(names) else std.set([names]); + local inNameSet(name) = std.length(std.setInter(nameSet, std.set([name]))) > 0; + + self.mapContainers(function(c) if std.objectHas(c, 'name') && inNameSet(c.name) then f(c) else c, includeInitContainers), +}; + +// batch.job and batch.cronJob have the podSpec at a different location +local cronPatch = patch { + mapContainers(f, includeInitContainers=false):: { + local podContainers = super.spec.jobTemplate.spec.template.spec.containers, + local podInitContainers = super.spec.jobTemplate.spec.template.spec.initContainers, + spec+: { + jobTemplate+: { + spec+: { + template+: { + spec+: { + containers: std.map(f, podContainers), + [if includeInitContainers then 'initContainers']: std.map(f, podInitContainers), + }, + }, + }, + }, + }, + }, +}; + +{ + core+: { + v1+: { + pod+: patch, + podTemplate+: patch, + replicationController+: patch, + }, + }, + batch+: { + v1+: { + job+: patch, + cronJob+: cronPatch, + }, + }, + apps+: { + v1+: { + daemonSet+: patch, + deployment+: patch, + replicaSet+: patch, + statefulSet+: patch, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/rbac.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/rbac.libsonnet new file mode 100644 index 0000000..ab3d1ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/rbac.libsonnet @@ -0,0 +1,41 @@ +local d = import 'doc-util/main.libsonnet'; + +local bindRoleDoc = d.fn( + '`bindRole` returns a roleRef for a Role or ClusterRole object.', + [d.arg('role', d.T.object)] +); + +local bindRole(role) = { + roleRef: { + name: role.metadata.name, + kind: role.kind, + apiGroup: std.split(role.apiVersion, '/')[0], + }, +}; + +local patch = { + roleBinding+: { + '#bindRole': bindRoleDoc, + bindRole(role):: bindRole(role), + }, + clusterRoleBinding+: { + '#bindRole': bindRoleDoc, + bindRole(role):: bindRole(role), + }, + subject+: { + '#fromServiceAccount': d.fn( + '`fromServiceAccount` returns a subject for a service account.', + [d.arg('service_account', d.T.object)] + ), + fromServiceAccount(service_account):: + super.withKind('ServiceAccount') + + super.withName(service_account.metadata.name) + + super.withNamespace(service_account.metadata.namespace), + }, +}; + +{ + rbac+: { + v1+: patch, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/volumeMounts.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/volumeMounts.libsonnet new file mode 100644 index 0000000..9c911e8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_custom/volumeMounts.libsonnet @@ -0,0 +1,323 @@ +local d = import 'doc-util/main.libsonnet'; + +{ + local container = $.core.v1.container, + local volumeMount = $.core.v1.volumeMount, + local volume = $.core.v1.volume, + + local patch = { + local volumeMountDescription = + ||| + This helper function can be augmented with a `volumeMountsMixin`. For example, + passing "k.core.v1.volumeMount.withSubPath(subpath)" will result in a subpath + mixin. + |||, + + + '#configVolumeMount': d.fn( + ||| + `configVolumeMount` mounts a ConfigMap by `name` on `path`. + + If `containers` is specified as an array of container names it will only be mounted + to those containers, otherwise it will be mounted on all containers. + + This helper function can be augmented with a `volumeMixin`. For example, + passing "k.core.v1.volume.configMap.withDefaultMode(420)" will result in a + default mode mixin. + ||| + + volumeMountDescription, + [ + d.arg('name', d.T.string), + d.arg('path', d.T.string), + d.arg('volumeMountMixin', d.T.object), + d.arg('volumeMixin', d.T.object), + d.arg('containers', d.T.array), + ] + ), + configVolumeMount(name, path, volumeMountMixin={}, volumeMixin={}, containers=null, includeInitContainers=false):: + local addMount(c) = c + ( + if containers == null || std.member(containers, c.name) + then container.withVolumeMountsMixin( + volumeMount.new(name, path) + + volumeMountMixin, + ) + else {} + ); + local volumeMixins = [volume.fromConfigMap(name, name) + volumeMixin]; + + super.mapContainers(addMount, includeInitContainers=includeInitContainers) + + if std.objectHas(super.spec, 'template') + then super.spec.template.spec.withVolumesMixin(volumeMixins) + else super.spec.jobTemplate.spec.template.spec.withVolumesMixin(volumeMixins), + + + '#configMapVolumeMount': d.fn( + ||| + `configMapVolumeMount` mounts a `configMap` on `path`. It will + also add an annotation hash to ensure the pods are re-deployed when the config map + changes. + + If `containers` is specified as an array of container names it will only be mounted + to those containers, otherwise it will be mounted on all containers. + + This helper function can be augmented with a `volumeMixin`. For example, + passing "k.core.v1.volume.configMap.withDefaultMode(420)" will result in a + default mode mixin. + ||| + + volumeMountDescription, + [ + d.arg('configMap', d.T.object), + d.arg('path', d.T.string), + d.arg('volumeMountMixin', d.T.object), + d.arg('volumeMixin', d.T.object), + d.arg('containers', d.T.array), + ] + ), + configMapVolumeMount(configMap, path, volumeMountMixin={}, volumeMixin={}, containers=null, includeInitContainers=false):: + local name = configMap.metadata.name, + hash = std.md5(std.toString(configMap)); + local addMount(c) = c + ( + if containers == null || std.member(containers, c.name) + then container.withVolumeMountsMixin( + volumeMount.new(name, path) + + volumeMountMixin, + ) + else {} + ); + local volumeMixins = [volume.fromConfigMap(name, name) + volumeMixin]; + local annotations = { ['%s-hash' % name]: hash }; + + super.mapContainers(addMount, includeInitContainers=includeInitContainers) + + if std.objectHas(super.spec, 'template') + then + super.spec.template.spec.withVolumesMixin(volumeMixins) + + super.spec.template.metadata.withAnnotationsMixin(annotations) + else + super.spec.jobTemplate.spec.template.spec.withVolumesMixin(volumeMixins) + + super.spec.jobTemplate.spec.template.metadata.withAnnotationsMixin(annotations), + + + '#hostVolumeMount': d.fn( + ||| + `hostVolumeMount` mounts a `hostPath` on `path`. + + If `containers` is specified as an array of container names it will only be mounted + to those containers, otherwise it will be mounted on all containers. + + This helper function can be augmented with a `volumeMixin`. For example, + passing "k.core.v1.volume.hostPath.withType('Socket')" will result in a + socket type mixin. + ||| + + volumeMountDescription, + [ + d.arg('name', d.T.string), + d.arg('hostPath', d.T.string), + d.arg('path', d.T.string), + d.arg('readOnly', d.T.bool), + d.arg('volumeMountMixin', d.T.object), + d.arg('volumeMixin', d.T.object), + d.arg('containers', d.T.array), + ] + ), + hostVolumeMount(name, hostPath, path, readOnly=false, volumeMountMixin={}, volumeMixin={}, containers=null, includeInitContainers=false):: + local addMount(c) = c + ( + if containers == null || std.member(containers, c.name) + then container.withVolumeMountsMixin( + volumeMount.new(name, path, readOnly=readOnly) + + volumeMountMixin, + ) + else {} + ); + local volumeMixins = [volume.fromHostPath(name, hostPath) + volumeMixin]; + + super.mapContainers(addMount, includeInitContainers=includeInitContainers) + + if std.objectHas(super.spec, 'template') + then super.spec.template.spec.withVolumesMixin(volumeMixins) + else super.spec.jobTemplate.spec.template.spec.withVolumesMixin(volumeMixins), + + + '#pvcVolumeMount': d.fn( + ||| + `hostVolumeMount` mounts a PersistentVolumeClaim by `name` on `path`. + + If `containers` is specified as an array of container names it will only be mounted + to those containers, otherwise it will be mounted on all containers. + + This helper function can be augmented with a `volumeMixin`. For example, + passing "k.core.v1.volume.persistentVolumeClaim.withReadOnly(true)" will result in a + mixin that forces all container mounts to be read-only. + ||| + + volumeMountDescription, + [ + d.arg('name', d.T.string), + d.arg('path', d.T.string), + d.arg('readOnly', d.T.bool), + d.arg('volumeMountMixin', d.T.object), + d.arg('volumeMixin', d.T.object), + d.arg('containers', d.T.array), + ] + ), + pvcVolumeMount(name, path, readOnly=false, volumeMountMixin={}, volumeMixin={}, containers=null, includeInitContainers=false):: + local addMount(c) = c + ( + if containers == null || std.member(containers, c.name) + then container.withVolumeMountsMixin( + volumeMount.new(name, path, readOnly=readOnly) + + volumeMountMixin, + ) + else {} + ); + local volumeMixins = [volume.fromPersistentVolumeClaim(name, name) + volumeMixin]; + + super.mapContainers(addMount, includeInitContainers=includeInitContainers) + + if std.objectHas(super.spec, 'template') + then super.spec.template.spec.withVolumesMixin(volumeMixins) + else super.spec.jobTemplate.spec.template.spec.withVolumesMixin(volumeMixins), + + + '#secretVolumeMount': d.fn( + ||| + `secretVolumeMount` mounts a Secret by `name` into all container on `path`.' + + If `containers` is specified as an array of container names it will only be mounted + to those containers, otherwise it will be mounted on all containers. + + This helper function can be augmented with a `volumeMixin`. For example, + passing "k.core.v1.volume.secret.withOptional(true)" will result in a + mixin that allows the secret to be optional. + ||| + + volumeMountDescription, + [ + d.arg('name', d.T.string), + d.arg('path', d.T.string), + d.arg('defaultMode', d.T.string), + d.arg('volumeMountMixin', d.T.object), + d.arg('volumeMixin', d.T.object), + d.arg('containers', d.T.array), + ] + ), + secretVolumeMount(name, path, defaultMode=256, volumeMountMixin={}, volumeMixin={}, containers=null, includeInitContainers=false):: + local addMount(c) = c + ( + if containers == null || std.member(containers, c.name) + then container.withVolumeMountsMixin( + volumeMount.new(name, path) + + volumeMountMixin, + ) + else {} + ); + local volumeMixins = [ + volume.fromSecret(name, secretName=name) + + volume.secret.withDefaultMode(defaultMode) + + volumeMixin, + ]; + + super.mapContainers(addMount, includeInitContainers=includeInitContainers) + + if std.objectHas(super.spec, 'template') + then super.spec.template.spec.withVolumesMixin(volumeMixins) + else super.spec.jobTemplate.spec.template.spec.withVolumesMixin(volumeMixins), + + '#secretVolumeMountAnnotated': d.fn( + 'same as `secretVolumeMount`, adding an annotation to force redeploy on change.' + + volumeMountDescription, + [ + d.arg('name', d.T.string), + d.arg('path', d.T.string), + d.arg('defaultMode', d.T.string), + d.arg('volumeMountMixin', d.T.object), + d.arg('volumeMixin', d.T.object), + d.arg('containers', d.T.array), + ] + ), + secretVolumeMountAnnotated(name, path, defaultMode=256, volumeMountMixin={}, volumeMixin={}, containers=null, includeInitContainers=false):: + local annotations = { ['%s-secret-hash' % name]: std.md5(std.toString(name)) }; + + self.secretVolumeMount(name, path, defaultMode, volumeMountMixin, volumeMixin, containers) + + super.spec.template.metadata.withAnnotationsMixin(annotations), + + '#emptyVolumeMount': d.fn( + ||| + `emptyVolumeMount` mounts empty volume by `name` into all container on `path`. + + If `containers` is specified as an array of container names it will only be mounted + to those containers, otherwise it will be mounted on all containers. + + This helper function can be augmented with a `volumeMixin`. For example, + passing "k.core.v1.volume.emptyDir.withSizeLimit('100Mi')" will result in a + mixin that limits the size of the volume to 100Mi. + ||| + + volumeMountDescription, + [ + d.arg('name', d.T.string), + d.arg('path', d.T.string), + d.arg('volumeMountMixin', d.T.object), + d.arg('volumeMixin', d.T.object), + d.arg('containers', d.T.array), + ] + ), + emptyVolumeMount(name, path, volumeMountMixin={}, volumeMixin={}, containers=null, includeInitContainers=false):: + local addMount(c) = c + ( + if containers == null || std.member(containers, c.name) + then container.withVolumeMountsMixin( + volumeMount.new(name, path) + + volumeMountMixin, + ) + else {} + ); + local volumeMixins = [volume.fromEmptyDir(name) + volumeMixin]; + + super.mapContainers(addMount, includeInitContainers=includeInitContainers) + + if std.objectHas(super.spec, 'template') + then super.spec.template.spec.withVolumesMixin(volumeMixins) + else super.spec.jobTemplate.spec.template.spec.withVolumesMixin(volumeMixins), + + '#csiVolumeMount': d.fn( + ||| + `csiVolumeMount` mounts CSI volume by `name` into all container on `path`. + If `containers` is specified as an array of container names it will only be mounted + to those containers, otherwise it will be mounted on all containers. + This helper function can be augmented with a `volumeMixin`. For example, + passing "k.core.v1.volume.csi.withReadOnly(false)" will result in a + mixin that makes the volume writeable. + ||| + + volumeMountDescription, + [ + d.arg('name', d.T.string), + d.arg('path', d.T.string), + d.arg('driver', d.T.string), + d.arg('volumeAttributes', d.T.object, {}), + d.arg('volumeMountMixin', d.T.object), + d.arg('volumeMixin', d.T.object), + d.arg('containers', d.T.array), + ] + ), + csiVolumeMount(name, path, driver, volumeAttributes, volumeMountMixin={}, volumeMixin={}, containers=null, includeInitContainers=false):: + local addMount(c) = c + ( + if containers == null || std.member(containers, c.name) + then container.withVolumeMountsMixin( + volumeMount.new(name, path) + + volumeMountMixin, + ) + else {} + ); + local volumeMixins = [volume.fromCsi(name, driver, volumeAttributes) + volumeMixin]; + + super.mapContainers(addMount, includeInitContainers=includeInitContainers) + + if std.objectHas(super.spec, 'template') + then super.spec.template.spec.withVolumesMixin(volumeMixins) + else super.spec.jobTemplate.spec.template.spec.withVolumesMixin(volumeMixins), + }, + + batch+: { + v1+: { + job+: patch, + cronJob+: patch, + }, + }, + apps+: { + v1+: { + daemonSet+: patch, + deployment+: patch, + replicaSet+: patch, + statefulSet+: patch, + }, + }, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/main.libsonnet new file mode 100644 index 0000000..a64ea12 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/main.libsonnet @@ -0,0 +1,7 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='admissionregistration', url='', help=''), + v1: (import 'v1/main.libsonnet'), + v1alpha1: (import 'v1alpha1/main.libsonnet'), + v1beta1: (import 'v1beta1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/auditAnnotation.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/auditAnnotation.libsonnet new file mode 100644 index 0000000..96c7387 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/auditAnnotation.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='auditAnnotation', url='', help='"AuditAnnotation describes how to produce an audit annotation for an API request."'), + '#withKey':: d.fn(help='"key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\\n\\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \\"{ValidatingAdmissionPolicy name}/{key}\\".\\n\\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\\n\\nRequired."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withValueExpression':: d.fn(help='"valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\\n\\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\\n\\nRequired."', args=[d.arg(name='valueExpression', type=d.T.string)]), + withValueExpression(valueExpression): { valueExpression: valueExpression }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/expressionWarning.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/expressionWarning.libsonnet new file mode 100644 index 0000000..895ad9d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/expressionWarning.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='expressionWarning', url='', help='"ExpressionWarning is a warning information that targets a specific expression."'), + '#withFieldRef':: d.fn(help='"The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \\"spec.validations[0].expression\\', args=[d.arg(name='fieldRef', type=d.T.string)]), + withFieldRef(fieldRef): { fieldRef: fieldRef }, + '#withWarning':: d.fn(help='"The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler."', args=[d.arg(name='warning', type=d.T.string)]), + withWarning(warning): { warning: warning }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/main.libsonnet new file mode 100644 index 0000000..452e638 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/main.libsonnet @@ -0,0 +1,26 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + auditAnnotation: (import 'auditAnnotation.libsonnet'), + expressionWarning: (import 'expressionWarning.libsonnet'), + matchCondition: (import 'matchCondition.libsonnet'), + matchResources: (import 'matchResources.libsonnet'), + mutatingWebhook: (import 'mutatingWebhook.libsonnet'), + mutatingWebhookConfiguration: (import 'mutatingWebhookConfiguration.libsonnet'), + namedRuleWithOperations: (import 'namedRuleWithOperations.libsonnet'), + paramKind: (import 'paramKind.libsonnet'), + paramRef: (import 'paramRef.libsonnet'), + ruleWithOperations: (import 'ruleWithOperations.libsonnet'), + serviceReference: (import 'serviceReference.libsonnet'), + typeChecking: (import 'typeChecking.libsonnet'), + validatingAdmissionPolicy: (import 'validatingAdmissionPolicy.libsonnet'), + validatingAdmissionPolicyBinding: (import 'validatingAdmissionPolicyBinding.libsonnet'), + validatingAdmissionPolicyBindingSpec: (import 'validatingAdmissionPolicyBindingSpec.libsonnet'), + validatingAdmissionPolicySpec: (import 'validatingAdmissionPolicySpec.libsonnet'), + validatingAdmissionPolicyStatus: (import 'validatingAdmissionPolicyStatus.libsonnet'), + validatingWebhook: (import 'validatingWebhook.libsonnet'), + validatingWebhookConfiguration: (import 'validatingWebhookConfiguration.libsonnet'), + validation: (import 'validation.libsonnet'), + variable: (import 'variable.libsonnet'), + webhookClientConfig: (import 'webhookClientConfig.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/matchCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/matchCondition.libsonnet new file mode 100644 index 0000000..d28c501 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/matchCondition.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='matchCondition', url='', help='"MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook."'), + '#withExpression':: d.fn(help="\"Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\\n\\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\\n request resource.\\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\\n\\nRequired.\"", args=[d.arg(name='expression', type=d.T.string)]), + withExpression(expression): { expression: expression }, + '#withName':: d.fn(help="\"Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\\n\\nRequired.\"", args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/matchResources.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/matchResources.libsonnet new file mode 100644 index 0000000..0215d0c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/matchResources.libsonnet @@ -0,0 +1,38 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='matchResources', url='', help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { namespaceSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { namespaceSelector+: { matchLabels+: matchLabels } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { objectSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { objectSelector+: { matchLabels+: matchLabels } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchPolicy: matchPolicy }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/mutatingWebhook.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/mutatingWebhook.libsonnet new file mode 100644 index 0000000..ae9f4ce --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/mutatingWebhook.libsonnet @@ -0,0 +1,70 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='mutatingWebhook', url='', help='"MutatingWebhook describes an admission webhook and the resources and operations it applies to."'), + '#clientConfig':: d.obj(help='"WebhookClientConfig contains the information to make a TLS connection with the webhook"'), + clientConfig: { + '#service':: d.obj(help='"ServiceReference holds a reference to Service.legacy.k8s.io"'), + service: { + '#withName':: d.fn(help='"`name` is the name of the service. Required"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { clientConfig+: { service+: { name: name } } }, + '#withNamespace':: d.fn(help='"`namespace` is the namespace of the service. Required"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { clientConfig+: { service+: { namespace: namespace } } }, + '#withPath':: d.fn(help='"`path` is an optional URL path which will be sent in any request to this service."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { clientConfig+: { service+: { path: path } } }, + '#withPort':: d.fn(help='"If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive)."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { clientConfig+: { service+: { port: port } } }, + }, + '#withCaBundle':: d.fn(help="\"`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.\"", args=[d.arg(name='caBundle', type=d.T.string)]), + withCaBundle(caBundle): { clientConfig+: { caBundle: caBundle } }, + '#withUrl':: d.fn(help='"`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\\n\\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\\n\\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\\n\\nThe scheme must be \\"https\\"; the URL must begin with \\"https://\\".\\n\\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\\n\\nAttempting to use a user or basic auth e.g. \\"user:password@\\" is not allowed. Fragments (\\"#...\\") and query parameters (\\"?...\\") are not allowed, either."', args=[d.arg(name='url', type=d.T.string)]), + withUrl(url): { clientConfig+: { url: url } }, + }, + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { namespaceSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { namespaceSelector+: { matchLabels+: matchLabels } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { objectSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { objectSelector+: { matchLabels+: matchLabels } }, + }, + '#withAdmissionReviewVersions':: d.fn(help='"AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy."', args=[d.arg(name='admissionReviewVersions', type=d.T.array)]), + withAdmissionReviewVersions(admissionReviewVersions): { admissionReviewVersions: if std.isArray(v=admissionReviewVersions) then admissionReviewVersions else [admissionReviewVersions] }, + '#withAdmissionReviewVersionsMixin':: d.fn(help='"AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='admissionReviewVersions', type=d.T.array)]), + withAdmissionReviewVersionsMixin(admissionReviewVersions): { admissionReviewVersions+: if std.isArray(v=admissionReviewVersions) then admissionReviewVersions else [admissionReviewVersions] }, + '#withFailurePolicy':: d.fn(help='"FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail."', args=[d.arg(name='failurePolicy', type=d.T.string)]), + withFailurePolicy(failurePolicy): { failurePolicy: failurePolicy }, + '#withMatchConditions':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped"', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditions(matchConditions): { matchConditions: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withMatchConditionsMixin':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditionsMixin(matchConditions): { matchConditions+: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"rules\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchPolicy: matchPolicy }, + '#withName':: d.fn(help='"The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \\"imagepolicy\\" is the name of the webhook, and kubernetes.io is the name of the organization. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withReinvocationPolicy':: d.fn(help='"reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \\"Never\\" and \\"IfNeeded\\".\\n\\nNever: the webhook will not be called more than once in a single admission evaluation.\\n\\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\\n\\nDefaults to \\"Never\\"."', args=[d.arg(name='reinvocationPolicy', type=d.T.string)]), + withReinvocationPolicy(reinvocationPolicy): { reinvocationPolicy: reinvocationPolicy }, + '#withRules':: d.fn(help='"Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { rules: if std.isArray(v=rules) then rules else [rules] }, + '#withRulesMixin':: d.fn(help='"Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { rules+: if std.isArray(v=rules) then rules else [rules] }, + '#withSideEffects':: d.fn(help='"SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some."', args=[d.arg(name='sideEffects', type=d.T.string)]), + withSideEffects(sideEffects): { sideEffects: sideEffects }, + '#withTimeoutSeconds':: d.fn(help='"TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds."', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { timeoutSeconds: timeoutSeconds }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/mutatingWebhookConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/mutatingWebhookConfiguration.libsonnet new file mode 100644 index 0000000..b3108c6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/mutatingWebhookConfiguration.libsonnet @@ -0,0 +1,58 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='mutatingWebhookConfiguration', url='', help='"MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of MutatingWebhookConfiguration', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'MutatingWebhookConfiguration', + } + self.metadata.withName(name=name), + '#withWebhooks':: d.fn(help='"Webhooks is a list of webhooks and the affected resources and operations."', args=[d.arg(name='webhooks', type=d.T.array)]), + withWebhooks(webhooks): { webhooks: if std.isArray(v=webhooks) then webhooks else [webhooks] }, + '#withWebhooksMixin':: d.fn(help='"Webhooks is a list of webhooks and the affected resources and operations."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='webhooks', type=d.T.array)]), + withWebhooksMixin(webhooks): { webhooks+: if std.isArray(v=webhooks) then webhooks else [webhooks] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/namedRuleWithOperations.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/namedRuleWithOperations.libsonnet new file mode 100644 index 0000000..a1726a5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/namedRuleWithOperations.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedRuleWithOperations', url='', help='"NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames."'), + '#withApiGroups':: d.fn(help="\"APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroups(apiGroups): { apiGroups: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiGroupsMixin':: d.fn(help="\"APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroupsMixin(apiGroups): { apiGroups+: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiVersions':: d.fn(help="\"APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='apiVersions', type=d.T.array)]), + withApiVersions(apiVersions): { apiVersions: if std.isArray(v=apiVersions) then apiVersions else [apiVersions] }, + '#withApiVersionsMixin':: d.fn(help="\"APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='apiVersions', type=d.T.array)]), + withApiVersionsMixin(apiVersions): { apiVersions+: if std.isArray(v=apiVersions) then apiVersions else [apiVersions] }, + '#withOperations':: d.fn(help="\"Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='operations', type=d.T.array)]), + withOperations(operations): { operations: if std.isArray(v=operations) then operations else [operations] }, + '#withOperationsMixin':: d.fn(help="\"Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='operations', type=d.T.array)]), + withOperationsMixin(operations): { operations+: if std.isArray(v=operations) then operations else [operations] }, + '#withResourceNames':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed."', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNames(resourceNames): { resourceNames: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResourceNamesMixin':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNamesMixin(resourceNames): { resourceNames+: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResources':: d.fn(help="\"Resources is a list of resources this rule applies to.\\n\\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\\n\\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\\n\\nDepending on the enclosing object, subresources might not be allowed. Required.\"", args=[d.arg(name='resources', type=d.T.array)]), + withResources(resources): { resources: if std.isArray(v=resources) then resources else [resources] }, + '#withResourcesMixin':: d.fn(help="\"Resources is a list of resources this rule applies to.\\n\\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\\n\\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\\n\\nDepending on the enclosing object, subresources might not be allowed. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='resources', type=d.T.array)]), + withResourcesMixin(resources): { resources+: if std.isArray(v=resources) then resources else [resources] }, + '#withScope':: d.fn(help='"scope specifies the scope of this rule. Valid values are \\"Cluster\\", \\"Namespaced\\", and \\"*\\" \\"Cluster\\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \\"Namespaced\\" means that only namespaced resources will match this rule. \\"*\\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \\"*\\"."', args=[d.arg(name='scope', type=d.T.string)]), + withScope(scope): { scope: scope }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/paramKind.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/paramKind.libsonnet new file mode 100644 index 0000000..11a3494 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/paramKind.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='paramKind', url='', help='"ParamKind is a tuple of Group Kind and Version."'), + '#withKind':: d.fn(help='"Kind is the API kind the resources belong to. Required."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/paramRef.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/paramRef.libsonnet new file mode 100644 index 0000000..51da556 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/paramRef.libsonnet @@ -0,0 +1,23 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='paramRef', url='', help='"ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding."'), + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#withName':: d.fn(help='"name is the name of the resource being referenced.\\n\\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\\n\\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\\n\\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\\n\\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\\n\\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withParameterNotFoundAction':: d.fn(help='"`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\\n\\nAllowed values are `Allow` or `Deny`\\n\\nRequired"', args=[d.arg(name='parameterNotFoundAction', type=d.T.string)]), + withParameterNotFoundAction(parameterNotFoundAction): { parameterNotFoundAction: parameterNotFoundAction }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/ruleWithOperations.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/ruleWithOperations.libsonnet new file mode 100644 index 0000000..d50b9c5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/ruleWithOperations.libsonnet @@ -0,0 +1,24 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ruleWithOperations', url='', help='"RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid."'), + '#withApiGroups':: d.fn(help="\"APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroups(apiGroups): { apiGroups: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiGroupsMixin':: d.fn(help="\"APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroupsMixin(apiGroups): { apiGroups+: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiVersions':: d.fn(help="\"APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='apiVersions', type=d.T.array)]), + withApiVersions(apiVersions): { apiVersions: if std.isArray(v=apiVersions) then apiVersions else [apiVersions] }, + '#withApiVersionsMixin':: d.fn(help="\"APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='apiVersions', type=d.T.array)]), + withApiVersionsMixin(apiVersions): { apiVersions+: if std.isArray(v=apiVersions) then apiVersions else [apiVersions] }, + '#withOperations':: d.fn(help="\"Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='operations', type=d.T.array)]), + withOperations(operations): { operations: if std.isArray(v=operations) then operations else [operations] }, + '#withOperationsMixin':: d.fn(help="\"Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='operations', type=d.T.array)]), + withOperationsMixin(operations): { operations+: if std.isArray(v=operations) then operations else [operations] }, + '#withResources':: d.fn(help="\"Resources is a list of resources this rule applies to.\\n\\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\\n\\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\\n\\nDepending on the enclosing object, subresources might not be allowed. Required.\"", args=[d.arg(name='resources', type=d.T.array)]), + withResources(resources): { resources: if std.isArray(v=resources) then resources else [resources] }, + '#withResourcesMixin':: d.fn(help="\"Resources is a list of resources this rule applies to.\\n\\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\\n\\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\\n\\nDepending on the enclosing object, subresources might not be allowed. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='resources', type=d.T.array)]), + withResourcesMixin(resources): { resources+: if std.isArray(v=resources) then resources else [resources] }, + '#withScope':: d.fn(help='"scope specifies the scope of this rule. Valid values are \\"Cluster\\", \\"Namespaced\\", and \\"*\\" \\"Cluster\\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \\"Namespaced\\" means that only namespaced resources will match this rule. \\"*\\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \\"*\\"."', args=[d.arg(name='scope', type=d.T.string)]), + withScope(scope): { scope: scope }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/serviceReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/serviceReference.libsonnet new file mode 100644 index 0000000..b4f76e5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/serviceReference.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceReference', url='', help='"ServiceReference holds a reference to Service.legacy.k8s.io"'), + '#withName':: d.fn(help='"`name` is the name of the service. Required"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"`namespace` is the namespace of the service. Required"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withPath':: d.fn(help='"`path` is an optional URL path which will be sent in any request to this service."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withPort':: d.fn(help='"If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive)."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { port: port }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/typeChecking.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/typeChecking.libsonnet new file mode 100644 index 0000000..1af6056 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/typeChecking.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='typeChecking', url='', help='"TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy"'), + '#withExpressionWarnings':: d.fn(help='"The type checking warnings for each expression."', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarnings(expressionWarnings): { expressionWarnings: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] }, + '#withExpressionWarningsMixin':: d.fn(help='"The type checking warnings for each expression."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarningsMixin(expressionWarnings): { expressionWarnings+: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicy.libsonnet new file mode 100644 index 0000000..435957f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicy.libsonnet @@ -0,0 +1,117 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicy', url='', help='"ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ValidatingAdmissionPolicy', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'ValidatingAdmissionPolicy', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy."'), + spec: { + '#matchConstraints':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchConstraints: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchConstraints+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchConstraints+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchConstraints+: { namespaceSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchConstraints+: { namespaceSelector+: { matchLabels+: matchLabels } } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchConstraints+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchConstraints+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchConstraints+: { objectSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchConstraints+: { objectSelector+: { matchLabels+: matchLabels } } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { spec+: { matchConstraints+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { spec+: { matchConstraints+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { spec+: { matchConstraints+: { matchPolicy: matchPolicy } } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { spec+: { matchConstraints+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { spec+: { matchConstraints+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + }, + '#paramKind':: d.obj(help='"ParamKind is a tuple of Group Kind and Version."'), + paramKind: { + '#withApiVersion':: d.fn(help='"APIVersion is the API group version the resources belong to. In format of \\"group/version\\". Required."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { paramKind+: { apiVersion: apiVersion } } }, + '#withKind':: d.fn(help='"Kind is the API kind the resources belong to. Required."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { paramKind+: { kind: kind } } }, + }, + '#withAuditAnnotations':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotations(auditAnnotations): { spec+: { auditAnnotations: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] } }, + '#withAuditAnnotationsMixin':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotationsMixin(auditAnnotations): { spec+: { auditAnnotations+: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] } }, + '#withFailurePolicy':: d.fn(help='"failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\\n\\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\\n\\nfailurePolicy does not define how validations that evaluate to false are handled.\\n\\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\\n\\nAllowed values are Ignore or Fail. Defaults to Fail."', args=[d.arg(name='failurePolicy', type=d.T.string)]), + withFailurePolicy(failurePolicy): { spec+: { failurePolicy: failurePolicy } }, + '#withMatchConditions':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditions(matchConditions): { spec+: { matchConditions: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] } }, + '#withMatchConditionsMixin':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditionsMixin(matchConditions): { spec+: { matchConditions+: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] } }, + '#withValidations':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."', args=[d.arg(name='validations', type=d.T.array)]), + withValidations(validations): { spec+: { validations: if std.isArray(v=validations) then validations else [validations] } }, + '#withValidationsMixin':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='validations', type=d.T.array)]), + withValidationsMixin(validations): { spec+: { validations+: if std.isArray(v=validations) then validations else [validations] } }, + '#withVariables':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."', args=[d.arg(name='variables', type=d.T.array)]), + withVariables(variables): { spec+: { variables: if std.isArray(v=variables) then variables else [variables] } }, + '#withVariablesMixin':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='variables', type=d.T.array)]), + withVariablesMixin(variables): { spec+: { variables+: if std.isArray(v=variables) then variables else [variables] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyBinding.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyBinding.libsonnet new file mode 100644 index 0000000..3b8838a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyBinding.libsonnet @@ -0,0 +1,118 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicyBinding', url='', help="\"ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\\n\\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\\n\\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.\""), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ValidatingAdmissionPolicyBinding', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'ValidatingAdmissionPolicyBinding', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding."'), + spec: { + '#matchResources':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchResources: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchResources+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchResources+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchResources+: { namespaceSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchResources+: { namespaceSelector+: { matchLabels+: matchLabels } } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchResources+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchResources+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchResources+: { objectSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchResources+: { objectSelector+: { matchLabels+: matchLabels } } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { spec+: { matchResources+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { spec+: { matchResources+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { spec+: { matchResources+: { matchPolicy: matchPolicy } } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { spec+: { matchResources+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { spec+: { matchResources+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + }, + '#paramRef':: d.obj(help='"ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding."'), + paramRef: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { paramRef+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { paramRef+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { paramRef+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { paramRef+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withName':: d.fn(help='"name is the name of the resource being referenced.\\n\\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\\n\\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { paramRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\\n\\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\\n\\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\\n\\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { paramRef+: { namespace: namespace } } }, + '#withParameterNotFoundAction':: d.fn(help='"`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\\n\\nAllowed values are `Allow` or `Deny`\\n\\nRequired"', args=[d.arg(name='parameterNotFoundAction', type=d.T.string)]), + withParameterNotFoundAction(parameterNotFoundAction): { spec+: { paramRef+: { parameterNotFoundAction: parameterNotFoundAction } } }, + }, + '#withPolicyName':: d.fn(help='"PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required."', args=[d.arg(name='policyName', type=d.T.string)]), + withPolicyName(policyName): { spec+: { policyName: policyName } }, + '#withValidationActions':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActions(validationActions): { spec+: { validationActions: if std.isArray(v=validationActions) then validationActions else [validationActions] } }, + '#withValidationActionsMixin':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActionsMixin(validationActions): { spec+: { validationActions+: if std.isArray(v=validationActions) then validationActions else [validationActions] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyBindingSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyBindingSpec.libsonnet new file mode 100644 index 0000000..e1ebe62 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyBindingSpec.libsonnet @@ -0,0 +1,67 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicyBindingSpec', url='', help='"ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding."'), + '#matchResources':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchResources: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchResources+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchResources+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchResources+: { namespaceSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchResources+: { namespaceSelector+: { matchLabels+: matchLabels } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchResources+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchResources+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchResources+: { objectSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchResources+: { objectSelector+: { matchLabels+: matchLabels } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { matchResources+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { matchResources+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchResources+: { matchPolicy: matchPolicy } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { matchResources+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { matchResources+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + }, + '#paramRef':: d.obj(help='"ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding."'), + paramRef: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { paramRef+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { paramRef+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { paramRef+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { paramRef+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"name is the name of the resource being referenced.\\n\\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\\n\\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { paramRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\\n\\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\\n\\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\\n\\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { paramRef+: { namespace: namespace } }, + '#withParameterNotFoundAction':: d.fn(help='"`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\\n\\nAllowed values are `Allow` or `Deny`\\n\\nRequired"', args=[d.arg(name='parameterNotFoundAction', type=d.T.string)]), + withParameterNotFoundAction(parameterNotFoundAction): { paramRef+: { parameterNotFoundAction: parameterNotFoundAction } }, + }, + '#withPolicyName':: d.fn(help='"PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required."', args=[d.arg(name='policyName', type=d.T.string)]), + withPolicyName(policyName): { policyName: policyName }, + '#withValidationActions':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActions(validationActions): { validationActions: if std.isArray(v=validationActions) then validationActions else [validationActions] }, + '#withValidationActionsMixin':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActionsMixin(validationActions): { validationActions+: if std.isArray(v=validationActions) then validationActions else [validationActions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicySpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicySpec.libsonnet new file mode 100644 index 0000000..3bc96c0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicySpec.libsonnet @@ -0,0 +1,66 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicySpec', url='', help='"ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy."'), + '#matchConstraints':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchConstraints: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchConstraints+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchConstraints+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchConstraints+: { namespaceSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchConstraints+: { namespaceSelector+: { matchLabels+: matchLabels } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchConstraints+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchConstraints+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchConstraints+: { objectSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchConstraints+: { objectSelector+: { matchLabels+: matchLabels } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { matchConstraints+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { matchConstraints+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchConstraints+: { matchPolicy: matchPolicy } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { matchConstraints+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { matchConstraints+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + }, + '#paramKind':: d.obj(help='"ParamKind is a tuple of Group Kind and Version."'), + paramKind: { + '#withApiVersion':: d.fn(help='"APIVersion is the API group version the resources belong to. In format of \\"group/version\\". Required."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { paramKind+: { apiVersion: apiVersion } }, + '#withKind':: d.fn(help='"Kind is the API kind the resources belong to. Required."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { paramKind+: { kind: kind } }, + }, + '#withAuditAnnotations':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotations(auditAnnotations): { auditAnnotations: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] }, + '#withAuditAnnotationsMixin':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotationsMixin(auditAnnotations): { auditAnnotations+: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] }, + '#withFailurePolicy':: d.fn(help='"failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\\n\\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\\n\\nfailurePolicy does not define how validations that evaluate to false are handled.\\n\\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\\n\\nAllowed values are Ignore or Fail. Defaults to Fail."', args=[d.arg(name='failurePolicy', type=d.T.string)]), + withFailurePolicy(failurePolicy): { failurePolicy: failurePolicy }, + '#withMatchConditions':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditions(matchConditions): { matchConditions: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withMatchConditionsMixin':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditionsMixin(matchConditions): { matchConditions+: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withValidations':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."', args=[d.arg(name='validations', type=d.T.array)]), + withValidations(validations): { validations: if std.isArray(v=validations) then validations else [validations] }, + '#withValidationsMixin':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='validations', type=d.T.array)]), + withValidationsMixin(validations): { validations+: if std.isArray(v=validations) then validations else [validations] }, + '#withVariables':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."', args=[d.arg(name='variables', type=d.T.array)]), + withVariables(variables): { variables: if std.isArray(v=variables) then variables else [variables] }, + '#withVariablesMixin':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='variables', type=d.T.array)]), + withVariablesMixin(variables): { variables+: if std.isArray(v=variables) then variables else [variables] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyStatus.libsonnet new file mode 100644 index 0000000..6d150d5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingAdmissionPolicyStatus.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicyStatus', url='', help='"ValidatingAdmissionPolicyStatus represents the status of an admission validation policy."'), + '#typeChecking':: d.obj(help='"TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy"'), + typeChecking: { + '#withExpressionWarnings':: d.fn(help='"The type checking warnings for each expression."', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarnings(expressionWarnings): { typeChecking+: { expressionWarnings: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] } }, + '#withExpressionWarningsMixin':: d.fn(help='"The type checking warnings for each expression."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarningsMixin(expressionWarnings): { typeChecking+: { expressionWarnings+: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] } }, + }, + '#withConditions':: d.fn(help="\"The conditions represent the latest available observations of a policy's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"The conditions represent the latest available observations of a policy's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withObservedGeneration':: d.fn(help='"The generation observed by the controller."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingWebhook.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingWebhook.libsonnet new file mode 100644 index 0000000..c893f9b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingWebhook.libsonnet @@ -0,0 +1,68 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingWebhook', url='', help='"ValidatingWebhook describes an admission webhook and the resources and operations it applies to."'), + '#clientConfig':: d.obj(help='"WebhookClientConfig contains the information to make a TLS connection with the webhook"'), + clientConfig: { + '#service':: d.obj(help='"ServiceReference holds a reference to Service.legacy.k8s.io"'), + service: { + '#withName':: d.fn(help='"`name` is the name of the service. Required"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { clientConfig+: { service+: { name: name } } }, + '#withNamespace':: d.fn(help='"`namespace` is the namespace of the service. Required"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { clientConfig+: { service+: { namespace: namespace } } }, + '#withPath':: d.fn(help='"`path` is an optional URL path which will be sent in any request to this service."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { clientConfig+: { service+: { path: path } } }, + '#withPort':: d.fn(help='"If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive)."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { clientConfig+: { service+: { port: port } } }, + }, + '#withCaBundle':: d.fn(help="\"`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.\"", args=[d.arg(name='caBundle', type=d.T.string)]), + withCaBundle(caBundle): { clientConfig+: { caBundle: caBundle } }, + '#withUrl':: d.fn(help='"`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\\n\\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\\n\\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\\n\\nThe scheme must be \\"https\\"; the URL must begin with \\"https://\\".\\n\\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\\n\\nAttempting to use a user or basic auth e.g. \\"user:password@\\" is not allowed. Fragments (\\"#...\\") and query parameters (\\"?...\\") are not allowed, either."', args=[d.arg(name='url', type=d.T.string)]), + withUrl(url): { clientConfig+: { url: url } }, + }, + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { namespaceSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { namespaceSelector+: { matchLabels+: matchLabels } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { objectSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { objectSelector+: { matchLabels+: matchLabels } }, + }, + '#withAdmissionReviewVersions':: d.fn(help='"AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy."', args=[d.arg(name='admissionReviewVersions', type=d.T.array)]), + withAdmissionReviewVersions(admissionReviewVersions): { admissionReviewVersions: if std.isArray(v=admissionReviewVersions) then admissionReviewVersions else [admissionReviewVersions] }, + '#withAdmissionReviewVersionsMixin':: d.fn(help='"AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='admissionReviewVersions', type=d.T.array)]), + withAdmissionReviewVersionsMixin(admissionReviewVersions): { admissionReviewVersions+: if std.isArray(v=admissionReviewVersions) then admissionReviewVersions else [admissionReviewVersions] }, + '#withFailurePolicy':: d.fn(help='"FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail."', args=[d.arg(name='failurePolicy', type=d.T.string)]), + withFailurePolicy(failurePolicy): { failurePolicy: failurePolicy }, + '#withMatchConditions':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped"', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditions(matchConditions): { matchConditions: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withMatchConditionsMixin':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditionsMixin(matchConditions): { matchConditions+: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"rules\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchPolicy: matchPolicy }, + '#withName':: d.fn(help='"The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \\"imagepolicy\\" is the name of the webhook, and kubernetes.io is the name of the organization. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withRules':: d.fn(help='"Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { rules: if std.isArray(v=rules) then rules else [rules] }, + '#withRulesMixin':: d.fn(help='"Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { rules+: if std.isArray(v=rules) then rules else [rules] }, + '#withSideEffects':: d.fn(help='"SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some."', args=[d.arg(name='sideEffects', type=d.T.string)]), + withSideEffects(sideEffects): { sideEffects: sideEffects }, + '#withTimeoutSeconds':: d.fn(help='"TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds."', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { timeoutSeconds: timeoutSeconds }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingWebhookConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingWebhookConfiguration.libsonnet new file mode 100644 index 0000000..4814f46 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validatingWebhookConfiguration.libsonnet @@ -0,0 +1,58 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingWebhookConfiguration', url='', help='"ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ValidatingWebhookConfiguration', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'admissionregistration.k8s.io/v1', + kind: 'ValidatingWebhookConfiguration', + } + self.metadata.withName(name=name), + '#withWebhooks':: d.fn(help='"Webhooks is a list of webhooks and the affected resources and operations."', args=[d.arg(name='webhooks', type=d.T.array)]), + withWebhooks(webhooks): { webhooks: if std.isArray(v=webhooks) then webhooks else [webhooks] }, + '#withWebhooksMixin':: d.fn(help='"Webhooks is a list of webhooks and the affected resources and operations."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='webhooks', type=d.T.array)]), + withWebhooksMixin(webhooks): { webhooks+: if std.isArray(v=webhooks) then webhooks else [webhooks] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validation.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validation.libsonnet new file mode 100644 index 0000000..db493d3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/validation.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validation', url='', help='"Validation specifies the CEL expression which is used to apply the validation."'), + '#withExpression':: d.fn(help="\"Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\\n\\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\\n request resource.\\n\\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\\n\\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\\n\\t \\\"true\\\", \\\"false\\\", \\\"null\\\", \\\"in\\\", \\\"as\\\", \\\"break\\\", \\\"const\\\", \\\"continue\\\", \\\"else\\\", \\\"for\\\", \\\"function\\\", \\\"if\\\",\\n\\t \\\"import\\\", \\\"let\\\", \\\"loop\\\", \\\"package\\\", \\\"namespace\\\", \\\"return\\\".\\nExamples:\\n - Expression accessing a property named \\\"namespace\\\": {\\\"Expression\\\": \\\"object.__namespace__ \u003e 0\\\"}\\n - Expression accessing a property named \\\"x-prop\\\": {\\\"Expression\\\": \\\"object.x__dash__prop \u003e 0\\\"}\\n - Expression accessing a property named \\\"redact__d\\\": {\\\"Expression\\\": \\\"object.redact__underscores__d \u003e 0\\\"}\\n\\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\\n non-intersecting elements in `Y` are appended, retaining their partial order.\\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\\n non-intersecting keys are appended, retaining their partial order.\\nRequired.\"", args=[d.arg(name='expression', type=d.T.string)]), + withExpression(expression): { expression: expression }, + '#withMessage':: d.fn(help='"Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \\"failed rule: {Rule}\\". e.g. \\"must be a URL with the host matching spec.host\\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \\"failed Expression: {Expression}\\"."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withMessageExpression':: d.fn(help="\"messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \\\"object.x must be less than max (\\\"+string(params.max)+\\\")\\", args=[d.arg(name='messageExpression', type=d.T.string)]), + withMessageExpression(messageExpression): { messageExpression: messageExpression }, + '#withReason':: d.fn(help='"Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \\"Unauthorized\\", \\"Forbidden\\", \\"Invalid\\", \\"RequestEntityTooLarge\\". If not set, StatusReasonInvalid is used in the response to the client."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/variable.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/variable.libsonnet new file mode 100644 index 0000000..084c27b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/variable.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='variable', url='', help='"Variable is the definition of a variable that is used for composition. A variable is defined as a named expression."'), + '#withExpression':: d.fn(help='"Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation."', args=[d.arg(name='expression', type=d.T.string)]), + withExpression(expression): { expression: expression }, + '#withName':: d.fn(help='"Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \\"foo\\", the variable will be available as `variables.foo`"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/webhookClientConfig.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/webhookClientConfig.libsonnet new file mode 100644 index 0000000..f6c6a97 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1/webhookClientConfig.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='webhookClientConfig', url='', help='"WebhookClientConfig contains the information to make a TLS connection with the webhook"'), + '#service':: d.obj(help='"ServiceReference holds a reference to Service.legacy.k8s.io"'), + service: { + '#withName':: d.fn(help='"`name` is the name of the service. Required"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { service+: { name: name } }, + '#withNamespace':: d.fn(help='"`namespace` is the namespace of the service. Required"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { service+: { namespace: namespace } }, + '#withPath':: d.fn(help='"`path` is an optional URL path which will be sent in any request to this service."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { service+: { path: path } }, + '#withPort':: d.fn(help='"If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive)."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { service+: { port: port } }, + }, + '#withCaBundle':: d.fn(help="\"`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.\"", args=[d.arg(name='caBundle', type=d.T.string)]), + withCaBundle(caBundle): { caBundle: caBundle }, + '#withUrl':: d.fn(help='"`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\\n\\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\\n\\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\\n\\nThe scheme must be \\"https\\"; the URL must begin with \\"https://\\".\\n\\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\\n\\nAttempting to use a user or basic auth e.g. \\"user:password@\\" is not allowed. Fragments (\\"#...\\") and query parameters (\\"?...\\") are not allowed, either."', args=[d.arg(name='url', type=d.T.string)]), + withUrl(url): { url: url }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/auditAnnotation.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/auditAnnotation.libsonnet new file mode 100644 index 0000000..96c7387 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/auditAnnotation.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='auditAnnotation', url='', help='"AuditAnnotation describes how to produce an audit annotation for an API request."'), + '#withKey':: d.fn(help='"key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\\n\\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \\"{ValidatingAdmissionPolicy name}/{key}\\".\\n\\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\\n\\nRequired."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withValueExpression':: d.fn(help='"valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\\n\\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\\n\\nRequired."', args=[d.arg(name='valueExpression', type=d.T.string)]), + withValueExpression(valueExpression): { valueExpression: valueExpression }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/expressionWarning.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/expressionWarning.libsonnet new file mode 100644 index 0000000..895ad9d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/expressionWarning.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='expressionWarning', url='', help='"ExpressionWarning is a warning information that targets a specific expression."'), + '#withFieldRef':: d.fn(help='"The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \\"spec.validations[0].expression\\', args=[d.arg(name='fieldRef', type=d.T.string)]), + withFieldRef(fieldRef): { fieldRef: fieldRef }, + '#withWarning':: d.fn(help='"The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler."', args=[d.arg(name='warning', type=d.T.string)]), + withWarning(warning): { warning: warning }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/main.libsonnet new file mode 100644 index 0000000..cd3fb22 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/main.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1alpha1', url='', help=''), + auditAnnotation: (import 'auditAnnotation.libsonnet'), + expressionWarning: (import 'expressionWarning.libsonnet'), + matchCondition: (import 'matchCondition.libsonnet'), + matchResources: (import 'matchResources.libsonnet'), + namedRuleWithOperations: (import 'namedRuleWithOperations.libsonnet'), + paramKind: (import 'paramKind.libsonnet'), + paramRef: (import 'paramRef.libsonnet'), + typeChecking: (import 'typeChecking.libsonnet'), + validatingAdmissionPolicy: (import 'validatingAdmissionPolicy.libsonnet'), + validatingAdmissionPolicyBinding: (import 'validatingAdmissionPolicyBinding.libsonnet'), + validatingAdmissionPolicyBindingSpec: (import 'validatingAdmissionPolicyBindingSpec.libsonnet'), + validatingAdmissionPolicySpec: (import 'validatingAdmissionPolicySpec.libsonnet'), + validatingAdmissionPolicyStatus: (import 'validatingAdmissionPolicyStatus.libsonnet'), + validation: (import 'validation.libsonnet'), + variable: (import 'variable.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/matchCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/matchCondition.libsonnet new file mode 100644 index 0000000..3873071 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/matchCondition.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='matchCondition', url='', help=''), + '#withExpression':: d.fn(help="\"Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\\n\\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\\n request resource.\\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\\n\\nRequired.\"", args=[d.arg(name='expression', type=d.T.string)]), + withExpression(expression): { expression: expression }, + '#withName':: d.fn(help="\"Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\\n\\nRequired.\"", args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/matchResources.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/matchResources.libsonnet new file mode 100644 index 0000000..0215d0c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/matchResources.libsonnet @@ -0,0 +1,38 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='matchResources', url='', help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { namespaceSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { namespaceSelector+: { matchLabels+: matchLabels } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { objectSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { objectSelector+: { matchLabels+: matchLabels } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchPolicy: matchPolicy }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/namedRuleWithOperations.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/namedRuleWithOperations.libsonnet new file mode 100644 index 0000000..a1726a5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/namedRuleWithOperations.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedRuleWithOperations', url='', help='"NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames."'), + '#withApiGroups':: d.fn(help="\"APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroups(apiGroups): { apiGroups: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiGroupsMixin':: d.fn(help="\"APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroupsMixin(apiGroups): { apiGroups+: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiVersions':: d.fn(help="\"APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='apiVersions', type=d.T.array)]), + withApiVersions(apiVersions): { apiVersions: if std.isArray(v=apiVersions) then apiVersions else [apiVersions] }, + '#withApiVersionsMixin':: d.fn(help="\"APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='apiVersions', type=d.T.array)]), + withApiVersionsMixin(apiVersions): { apiVersions+: if std.isArray(v=apiVersions) then apiVersions else [apiVersions] }, + '#withOperations':: d.fn(help="\"Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='operations', type=d.T.array)]), + withOperations(operations): { operations: if std.isArray(v=operations) then operations else [operations] }, + '#withOperationsMixin':: d.fn(help="\"Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='operations', type=d.T.array)]), + withOperationsMixin(operations): { operations+: if std.isArray(v=operations) then operations else [operations] }, + '#withResourceNames':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed."', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNames(resourceNames): { resourceNames: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResourceNamesMixin':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNamesMixin(resourceNames): { resourceNames+: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResources':: d.fn(help="\"Resources is a list of resources this rule applies to.\\n\\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\\n\\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\\n\\nDepending on the enclosing object, subresources might not be allowed. Required.\"", args=[d.arg(name='resources', type=d.T.array)]), + withResources(resources): { resources: if std.isArray(v=resources) then resources else [resources] }, + '#withResourcesMixin':: d.fn(help="\"Resources is a list of resources this rule applies to.\\n\\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\\n\\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\\n\\nDepending on the enclosing object, subresources might not be allowed. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='resources', type=d.T.array)]), + withResourcesMixin(resources): { resources+: if std.isArray(v=resources) then resources else [resources] }, + '#withScope':: d.fn(help='"scope specifies the scope of this rule. Valid values are \\"Cluster\\", \\"Namespaced\\", and \\"*\\" \\"Cluster\\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \\"Namespaced\\" means that only namespaced resources will match this rule. \\"*\\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \\"*\\"."', args=[d.arg(name='scope', type=d.T.string)]), + withScope(scope): { scope: scope }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/paramKind.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/paramKind.libsonnet new file mode 100644 index 0000000..11a3494 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/paramKind.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='paramKind', url='', help='"ParamKind is a tuple of Group Kind and Version."'), + '#withKind':: d.fn(help='"Kind is the API kind the resources belong to. Required."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/paramRef.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/paramRef.libsonnet new file mode 100644 index 0000000..9781cdd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/paramRef.libsonnet @@ -0,0 +1,23 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='paramRef', url='', help='"ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding."'), + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#withName':: d.fn(help='"`name` is the name of the resource being referenced.\\n\\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\\n\\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\\n\\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\\n\\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withParameterNotFoundAction':: d.fn(help='"`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\\n\\nAllowed values are `Allow` or `Deny` Default to `Deny`"', args=[d.arg(name='parameterNotFoundAction', type=d.T.string)]), + withParameterNotFoundAction(parameterNotFoundAction): { parameterNotFoundAction: parameterNotFoundAction }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/typeChecking.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/typeChecking.libsonnet new file mode 100644 index 0000000..1af6056 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/typeChecking.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='typeChecking', url='', help='"TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy"'), + '#withExpressionWarnings':: d.fn(help='"The type checking warnings for each expression."', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarnings(expressionWarnings): { expressionWarnings: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] }, + '#withExpressionWarningsMixin':: d.fn(help='"The type checking warnings for each expression."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarningsMixin(expressionWarnings): { expressionWarnings+: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicy.libsonnet new file mode 100644 index 0000000..a1b1a4f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicy.libsonnet @@ -0,0 +1,117 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicy', url='', help='"ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ValidatingAdmissionPolicy', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'admissionregistration.k8s.io/v1alpha1', + kind: 'ValidatingAdmissionPolicy', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy."'), + spec: { + '#matchConstraints':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchConstraints: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchConstraints+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchConstraints+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchConstraints+: { namespaceSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchConstraints+: { namespaceSelector+: { matchLabels+: matchLabels } } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchConstraints+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchConstraints+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchConstraints+: { objectSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchConstraints+: { objectSelector+: { matchLabels+: matchLabels } } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { spec+: { matchConstraints+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { spec+: { matchConstraints+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { spec+: { matchConstraints+: { matchPolicy: matchPolicy } } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { spec+: { matchConstraints+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { spec+: { matchConstraints+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + }, + '#paramKind':: d.obj(help='"ParamKind is a tuple of Group Kind and Version."'), + paramKind: { + '#withApiVersion':: d.fn(help='"APIVersion is the API group version the resources belong to. In format of \\"group/version\\". Required."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { paramKind+: { apiVersion: apiVersion } } }, + '#withKind':: d.fn(help='"Kind is the API kind the resources belong to. Required."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { paramKind+: { kind: kind } } }, + }, + '#withAuditAnnotations':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotations(auditAnnotations): { spec+: { auditAnnotations: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] } }, + '#withAuditAnnotationsMixin':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotationsMixin(auditAnnotations): { spec+: { auditAnnotations+: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] } }, + '#withFailurePolicy':: d.fn(help='"failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\\n\\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\\n\\nfailurePolicy does not define how validations that evaluate to false are handled.\\n\\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\\n\\nAllowed values are Ignore or Fail. Defaults to Fail."', args=[d.arg(name='failurePolicy', type=d.T.string)]), + withFailurePolicy(failurePolicy): { spec+: { failurePolicy: failurePolicy } }, + '#withMatchConditions':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditions(matchConditions): { spec+: { matchConditions: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] } }, + '#withMatchConditionsMixin':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditionsMixin(matchConditions): { spec+: { matchConditions+: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] } }, + '#withValidations':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."', args=[d.arg(name='validations', type=d.T.array)]), + withValidations(validations): { spec+: { validations: if std.isArray(v=validations) then validations else [validations] } }, + '#withValidationsMixin':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='validations', type=d.T.array)]), + withValidationsMixin(validations): { spec+: { validations+: if std.isArray(v=validations) then validations else [validations] } }, + '#withVariables':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."', args=[d.arg(name='variables', type=d.T.array)]), + withVariables(variables): { spec+: { variables: if std.isArray(v=variables) then variables else [variables] } }, + '#withVariablesMixin':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='variables', type=d.T.array)]), + withVariablesMixin(variables): { spec+: { variables+: if std.isArray(v=variables) then variables else [variables] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyBinding.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyBinding.libsonnet new file mode 100644 index 0000000..3a6143e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyBinding.libsonnet @@ -0,0 +1,118 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicyBinding', url='', help="\"ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\\n\\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\\n\\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.\""), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ValidatingAdmissionPolicyBinding', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'admissionregistration.k8s.io/v1alpha1', + kind: 'ValidatingAdmissionPolicyBinding', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding."'), + spec: { + '#matchResources':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchResources: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchResources+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchResources+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchResources+: { namespaceSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchResources+: { namespaceSelector+: { matchLabels+: matchLabels } } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchResources+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchResources+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchResources+: { objectSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchResources+: { objectSelector+: { matchLabels+: matchLabels } } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { spec+: { matchResources+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { spec+: { matchResources+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { spec+: { matchResources+: { matchPolicy: matchPolicy } } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { spec+: { matchResources+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { spec+: { matchResources+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + }, + '#paramRef':: d.obj(help='"ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding."'), + paramRef: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { paramRef+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { paramRef+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { paramRef+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { paramRef+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withName':: d.fn(help='"`name` is the name of the resource being referenced.\\n\\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { paramRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\\n\\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\\n\\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\\n\\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { paramRef+: { namespace: namespace } } }, + '#withParameterNotFoundAction':: d.fn(help='"`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\\n\\nAllowed values are `Allow` or `Deny` Default to `Deny`"', args=[d.arg(name='parameterNotFoundAction', type=d.T.string)]), + withParameterNotFoundAction(parameterNotFoundAction): { spec+: { paramRef+: { parameterNotFoundAction: parameterNotFoundAction } } }, + }, + '#withPolicyName':: d.fn(help='"PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required."', args=[d.arg(name='policyName', type=d.T.string)]), + withPolicyName(policyName): { spec+: { policyName: policyName } }, + '#withValidationActions':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActions(validationActions): { spec+: { validationActions: if std.isArray(v=validationActions) then validationActions else [validationActions] } }, + '#withValidationActionsMixin':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActionsMixin(validationActions): { spec+: { validationActions+: if std.isArray(v=validationActions) then validationActions else [validationActions] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyBindingSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyBindingSpec.libsonnet new file mode 100644 index 0000000..c08ef31 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyBindingSpec.libsonnet @@ -0,0 +1,67 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicyBindingSpec', url='', help='"ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding."'), + '#matchResources':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchResources: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchResources+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchResources+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchResources+: { namespaceSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchResources+: { namespaceSelector+: { matchLabels+: matchLabels } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchResources+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchResources+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchResources+: { objectSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchResources+: { objectSelector+: { matchLabels+: matchLabels } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { matchResources+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { matchResources+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchResources+: { matchPolicy: matchPolicy } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { matchResources+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { matchResources+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + }, + '#paramRef':: d.obj(help='"ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding."'), + paramRef: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { paramRef+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { paramRef+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { paramRef+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { paramRef+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"`name` is the name of the resource being referenced.\\n\\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { paramRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\\n\\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\\n\\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\\n\\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { paramRef+: { namespace: namespace } }, + '#withParameterNotFoundAction':: d.fn(help='"`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\\n\\nAllowed values are `Allow` or `Deny` Default to `Deny`"', args=[d.arg(name='parameterNotFoundAction', type=d.T.string)]), + withParameterNotFoundAction(parameterNotFoundAction): { paramRef+: { parameterNotFoundAction: parameterNotFoundAction } }, + }, + '#withPolicyName':: d.fn(help='"PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required."', args=[d.arg(name='policyName', type=d.T.string)]), + withPolicyName(policyName): { policyName: policyName }, + '#withValidationActions':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActions(validationActions): { validationActions: if std.isArray(v=validationActions) then validationActions else [validationActions] }, + '#withValidationActionsMixin':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActionsMixin(validationActions): { validationActions+: if std.isArray(v=validationActions) then validationActions else [validationActions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicySpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicySpec.libsonnet new file mode 100644 index 0000000..3bc96c0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicySpec.libsonnet @@ -0,0 +1,66 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicySpec', url='', help='"ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy."'), + '#matchConstraints':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchConstraints: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchConstraints+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchConstraints+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchConstraints+: { namespaceSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchConstraints+: { namespaceSelector+: { matchLabels+: matchLabels } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchConstraints+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchConstraints+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchConstraints+: { objectSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchConstraints+: { objectSelector+: { matchLabels+: matchLabels } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { matchConstraints+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { matchConstraints+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchConstraints+: { matchPolicy: matchPolicy } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { matchConstraints+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { matchConstraints+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + }, + '#paramKind':: d.obj(help='"ParamKind is a tuple of Group Kind and Version."'), + paramKind: { + '#withApiVersion':: d.fn(help='"APIVersion is the API group version the resources belong to. In format of \\"group/version\\". Required."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { paramKind+: { apiVersion: apiVersion } }, + '#withKind':: d.fn(help='"Kind is the API kind the resources belong to. Required."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { paramKind+: { kind: kind } }, + }, + '#withAuditAnnotations':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotations(auditAnnotations): { auditAnnotations: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] }, + '#withAuditAnnotationsMixin':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotationsMixin(auditAnnotations): { auditAnnotations+: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] }, + '#withFailurePolicy':: d.fn(help='"failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\\n\\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\\n\\nfailurePolicy does not define how validations that evaluate to false are handled.\\n\\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\\n\\nAllowed values are Ignore or Fail. Defaults to Fail."', args=[d.arg(name='failurePolicy', type=d.T.string)]), + withFailurePolicy(failurePolicy): { failurePolicy: failurePolicy }, + '#withMatchConditions':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditions(matchConditions): { matchConditions: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withMatchConditionsMixin':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditionsMixin(matchConditions): { matchConditions+: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withValidations':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."', args=[d.arg(name='validations', type=d.T.array)]), + withValidations(validations): { validations: if std.isArray(v=validations) then validations else [validations] }, + '#withValidationsMixin':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='validations', type=d.T.array)]), + withValidationsMixin(validations): { validations+: if std.isArray(v=validations) then validations else [validations] }, + '#withVariables':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."', args=[d.arg(name='variables', type=d.T.array)]), + withVariables(variables): { variables: if std.isArray(v=variables) then variables else [variables] }, + '#withVariablesMixin':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='variables', type=d.T.array)]), + withVariablesMixin(variables): { variables+: if std.isArray(v=variables) then variables else [variables] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyStatus.libsonnet new file mode 100644 index 0000000..a9130f0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validatingAdmissionPolicyStatus.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicyStatus', url='', help='"ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy."'), + '#typeChecking':: d.obj(help='"TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy"'), + typeChecking: { + '#withExpressionWarnings':: d.fn(help='"The type checking warnings for each expression."', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarnings(expressionWarnings): { typeChecking+: { expressionWarnings: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] } }, + '#withExpressionWarningsMixin':: d.fn(help='"The type checking warnings for each expression."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarningsMixin(expressionWarnings): { typeChecking+: { expressionWarnings+: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] } }, + }, + '#withConditions':: d.fn(help="\"The conditions represent the latest available observations of a policy's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"The conditions represent the latest available observations of a policy's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withObservedGeneration':: d.fn(help='"The generation observed by the controller."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validation.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validation.libsonnet new file mode 100644 index 0000000..db493d3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/validation.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validation', url='', help='"Validation specifies the CEL expression which is used to apply the validation."'), + '#withExpression':: d.fn(help="\"Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\\n\\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\\n request resource.\\n\\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\\n\\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\\n\\t \\\"true\\\", \\\"false\\\", \\\"null\\\", \\\"in\\\", \\\"as\\\", \\\"break\\\", \\\"const\\\", \\\"continue\\\", \\\"else\\\", \\\"for\\\", \\\"function\\\", \\\"if\\\",\\n\\t \\\"import\\\", \\\"let\\\", \\\"loop\\\", \\\"package\\\", \\\"namespace\\\", \\\"return\\\".\\nExamples:\\n - Expression accessing a property named \\\"namespace\\\": {\\\"Expression\\\": \\\"object.__namespace__ \u003e 0\\\"}\\n - Expression accessing a property named \\\"x-prop\\\": {\\\"Expression\\\": \\\"object.x__dash__prop \u003e 0\\\"}\\n - Expression accessing a property named \\\"redact__d\\\": {\\\"Expression\\\": \\\"object.redact__underscores__d \u003e 0\\\"}\\n\\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\\n non-intersecting elements in `Y` are appended, retaining their partial order.\\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\\n non-intersecting keys are appended, retaining their partial order.\\nRequired.\"", args=[d.arg(name='expression', type=d.T.string)]), + withExpression(expression): { expression: expression }, + '#withMessage':: d.fn(help='"Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \\"failed rule: {Rule}\\". e.g. \\"must be a URL with the host matching spec.host\\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \\"failed Expression: {Expression}\\"."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withMessageExpression':: d.fn(help="\"messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \\\"object.x must be less than max (\\\"+string(params.max)+\\\")\\", args=[d.arg(name='messageExpression', type=d.T.string)]), + withMessageExpression(messageExpression): { messageExpression: messageExpression }, + '#withReason':: d.fn(help='"Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \\"Unauthorized\\", \\"Forbidden\\", \\"Invalid\\", \\"RequestEntityTooLarge\\". If not set, StatusReasonInvalid is used in the response to the client."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/variable.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/variable.libsonnet new file mode 100644 index 0000000..98f05ca --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1alpha1/variable.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='variable', url='', help='"Variable is the definition of a variable that is used for composition."'), + '#withExpression':: d.fn(help='"Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation."', args=[d.arg(name='expression', type=d.T.string)]), + withExpression(expression): { expression: expression }, + '#withName':: d.fn(help='"Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \\"foo\\", the variable will be available as `variables.foo`"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/auditAnnotation.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/auditAnnotation.libsonnet new file mode 100644 index 0000000..96c7387 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/auditAnnotation.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='auditAnnotation', url='', help='"AuditAnnotation describes how to produce an audit annotation for an API request."'), + '#withKey':: d.fn(help='"key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\\n\\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \\"{ValidatingAdmissionPolicy name}/{key}\\".\\n\\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\\n\\nRequired."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withValueExpression':: d.fn(help='"valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\\n\\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\\n\\nRequired."', args=[d.arg(name='valueExpression', type=d.T.string)]), + withValueExpression(valueExpression): { valueExpression: valueExpression }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/expressionWarning.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/expressionWarning.libsonnet new file mode 100644 index 0000000..895ad9d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/expressionWarning.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='expressionWarning', url='', help='"ExpressionWarning is a warning information that targets a specific expression."'), + '#withFieldRef':: d.fn(help='"The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \\"spec.validations[0].expression\\', args=[d.arg(name='fieldRef', type=d.T.string)]), + withFieldRef(fieldRef): { fieldRef: fieldRef }, + '#withWarning':: d.fn(help='"The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler."', args=[d.arg(name='warning', type=d.T.string)]), + withWarning(warning): { warning: warning }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/main.libsonnet new file mode 100644 index 0000000..4a6b9fd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/main.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1beta1', url='', help=''), + auditAnnotation: (import 'auditAnnotation.libsonnet'), + expressionWarning: (import 'expressionWarning.libsonnet'), + matchCondition: (import 'matchCondition.libsonnet'), + matchResources: (import 'matchResources.libsonnet'), + namedRuleWithOperations: (import 'namedRuleWithOperations.libsonnet'), + paramKind: (import 'paramKind.libsonnet'), + paramRef: (import 'paramRef.libsonnet'), + typeChecking: (import 'typeChecking.libsonnet'), + validatingAdmissionPolicy: (import 'validatingAdmissionPolicy.libsonnet'), + validatingAdmissionPolicyBinding: (import 'validatingAdmissionPolicyBinding.libsonnet'), + validatingAdmissionPolicyBindingSpec: (import 'validatingAdmissionPolicyBindingSpec.libsonnet'), + validatingAdmissionPolicySpec: (import 'validatingAdmissionPolicySpec.libsonnet'), + validatingAdmissionPolicyStatus: (import 'validatingAdmissionPolicyStatus.libsonnet'), + validation: (import 'validation.libsonnet'), + variable: (import 'variable.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/matchCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/matchCondition.libsonnet new file mode 100644 index 0000000..8d19660 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/matchCondition.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='matchCondition', url='', help='"MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook."'), + '#withExpression':: d.fn(help="\"Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\\n\\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\\n request resource.\\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\\n\\nRequired.\"", args=[d.arg(name='expression', type=d.T.string)]), + withExpression(expression): { expression: expression }, + '#withName':: d.fn(help="\"Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\\n\\nRequired.\"", args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/matchResources.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/matchResources.libsonnet new file mode 100644 index 0000000..0215d0c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/matchResources.libsonnet @@ -0,0 +1,38 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='matchResources', url='', help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { namespaceSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { namespaceSelector+: { matchLabels+: matchLabels } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { objectSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { objectSelector+: { matchLabels+: matchLabels } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchPolicy: matchPolicy }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/namedRuleWithOperations.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/namedRuleWithOperations.libsonnet new file mode 100644 index 0000000..a1726a5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/namedRuleWithOperations.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedRuleWithOperations', url='', help='"NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames."'), + '#withApiGroups':: d.fn(help="\"APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroups(apiGroups): { apiGroups: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiGroupsMixin':: d.fn(help="\"APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroupsMixin(apiGroups): { apiGroups+: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiVersions':: d.fn(help="\"APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='apiVersions', type=d.T.array)]), + withApiVersions(apiVersions): { apiVersions: if std.isArray(v=apiVersions) then apiVersions else [apiVersions] }, + '#withApiVersionsMixin':: d.fn(help="\"APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='apiVersions', type=d.T.array)]), + withApiVersionsMixin(apiVersions): { apiVersions+: if std.isArray(v=apiVersions) then apiVersions else [apiVersions] }, + '#withOperations':: d.fn(help="\"Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.\"", args=[d.arg(name='operations', type=d.T.array)]), + withOperations(operations): { operations: if std.isArray(v=operations) then operations else [operations] }, + '#withOperationsMixin':: d.fn(help="\"Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='operations', type=d.T.array)]), + withOperationsMixin(operations): { operations+: if std.isArray(v=operations) then operations else [operations] }, + '#withResourceNames':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed."', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNames(resourceNames): { resourceNames: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResourceNamesMixin':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNamesMixin(resourceNames): { resourceNames+: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResources':: d.fn(help="\"Resources is a list of resources this rule applies to.\\n\\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\\n\\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\\n\\nDepending on the enclosing object, subresources might not be allowed. Required.\"", args=[d.arg(name='resources', type=d.T.array)]), + withResources(resources): { resources: if std.isArray(v=resources) then resources else [resources] }, + '#withResourcesMixin':: d.fn(help="\"Resources is a list of resources this rule applies to.\\n\\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\\n\\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\\n\\nDepending on the enclosing object, subresources might not be allowed. Required.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='resources', type=d.T.array)]), + withResourcesMixin(resources): { resources+: if std.isArray(v=resources) then resources else [resources] }, + '#withScope':: d.fn(help='"scope specifies the scope of this rule. Valid values are \\"Cluster\\", \\"Namespaced\\", and \\"*\\" \\"Cluster\\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \\"Namespaced\\" means that only namespaced resources will match this rule. \\"*\\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \\"*\\"."', args=[d.arg(name='scope', type=d.T.string)]), + withScope(scope): { scope: scope }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/paramKind.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/paramKind.libsonnet new file mode 100644 index 0000000..11a3494 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/paramKind.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='paramKind', url='', help='"ParamKind is a tuple of Group Kind and Version."'), + '#withKind':: d.fn(help='"Kind is the API kind the resources belong to. Required."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/paramRef.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/paramRef.libsonnet new file mode 100644 index 0000000..51da556 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/paramRef.libsonnet @@ -0,0 +1,23 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='paramRef', url='', help='"ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding."'), + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#withName':: d.fn(help='"name is the name of the resource being referenced.\\n\\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\\n\\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\\n\\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\\n\\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\\n\\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withParameterNotFoundAction':: d.fn(help='"`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\\n\\nAllowed values are `Allow` or `Deny`\\n\\nRequired"', args=[d.arg(name='parameterNotFoundAction', type=d.T.string)]), + withParameterNotFoundAction(parameterNotFoundAction): { parameterNotFoundAction: parameterNotFoundAction }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/typeChecking.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/typeChecking.libsonnet new file mode 100644 index 0000000..1af6056 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/typeChecking.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='typeChecking', url='', help='"TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy"'), + '#withExpressionWarnings':: d.fn(help='"The type checking warnings for each expression."', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarnings(expressionWarnings): { expressionWarnings: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] }, + '#withExpressionWarningsMixin':: d.fn(help='"The type checking warnings for each expression."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarningsMixin(expressionWarnings): { expressionWarnings+: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicy.libsonnet new file mode 100644 index 0000000..789e7e9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicy.libsonnet @@ -0,0 +1,117 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicy', url='', help='"ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ValidatingAdmissionPolicy', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'admissionregistration.k8s.io/v1beta1', + kind: 'ValidatingAdmissionPolicy', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy."'), + spec: { + '#matchConstraints':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchConstraints: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchConstraints+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchConstraints+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchConstraints+: { namespaceSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchConstraints+: { namespaceSelector+: { matchLabels+: matchLabels } } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchConstraints+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchConstraints+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchConstraints+: { objectSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchConstraints+: { objectSelector+: { matchLabels+: matchLabels } } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { spec+: { matchConstraints+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { spec+: { matchConstraints+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { spec+: { matchConstraints+: { matchPolicy: matchPolicy } } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { spec+: { matchConstraints+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { spec+: { matchConstraints+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + }, + '#paramKind':: d.obj(help='"ParamKind is a tuple of Group Kind and Version."'), + paramKind: { + '#withApiVersion':: d.fn(help='"APIVersion is the API group version the resources belong to. In format of \\"group/version\\". Required."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { paramKind+: { apiVersion: apiVersion } } }, + '#withKind':: d.fn(help='"Kind is the API kind the resources belong to. Required."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { paramKind+: { kind: kind } } }, + }, + '#withAuditAnnotations':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotations(auditAnnotations): { spec+: { auditAnnotations: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] } }, + '#withAuditAnnotationsMixin':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotationsMixin(auditAnnotations): { spec+: { auditAnnotations+: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] } }, + '#withFailurePolicy':: d.fn(help='"failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\\n\\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\\n\\nfailurePolicy does not define how validations that evaluate to false are handled.\\n\\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\\n\\nAllowed values are Ignore or Fail. Defaults to Fail."', args=[d.arg(name='failurePolicy', type=d.T.string)]), + withFailurePolicy(failurePolicy): { spec+: { failurePolicy: failurePolicy } }, + '#withMatchConditions':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditions(matchConditions): { spec+: { matchConditions: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] } }, + '#withMatchConditionsMixin':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditionsMixin(matchConditions): { spec+: { matchConditions+: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] } }, + '#withValidations':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."', args=[d.arg(name='validations', type=d.T.array)]), + withValidations(validations): { spec+: { validations: if std.isArray(v=validations) then validations else [validations] } }, + '#withValidationsMixin':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='validations', type=d.T.array)]), + withValidationsMixin(validations): { spec+: { validations+: if std.isArray(v=validations) then validations else [validations] } }, + '#withVariables':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."', args=[d.arg(name='variables', type=d.T.array)]), + withVariables(variables): { spec+: { variables: if std.isArray(v=variables) then variables else [variables] } }, + '#withVariablesMixin':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='variables', type=d.T.array)]), + withVariablesMixin(variables): { spec+: { variables+: if std.isArray(v=variables) then variables else [variables] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyBinding.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyBinding.libsonnet new file mode 100644 index 0000000..1227686 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyBinding.libsonnet @@ -0,0 +1,118 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicyBinding', url='', help="\"ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\\n\\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\\n\\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.\""), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ValidatingAdmissionPolicyBinding', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'admissionregistration.k8s.io/v1beta1', + kind: 'ValidatingAdmissionPolicyBinding', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding."'), + spec: { + '#matchResources':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchResources: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchResources+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchResources+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchResources+: { namespaceSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchResources+: { namespaceSelector+: { matchLabels+: matchLabels } } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { matchResources+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { matchResources+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { matchResources+: { objectSelector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { matchResources+: { objectSelector+: { matchLabels+: matchLabels } } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { spec+: { matchResources+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { spec+: { matchResources+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { spec+: { matchResources+: { matchPolicy: matchPolicy } } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { spec+: { matchResources+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { spec+: { matchResources+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } } }, + }, + '#paramRef':: d.obj(help='"ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding."'), + paramRef: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { paramRef+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { paramRef+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { paramRef+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { paramRef+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withName':: d.fn(help='"name is the name of the resource being referenced.\\n\\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\\n\\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { paramRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\\n\\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\\n\\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\\n\\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { paramRef+: { namespace: namespace } } }, + '#withParameterNotFoundAction':: d.fn(help='"`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\\n\\nAllowed values are `Allow` or `Deny`\\n\\nRequired"', args=[d.arg(name='parameterNotFoundAction', type=d.T.string)]), + withParameterNotFoundAction(parameterNotFoundAction): { spec+: { paramRef+: { parameterNotFoundAction: parameterNotFoundAction } } }, + }, + '#withPolicyName':: d.fn(help='"PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required."', args=[d.arg(name='policyName', type=d.T.string)]), + withPolicyName(policyName): { spec+: { policyName: policyName } }, + '#withValidationActions':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActions(validationActions): { spec+: { validationActions: if std.isArray(v=validationActions) then validationActions else [validationActions] } }, + '#withValidationActionsMixin':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActionsMixin(validationActions): { spec+: { validationActions+: if std.isArray(v=validationActions) then validationActions else [validationActions] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyBindingSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyBindingSpec.libsonnet new file mode 100644 index 0000000..e1ebe62 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyBindingSpec.libsonnet @@ -0,0 +1,67 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicyBindingSpec', url='', help='"ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding."'), + '#matchResources':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchResources: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchResources+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchResources+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchResources+: { namespaceSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchResources+: { namespaceSelector+: { matchLabels+: matchLabels } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchResources+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchResources+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchResources+: { objectSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchResources+: { objectSelector+: { matchLabels+: matchLabels } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { matchResources+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { matchResources+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchResources+: { matchPolicy: matchPolicy } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { matchResources+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { matchResources+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + }, + '#paramRef':: d.obj(help='"ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding."'), + paramRef: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { paramRef+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { paramRef+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { paramRef+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { paramRef+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"name is the name of the resource being referenced.\\n\\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\\n\\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { paramRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\\n\\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\\n\\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\\n\\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { paramRef+: { namespace: namespace } }, + '#withParameterNotFoundAction':: d.fn(help='"`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\\n\\nAllowed values are `Allow` or `Deny`\\n\\nRequired"', args=[d.arg(name='parameterNotFoundAction', type=d.T.string)]), + withParameterNotFoundAction(parameterNotFoundAction): { paramRef+: { parameterNotFoundAction: parameterNotFoundAction } }, + }, + '#withPolicyName':: d.fn(help='"PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required."', args=[d.arg(name='policyName', type=d.T.string)]), + withPolicyName(policyName): { policyName: policyName }, + '#withValidationActions':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActions(validationActions): { validationActions: if std.isArray(v=validationActions) then validationActions else [validationActions] }, + '#withValidationActionsMixin':: d.fn(help="\"validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\\n\\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\\n\\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\\n\\nThe supported actions values are:\\n\\n\\\"Deny\\\" specifies that a validation failure results in a denied request.\\n\\n\\\"Warn\\\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\\n\\n\\\"Audit\\\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\\\"validation.policy.admission.k8s.io/validation_failure\\\": \\\"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\\\"`\\n\\nClients should expect to handle additional values by ignoring any values not recognized.\\n\\n\\\"Deny\\\" and \\\"Warn\\\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\\n\\nRequired.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='validationActions', type=d.T.array)]), + withValidationActionsMixin(validationActions): { validationActions+: if std.isArray(v=validationActions) then validationActions else [validationActions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicySpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicySpec.libsonnet new file mode 100644 index 0000000..3bc96c0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicySpec.libsonnet @@ -0,0 +1,66 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicySpec', url='', help='"ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy."'), + '#matchConstraints':: d.obj(help='"MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"'), + matchConstraints: { + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchConstraints+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchConstraints+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchConstraints+: { namespaceSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchConstraints+: { namespaceSelector+: { matchLabels+: matchLabels } } }, + }, + '#objectSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + objectSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchConstraints+: { objectSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchConstraints+: { objectSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchConstraints+: { objectSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchConstraints+: { objectSelector+: { matchLabels+: matchLabels } } }, + }, + '#withExcludeResourceRules':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRules(excludeResourceRules): { matchConstraints+: { excludeResourceRules: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withExcludeResourceRulesMixin':: d.fn(help='"ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='excludeResourceRules', type=d.T.array)]), + withExcludeResourceRulesMixin(excludeResourceRules): { matchConstraints+: { excludeResourceRules+: if std.isArray(v=excludeResourceRules) then excludeResourceRules else [excludeResourceRules] } }, + '#withMatchPolicy':: d.fn(help='"matchPolicy defines how the \\"MatchResources\\" list is used to match incoming requests. Allowed values are \\"Exact\\" or \\"Equivalent\\".\\n\\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\\n\\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \\"rules\\" only included `apiGroups:[\\"apps\\"], apiVersions:[\\"v1\\"], resources: [\\"deployments\\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\\n\\nDefaults to \\"Equivalent\\', args=[d.arg(name='matchPolicy', type=d.T.string)]), + withMatchPolicy(matchPolicy): { matchConstraints+: { matchPolicy: matchPolicy } }, + '#withResourceRules':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { matchConstraints+: { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + '#withResourceRulesMixin':: d.fn(help='"ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { matchConstraints+: { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] } }, + }, + '#paramKind':: d.obj(help='"ParamKind is a tuple of Group Kind and Version."'), + paramKind: { + '#withApiVersion':: d.fn(help='"APIVersion is the API group version the resources belong to. In format of \\"group/version\\". Required."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { paramKind+: { apiVersion: apiVersion } }, + '#withKind':: d.fn(help='"Kind is the API kind the resources belong to. Required."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { paramKind+: { kind: kind } }, + }, + '#withAuditAnnotations':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotations(auditAnnotations): { auditAnnotations: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] }, + '#withAuditAnnotationsMixin':: d.fn(help='"auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='auditAnnotations', type=d.T.array)]), + withAuditAnnotationsMixin(auditAnnotations): { auditAnnotations+: if std.isArray(v=auditAnnotations) then auditAnnotations else [auditAnnotations] }, + '#withFailurePolicy':: d.fn(help='"failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\\n\\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\\n\\nfailurePolicy does not define how validations that evaluate to false are handled.\\n\\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\\n\\nAllowed values are Ignore or Fail. Defaults to Fail."', args=[d.arg(name='failurePolicy', type=d.T.string)]), + withFailurePolicy(failurePolicy): { failurePolicy: failurePolicy }, + '#withMatchConditions':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditions(matchConditions): { matchConditions: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withMatchConditionsMixin':: d.fn(help='"MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\\n\\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\\n\\nThe exact matching logic is (in order):\\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\\n 3. If any matchCondition evaluates to an error (but none are FALSE):\\n - If failurePolicy=Fail, reject the request\\n - If failurePolicy=Ignore, the policy is skipped"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchConditions', type=d.T.array)]), + withMatchConditionsMixin(matchConditions): { matchConditions+: if std.isArray(v=matchConditions) then matchConditions else [matchConditions] }, + '#withValidations':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."', args=[d.arg(name='validations', type=d.T.array)]), + withValidations(validations): { validations: if std.isArray(v=validations) then validations else [validations] }, + '#withValidationsMixin':: d.fn(help='"Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='validations', type=d.T.array)]), + withValidationsMixin(validations): { validations+: if std.isArray(v=validations) then validations else [validations] }, + '#withVariables':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."', args=[d.arg(name='variables', type=d.T.array)]), + withVariables(variables): { variables: if std.isArray(v=variables) then variables else [variables] }, + '#withVariablesMixin':: d.fn(help='"Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\\n\\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='variables', type=d.T.array)]), + withVariablesMixin(variables): { variables+: if std.isArray(v=variables) then variables else [variables] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyStatus.libsonnet new file mode 100644 index 0000000..6d150d5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validatingAdmissionPolicyStatus.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validatingAdmissionPolicyStatus', url='', help='"ValidatingAdmissionPolicyStatus represents the status of an admission validation policy."'), + '#typeChecking':: d.obj(help='"TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy"'), + typeChecking: { + '#withExpressionWarnings':: d.fn(help='"The type checking warnings for each expression."', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarnings(expressionWarnings): { typeChecking+: { expressionWarnings: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] } }, + '#withExpressionWarningsMixin':: d.fn(help='"The type checking warnings for each expression."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='expressionWarnings', type=d.T.array)]), + withExpressionWarningsMixin(expressionWarnings): { typeChecking+: { expressionWarnings+: if std.isArray(v=expressionWarnings) then expressionWarnings else [expressionWarnings] } }, + }, + '#withConditions':: d.fn(help="\"The conditions represent the latest available observations of a policy's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"The conditions represent the latest available observations of a policy's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withObservedGeneration':: d.fn(help='"The generation observed by the controller."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validation.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validation.libsonnet new file mode 100644 index 0000000..db493d3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/validation.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='validation', url='', help='"Validation specifies the CEL expression which is used to apply the validation."'), + '#withExpression':: d.fn(help="\"Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\\n\\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\\n request resource.\\n\\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\\n\\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\\n\\t \\\"true\\\", \\\"false\\\", \\\"null\\\", \\\"in\\\", \\\"as\\\", \\\"break\\\", \\\"const\\\", \\\"continue\\\", \\\"else\\\", \\\"for\\\", \\\"function\\\", \\\"if\\\",\\n\\t \\\"import\\\", \\\"let\\\", \\\"loop\\\", \\\"package\\\", \\\"namespace\\\", \\\"return\\\".\\nExamples:\\n - Expression accessing a property named \\\"namespace\\\": {\\\"Expression\\\": \\\"object.__namespace__ \u003e 0\\\"}\\n - Expression accessing a property named \\\"x-prop\\\": {\\\"Expression\\\": \\\"object.x__dash__prop \u003e 0\\\"}\\n - Expression accessing a property named \\\"redact__d\\\": {\\\"Expression\\\": \\\"object.redact__underscores__d \u003e 0\\\"}\\n\\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\\n non-intersecting elements in `Y` are appended, retaining their partial order.\\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\\n non-intersecting keys are appended, retaining their partial order.\\nRequired.\"", args=[d.arg(name='expression', type=d.T.string)]), + withExpression(expression): { expression: expression }, + '#withMessage':: d.fn(help='"Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \\"failed rule: {Rule}\\". e.g. \\"must be a URL with the host matching spec.host\\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \\"failed Expression: {Expression}\\"."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withMessageExpression':: d.fn(help="\"messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \\\"object.x must be less than max (\\\"+string(params.max)+\\\")\\", args=[d.arg(name='messageExpression', type=d.T.string)]), + withMessageExpression(messageExpression): { messageExpression: messageExpression }, + '#withReason':: d.fn(help='"Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \\"Unauthorized\\", \\"Forbidden\\", \\"Invalid\\", \\"RequestEntityTooLarge\\". If not set, StatusReasonInvalid is used in the response to the client."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/variable.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/variable.libsonnet new file mode 100644 index 0000000..084c27b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/admissionregistration/v1beta1/variable.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='variable', url='', help='"Variable is the definition of a variable that is used for composition. A variable is defined as a named expression."'), + '#withExpression':: d.fn(help='"Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation."', args=[d.arg(name='expression', type=d.T.string)]), + withExpression(expression): { expression: expression }, + '#withName':: d.fn(help='"Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \\"foo\\", the variable will be available as `variables.foo`"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/main.libsonnet new file mode 100644 index 0000000..9ec84c9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiregistration', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiService.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiService.libsonnet new file mode 100644 index 0000000..53413e2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiService.libsonnet @@ -0,0 +1,78 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiService', url='', help='"APIService represents a server for a particular GroupVersion. Name must be \\"version.group\\"."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of APIService', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'apiregistration.k8s.io/v1', + kind: 'APIService', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification."'), + spec: { + '#service':: d.obj(help='"ServiceReference holds a reference to Service.legacy.k8s.io"'), + service: { + '#withName':: d.fn(help='"Name is the name of the service"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { service+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the service"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { service+: { namespace: namespace } } }, + '#withPort':: d.fn(help='"If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive)."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { spec+: { service+: { port: port } } }, + }, + '#withCaBundle':: d.fn(help="\"CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.\"", args=[d.arg(name='caBundle', type=d.T.string)]), + withCaBundle(caBundle): { spec+: { caBundle: caBundle } }, + '#withGroup':: d.fn(help='"Group is the API group name this server hosts"', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { spec+: { group: group } }, + '#withGroupPriorityMinimum':: d.fn(help="\"GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s\"", args=[d.arg(name='groupPriorityMinimum', type=d.T.integer)]), + withGroupPriorityMinimum(groupPriorityMinimum): { spec+: { groupPriorityMinimum: groupPriorityMinimum } }, + '#withInsecureSkipTLSVerify':: d.fn(help='"InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead."', args=[d.arg(name='insecureSkipTLSVerify', type=d.T.boolean)]), + withInsecureSkipTLSVerify(insecureSkipTLSVerify): { spec+: { insecureSkipTLSVerify: insecureSkipTLSVerify } }, + '#withVersion':: d.fn(help='"Version is the API version this server hosts. For example, \\"v1\\', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { spec+: { version: version } }, + '#withVersionPriority':: d.fn(help="\"VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \\\"kube-like\\\", it will sort above non \\\"kube-like\\\" version strings, which are ordered lexicographically. \\\"Kube-like\\\" versions start with a \\\"v\\\", then are followed by a number (the major version), then optionally the string \\\"alpha\\\" or \\\"beta\\\" and another number (the minor version). These are sorted first by GA \u003e beta \u003e alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.\"", args=[d.arg(name='versionPriority', type=d.T.integer)]), + withVersionPriority(versionPriority): { spec+: { versionPriority: versionPriority } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceCondition.libsonnet new file mode 100644 index 0000000..d79fb5e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiServiceCondition', url='', help='"APIServiceCondition describes the state of an APIService at a particular point"'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"Human-readable message indicating details about last transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"Unique, one-word, CamelCase reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type is the type of the condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceSpec.libsonnet new file mode 100644 index 0000000..49513ec --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceSpec.libsonnet @@ -0,0 +1,27 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiServiceSpec', url='', help='"APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification."'), + '#service':: d.obj(help='"ServiceReference holds a reference to Service.legacy.k8s.io"'), + service: { + '#withName':: d.fn(help='"Name is the name of the service"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { service+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the service"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { service+: { namespace: namespace } }, + '#withPort':: d.fn(help='"If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive)."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { service+: { port: port } }, + }, + '#withCaBundle':: d.fn(help="\"CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.\"", args=[d.arg(name='caBundle', type=d.T.string)]), + withCaBundle(caBundle): { caBundle: caBundle }, + '#withGroup':: d.fn(help='"Group is the API group name this server hosts"', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { group: group }, + '#withGroupPriorityMinimum':: d.fn(help="\"GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s\"", args=[d.arg(name='groupPriorityMinimum', type=d.T.integer)]), + withGroupPriorityMinimum(groupPriorityMinimum): { groupPriorityMinimum: groupPriorityMinimum }, + '#withInsecureSkipTLSVerify':: d.fn(help='"InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead."', args=[d.arg(name='insecureSkipTLSVerify', type=d.T.boolean)]), + withInsecureSkipTLSVerify(insecureSkipTLSVerify): { insecureSkipTLSVerify: insecureSkipTLSVerify }, + '#withVersion':: d.fn(help='"Version is the API version this server hosts. For example, \\"v1\\', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { version: version }, + '#withVersionPriority':: d.fn(help="\"VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \\\"kube-like\\\", it will sort above non \\\"kube-like\\\" version strings, which are ordered lexicographically. \\\"Kube-like\\\" versions start with a \\\"v\\\", then are followed by a number (the major version), then optionally the string \\\"alpha\\\" or \\\"beta\\\" and another number (the minor version). These are sorted first by GA \u003e beta \u003e alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.\"", args=[d.arg(name='versionPriority', type=d.T.integer)]), + withVersionPriority(versionPriority): { versionPriority: versionPriority }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceStatus.libsonnet new file mode 100644 index 0000000..64186da --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/apiServiceStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiServiceStatus', url='', help='"APIServiceStatus contains derived information about an API server"'), + '#withConditions':: d.fn(help='"Current service state of apiService."', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"Current service state of apiService."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/main.libsonnet new file mode 100644 index 0000000..a5c6e83 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/main.libsonnet @@ -0,0 +1,9 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + apiService: (import 'apiService.libsonnet'), + apiServiceCondition: (import 'apiServiceCondition.libsonnet'), + apiServiceSpec: (import 'apiServiceSpec.libsonnet'), + apiServiceStatus: (import 'apiServiceStatus.libsonnet'), + serviceReference: (import 'serviceReference.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/serviceReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/serviceReference.libsonnet new file mode 100644 index 0000000..7e3e004 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiregistration/v1/serviceReference.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceReference', url='', help='"ServiceReference holds a reference to Service.legacy.k8s.io"'), + '#withName':: d.fn(help='"Name is the name of the service"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the service"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withPort':: d.fn(help='"If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive)."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { port: port }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/main.libsonnet new file mode 100644 index 0000000..adbb7f0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiserverinternal', url='', help=''), + v1alpha1: (import 'v1alpha1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/main.libsonnet new file mode 100644 index 0000000..d7cf849 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/main.libsonnet @@ -0,0 +1,9 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1alpha1', url='', help=''), + serverStorageVersion: (import 'serverStorageVersion.libsonnet'), + storageVersion: (import 'storageVersion.libsonnet'), + storageVersionCondition: (import 'storageVersionCondition.libsonnet'), + storageVersionSpec: (import 'storageVersionSpec.libsonnet'), + storageVersionStatus: (import 'storageVersionStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/serverStorageVersion.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/serverStorageVersion.libsonnet new file mode 100644 index 0000000..77f8c2f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/serverStorageVersion.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serverStorageVersion', url='', help='"An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend."'), + '#withApiServerID':: d.fn(help='"The ID of the reporting API server."', args=[d.arg(name='apiServerID', type=d.T.string)]), + withApiServerID(apiServerID): { apiServerID: apiServerID }, + '#withDecodableVersions':: d.fn(help='"The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions."', args=[d.arg(name='decodableVersions', type=d.T.array)]), + withDecodableVersions(decodableVersions): { decodableVersions: if std.isArray(v=decodableVersions) then decodableVersions else [decodableVersions] }, + '#withDecodableVersionsMixin':: d.fn(help='"The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='decodableVersions', type=d.T.array)]), + withDecodableVersionsMixin(decodableVersions): { decodableVersions+: if std.isArray(v=decodableVersions) then decodableVersions else [decodableVersions] }, + '#withEncodingVersion':: d.fn(help='"The API server encodes the object to this version when persisting it in the backend (e.g., etcd)."', args=[d.arg(name='encodingVersion', type=d.T.string)]), + withEncodingVersion(encodingVersion): { encodingVersion: encodingVersion }, + '#withServedVersions':: d.fn(help='"The API server can serve these versions. DecodableVersions must include all ServedVersions."', args=[d.arg(name='servedVersions', type=d.T.array)]), + withServedVersions(servedVersions): { servedVersions: if std.isArray(v=servedVersions) then servedVersions else [servedVersions] }, + '#withServedVersionsMixin':: d.fn(help='"The API server can serve these versions. DecodableVersions must include all ServedVersions."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='servedVersions', type=d.T.array)]), + withServedVersionsMixin(servedVersions): { servedVersions+: if std.isArray(v=servedVersions) then servedVersions else [servedVersions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersion.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersion.libsonnet new file mode 100644 index 0000000..ded4120 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersion.libsonnet @@ -0,0 +1,58 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageVersion', url='', help='"Storage version of a specific resource."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of StorageVersion', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'internal.apiserver.k8s.io/v1alpha1', + kind: 'StorageVersion', + } + self.metadata.withName(name=name), + '#withSpec':: d.fn(help='"StorageVersionSpec is an empty spec."', args=[d.arg(name='spec', type=d.T.object)]), + withSpec(spec): { spec: spec }, + '#withSpecMixin':: d.fn(help='"StorageVersionSpec is an empty spec."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='spec', type=d.T.object)]), + withSpecMixin(spec): { spec+: spec }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionCondition.libsonnet new file mode 100644 index 0000000..290fe7d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionCondition.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageVersionCondition', url='', help='"Describes the state of the storageVersion at a certain point."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"A human readable message indicating details about the transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withObservedGeneration':: d.fn(help='"If set, this represents the .metadata.generation that the condition was set based upon."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#withReason':: d.fn(help="\"The reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of the condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionSpec.libsonnet new file mode 100644 index 0000000..8f31cd4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionSpec.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageVersionSpec', url='', help='"StorageVersionSpec is an empty spec."'), + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionStatus.libsonnet new file mode 100644 index 0000000..529f088 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apiserverinternal/v1alpha1/storageVersionStatus.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageVersionStatus', url='', help='"API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend."'), + '#withCommonEncodingVersion':: d.fn(help='"If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality."', args=[d.arg(name='commonEncodingVersion', type=d.T.string)]), + withCommonEncodingVersion(commonEncodingVersion): { commonEncodingVersion: commonEncodingVersion }, + '#withConditions':: d.fn(help="\"The latest available observations of the storageVersion's state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"The latest available observations of the storageVersion's state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withStorageVersions':: d.fn(help='"The reported versions per API server instance."', args=[d.arg(name='storageVersions', type=d.T.array)]), + withStorageVersions(storageVersions): { storageVersions: if std.isArray(v=storageVersions) then storageVersions else [storageVersions] }, + '#withStorageVersionsMixin':: d.fn(help='"The reported versions per API server instance."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='storageVersions', type=d.T.array)]), + withStorageVersionsMixin(storageVersions): { storageVersions+: if std.isArray(v=storageVersions) then storageVersions else [storageVersions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/main.libsonnet new file mode 100644 index 0000000..36337c2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apps', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/controllerRevision.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/controllerRevision.libsonnet new file mode 100644 index 0000000..370461e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/controllerRevision.libsonnet @@ -0,0 +1,60 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='controllerRevision', url='', help='"ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ControllerRevision', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'apps/v1', + kind: 'ControllerRevision', + } + self.metadata.withName(name=name), + '#withData':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='data', type=d.T.object)]), + withData(data): { data: data }, + '#withDataMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='data', type=d.T.object)]), + withDataMixin(data): { data+: data }, + '#withRevision':: d.fn(help='"Revision indicates the revision of the state represented by Data."', args=[d.arg(name='revision', type=d.T.integer)]), + withRevision(revision): { revision: revision }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSet.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSet.libsonnet new file mode 100644 index 0000000..444f0d2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSet.libsonnet @@ -0,0 +1,345 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='daemonSet', url='', help='"DaemonSet represents the configuration of a daemon set."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of DaemonSet', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'apps/v1', + kind: 'DaemonSet', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"DaemonSetSpec is the specification of a daemon set."'), + spec: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { template+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { template+: { metadata+: { annotations+: annotations } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { template+: { metadata+: { creationTimestamp: creationTimestamp } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { template+: { metadata+: { generateName: generateName } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { template+: { metadata+: { generation: generation } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { template+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { template+: { metadata+: { labels+: labels } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { metadata+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { template+: { metadata+: { namespace: namespace } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { template+: { metadata+: { resourceVersion: resourceVersion } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { template+: { metadata+: { selfLink: selfLink } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { template+: { metadata+: { uid: uid } } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { spec+: { os+: { name: name } } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { template+: { spec+: { dnsPolicy: dnsPolicy } } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { template+: { spec+: { enableServiceLinks: enableServiceLinks } } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { template+: { spec+: { hostIPC: hostIPC } } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { template+: { spec+: { hostNetwork: hostNetwork } } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { template+: { spec+: { hostPID: hostPID } } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { template+: { spec+: { hostUsers: hostUsers } } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { template+: { spec+: { hostname: hostname } } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { template+: { spec+: { nodeName: nodeName } } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { template+: { spec+: { nodeSelector: nodeSelector } } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { template+: { spec+: { nodeSelector+: nodeSelector } } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { template+: { spec+: { overhead: overhead } } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { template+: { spec+: { overhead+: overhead } } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { template+: { spec+: { preemptionPolicy: preemptionPolicy } } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { template+: { spec+: { priority: priority } } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { template+: { spec+: { priorityClassName: priorityClassName } } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { template+: { spec+: { restartPolicy: restartPolicy } } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { template+: { spec+: { runtimeClassName: runtimeClassName } } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { template+: { spec+: { schedulerName: schedulerName } } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { template+: { spec+: { serviceAccount: serviceAccount } } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { template+: { spec+: { serviceAccountName: serviceAccountName } } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { template+: { spec+: { subdomain: subdomain } } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + }, + }, + '#updateStrategy':: d.obj(help='"DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet."'), + updateStrategy: { + '#rollingUpdate':: d.obj(help='"Spec to control the desired behavior of daemon set rolling update."'), + rollingUpdate: { + '#withMaxSurge':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxSurge', type=d.T.string)]), + withMaxSurge(maxSurge): { spec+: { updateStrategy+: { rollingUpdate+: { maxSurge: maxSurge } } } }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { spec+: { updateStrategy+: { rollingUpdate+: { maxUnavailable: maxUnavailable } } } }, + }, + '#withType':: d.fn(help='"Type of daemon set update. Can be \\"RollingUpdate\\" or \\"OnDelete\\". Default is RollingUpdate."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { updateStrategy+: { type: type } } }, + }, + '#withMinReadySeconds':: d.fn(help='"The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)."', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { spec+: { minReadySeconds: minReadySeconds } }, + '#withRevisionHistoryLimit':: d.fn(help='"The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10."', args=[d.arg(name='revisionHistoryLimit', type=d.T.integer)]), + withRevisionHistoryLimit(revisionHistoryLimit): { spec+: { revisionHistoryLimit: revisionHistoryLimit } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetCondition.libsonnet new file mode 100644 index 0000000..bc439aa --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='daemonSetCondition', url='', help='"DaemonSetCondition describes the state of a DaemonSet at a certain point."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"A human readable message indicating details about the transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"The reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of DaemonSet condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetSpec.libsonnet new file mode 100644 index 0000000..21143f0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetSpec.libsonnet @@ -0,0 +1,294 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='daemonSetSpec', url='', help='"DaemonSetSpec is the specification of a daemon set."'), + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { template+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { template+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { template+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { template+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { template+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { template+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { template+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { template+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { template+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { template+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { template+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { spec+: { os+: { name: name } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { template+: { spec+: { dnsPolicy: dnsPolicy } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { template+: { spec+: { enableServiceLinks: enableServiceLinks } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { template+: { spec+: { hostIPC: hostIPC } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { template+: { spec+: { hostNetwork: hostNetwork } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { template+: { spec+: { hostPID: hostPID } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { template+: { spec+: { hostUsers: hostUsers } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { template+: { spec+: { hostname: hostname } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { template+: { spec+: { nodeName: nodeName } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { template+: { spec+: { nodeSelector: nodeSelector } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { template+: { spec+: { nodeSelector+: nodeSelector } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { template+: { spec+: { overhead: overhead } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { template+: { spec+: { overhead+: overhead } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { template+: { spec+: { preemptionPolicy: preemptionPolicy } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { template+: { spec+: { priority: priority } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { template+: { spec+: { priorityClassName: priorityClassName } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { template+: { spec+: { restartPolicy: restartPolicy } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { template+: { spec+: { runtimeClassName: runtimeClassName } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { template+: { spec+: { schedulerName: schedulerName } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { template+: { spec+: { serviceAccount: serviceAccount } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { template+: { spec+: { serviceAccountName: serviceAccountName } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { template+: { spec+: { subdomain: subdomain } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } }, + }, + }, + '#updateStrategy':: d.obj(help='"DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet."'), + updateStrategy: { + '#rollingUpdate':: d.obj(help='"Spec to control the desired behavior of daemon set rolling update."'), + rollingUpdate: { + '#withMaxSurge':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxSurge', type=d.T.string)]), + withMaxSurge(maxSurge): { updateStrategy+: { rollingUpdate+: { maxSurge: maxSurge } } }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { updateStrategy+: { rollingUpdate+: { maxUnavailable: maxUnavailable } } }, + }, + '#withType':: d.fn(help='"Type of daemon set update. Can be \\"RollingUpdate\\" or \\"OnDelete\\". Default is RollingUpdate."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { updateStrategy+: { type: type } }, + }, + '#withMinReadySeconds':: d.fn(help='"The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)."', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { minReadySeconds: minReadySeconds }, + '#withRevisionHistoryLimit':: d.fn(help='"The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10."', args=[d.arg(name='revisionHistoryLimit', type=d.T.integer)]), + withRevisionHistoryLimit(revisionHistoryLimit): { revisionHistoryLimit: revisionHistoryLimit }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetStatus.libsonnet new file mode 100644 index 0000000..a174182 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetStatus.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='daemonSetStatus', url='', help='"DaemonSetStatus represents the current status of a daemon set."'), + '#withCollisionCount':: d.fn(help='"Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision."', args=[d.arg(name='collisionCount', type=d.T.integer)]), + withCollisionCount(collisionCount): { collisionCount: collisionCount }, + '#withConditions':: d.fn(help="\"Represents the latest available observations of a DaemonSet's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"Represents the latest available observations of a DaemonSet's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withCurrentNumberScheduled':: d.fn(help='"The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/"', args=[d.arg(name='currentNumberScheduled', type=d.T.integer)]), + withCurrentNumberScheduled(currentNumberScheduled): { currentNumberScheduled: currentNumberScheduled }, + '#withDesiredNumberScheduled':: d.fn(help='"The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/"', args=[d.arg(name='desiredNumberScheduled', type=d.T.integer)]), + withDesiredNumberScheduled(desiredNumberScheduled): { desiredNumberScheduled: desiredNumberScheduled }, + '#withNumberAvailable':: d.fn(help='"The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)"', args=[d.arg(name='numberAvailable', type=d.T.integer)]), + withNumberAvailable(numberAvailable): { numberAvailable: numberAvailable }, + '#withNumberMisscheduled':: d.fn(help='"The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/"', args=[d.arg(name='numberMisscheduled', type=d.T.integer)]), + withNumberMisscheduled(numberMisscheduled): { numberMisscheduled: numberMisscheduled }, + '#withNumberReady':: d.fn(help='"numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition."', args=[d.arg(name='numberReady', type=d.T.integer)]), + withNumberReady(numberReady): { numberReady: numberReady }, + '#withNumberUnavailable':: d.fn(help='"The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)"', args=[d.arg(name='numberUnavailable', type=d.T.integer)]), + withNumberUnavailable(numberUnavailable): { numberUnavailable: numberUnavailable }, + '#withObservedGeneration':: d.fn(help='"The most recent generation observed by the daemon set controller."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#withUpdatedNumberScheduled':: d.fn(help='"The total number of nodes that are running updated daemon pod"', args=[d.arg(name='updatedNumberScheduled', type=d.T.integer)]), + withUpdatedNumberScheduled(updatedNumberScheduled): { updatedNumberScheduled: updatedNumberScheduled }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetUpdateStrategy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetUpdateStrategy.libsonnet new file mode 100644 index 0000000..2f9774e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/daemonSetUpdateStrategy.libsonnet @@ -0,0 +1,15 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='daemonSetUpdateStrategy', url='', help='"DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet."'), + '#rollingUpdate':: d.obj(help='"Spec to control the desired behavior of daemon set rolling update."'), + rollingUpdate: { + '#withMaxSurge':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxSurge', type=d.T.string)]), + withMaxSurge(maxSurge): { rollingUpdate+: { maxSurge: maxSurge } }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { rollingUpdate+: { maxUnavailable: maxUnavailable } }, + }, + '#withType':: d.fn(help='"Type of daemon set update. Can be \\"RollingUpdate\\" or \\"OnDelete\\". Default is RollingUpdate."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deployment.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deployment.libsonnet new file mode 100644 index 0000000..6e8e017 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deployment.libsonnet @@ -0,0 +1,351 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='deployment', url='', help='"Deployment enables declarative updates for Pods and ReplicaSets."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Deployment', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'apps/v1', + kind: 'Deployment', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"DeploymentSpec is the specification of the desired behavior of the Deployment."'), + spec: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#strategy':: d.obj(help='"DeploymentStrategy describes how to replace existing pods with new ones."'), + strategy: { + '#rollingUpdate':: d.obj(help='"Spec to control the desired behavior of rolling update."'), + rollingUpdate: { + '#withMaxSurge':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxSurge', type=d.T.string)]), + withMaxSurge(maxSurge): { spec+: { strategy+: { rollingUpdate+: { maxSurge: maxSurge } } } }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { spec+: { strategy+: { rollingUpdate+: { maxUnavailable: maxUnavailable } } } }, + }, + '#withType':: d.fn(help='"Type of deployment. Can be \\"Recreate\\" or \\"RollingUpdate\\". Default is RollingUpdate."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { strategy+: { type: type } } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { template+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { template+: { metadata+: { annotations+: annotations } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { template+: { metadata+: { creationTimestamp: creationTimestamp } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { template+: { metadata+: { generateName: generateName } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { template+: { metadata+: { generation: generation } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { template+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { template+: { metadata+: { labels+: labels } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { metadata+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { template+: { metadata+: { namespace: namespace } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { template+: { metadata+: { resourceVersion: resourceVersion } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { template+: { metadata+: { selfLink: selfLink } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { template+: { metadata+: { uid: uid } } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { spec+: { os+: { name: name } } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { template+: { spec+: { dnsPolicy: dnsPolicy } } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { template+: { spec+: { enableServiceLinks: enableServiceLinks } } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { template+: { spec+: { hostIPC: hostIPC } } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { template+: { spec+: { hostNetwork: hostNetwork } } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { template+: { spec+: { hostPID: hostPID } } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { template+: { spec+: { hostUsers: hostUsers } } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { template+: { spec+: { hostname: hostname } } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { template+: { spec+: { nodeName: nodeName } } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { template+: { spec+: { nodeSelector: nodeSelector } } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { template+: { spec+: { nodeSelector+: nodeSelector } } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { template+: { spec+: { overhead: overhead } } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { template+: { spec+: { overhead+: overhead } } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { template+: { spec+: { preemptionPolicy: preemptionPolicy } } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { template+: { spec+: { priority: priority } } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { template+: { spec+: { priorityClassName: priorityClassName } } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { template+: { spec+: { restartPolicy: restartPolicy } } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { template+: { spec+: { runtimeClassName: runtimeClassName } } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { template+: { spec+: { schedulerName: schedulerName } } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { template+: { spec+: { serviceAccount: serviceAccount } } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { template+: { spec+: { serviceAccountName: serviceAccountName } } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { template+: { spec+: { subdomain: subdomain } } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + }, + }, + '#withMinReadySeconds':: d.fn(help='"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)"', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { spec+: { minReadySeconds: minReadySeconds } }, + '#withPaused':: d.fn(help='"Indicates that the deployment is paused."', args=[d.arg(name='paused', type=d.T.boolean)]), + withPaused(paused): { spec+: { paused: paused } }, + '#withProgressDeadlineSeconds':: d.fn(help='"The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s."', args=[d.arg(name='progressDeadlineSeconds', type=d.T.integer)]), + withProgressDeadlineSeconds(progressDeadlineSeconds): { spec+: { progressDeadlineSeconds: progressDeadlineSeconds } }, + '#withReplicas':: d.fn(help='"Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1."', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { spec+: { replicas: replicas } }, + '#withRevisionHistoryLimit':: d.fn(help='"The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10."', args=[d.arg(name='revisionHistoryLimit', type=d.T.integer)]), + withRevisionHistoryLimit(revisionHistoryLimit): { spec+: { revisionHistoryLimit: revisionHistoryLimit } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentCondition.libsonnet new file mode 100644 index 0000000..7fe0705 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentCondition.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='deploymentCondition', url='', help='"DeploymentCondition describes the state of a deployment at a certain point."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withLastUpdateTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastUpdateTime', type=d.T.string)]), + withLastUpdateTime(lastUpdateTime): { lastUpdateTime: lastUpdateTime }, + '#withMessage':: d.fn(help='"A human readable message indicating details about the transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"The reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of deployment condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentSpec.libsonnet new file mode 100644 index 0000000..f011306 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentSpec.libsonnet @@ -0,0 +1,300 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='deploymentSpec', url='', help='"DeploymentSpec is the specification of the desired behavior of the Deployment."'), + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#strategy':: d.obj(help='"DeploymentStrategy describes how to replace existing pods with new ones."'), + strategy: { + '#rollingUpdate':: d.obj(help='"Spec to control the desired behavior of rolling update."'), + rollingUpdate: { + '#withMaxSurge':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxSurge', type=d.T.string)]), + withMaxSurge(maxSurge): { strategy+: { rollingUpdate+: { maxSurge: maxSurge } } }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { strategy+: { rollingUpdate+: { maxUnavailable: maxUnavailable } } }, + }, + '#withType':: d.fn(help='"Type of deployment. Can be \\"Recreate\\" or \\"RollingUpdate\\". Default is RollingUpdate."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { strategy+: { type: type } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { template+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { template+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { template+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { template+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { template+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { template+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { template+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { template+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { template+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { template+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { template+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { spec+: { os+: { name: name } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { template+: { spec+: { dnsPolicy: dnsPolicy } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { template+: { spec+: { enableServiceLinks: enableServiceLinks } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { template+: { spec+: { hostIPC: hostIPC } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { template+: { spec+: { hostNetwork: hostNetwork } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { template+: { spec+: { hostPID: hostPID } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { template+: { spec+: { hostUsers: hostUsers } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { template+: { spec+: { hostname: hostname } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { template+: { spec+: { nodeName: nodeName } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { template+: { spec+: { nodeSelector: nodeSelector } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { template+: { spec+: { nodeSelector+: nodeSelector } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { template+: { spec+: { overhead: overhead } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { template+: { spec+: { overhead+: overhead } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { template+: { spec+: { preemptionPolicy: preemptionPolicy } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { template+: { spec+: { priority: priority } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { template+: { spec+: { priorityClassName: priorityClassName } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { template+: { spec+: { restartPolicy: restartPolicy } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { template+: { spec+: { runtimeClassName: runtimeClassName } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { template+: { spec+: { schedulerName: schedulerName } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { template+: { spec+: { serviceAccount: serviceAccount } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { template+: { spec+: { serviceAccountName: serviceAccountName } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { template+: { spec+: { subdomain: subdomain } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } }, + }, + }, + '#withMinReadySeconds':: d.fn(help='"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)"', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { minReadySeconds: minReadySeconds }, + '#withPaused':: d.fn(help='"Indicates that the deployment is paused."', args=[d.arg(name='paused', type=d.T.boolean)]), + withPaused(paused): { paused: paused }, + '#withProgressDeadlineSeconds':: d.fn(help='"The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s."', args=[d.arg(name='progressDeadlineSeconds', type=d.T.integer)]), + withProgressDeadlineSeconds(progressDeadlineSeconds): { progressDeadlineSeconds: progressDeadlineSeconds }, + '#withReplicas':: d.fn(help='"Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1."', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#withRevisionHistoryLimit':: d.fn(help='"The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10."', args=[d.arg(name='revisionHistoryLimit', type=d.T.integer)]), + withRevisionHistoryLimit(revisionHistoryLimit): { revisionHistoryLimit: revisionHistoryLimit }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentStatus.libsonnet new file mode 100644 index 0000000..d2d2673 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentStatus.libsonnet @@ -0,0 +1,24 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='deploymentStatus', url='', help='"DeploymentStatus is the most recently observed status of the Deployment."'), + '#withAvailableReplicas':: d.fn(help='"Total number of available pods (ready for at least minReadySeconds) targeted by this deployment."', args=[d.arg(name='availableReplicas', type=d.T.integer)]), + withAvailableReplicas(availableReplicas): { availableReplicas: availableReplicas }, + '#withCollisionCount':: d.fn(help='"Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet."', args=[d.arg(name='collisionCount', type=d.T.integer)]), + withCollisionCount(collisionCount): { collisionCount: collisionCount }, + '#withConditions':: d.fn(help="\"Represents the latest available observations of a deployment's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"Represents the latest available observations of a deployment's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withObservedGeneration':: d.fn(help='"The generation observed by the deployment controller."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#withReadyReplicas':: d.fn(help='"readyReplicas is the number of pods targeted by this Deployment with a Ready Condition."', args=[d.arg(name='readyReplicas', type=d.T.integer)]), + withReadyReplicas(readyReplicas): { readyReplicas: readyReplicas }, + '#withReplicas':: d.fn(help='"Total number of non-terminated pods targeted by this deployment (their labels match the selector)."', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#withUnavailableReplicas':: d.fn(help='"Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created."', args=[d.arg(name='unavailableReplicas', type=d.T.integer)]), + withUnavailableReplicas(unavailableReplicas): { unavailableReplicas: unavailableReplicas }, + '#withUpdatedReplicas':: d.fn(help='"Total number of non-terminated pods targeted by this deployment that have the desired template spec."', args=[d.arg(name='updatedReplicas', type=d.T.integer)]), + withUpdatedReplicas(updatedReplicas): { updatedReplicas: updatedReplicas }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentStrategy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentStrategy.libsonnet new file mode 100644 index 0000000..2a09b3d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/deploymentStrategy.libsonnet @@ -0,0 +1,15 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='deploymentStrategy', url='', help='"DeploymentStrategy describes how to replace existing pods with new ones."'), + '#rollingUpdate':: d.obj(help='"Spec to control the desired behavior of rolling update."'), + rollingUpdate: { + '#withMaxSurge':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxSurge', type=d.T.string)]), + withMaxSurge(maxSurge): { rollingUpdate+: { maxSurge: maxSurge } }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { rollingUpdate+: { maxUnavailable: maxUnavailable } }, + }, + '#withType':: d.fn(help='"Type of deployment. Can be \\"Recreate\\" or \\"RollingUpdate\\". Default is RollingUpdate."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/main.libsonnet new file mode 100644 index 0000000..a450610 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/main.libsonnet @@ -0,0 +1,29 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + controllerRevision: (import 'controllerRevision.libsonnet'), + daemonSet: (import 'daemonSet.libsonnet'), + daemonSetCondition: (import 'daemonSetCondition.libsonnet'), + daemonSetSpec: (import 'daemonSetSpec.libsonnet'), + daemonSetStatus: (import 'daemonSetStatus.libsonnet'), + daemonSetUpdateStrategy: (import 'daemonSetUpdateStrategy.libsonnet'), + deployment: (import 'deployment.libsonnet'), + deploymentCondition: (import 'deploymentCondition.libsonnet'), + deploymentSpec: (import 'deploymentSpec.libsonnet'), + deploymentStatus: (import 'deploymentStatus.libsonnet'), + deploymentStrategy: (import 'deploymentStrategy.libsonnet'), + replicaSet: (import 'replicaSet.libsonnet'), + replicaSetCondition: (import 'replicaSetCondition.libsonnet'), + replicaSetSpec: (import 'replicaSetSpec.libsonnet'), + replicaSetStatus: (import 'replicaSetStatus.libsonnet'), + rollingUpdateDaemonSet: (import 'rollingUpdateDaemonSet.libsonnet'), + rollingUpdateDeployment: (import 'rollingUpdateDeployment.libsonnet'), + rollingUpdateStatefulSetStrategy: (import 'rollingUpdateStatefulSetStrategy.libsonnet'), + statefulSet: (import 'statefulSet.libsonnet'), + statefulSetCondition: (import 'statefulSetCondition.libsonnet'), + statefulSetOrdinals: (import 'statefulSetOrdinals.libsonnet'), + statefulSetPersistentVolumeClaimRetentionPolicy: (import 'statefulSetPersistentVolumeClaimRetentionPolicy.libsonnet'), + statefulSetSpec: (import 'statefulSetSpec.libsonnet'), + statefulSetStatus: (import 'statefulSetStatus.libsonnet'), + statefulSetUpdateStrategy: (import 'statefulSetUpdateStrategy.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSet.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSet.libsonnet new file mode 100644 index 0000000..10ab26f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSet.libsonnet @@ -0,0 +1,333 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='replicaSet', url='', help='"ReplicaSet ensures that a specified number of pod replicas are running at any given time."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ReplicaSet', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'apps/v1', + kind: 'ReplicaSet', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ReplicaSetSpec is the specification of a ReplicaSet."'), + spec: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { template+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { template+: { metadata+: { annotations+: annotations } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { template+: { metadata+: { creationTimestamp: creationTimestamp } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { template+: { metadata+: { generateName: generateName } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { template+: { metadata+: { generation: generation } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { template+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { template+: { metadata+: { labels+: labels } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { metadata+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { template+: { metadata+: { namespace: namespace } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { template+: { metadata+: { resourceVersion: resourceVersion } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { template+: { metadata+: { selfLink: selfLink } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { template+: { metadata+: { uid: uid } } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { spec+: { os+: { name: name } } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { template+: { spec+: { dnsPolicy: dnsPolicy } } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { template+: { spec+: { enableServiceLinks: enableServiceLinks } } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { template+: { spec+: { hostIPC: hostIPC } } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { template+: { spec+: { hostNetwork: hostNetwork } } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { template+: { spec+: { hostPID: hostPID } } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { template+: { spec+: { hostUsers: hostUsers } } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { template+: { spec+: { hostname: hostname } } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { template+: { spec+: { nodeName: nodeName } } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { template+: { spec+: { nodeSelector: nodeSelector } } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { template+: { spec+: { nodeSelector+: nodeSelector } } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { template+: { spec+: { overhead: overhead } } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { template+: { spec+: { overhead+: overhead } } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { template+: { spec+: { preemptionPolicy: preemptionPolicy } } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { template+: { spec+: { priority: priority } } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { template+: { spec+: { priorityClassName: priorityClassName } } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { template+: { spec+: { restartPolicy: restartPolicy } } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { template+: { spec+: { runtimeClassName: runtimeClassName } } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { template+: { spec+: { schedulerName: schedulerName } } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { template+: { spec+: { serviceAccount: serviceAccount } } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { template+: { spec+: { serviceAccountName: serviceAccountName } } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { template+: { spec+: { subdomain: subdomain } } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + }, + }, + '#withMinReadySeconds':: d.fn(help='"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)"', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { spec+: { minReadySeconds: minReadySeconds } }, + '#withReplicas':: d.fn(help='"Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller"', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { spec+: { replicas: replicas } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetCondition.libsonnet new file mode 100644 index 0000000..effbac2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='replicaSetCondition', url='', help='"ReplicaSetCondition describes the state of a replica set at a certain point."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"A human readable message indicating details about the transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"The reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of replica set condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetSpec.libsonnet new file mode 100644 index 0000000..c60df6d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetSpec.libsonnet @@ -0,0 +1,282 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='replicaSetSpec', url='', help='"ReplicaSetSpec is the specification of a ReplicaSet."'), + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { template+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { template+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { template+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { template+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { template+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { template+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { template+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { template+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { template+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { template+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { template+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { spec+: { os+: { name: name } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { template+: { spec+: { dnsPolicy: dnsPolicy } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { template+: { spec+: { enableServiceLinks: enableServiceLinks } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { template+: { spec+: { hostIPC: hostIPC } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { template+: { spec+: { hostNetwork: hostNetwork } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { template+: { spec+: { hostPID: hostPID } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { template+: { spec+: { hostUsers: hostUsers } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { template+: { spec+: { hostname: hostname } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { template+: { spec+: { nodeName: nodeName } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { template+: { spec+: { nodeSelector: nodeSelector } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { template+: { spec+: { nodeSelector+: nodeSelector } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { template+: { spec+: { overhead: overhead } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { template+: { spec+: { overhead+: overhead } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { template+: { spec+: { preemptionPolicy: preemptionPolicy } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { template+: { spec+: { priority: priority } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { template+: { spec+: { priorityClassName: priorityClassName } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { template+: { spec+: { restartPolicy: restartPolicy } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { template+: { spec+: { runtimeClassName: runtimeClassName } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { template+: { spec+: { schedulerName: schedulerName } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { template+: { spec+: { serviceAccount: serviceAccount } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { template+: { spec+: { serviceAccountName: serviceAccountName } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { template+: { spec+: { subdomain: subdomain } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } }, + }, + }, + '#withMinReadySeconds':: d.fn(help='"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)"', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { minReadySeconds: minReadySeconds }, + '#withReplicas':: d.fn(help='"Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller"', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetStatus.libsonnet new file mode 100644 index 0000000..9d762ad --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/replicaSetStatus.libsonnet @@ -0,0 +1,20 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='replicaSetStatus', url='', help='"ReplicaSetStatus represents the current status of a ReplicaSet."'), + '#withAvailableReplicas':: d.fn(help='"The number of available replicas (ready for at least minReadySeconds) for this replica set."', args=[d.arg(name='availableReplicas', type=d.T.integer)]), + withAvailableReplicas(availableReplicas): { availableReplicas: availableReplicas }, + '#withConditions':: d.fn(help="\"Represents the latest available observations of a replica set's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"Represents the latest available observations of a replica set's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withFullyLabeledReplicas':: d.fn(help='"The number of pods that have labels matching the labels of the pod template of the replicaset."', args=[d.arg(name='fullyLabeledReplicas', type=d.T.integer)]), + withFullyLabeledReplicas(fullyLabeledReplicas): { fullyLabeledReplicas: fullyLabeledReplicas }, + '#withObservedGeneration':: d.fn(help='"ObservedGeneration reflects the generation of the most recently observed ReplicaSet."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#withReadyReplicas':: d.fn(help='"readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition."', args=[d.arg(name='readyReplicas', type=d.T.integer)]), + withReadyReplicas(readyReplicas): { readyReplicas: readyReplicas }, + '#withReplicas':: d.fn(help='"Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller"', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateDaemonSet.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateDaemonSet.libsonnet new file mode 100644 index 0000000..02c86c9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateDaemonSet.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='rollingUpdateDaemonSet', url='', help='"Spec to control the desired behavior of daemon set rolling update."'), + '#withMaxSurge':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxSurge', type=d.T.string)]), + withMaxSurge(maxSurge): { maxSurge: maxSurge }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { maxUnavailable: maxUnavailable }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateDeployment.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateDeployment.libsonnet new file mode 100644 index 0000000..3cbdf0e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateDeployment.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='rollingUpdateDeployment', url='', help='"Spec to control the desired behavior of rolling update."'), + '#withMaxSurge':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxSurge', type=d.T.string)]), + withMaxSurge(maxSurge): { maxSurge: maxSurge }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { maxUnavailable: maxUnavailable }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateStatefulSetStrategy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateStatefulSetStrategy.libsonnet new file mode 100644 index 0000000..ecc7a18 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/rollingUpdateStatefulSetStrategy.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='rollingUpdateStatefulSetStrategy', url='', help='"RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType."'), + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { maxUnavailable: maxUnavailable }, + '#withPartition':: d.fn(help='"Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { partition: partition }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSet.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSet.libsonnet new file mode 100644 index 0000000..363e3d3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSet.libsonnet @@ -0,0 +1,367 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='statefulSet', url='', help='"StatefulSet represents a set of pods with consistent identities. Identities are defined as:\\n - Network: A single stable DNS and hostname.\\n - Storage: As many VolumeClaims as requested.\\n\\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of StatefulSet', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'apps/v1', + kind: 'StatefulSet', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"A StatefulSetSpec is the specification of a StatefulSet."'), + spec: { + '#ordinals':: d.obj(help='"StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet."'), + ordinals: { + '#withStart':: d.fn(help="\"start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\\nIf unset, defaults to 0. Replica indices will be in the range:\\n [0, .spec.replicas).\"", args=[d.arg(name='start', type=d.T.integer)]), + withStart(start): { spec+: { ordinals+: { start: start } } }, + }, + '#persistentVolumeClaimRetentionPolicy':: d.obj(help='"StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates."'), + persistentVolumeClaimRetentionPolicy: { + '#withWhenDeleted':: d.fn(help='"WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted."', args=[d.arg(name='whenDeleted', type=d.T.string)]), + withWhenDeleted(whenDeleted): { spec+: { persistentVolumeClaimRetentionPolicy+: { whenDeleted: whenDeleted } } }, + '#withWhenScaled':: d.fn(help='"WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted."', args=[d.arg(name='whenScaled', type=d.T.string)]), + withWhenScaled(whenScaled): { spec+: { persistentVolumeClaimRetentionPolicy+: { whenScaled: whenScaled } } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { template+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { template+: { metadata+: { annotations+: annotations } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { template+: { metadata+: { creationTimestamp: creationTimestamp } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { template+: { metadata+: { generateName: generateName } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { template+: { metadata+: { generation: generation } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { template+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { template+: { metadata+: { labels+: labels } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { metadata+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { template+: { metadata+: { namespace: namespace } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { template+: { metadata+: { resourceVersion: resourceVersion } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { template+: { metadata+: { selfLink: selfLink } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { template+: { metadata+: { uid: uid } } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { spec+: { os+: { name: name } } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { template+: { spec+: { dnsPolicy: dnsPolicy } } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { template+: { spec+: { enableServiceLinks: enableServiceLinks } } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { template+: { spec+: { hostIPC: hostIPC } } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { template+: { spec+: { hostNetwork: hostNetwork } } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { template+: { spec+: { hostPID: hostPID } } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { template+: { spec+: { hostUsers: hostUsers } } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { template+: { spec+: { hostname: hostname } } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { template+: { spec+: { nodeName: nodeName } } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { template+: { spec+: { nodeSelector: nodeSelector } } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { template+: { spec+: { nodeSelector+: nodeSelector } } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { template+: { spec+: { overhead: overhead } } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { template+: { spec+: { overhead+: overhead } } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { template+: { spec+: { preemptionPolicy: preemptionPolicy } } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { template+: { spec+: { priority: priority } } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { template+: { spec+: { priorityClassName: priorityClassName } } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { template+: { spec+: { restartPolicy: restartPolicy } } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { template+: { spec+: { runtimeClassName: runtimeClassName } } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { template+: { spec+: { schedulerName: schedulerName } } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { template+: { spec+: { serviceAccount: serviceAccount } } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { template+: { spec+: { serviceAccountName: serviceAccountName } } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { template+: { spec+: { subdomain: subdomain } } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + }, + }, + '#updateStrategy':: d.obj(help='"StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy."'), + updateStrategy: { + '#rollingUpdate':: d.obj(help='"RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType."'), + rollingUpdate: { + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { spec+: { updateStrategy+: { rollingUpdate+: { maxUnavailable: maxUnavailable } } } }, + '#withPartition':: d.fn(help='"Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { spec+: { updateStrategy+: { rollingUpdate+: { partition: partition } } } }, + }, + '#withType':: d.fn(help='"Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { updateStrategy+: { type: type } } }, + }, + '#withMinReadySeconds':: d.fn(help='"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)"', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { spec+: { minReadySeconds: minReadySeconds } }, + '#withPodManagementPolicy':: d.fn(help='"podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once."', args=[d.arg(name='podManagementPolicy', type=d.T.string)]), + withPodManagementPolicy(podManagementPolicy): { spec+: { podManagementPolicy: podManagementPolicy } }, + '#withReplicas':: d.fn(help='"replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1."', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { spec+: { replicas: replicas } }, + '#withRevisionHistoryLimit':: d.fn(help="\"revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.\"", args=[d.arg(name='revisionHistoryLimit', type=d.T.integer)]), + withRevisionHistoryLimit(revisionHistoryLimit): { spec+: { revisionHistoryLimit: revisionHistoryLimit } }, + '#withServiceName':: d.fn(help='"serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \\"pod-specific-string\\" is managed by the StatefulSet controller."', args=[d.arg(name='serviceName', type=d.T.string)]), + withServiceName(serviceName): { spec+: { serviceName: serviceName } }, + '#withVolumeClaimTemplates':: d.fn(help='"volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name."', args=[d.arg(name='volumeClaimTemplates', type=d.T.array)]), + withVolumeClaimTemplates(volumeClaimTemplates): { spec+: { volumeClaimTemplates: if std.isArray(v=volumeClaimTemplates) then volumeClaimTemplates else [volumeClaimTemplates] } }, + '#withVolumeClaimTemplatesMixin':: d.fn(help='"volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeClaimTemplates', type=d.T.array)]), + withVolumeClaimTemplatesMixin(volumeClaimTemplates): { spec+: { volumeClaimTemplates+: if std.isArray(v=volumeClaimTemplates) then volumeClaimTemplates else [volumeClaimTemplates] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetCondition.libsonnet new file mode 100644 index 0000000..3de91cb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='statefulSetCondition', url='', help='"StatefulSetCondition describes the state of a statefulset at a certain point."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"A human readable message indicating details about the transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"The reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of statefulset condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetOrdinals.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetOrdinals.libsonnet new file mode 100644 index 0000000..d1fe8ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetOrdinals.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='statefulSetOrdinals', url='', help='"StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet."'), + '#withStart':: d.fn(help="\"start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\\nIf unset, defaults to 0. Replica indices will be in the range:\\n [0, .spec.replicas).\"", args=[d.arg(name='start', type=d.T.integer)]), + withStart(start): { start: start }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetPersistentVolumeClaimRetentionPolicy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetPersistentVolumeClaimRetentionPolicy.libsonnet new file mode 100644 index 0000000..024ca48 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetPersistentVolumeClaimRetentionPolicy.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='statefulSetPersistentVolumeClaimRetentionPolicy', url='', help='"StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates."'), + '#withWhenDeleted':: d.fn(help='"WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted."', args=[d.arg(name='whenDeleted', type=d.T.string)]), + withWhenDeleted(whenDeleted): { whenDeleted: whenDeleted }, + '#withWhenScaled':: d.fn(help='"WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted."', args=[d.arg(name='whenScaled', type=d.T.string)]), + withWhenScaled(whenScaled): { whenScaled: whenScaled }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetSpec.libsonnet new file mode 100644 index 0000000..0bf8b86 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetSpec.libsonnet @@ -0,0 +1,316 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='statefulSetSpec', url='', help='"A StatefulSetSpec is the specification of a StatefulSet."'), + '#ordinals':: d.obj(help='"StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet."'), + ordinals: { + '#withStart':: d.fn(help="\"start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\\nIf unset, defaults to 0. Replica indices will be in the range:\\n [0, .spec.replicas).\"", args=[d.arg(name='start', type=d.T.integer)]), + withStart(start): { ordinals+: { start: start } }, + }, + '#persistentVolumeClaimRetentionPolicy':: d.obj(help='"StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates."'), + persistentVolumeClaimRetentionPolicy: { + '#withWhenDeleted':: d.fn(help='"WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted."', args=[d.arg(name='whenDeleted', type=d.T.string)]), + withWhenDeleted(whenDeleted): { persistentVolumeClaimRetentionPolicy+: { whenDeleted: whenDeleted } }, + '#withWhenScaled':: d.fn(help='"WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted."', args=[d.arg(name='whenScaled', type=d.T.string)]), + withWhenScaled(whenScaled): { persistentVolumeClaimRetentionPolicy+: { whenScaled: whenScaled } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { template+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { template+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { template+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { template+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { template+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { template+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { template+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { template+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { template+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { template+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { template+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { spec+: { os+: { name: name } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { template+: { spec+: { dnsPolicy: dnsPolicy } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { template+: { spec+: { enableServiceLinks: enableServiceLinks } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { template+: { spec+: { hostIPC: hostIPC } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { template+: { spec+: { hostNetwork: hostNetwork } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { template+: { spec+: { hostPID: hostPID } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { template+: { spec+: { hostUsers: hostUsers } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { template+: { spec+: { hostname: hostname } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { template+: { spec+: { nodeName: nodeName } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { template+: { spec+: { nodeSelector: nodeSelector } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { template+: { spec+: { nodeSelector+: nodeSelector } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { template+: { spec+: { overhead: overhead } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { template+: { spec+: { overhead+: overhead } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { template+: { spec+: { preemptionPolicy: preemptionPolicy } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { template+: { spec+: { priority: priority } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { template+: { spec+: { priorityClassName: priorityClassName } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { template+: { spec+: { restartPolicy: restartPolicy } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { template+: { spec+: { runtimeClassName: runtimeClassName } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { template+: { spec+: { schedulerName: schedulerName } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { template+: { spec+: { serviceAccount: serviceAccount } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { template+: { spec+: { serviceAccountName: serviceAccountName } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { template+: { spec+: { subdomain: subdomain } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } }, + }, + }, + '#updateStrategy':: d.obj(help='"StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy."'), + updateStrategy: { + '#rollingUpdate':: d.obj(help='"RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType."'), + rollingUpdate: { + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { updateStrategy+: { rollingUpdate+: { maxUnavailable: maxUnavailable } } }, + '#withPartition':: d.fn(help='"Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { updateStrategy+: { rollingUpdate+: { partition: partition } } }, + }, + '#withType':: d.fn(help='"Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { updateStrategy+: { type: type } }, + }, + '#withMinReadySeconds':: d.fn(help='"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)"', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { minReadySeconds: minReadySeconds }, + '#withPodManagementPolicy':: d.fn(help='"podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once."', args=[d.arg(name='podManagementPolicy', type=d.T.string)]), + withPodManagementPolicy(podManagementPolicy): { podManagementPolicy: podManagementPolicy }, + '#withReplicas':: d.fn(help='"replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1."', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#withRevisionHistoryLimit':: d.fn(help="\"revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.\"", args=[d.arg(name='revisionHistoryLimit', type=d.T.integer)]), + withRevisionHistoryLimit(revisionHistoryLimit): { revisionHistoryLimit: revisionHistoryLimit }, + '#withServiceName':: d.fn(help='"serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \\"pod-specific-string\\" is managed by the StatefulSet controller."', args=[d.arg(name='serviceName', type=d.T.string)]), + withServiceName(serviceName): { serviceName: serviceName }, + '#withVolumeClaimTemplates':: d.fn(help='"volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name."', args=[d.arg(name='volumeClaimTemplates', type=d.T.array)]), + withVolumeClaimTemplates(volumeClaimTemplates): { volumeClaimTemplates: if std.isArray(v=volumeClaimTemplates) then volumeClaimTemplates else [volumeClaimTemplates] }, + '#withVolumeClaimTemplatesMixin':: d.fn(help='"volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeClaimTemplates', type=d.T.array)]), + withVolumeClaimTemplatesMixin(volumeClaimTemplates): { volumeClaimTemplates+: if std.isArray(v=volumeClaimTemplates) then volumeClaimTemplates else [volumeClaimTemplates] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetStatus.libsonnet new file mode 100644 index 0000000..3271d60 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetStatus.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='statefulSetStatus', url='', help='"StatefulSetStatus represents the current state of a StatefulSet."'), + '#withAvailableReplicas':: d.fn(help='"Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset."', args=[d.arg(name='availableReplicas', type=d.T.integer)]), + withAvailableReplicas(availableReplicas): { availableReplicas: availableReplicas }, + '#withCollisionCount':: d.fn(help='"collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision."', args=[d.arg(name='collisionCount', type=d.T.integer)]), + withCollisionCount(collisionCount): { collisionCount: collisionCount }, + '#withConditions':: d.fn(help="\"Represents the latest available observations of a statefulset's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"Represents the latest available observations of a statefulset's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withCurrentReplicas':: d.fn(help='"currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision."', args=[d.arg(name='currentReplicas', type=d.T.integer)]), + withCurrentReplicas(currentReplicas): { currentReplicas: currentReplicas }, + '#withCurrentRevision':: d.fn(help='"currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas)."', args=[d.arg(name='currentRevision', type=d.T.string)]), + withCurrentRevision(currentRevision): { currentRevision: currentRevision }, + '#withObservedGeneration':: d.fn(help="\"observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.\"", args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#withReadyReplicas':: d.fn(help='"readyReplicas is the number of pods created for this StatefulSet with a Ready Condition."', args=[d.arg(name='readyReplicas', type=d.T.integer)]), + withReadyReplicas(readyReplicas): { readyReplicas: readyReplicas }, + '#withReplicas':: d.fn(help='"replicas is the number of Pods created by the StatefulSet controller."', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#withUpdateRevision':: d.fn(help='"updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)"', args=[d.arg(name='updateRevision', type=d.T.string)]), + withUpdateRevision(updateRevision): { updateRevision: updateRevision }, + '#withUpdatedReplicas':: d.fn(help='"updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision."', args=[d.arg(name='updatedReplicas', type=d.T.integer)]), + withUpdatedReplicas(updatedReplicas): { updatedReplicas: updatedReplicas }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetUpdateStrategy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetUpdateStrategy.libsonnet new file mode 100644 index 0000000..de37047 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/apps/v1/statefulSetUpdateStrategy.libsonnet @@ -0,0 +1,15 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='statefulSetUpdateStrategy', url='', help='"StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy."'), + '#rollingUpdate':: d.obj(help='"RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType."'), + rollingUpdate: { + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { rollingUpdate+: { maxUnavailable: maxUnavailable } }, + '#withPartition':: d.fn(help='"Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { rollingUpdate+: { partition: partition } }, + }, + '#withType':: d.fn(help='"Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/main.libsonnet new file mode 100644 index 0000000..91f1768 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/main.libsonnet @@ -0,0 +1,7 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='authentication', url='', help=''), + v1: (import 'v1/main.libsonnet'), + v1alpha1: (import 'v1alpha1/main.libsonnet'), + v1beta1: (import 'v1beta1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/boundObjectReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/boundObjectReference.libsonnet new file mode 100644 index 0000000..22262a9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/boundObjectReference.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='boundObjectReference', url='', help='"BoundObjectReference is a reference to an object that a token is bound to."'), + '#withKind':: d.fn(help="\"Kind of the referent. Valid kinds are 'Pod' and 'Secret'.\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"Name of the referent."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withUid':: d.fn(help='"UID of the referent."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/main.libsonnet new file mode 100644 index 0000000..7953f90 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/main.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + boundObjectReference: (import 'boundObjectReference.libsonnet'), + selfSubjectReview: (import 'selfSubjectReview.libsonnet'), + selfSubjectReviewStatus: (import 'selfSubjectReviewStatus.libsonnet'), + tokenRequest: (import 'tokenRequest.libsonnet'), + tokenRequestSpec: (import 'tokenRequestSpec.libsonnet'), + tokenRequestStatus: (import 'tokenRequestStatus.libsonnet'), + tokenReview: (import 'tokenReview.libsonnet'), + tokenReviewSpec: (import 'tokenReviewSpec.libsonnet'), + tokenReviewStatus: (import 'tokenReviewStatus.libsonnet'), + userInfo: (import 'userInfo.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/selfSubjectReview.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/selfSubjectReview.libsonnet new file mode 100644 index 0000000..f213497 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/selfSubjectReview.libsonnet @@ -0,0 +1,54 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectReview', url='', help='"SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of SelfSubjectReview', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'authentication.k8s.io/v1', + kind: 'SelfSubjectReview', + } + self.metadata.withName(name=name), + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/selfSubjectReviewStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/selfSubjectReviewStatus.libsonnet new file mode 100644 index 0000000..a50f9fa --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/selfSubjectReviewStatus.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectReviewStatus', url='', help='"SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user."'), + '#userInfo':: d.obj(help='"UserInfo holds the information about the user needed to implement the user.Info interface."'), + userInfo: { + '#withExtra':: d.fn(help='"Any additional information provided by the authenticator."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { userInfo+: { extra: extra } }, + '#withExtraMixin':: d.fn(help='"Any additional information provided by the authenticator."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { userInfo+: { extra+: extra } }, + '#withGroups':: d.fn(help='"The names of groups this user is a part of."', args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { userInfo+: { groups: if std.isArray(v=groups) then groups else [groups] } }, + '#withGroupsMixin':: d.fn(help='"The names of groups this user is a part of."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { userInfo+: { groups+: if std.isArray(v=groups) then groups else [groups] } }, + '#withUid':: d.fn(help='"A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { userInfo+: { uid: uid } }, + '#withUsername':: d.fn(help='"The name that uniquely identifies this user among all active users."', args=[d.arg(name='username', type=d.T.string)]), + withUsername(username): { userInfo+: { username: username } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequest.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequest.libsonnet new file mode 100644 index 0000000..bb17efa --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequest.libsonnet @@ -0,0 +1,74 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='tokenRequest', url='', help='"TokenRequest requests a token for a given service account."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of TokenRequest', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'authentication.k8s.io/v1', + kind: 'TokenRequest', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"TokenRequestSpec contains client provided parameters of a token request."'), + spec: { + '#boundObjectRef':: d.obj(help='"BoundObjectReference is a reference to an object that a token is bound to."'), + boundObjectRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { boundObjectRef+: { apiVersion: apiVersion } } }, + '#withKind':: d.fn(help="\"Kind of the referent. Valid kinds are 'Pod' and 'Secret'.\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { boundObjectRef+: { kind: kind } } }, + '#withName':: d.fn(help='"Name of the referent."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { boundObjectRef+: { name: name } } }, + '#withUid':: d.fn(help='"UID of the referent."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { boundObjectRef+: { uid: uid } } }, + }, + '#withAudiences':: d.fn(help='"Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences."', args=[d.arg(name='audiences', type=d.T.array)]), + withAudiences(audiences): { spec+: { audiences: if std.isArray(v=audiences) then audiences else [audiences] } }, + '#withAudiencesMixin':: d.fn(help='"Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='audiences', type=d.T.array)]), + withAudiencesMixin(audiences): { spec+: { audiences+: if std.isArray(v=audiences) then audiences else [audiences] } }, + '#withExpirationSeconds':: d.fn(help="\"ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.\"", args=[d.arg(name='expirationSeconds', type=d.T.integer)]), + withExpirationSeconds(expirationSeconds): { spec+: { expirationSeconds: expirationSeconds } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequestSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequestSpec.libsonnet new file mode 100644 index 0000000..5666b2d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequestSpec.libsonnet @@ -0,0 +1,23 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='tokenRequestSpec', url='', help='"TokenRequestSpec contains client provided parameters of a token request."'), + '#boundObjectRef':: d.obj(help='"BoundObjectReference is a reference to an object that a token is bound to."'), + boundObjectRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { boundObjectRef+: { apiVersion: apiVersion } }, + '#withKind':: d.fn(help="\"Kind of the referent. Valid kinds are 'Pod' and 'Secret'.\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { boundObjectRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { boundObjectRef+: { name: name } }, + '#withUid':: d.fn(help='"UID of the referent."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { boundObjectRef+: { uid: uid } }, + }, + '#withAudiences':: d.fn(help='"Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences."', args=[d.arg(name='audiences', type=d.T.array)]), + withAudiences(audiences): { audiences: if std.isArray(v=audiences) then audiences else [audiences] }, + '#withAudiencesMixin':: d.fn(help='"Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='audiences', type=d.T.array)]), + withAudiencesMixin(audiences): { audiences+: if std.isArray(v=audiences) then audiences else [audiences] }, + '#withExpirationSeconds':: d.fn(help="\"ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.\"", args=[d.arg(name='expirationSeconds', type=d.T.integer)]), + withExpirationSeconds(expirationSeconds): { expirationSeconds: expirationSeconds }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequestStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequestStatus.libsonnet new file mode 100644 index 0000000..4aa5d4e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenRequestStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='tokenRequestStatus', url='', help='"TokenRequestStatus is the result of a token request."'), + '#withExpirationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='expirationTimestamp', type=d.T.string)]), + withExpirationTimestamp(expirationTimestamp): { expirationTimestamp: expirationTimestamp }, + '#withToken':: d.fn(help='"Token is the opaque bearer token."', args=[d.arg(name='token', type=d.T.string)]), + withToken(token): { token: token }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReview.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReview.libsonnet new file mode 100644 index 0000000..e91e9bc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReview.libsonnet @@ -0,0 +1,63 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='tokenReview', url='', help='"TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of TokenReview', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'authentication.k8s.io/v1', + kind: 'TokenReview', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"TokenReviewSpec is a description of the token authentication request."'), + spec: { + '#withAudiences':: d.fn(help='"Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver."', args=[d.arg(name='audiences', type=d.T.array)]), + withAudiences(audiences): { spec+: { audiences: if std.isArray(v=audiences) then audiences else [audiences] } }, + '#withAudiencesMixin':: d.fn(help='"Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='audiences', type=d.T.array)]), + withAudiencesMixin(audiences): { spec+: { audiences+: if std.isArray(v=audiences) then audiences else [audiences] } }, + '#withToken':: d.fn(help='"Token is the opaque bearer token."', args=[d.arg(name='token', type=d.T.string)]), + withToken(token): { spec+: { token: token } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReviewSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReviewSpec.libsonnet new file mode 100644 index 0000000..8744aa8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReviewSpec.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='tokenReviewSpec', url='', help='"TokenReviewSpec is a description of the token authentication request."'), + '#withAudiences':: d.fn(help='"Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver."', args=[d.arg(name='audiences', type=d.T.array)]), + withAudiences(audiences): { audiences: if std.isArray(v=audiences) then audiences else [audiences] }, + '#withAudiencesMixin':: d.fn(help='"Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='audiences', type=d.T.array)]), + withAudiencesMixin(audiences): { audiences+: if std.isArray(v=audiences) then audiences else [audiences] }, + '#withToken':: d.fn(help='"Token is the opaque bearer token."', args=[d.arg(name='token', type=d.T.string)]), + withToken(token): { token: token }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReviewStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReviewStatus.libsonnet new file mode 100644 index 0000000..04242af --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/tokenReviewStatus.libsonnet @@ -0,0 +1,29 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='tokenReviewStatus', url='', help='"TokenReviewStatus is the result of the token authentication request."'), + '#user':: d.obj(help='"UserInfo holds the information about the user needed to implement the user.Info interface."'), + user: { + '#withExtra':: d.fn(help='"Any additional information provided by the authenticator."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { user+: { extra: extra } }, + '#withExtraMixin':: d.fn(help='"Any additional information provided by the authenticator."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { user+: { extra+: extra } }, + '#withGroups':: d.fn(help='"The names of groups this user is a part of."', args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { user+: { groups: if std.isArray(v=groups) then groups else [groups] } }, + '#withGroupsMixin':: d.fn(help='"The names of groups this user is a part of."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { user+: { groups+: if std.isArray(v=groups) then groups else [groups] } }, + '#withUid':: d.fn(help='"A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { user+: { uid: uid } }, + '#withUsername':: d.fn(help='"The name that uniquely identifies this user among all active users."', args=[d.arg(name='username', type=d.T.string)]), + withUsername(username): { user+: { username: username } }, + }, + '#withAudiences':: d.fn(help="\"Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \\\"true\\\", the token is valid against the audience of the Kubernetes API server.\"", args=[d.arg(name='audiences', type=d.T.array)]), + withAudiences(audiences): { audiences: if std.isArray(v=audiences) then audiences else [audiences] }, + '#withAudiencesMixin':: d.fn(help="\"Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \\\"true\\\", the token is valid against the audience of the Kubernetes API server.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='audiences', type=d.T.array)]), + withAudiencesMixin(audiences): { audiences+: if std.isArray(v=audiences) then audiences else [audiences] }, + '#withAuthenticated':: d.fn(help='"Authenticated indicates that the token was associated with a known user."', args=[d.arg(name='authenticated', type=d.T.boolean)]), + withAuthenticated(authenticated): { authenticated: authenticated }, + '#withError':: d.fn(help="\"Error indicates that the token couldn't be checked\"", args=[d.arg(name='err', type=d.T.string)]), + withError(err): { 'error': err }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/userInfo.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/userInfo.libsonnet new file mode 100644 index 0000000..7e4d2ad --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1/userInfo.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='userInfo', url='', help='"UserInfo holds the information about the user needed to implement the user.Info interface."'), + '#withExtra':: d.fn(help='"Any additional information provided by the authenticator."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { extra: extra }, + '#withExtraMixin':: d.fn(help='"Any additional information provided by the authenticator."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { extra+: extra }, + '#withGroups':: d.fn(help='"The names of groups this user is a part of."', args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { groups: if std.isArray(v=groups) then groups else [groups] }, + '#withGroupsMixin':: d.fn(help='"The names of groups this user is a part of."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { groups+: if std.isArray(v=groups) then groups else [groups] }, + '#withUid':: d.fn(help='"A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#withUsername':: d.fn(help='"The name that uniquely identifies this user among all active users."', args=[d.arg(name='username', type=d.T.string)]), + withUsername(username): { username: username }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/main.libsonnet new file mode 100644 index 0000000..a21668c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1alpha1', url='', help=''), + selfSubjectReview: (import 'selfSubjectReview.libsonnet'), + selfSubjectReviewStatus: (import 'selfSubjectReviewStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/selfSubjectReview.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/selfSubjectReview.libsonnet new file mode 100644 index 0000000..9e25517 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/selfSubjectReview.libsonnet @@ -0,0 +1,54 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectReview', url='', help='"SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of SelfSubjectReview', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'authentication.k8s.io/v1alpha1', + kind: 'SelfSubjectReview', + } + self.metadata.withName(name=name), + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/selfSubjectReviewStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/selfSubjectReviewStatus.libsonnet new file mode 100644 index 0000000..a50f9fa --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1alpha1/selfSubjectReviewStatus.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectReviewStatus', url='', help='"SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user."'), + '#userInfo':: d.obj(help='"UserInfo holds the information about the user needed to implement the user.Info interface."'), + userInfo: { + '#withExtra':: d.fn(help='"Any additional information provided by the authenticator."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { userInfo+: { extra: extra } }, + '#withExtraMixin':: d.fn(help='"Any additional information provided by the authenticator."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { userInfo+: { extra+: extra } }, + '#withGroups':: d.fn(help='"The names of groups this user is a part of."', args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { userInfo+: { groups: if std.isArray(v=groups) then groups else [groups] } }, + '#withGroupsMixin':: d.fn(help='"The names of groups this user is a part of."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { userInfo+: { groups+: if std.isArray(v=groups) then groups else [groups] } }, + '#withUid':: d.fn(help='"A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { userInfo+: { uid: uid } }, + '#withUsername':: d.fn(help='"The name that uniquely identifies this user among all active users."', args=[d.arg(name='username', type=d.T.string)]), + withUsername(username): { userInfo+: { username: username } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/main.libsonnet new file mode 100644 index 0000000..4200edf --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1beta1', url='', help=''), + selfSubjectReview: (import 'selfSubjectReview.libsonnet'), + selfSubjectReviewStatus: (import 'selfSubjectReviewStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/selfSubjectReview.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/selfSubjectReview.libsonnet new file mode 100644 index 0000000..2fadc08 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/selfSubjectReview.libsonnet @@ -0,0 +1,54 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectReview', url='', help='"SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of SelfSubjectReview', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'authentication.k8s.io/v1beta1', + kind: 'SelfSubjectReview', + } + self.metadata.withName(name=name), + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/selfSubjectReviewStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/selfSubjectReviewStatus.libsonnet new file mode 100644 index 0000000..a50f9fa --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authentication/v1beta1/selfSubjectReviewStatus.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectReviewStatus', url='', help='"SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user."'), + '#userInfo':: d.obj(help='"UserInfo holds the information about the user needed to implement the user.Info interface."'), + userInfo: { + '#withExtra':: d.fn(help='"Any additional information provided by the authenticator."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { userInfo+: { extra: extra } }, + '#withExtraMixin':: d.fn(help='"Any additional information provided by the authenticator."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { userInfo+: { extra+: extra } }, + '#withGroups':: d.fn(help='"The names of groups this user is a part of."', args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { userInfo+: { groups: if std.isArray(v=groups) then groups else [groups] } }, + '#withGroupsMixin':: d.fn(help='"The names of groups this user is a part of."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { userInfo+: { groups+: if std.isArray(v=groups) then groups else [groups] } }, + '#withUid':: d.fn(help='"A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { userInfo+: { uid: uid } }, + '#withUsername':: d.fn(help='"The name that uniquely identifies this user among all active users."', args=[d.arg(name='username', type=d.T.string)]), + withUsername(username): { userInfo+: { username: username } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/main.libsonnet new file mode 100644 index 0000000..3f444d1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='authorization', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/localSubjectAccessReview.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/localSubjectAccessReview.libsonnet new file mode 100644 index 0000000..78cc42d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/localSubjectAccessReview.libsonnet @@ -0,0 +1,93 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='localSubjectAccessReview', url='', help='"LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of LocalSubjectAccessReview', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'authorization.k8s.io/v1', + kind: 'LocalSubjectAccessReview', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set"'), + spec: { + '#nonResourceAttributes':: d.obj(help='"NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface"'), + nonResourceAttributes: { + '#withPath':: d.fn(help='"Path is the URL path of the request"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { nonResourceAttributes+: { path: path } } }, + '#withVerb':: d.fn(help='"Verb is the standard HTTP verb"', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { spec+: { nonResourceAttributes+: { verb: verb } } }, + }, + '#resourceAttributes':: d.obj(help='"ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface"'), + resourceAttributes: { + '#withGroup':: d.fn(help='"Group is the API Group of the Resource. \\"*\\" means all."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { spec+: { resourceAttributes+: { group: group } } }, + '#withName':: d.fn(help='"Name is the name of the resource being requested for a \\"get\\" or deleted for a \\"delete\\". \\"\\" (empty) means all."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { resourceAttributes+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \\"\\" (empty) is defaulted for LocalSubjectAccessReviews \\"\\" (empty) is empty for cluster-scoped resources \\"\\" (empty) means \\"all\\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { resourceAttributes+: { namespace: namespace } } }, + '#withResource':: d.fn(help='"Resource is one of the existing resource types. \\"*\\" means all."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { spec+: { resourceAttributes+: { resource: resource } } }, + '#withSubresource':: d.fn(help='"Subresource is one of the existing resource types. \\"\\" means none."', args=[d.arg(name='subresource', type=d.T.string)]), + withSubresource(subresource): { spec+: { resourceAttributes+: { subresource: subresource } } }, + '#withVerb':: d.fn(help='"Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \\"*\\" means all."', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { spec+: { resourceAttributes+: { verb: verb } } }, + '#withVersion':: d.fn(help='"Version is the API Version of the Resource. \\"*\\" means all."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { spec+: { resourceAttributes+: { version: version } } }, + }, + '#withExtra':: d.fn(help='"Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { spec+: { extra: extra } }, + '#withExtraMixin':: d.fn(help='"Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { spec+: { extra+: extra } }, + '#withGroups':: d.fn(help="\"Groups is the groups you're testing for.\"", args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { spec+: { groups: if std.isArray(v=groups) then groups else [groups] } }, + '#withGroupsMixin':: d.fn(help="\"Groups is the groups you're testing for.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { spec+: { groups+: if std.isArray(v=groups) then groups else [groups] } }, + '#withUid':: d.fn(help='"UID information about the requesting user."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { uid: uid } }, + '#withUser':: d.fn(help="\"User is the user you're testing for. If you specify \\\"User\\\" but not \\\"Groups\\\", then is it interpreted as \\\"What if User were not a member of any groups\"", args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { user: user } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/main.libsonnet new file mode 100644 index 0000000..61af66b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/main.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + localSubjectAccessReview: (import 'localSubjectAccessReview.libsonnet'), + nonResourceAttributes: (import 'nonResourceAttributes.libsonnet'), + nonResourceRule: (import 'nonResourceRule.libsonnet'), + resourceAttributes: (import 'resourceAttributes.libsonnet'), + resourceRule: (import 'resourceRule.libsonnet'), + selfSubjectAccessReview: (import 'selfSubjectAccessReview.libsonnet'), + selfSubjectAccessReviewSpec: (import 'selfSubjectAccessReviewSpec.libsonnet'), + selfSubjectRulesReview: (import 'selfSubjectRulesReview.libsonnet'), + selfSubjectRulesReviewSpec: (import 'selfSubjectRulesReviewSpec.libsonnet'), + subjectAccessReview: (import 'subjectAccessReview.libsonnet'), + subjectAccessReviewSpec: (import 'subjectAccessReviewSpec.libsonnet'), + subjectAccessReviewStatus: (import 'subjectAccessReviewStatus.libsonnet'), + subjectRulesReviewStatus: (import 'subjectRulesReviewStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/nonResourceAttributes.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/nonResourceAttributes.libsonnet new file mode 100644 index 0000000..e01d98c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/nonResourceAttributes.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nonResourceAttributes', url='', help='"NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface"'), + '#withPath':: d.fn(help='"Path is the URL path of the request"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withVerb':: d.fn(help='"Verb is the standard HTTP verb"', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { verb: verb }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/nonResourceRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/nonResourceRule.libsonnet new file mode 100644 index 0000000..1508d63 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/nonResourceRule.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nonResourceRule', url='', help='"NonResourceRule holds information that describes a rule for the non-resource"'), + '#withNonResourceURLs':: d.fn(help='"NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \\"*\\" means all."', args=[d.arg(name='nonResourceURLs', type=d.T.array)]), + withNonResourceURLs(nonResourceURLs): { nonResourceURLs: if std.isArray(v=nonResourceURLs) then nonResourceURLs else [nonResourceURLs] }, + '#withNonResourceURLsMixin':: d.fn(help='"NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \\"*\\" means all."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nonResourceURLs', type=d.T.array)]), + withNonResourceURLsMixin(nonResourceURLs): { nonResourceURLs+: if std.isArray(v=nonResourceURLs) then nonResourceURLs else [nonResourceURLs] }, + '#withVerbs':: d.fn(help='"Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \\"*\\" means all."', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbs(verbs): { verbs: if std.isArray(v=verbs) then verbs else [verbs] }, + '#withVerbsMixin':: d.fn(help='"Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \\"*\\" means all."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbsMixin(verbs): { verbs+: if std.isArray(v=verbs) then verbs else [verbs] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/resourceAttributes.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/resourceAttributes.libsonnet new file mode 100644 index 0000000..b6e78dc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/resourceAttributes.libsonnet @@ -0,0 +1,20 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceAttributes', url='', help='"ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface"'), + '#withGroup':: d.fn(help='"Group is the API Group of the Resource. \\"*\\" means all."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { group: group }, + '#withName':: d.fn(help='"Name is the name of the resource being requested for a \\"get\\" or deleted for a \\"delete\\". \\"\\" (empty) means all."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \\"\\" (empty) is defaulted for LocalSubjectAccessReviews \\"\\" (empty) is empty for cluster-scoped resources \\"\\" (empty) means \\"all\\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withResource':: d.fn(help='"Resource is one of the existing resource types. \\"*\\" means all."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resource: resource }, + '#withSubresource':: d.fn(help='"Subresource is one of the existing resource types. \\"\\" means none."', args=[d.arg(name='subresource', type=d.T.string)]), + withSubresource(subresource): { subresource: subresource }, + '#withVerb':: d.fn(help='"Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \\"*\\" means all."', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { verb: verb }, + '#withVersion':: d.fn(help='"Version is the API Version of the Resource. \\"*\\" means all."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { version: version }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/resourceRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/resourceRule.libsonnet new file mode 100644 index 0000000..e7387e7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/resourceRule.libsonnet @@ -0,0 +1,22 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceRule', url='', help="\"ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.\""), + '#withApiGroups':: d.fn(help='"APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \\"*\\" means all."', args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroups(apiGroups): { apiGroups: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiGroupsMixin':: d.fn(help='"APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \\"*\\" means all."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroupsMixin(apiGroups): { apiGroups+: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withResourceNames':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \\"*\\" means all."', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNames(resourceNames): { resourceNames: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResourceNamesMixin':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \\"*\\" means all."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNamesMixin(resourceNames): { resourceNames+: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResources':: d.fn(help="\"Resources is a list of resources this rule applies to. \\\"*\\\" means all in the specified apiGroups.\\n \\\"*/foo\\\" represents the subresource 'foo' for all resources in the specified apiGroups.\"", args=[d.arg(name='resources', type=d.T.array)]), + withResources(resources): { resources: if std.isArray(v=resources) then resources else [resources] }, + '#withResourcesMixin':: d.fn(help="\"Resources is a list of resources this rule applies to. \\\"*\\\" means all in the specified apiGroups.\\n \\\"*/foo\\\" represents the subresource 'foo' for all resources in the specified apiGroups.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='resources', type=d.T.array)]), + withResourcesMixin(resources): { resources+: if std.isArray(v=resources) then resources else [resources] }, + '#withVerbs':: d.fn(help='"Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \\"*\\" means all."', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbs(verbs): { verbs: if std.isArray(v=verbs) then verbs else [verbs] }, + '#withVerbsMixin':: d.fn(help='"Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \\"*\\" means all."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbsMixin(verbs): { verbs+: if std.isArray(v=verbs) then verbs else [verbs] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectAccessReview.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectAccessReview.libsonnet new file mode 100644 index 0000000..d8fc6e1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectAccessReview.libsonnet @@ -0,0 +1,81 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectAccessReview', url='', help='"SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \\"in all namespaces\\". Self is a special case, because users should always be able to check whether they can perform an action"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of SelfSubjectAccessReview', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'authorization.k8s.io/v1', + kind: 'SelfSubjectAccessReview', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set"'), + spec: { + '#nonResourceAttributes':: d.obj(help='"NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface"'), + nonResourceAttributes: { + '#withPath':: d.fn(help='"Path is the URL path of the request"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { nonResourceAttributes+: { path: path } } }, + '#withVerb':: d.fn(help='"Verb is the standard HTTP verb"', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { spec+: { nonResourceAttributes+: { verb: verb } } }, + }, + '#resourceAttributes':: d.obj(help='"ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface"'), + resourceAttributes: { + '#withGroup':: d.fn(help='"Group is the API Group of the Resource. \\"*\\" means all."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { spec+: { resourceAttributes+: { group: group } } }, + '#withName':: d.fn(help='"Name is the name of the resource being requested for a \\"get\\" or deleted for a \\"delete\\". \\"\\" (empty) means all."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { resourceAttributes+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \\"\\" (empty) is defaulted for LocalSubjectAccessReviews \\"\\" (empty) is empty for cluster-scoped resources \\"\\" (empty) means \\"all\\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { resourceAttributes+: { namespace: namespace } } }, + '#withResource':: d.fn(help='"Resource is one of the existing resource types. \\"*\\" means all."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { spec+: { resourceAttributes+: { resource: resource } } }, + '#withSubresource':: d.fn(help='"Subresource is one of the existing resource types. \\"\\" means none."', args=[d.arg(name='subresource', type=d.T.string)]), + withSubresource(subresource): { spec+: { resourceAttributes+: { subresource: subresource } } }, + '#withVerb':: d.fn(help='"Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \\"*\\" means all."', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { spec+: { resourceAttributes+: { verb: verb } } }, + '#withVersion':: d.fn(help='"Version is the API Version of the Resource. \\"*\\" means all."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { spec+: { resourceAttributes+: { version: version } } }, + }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectAccessReviewSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectAccessReviewSpec.libsonnet new file mode 100644 index 0000000..c166be0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectAccessReviewSpec.libsonnet @@ -0,0 +1,30 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectAccessReviewSpec', url='', help='"SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set"'), + '#nonResourceAttributes':: d.obj(help='"NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface"'), + nonResourceAttributes: { + '#withPath':: d.fn(help='"Path is the URL path of the request"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { nonResourceAttributes+: { path: path } }, + '#withVerb':: d.fn(help='"Verb is the standard HTTP verb"', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { nonResourceAttributes+: { verb: verb } }, + }, + '#resourceAttributes':: d.obj(help='"ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface"'), + resourceAttributes: { + '#withGroup':: d.fn(help='"Group is the API Group of the Resource. \\"*\\" means all."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { resourceAttributes+: { group: group } }, + '#withName':: d.fn(help='"Name is the name of the resource being requested for a \\"get\\" or deleted for a \\"delete\\". \\"\\" (empty) means all."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { resourceAttributes+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \\"\\" (empty) is defaulted for LocalSubjectAccessReviews \\"\\" (empty) is empty for cluster-scoped resources \\"\\" (empty) means \\"all\\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { resourceAttributes+: { namespace: namespace } }, + '#withResource':: d.fn(help='"Resource is one of the existing resource types. \\"*\\" means all."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resourceAttributes+: { resource: resource } }, + '#withSubresource':: d.fn(help='"Subresource is one of the existing resource types. \\"\\" means none."', args=[d.arg(name='subresource', type=d.T.string)]), + withSubresource(subresource): { resourceAttributes+: { subresource: subresource } }, + '#withVerb':: d.fn(help='"Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \\"*\\" means all."', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { resourceAttributes+: { verb: verb } }, + '#withVersion':: d.fn(help='"Version is the API Version of the Resource. \\"*\\" means all."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { resourceAttributes+: { version: version } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectRulesReview.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectRulesReview.libsonnet new file mode 100644 index 0000000..a92ebdd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectRulesReview.libsonnet @@ -0,0 +1,59 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectRulesReview', url='', help="\"SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.\""), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of SelfSubjectRulesReview', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'authorization.k8s.io/v1', + kind: 'SelfSubjectRulesReview', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview."'), + spec: { + '#withNamespace':: d.fn(help='"Namespace to evaluate rules for. Required."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { namespace: namespace } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectRulesReviewSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectRulesReviewSpec.libsonnet new file mode 100644 index 0000000..d38eb6f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/selfSubjectRulesReviewSpec.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='selfSubjectRulesReviewSpec', url='', help='"SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview."'), + '#withNamespace':: d.fn(help='"Namespace to evaluate rules for. Required."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReview.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReview.libsonnet new file mode 100644 index 0000000..0f9e2df --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReview.libsonnet @@ -0,0 +1,93 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='subjectAccessReview', url='', help='"SubjectAccessReview checks whether or not a user or group can perform an action."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of SubjectAccessReview', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'authorization.k8s.io/v1', + kind: 'SubjectAccessReview', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set"'), + spec: { + '#nonResourceAttributes':: d.obj(help='"NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface"'), + nonResourceAttributes: { + '#withPath':: d.fn(help='"Path is the URL path of the request"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { nonResourceAttributes+: { path: path } } }, + '#withVerb':: d.fn(help='"Verb is the standard HTTP verb"', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { spec+: { nonResourceAttributes+: { verb: verb } } }, + }, + '#resourceAttributes':: d.obj(help='"ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface"'), + resourceAttributes: { + '#withGroup':: d.fn(help='"Group is the API Group of the Resource. \\"*\\" means all."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { spec+: { resourceAttributes+: { group: group } } }, + '#withName':: d.fn(help='"Name is the name of the resource being requested for a \\"get\\" or deleted for a \\"delete\\". \\"\\" (empty) means all."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { resourceAttributes+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \\"\\" (empty) is defaulted for LocalSubjectAccessReviews \\"\\" (empty) is empty for cluster-scoped resources \\"\\" (empty) means \\"all\\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { resourceAttributes+: { namespace: namespace } } }, + '#withResource':: d.fn(help='"Resource is one of the existing resource types. \\"*\\" means all."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { spec+: { resourceAttributes+: { resource: resource } } }, + '#withSubresource':: d.fn(help='"Subresource is one of the existing resource types. \\"\\" means none."', args=[d.arg(name='subresource', type=d.T.string)]), + withSubresource(subresource): { spec+: { resourceAttributes+: { subresource: subresource } } }, + '#withVerb':: d.fn(help='"Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \\"*\\" means all."', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { spec+: { resourceAttributes+: { verb: verb } } }, + '#withVersion':: d.fn(help='"Version is the API Version of the Resource. \\"*\\" means all."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { spec+: { resourceAttributes+: { version: version } } }, + }, + '#withExtra':: d.fn(help='"Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { spec+: { extra: extra } }, + '#withExtraMixin':: d.fn(help='"Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { spec+: { extra+: extra } }, + '#withGroups':: d.fn(help="\"Groups is the groups you're testing for.\"", args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { spec+: { groups: if std.isArray(v=groups) then groups else [groups] } }, + '#withGroupsMixin':: d.fn(help="\"Groups is the groups you're testing for.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { spec+: { groups+: if std.isArray(v=groups) then groups else [groups] } }, + '#withUid':: d.fn(help='"UID information about the requesting user."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { uid: uid } }, + '#withUser':: d.fn(help="\"User is the user you're testing for. If you specify \\\"User\\\" but not \\\"Groups\\\", then is it interpreted as \\\"What if User were not a member of any groups\"", args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { user: user } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReviewSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReviewSpec.libsonnet new file mode 100644 index 0000000..fcba198 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReviewSpec.libsonnet @@ -0,0 +1,42 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='subjectAccessReviewSpec', url='', help='"SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set"'), + '#nonResourceAttributes':: d.obj(help='"NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface"'), + nonResourceAttributes: { + '#withPath':: d.fn(help='"Path is the URL path of the request"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { nonResourceAttributes+: { path: path } }, + '#withVerb':: d.fn(help='"Verb is the standard HTTP verb"', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { nonResourceAttributes+: { verb: verb } }, + }, + '#resourceAttributes':: d.obj(help='"ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface"'), + resourceAttributes: { + '#withGroup':: d.fn(help='"Group is the API Group of the Resource. \\"*\\" means all."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { resourceAttributes+: { group: group } }, + '#withName':: d.fn(help='"Name is the name of the resource being requested for a \\"get\\" or deleted for a \\"delete\\". \\"\\" (empty) means all."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { resourceAttributes+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \\"\\" (empty) is defaulted for LocalSubjectAccessReviews \\"\\" (empty) is empty for cluster-scoped resources \\"\\" (empty) means \\"all\\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { resourceAttributes+: { namespace: namespace } }, + '#withResource':: d.fn(help='"Resource is one of the existing resource types. \\"*\\" means all."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resourceAttributes+: { resource: resource } }, + '#withSubresource':: d.fn(help='"Subresource is one of the existing resource types. \\"\\" means none."', args=[d.arg(name='subresource', type=d.T.string)]), + withSubresource(subresource): { resourceAttributes+: { subresource: subresource } }, + '#withVerb':: d.fn(help='"Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \\"*\\" means all."', args=[d.arg(name='verb', type=d.T.string)]), + withVerb(verb): { resourceAttributes+: { verb: verb } }, + '#withVersion':: d.fn(help='"Version is the API Version of the Resource. \\"*\\" means all."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { resourceAttributes+: { version: version } }, + }, + '#withExtra':: d.fn(help='"Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { extra: extra }, + '#withExtraMixin':: d.fn(help='"Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { extra+: extra }, + '#withGroups':: d.fn(help="\"Groups is the groups you're testing for.\"", args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { groups: if std.isArray(v=groups) then groups else [groups] }, + '#withGroupsMixin':: d.fn(help="\"Groups is the groups you're testing for.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { groups+: if std.isArray(v=groups) then groups else [groups] }, + '#withUid':: d.fn(help='"UID information about the requesting user."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#withUser':: d.fn(help="\"User is the user you're testing for. If you specify \\\"User\\\" but not \\\"Groups\\\", then is it interpreted as \\\"What if User were not a member of any groups\"", args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { user: user }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReviewStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReviewStatus.libsonnet new file mode 100644 index 0000000..7787136 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectAccessReviewStatus.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='subjectAccessReviewStatus', url='', help='"SubjectAccessReviewStatus"'), + '#withAllowed':: d.fn(help='"Allowed is required. True if the action would be allowed, false otherwise."', args=[d.arg(name='allowed', type=d.T.boolean)]), + withAllowed(allowed): { allowed: allowed }, + '#withDenied':: d.fn(help='"Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true."', args=[d.arg(name='denied', type=d.T.boolean)]), + withDenied(denied): { denied: denied }, + '#withEvaluationError':: d.fn(help='"EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request."', args=[d.arg(name='evaluationError', type=d.T.string)]), + withEvaluationError(evaluationError): { evaluationError: evaluationError }, + '#withReason':: d.fn(help='"Reason is optional. It indicates why a request was allowed or denied."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectRulesReviewStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectRulesReviewStatus.libsonnet new file mode 100644 index 0000000..4334011 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/authorization/v1/subjectRulesReviewStatus.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='subjectRulesReviewStatus', url='', help="\"SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.\""), + '#withEvaluationError':: d.fn(help="\"EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.\"", args=[d.arg(name='evaluationError', type=d.T.string)]), + withEvaluationError(evaluationError): { evaluationError: evaluationError }, + '#withIncomplete':: d.fn(help="\"Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.\"", args=[d.arg(name='incomplete', type=d.T.boolean)]), + withIncomplete(incomplete): { incomplete: incomplete }, + '#withNonResourceRules':: d.fn(help="\"NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.\"", args=[d.arg(name='nonResourceRules', type=d.T.array)]), + withNonResourceRules(nonResourceRules): { nonResourceRules: if std.isArray(v=nonResourceRules) then nonResourceRules else [nonResourceRules] }, + '#withNonResourceRulesMixin':: d.fn(help="\"NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nonResourceRules', type=d.T.array)]), + withNonResourceRulesMixin(nonResourceRules): { nonResourceRules+: if std.isArray(v=nonResourceRules) then nonResourceRules else [nonResourceRules] }, + '#withResourceRules':: d.fn(help="\"ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.\"", args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#withResourceRulesMixin':: d.fn(help="\"ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/main.libsonnet new file mode 100644 index 0000000..d93fba4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='autoscaling', url='', help=''), + v1: (import 'v1/main.libsonnet'), + v2: (import 'v2/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/crossVersionObjectReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/crossVersionObjectReference.libsonnet new file mode 100644 index 0000000..04c0e54 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/crossVersionObjectReference.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='crossVersionObjectReference', url='', help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscaler.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscaler.libsonnet new file mode 100644 index 0000000..8af49e0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscaler.libsonnet @@ -0,0 +1,72 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='horizontalPodAutoscaler', url='', help='"configuration of a horizontal pod autoscaler."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of HorizontalPodAutoscaler', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'autoscaling/v1', + kind: 'HorizontalPodAutoscaler', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"specification of a horizontal pod autoscaler."'), + spec: { + '#scaleTargetRef':: d.obj(help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + scaleTargetRef: { + '#withApiVersion':: d.fn(help='"apiVersion is the API version of the referent"', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { scaleTargetRef+: { apiVersion: apiVersion } } }, + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { scaleTargetRef+: { kind: kind } } }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { scaleTargetRef+: { name: name } } }, + }, + '#withMaxReplicas':: d.fn(help='"maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas."', args=[d.arg(name='maxReplicas', type=d.T.integer)]), + withMaxReplicas(maxReplicas): { spec+: { maxReplicas: maxReplicas } }, + '#withMinReplicas':: d.fn(help='"minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available."', args=[d.arg(name='minReplicas', type=d.T.integer)]), + withMinReplicas(minReplicas): { spec+: { minReplicas: minReplicas } }, + '#withTargetCPUUtilizationPercentage':: d.fn(help='"targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used."', args=[d.arg(name='targetCPUUtilizationPercentage', type=d.T.integer)]), + withTargetCPUUtilizationPercentage(targetCPUUtilizationPercentage): { spec+: { targetCPUUtilizationPercentage: targetCPUUtilizationPercentage } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscalerSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscalerSpec.libsonnet new file mode 100644 index 0000000..c23f8a2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscalerSpec.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='horizontalPodAutoscalerSpec', url='', help='"specification of a horizontal pod autoscaler."'), + '#scaleTargetRef':: d.obj(help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + scaleTargetRef: { + '#withApiVersion':: d.fn(help='"apiVersion is the API version of the referent"', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { scaleTargetRef+: { apiVersion: apiVersion } }, + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { scaleTargetRef+: { kind: kind } }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { scaleTargetRef+: { name: name } }, + }, + '#withMaxReplicas':: d.fn(help='"maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas."', args=[d.arg(name='maxReplicas', type=d.T.integer)]), + withMaxReplicas(maxReplicas): { maxReplicas: maxReplicas }, + '#withMinReplicas':: d.fn(help='"minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available."', args=[d.arg(name='minReplicas', type=d.T.integer)]), + withMinReplicas(minReplicas): { minReplicas: minReplicas }, + '#withTargetCPUUtilizationPercentage':: d.fn(help='"targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used."', args=[d.arg(name='targetCPUUtilizationPercentage', type=d.T.integer)]), + withTargetCPUUtilizationPercentage(targetCPUUtilizationPercentage): { targetCPUUtilizationPercentage: targetCPUUtilizationPercentage }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscalerStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscalerStatus.libsonnet new file mode 100644 index 0000000..d65ef26 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/horizontalPodAutoscalerStatus.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='horizontalPodAutoscalerStatus', url='', help='"current status of a horizontal pod autoscaler"'), + '#withCurrentCPUUtilizationPercentage':: d.fn(help='"currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU."', args=[d.arg(name='currentCPUUtilizationPercentage', type=d.T.integer)]), + withCurrentCPUUtilizationPercentage(currentCPUUtilizationPercentage): { currentCPUUtilizationPercentage: currentCPUUtilizationPercentage }, + '#withCurrentReplicas':: d.fn(help='"currentReplicas is the current number of replicas of pods managed by this autoscaler."', args=[d.arg(name='currentReplicas', type=d.T.integer)]), + withCurrentReplicas(currentReplicas): { currentReplicas: currentReplicas }, + '#withDesiredReplicas':: d.fn(help='"desiredReplicas is the desired number of replicas of pods managed by this autoscaler."', args=[d.arg(name='desiredReplicas', type=d.T.integer)]), + withDesiredReplicas(desiredReplicas): { desiredReplicas: desiredReplicas }, + '#withLastScaleTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastScaleTime', type=d.T.string)]), + withLastScaleTime(lastScaleTime): { lastScaleTime: lastScaleTime }, + '#withObservedGeneration':: d.fn(help='"observedGeneration is the most recent generation observed by this autoscaler."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/main.libsonnet new file mode 100644 index 0000000..2e4434d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/main.libsonnet @@ -0,0 +1,11 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + crossVersionObjectReference: (import 'crossVersionObjectReference.libsonnet'), + horizontalPodAutoscaler: (import 'horizontalPodAutoscaler.libsonnet'), + horizontalPodAutoscalerSpec: (import 'horizontalPodAutoscalerSpec.libsonnet'), + horizontalPodAutoscalerStatus: (import 'horizontalPodAutoscalerStatus.libsonnet'), + scale: (import 'scale.libsonnet'), + scaleSpec: (import 'scaleSpec.libsonnet'), + scaleStatus: (import 'scaleStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scale.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scale.libsonnet new file mode 100644 index 0000000..3227c26 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scale.libsonnet @@ -0,0 +1,59 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='scale', url='', help='"Scale represents a scaling request for a resource."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Scale', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'autoscaling/v1', + kind: 'Scale', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ScaleSpec describes the attributes of a scale subresource."'), + spec: { + '#withReplicas':: d.fn(help='"replicas is the desired number of instances for the scaled object."', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { spec+: { replicas: replicas } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scaleSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scaleSpec.libsonnet new file mode 100644 index 0000000..129ad55 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scaleSpec.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='scaleSpec', url='', help='"ScaleSpec describes the attributes of a scale subresource."'), + '#withReplicas':: d.fn(help='"replicas is the desired number of instances for the scaled object."', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scaleStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scaleStatus.libsonnet new file mode 100644 index 0000000..28af9c0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v1/scaleStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='scaleStatus', url='', help='"ScaleStatus represents the current status of a scale subresource."'), + '#withReplicas':: d.fn(help='"replicas is the actual number of observed instances of the scaled object."', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#withSelector':: d.fn(help='"selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/"', args=[d.arg(name='selector', type=d.T.string)]), + withSelector(selector): { selector: selector }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/containerResourceMetricSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/containerResourceMetricSource.libsonnet new file mode 100644 index 0000000..9887c4c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/containerResourceMetricSource.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerResourceMetricSource', url='', help='"ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \\"pods\\" source. Only one \\"target\\" type should be set."'), + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { target+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { target+: { averageValue: averageValue } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { target+: { type: type } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { target+: { value: value } }, + }, + '#withContainer':: d.fn(help='"container is the name of the container in the pods of the scaling target"', args=[d.arg(name='container', type=d.T.string)]), + withContainer(container): { container: container }, + '#withName':: d.fn(help='"name is the name of the resource in question."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/containerResourceMetricStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/containerResourceMetricStatus.libsonnet new file mode 100644 index 0000000..70708c8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/containerResourceMetricStatus.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerResourceMetricStatus', url='', help='"ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \\"pods\\" source."'), + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { current+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { current+: { averageValue: averageValue } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { current+: { value: value } }, + }, + '#withContainer':: d.fn(help='"container is the name of the container in the pods of the scaling target"', args=[d.arg(name='container', type=d.T.string)]), + withContainer(container): { container: container }, + '#withName':: d.fn(help='"name is the name of the resource in question."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/crossVersionObjectReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/crossVersionObjectReference.libsonnet new file mode 100644 index 0000000..04c0e54 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/crossVersionObjectReference.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='crossVersionObjectReference', url='', help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/externalMetricSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/externalMetricSource.libsonnet new file mode 100644 index 0000000..edd8e7f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/externalMetricSource.libsonnet @@ -0,0 +1,33 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='externalMetricSource', url='', help='"ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)."'), + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { metric+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { metric+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metric+: { name: name } }, + }, + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { target+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { target+: { averageValue: averageValue } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { target+: { type: type } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { target+: { value: value } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/externalMetricStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/externalMetricStatus.libsonnet new file mode 100644 index 0000000..295eef8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/externalMetricStatus.libsonnet @@ -0,0 +1,31 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='externalMetricStatus', url='', help='"ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object."'), + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { current+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { current+: { averageValue: averageValue } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { current+: { value: value } }, + }, + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { metric+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { metric+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metric+: { name: name } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscaler.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscaler.libsonnet new file mode 100644 index 0000000..7b3c26c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscaler.libsonnet @@ -0,0 +1,99 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='horizontalPodAutoscaler', url='', help='"HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of HorizontalPodAutoscaler', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'autoscaling/v2', + kind: 'HorizontalPodAutoscaler', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler."'), + spec: { + '#behavior':: d.obj(help='"HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively)."'), + behavior: { + '#scaleDown':: d.obj(help='"HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen."'), + scaleDown: { + '#withPolicies':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"', args=[d.arg(name='policies', type=d.T.array)]), + withPolicies(policies): { spec+: { behavior+: { scaleDown+: { policies: if std.isArray(v=policies) then policies else [policies] } } } }, + '#withPoliciesMixin':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='policies', type=d.T.array)]), + withPoliciesMixin(policies): { spec+: { behavior+: { scaleDown+: { policies+: if std.isArray(v=policies) then policies else [policies] } } } }, + '#withSelectPolicy':: d.fn(help='"selectPolicy is used to specify which policy should be used. If not set, the default value Max is used."', args=[d.arg(name='selectPolicy', type=d.T.string)]), + withSelectPolicy(selectPolicy): { spec+: { behavior+: { scaleDown+: { selectPolicy: selectPolicy } } } }, + '#withStabilizationWindowSeconds':: d.fn(help='"stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long)."', args=[d.arg(name='stabilizationWindowSeconds', type=d.T.integer)]), + withStabilizationWindowSeconds(stabilizationWindowSeconds): { spec+: { behavior+: { scaleDown+: { stabilizationWindowSeconds: stabilizationWindowSeconds } } } }, + }, + '#scaleUp':: d.obj(help='"HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen."'), + scaleUp: { + '#withPolicies':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"', args=[d.arg(name='policies', type=d.T.array)]), + withPolicies(policies): { spec+: { behavior+: { scaleUp+: { policies: if std.isArray(v=policies) then policies else [policies] } } } }, + '#withPoliciesMixin':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='policies', type=d.T.array)]), + withPoliciesMixin(policies): { spec+: { behavior+: { scaleUp+: { policies+: if std.isArray(v=policies) then policies else [policies] } } } }, + '#withSelectPolicy':: d.fn(help='"selectPolicy is used to specify which policy should be used. If not set, the default value Max is used."', args=[d.arg(name='selectPolicy', type=d.T.string)]), + withSelectPolicy(selectPolicy): { spec+: { behavior+: { scaleUp+: { selectPolicy: selectPolicy } } } }, + '#withStabilizationWindowSeconds':: d.fn(help='"stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long)."', args=[d.arg(name='stabilizationWindowSeconds', type=d.T.integer)]), + withStabilizationWindowSeconds(stabilizationWindowSeconds): { spec+: { behavior+: { scaleUp+: { stabilizationWindowSeconds: stabilizationWindowSeconds } } } }, + }, + }, + '#scaleTargetRef':: d.obj(help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + scaleTargetRef: { + '#withApiVersion':: d.fn(help='"apiVersion is the API version of the referent"', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { scaleTargetRef+: { apiVersion: apiVersion } } }, + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { scaleTargetRef+: { kind: kind } } }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { scaleTargetRef+: { name: name } } }, + }, + '#withMaxReplicas':: d.fn(help='"maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas."', args=[d.arg(name='maxReplicas', type=d.T.integer)]), + withMaxReplicas(maxReplicas): { spec+: { maxReplicas: maxReplicas } }, + '#withMetrics':: d.fn(help='"metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization."', args=[d.arg(name='metrics', type=d.T.array)]), + withMetrics(metrics): { spec+: { metrics: if std.isArray(v=metrics) then metrics else [metrics] } }, + '#withMetricsMixin':: d.fn(help='"metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='metrics', type=d.T.array)]), + withMetricsMixin(metrics): { spec+: { metrics+: if std.isArray(v=metrics) then metrics else [metrics] } }, + '#withMinReplicas':: d.fn(help='"minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available."', args=[d.arg(name='minReplicas', type=d.T.integer)]), + withMinReplicas(minReplicas): { spec+: { minReplicas: minReplicas } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerBehavior.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerBehavior.libsonnet new file mode 100644 index 0000000..858546c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerBehavior.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='horizontalPodAutoscalerBehavior', url='', help='"HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively)."'), + '#scaleDown':: d.obj(help='"HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen."'), + scaleDown: { + '#withPolicies':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"', args=[d.arg(name='policies', type=d.T.array)]), + withPolicies(policies): { scaleDown+: { policies: if std.isArray(v=policies) then policies else [policies] } }, + '#withPoliciesMixin':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='policies', type=d.T.array)]), + withPoliciesMixin(policies): { scaleDown+: { policies+: if std.isArray(v=policies) then policies else [policies] } }, + '#withSelectPolicy':: d.fn(help='"selectPolicy is used to specify which policy should be used. If not set, the default value Max is used."', args=[d.arg(name='selectPolicy', type=d.T.string)]), + withSelectPolicy(selectPolicy): { scaleDown+: { selectPolicy: selectPolicy } }, + '#withStabilizationWindowSeconds':: d.fn(help='"stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long)."', args=[d.arg(name='stabilizationWindowSeconds', type=d.T.integer)]), + withStabilizationWindowSeconds(stabilizationWindowSeconds): { scaleDown+: { stabilizationWindowSeconds: stabilizationWindowSeconds } }, + }, + '#scaleUp':: d.obj(help='"HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen."'), + scaleUp: { + '#withPolicies':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"', args=[d.arg(name='policies', type=d.T.array)]), + withPolicies(policies): { scaleUp+: { policies: if std.isArray(v=policies) then policies else [policies] } }, + '#withPoliciesMixin':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='policies', type=d.T.array)]), + withPoliciesMixin(policies): { scaleUp+: { policies+: if std.isArray(v=policies) then policies else [policies] } }, + '#withSelectPolicy':: d.fn(help='"selectPolicy is used to specify which policy should be used. If not set, the default value Max is used."', args=[d.arg(name='selectPolicy', type=d.T.string)]), + withSelectPolicy(selectPolicy): { scaleUp+: { selectPolicy: selectPolicy } }, + '#withStabilizationWindowSeconds':: d.fn(help='"stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long)."', args=[d.arg(name='stabilizationWindowSeconds', type=d.T.integer)]), + withStabilizationWindowSeconds(stabilizationWindowSeconds): { scaleUp+: { stabilizationWindowSeconds: stabilizationWindowSeconds } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerCondition.libsonnet new file mode 100644 index 0000000..dcdeef6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='horizontalPodAutoscalerCondition', url='', help='"HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"message is a human-readable explanation containing details about the transition"', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"reason is the reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"type describes the current condition"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerSpec.libsonnet new file mode 100644 index 0000000..823633e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerSpec.libsonnet @@ -0,0 +1,48 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='horizontalPodAutoscalerSpec', url='', help='"HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler."'), + '#behavior':: d.obj(help='"HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively)."'), + behavior: { + '#scaleDown':: d.obj(help='"HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen."'), + scaleDown: { + '#withPolicies':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"', args=[d.arg(name='policies', type=d.T.array)]), + withPolicies(policies): { behavior+: { scaleDown+: { policies: if std.isArray(v=policies) then policies else [policies] } } }, + '#withPoliciesMixin':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='policies', type=d.T.array)]), + withPoliciesMixin(policies): { behavior+: { scaleDown+: { policies+: if std.isArray(v=policies) then policies else [policies] } } }, + '#withSelectPolicy':: d.fn(help='"selectPolicy is used to specify which policy should be used. If not set, the default value Max is used."', args=[d.arg(name='selectPolicy', type=d.T.string)]), + withSelectPolicy(selectPolicy): { behavior+: { scaleDown+: { selectPolicy: selectPolicy } } }, + '#withStabilizationWindowSeconds':: d.fn(help='"stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long)."', args=[d.arg(name='stabilizationWindowSeconds', type=d.T.integer)]), + withStabilizationWindowSeconds(stabilizationWindowSeconds): { behavior+: { scaleDown+: { stabilizationWindowSeconds: stabilizationWindowSeconds } } }, + }, + '#scaleUp':: d.obj(help='"HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen."'), + scaleUp: { + '#withPolicies':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"', args=[d.arg(name='policies', type=d.T.array)]), + withPolicies(policies): { behavior+: { scaleUp+: { policies: if std.isArray(v=policies) then policies else [policies] } } }, + '#withPoliciesMixin':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='policies', type=d.T.array)]), + withPoliciesMixin(policies): { behavior+: { scaleUp+: { policies+: if std.isArray(v=policies) then policies else [policies] } } }, + '#withSelectPolicy':: d.fn(help='"selectPolicy is used to specify which policy should be used. If not set, the default value Max is used."', args=[d.arg(name='selectPolicy', type=d.T.string)]), + withSelectPolicy(selectPolicy): { behavior+: { scaleUp+: { selectPolicy: selectPolicy } } }, + '#withStabilizationWindowSeconds':: d.fn(help='"stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long)."', args=[d.arg(name='stabilizationWindowSeconds', type=d.T.integer)]), + withStabilizationWindowSeconds(stabilizationWindowSeconds): { behavior+: { scaleUp+: { stabilizationWindowSeconds: stabilizationWindowSeconds } } }, + }, + }, + '#scaleTargetRef':: d.obj(help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + scaleTargetRef: { + '#withApiVersion':: d.fn(help='"apiVersion is the API version of the referent"', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { scaleTargetRef+: { apiVersion: apiVersion } }, + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { scaleTargetRef+: { kind: kind } }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { scaleTargetRef+: { name: name } }, + }, + '#withMaxReplicas':: d.fn(help='"maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas."', args=[d.arg(name='maxReplicas', type=d.T.integer)]), + withMaxReplicas(maxReplicas): { maxReplicas: maxReplicas }, + '#withMetrics':: d.fn(help='"metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization."', args=[d.arg(name='metrics', type=d.T.array)]), + withMetrics(metrics): { metrics: if std.isArray(v=metrics) then metrics else [metrics] }, + '#withMetricsMixin':: d.fn(help='"metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='metrics', type=d.T.array)]), + withMetricsMixin(metrics): { metrics+: if std.isArray(v=metrics) then metrics else [metrics] }, + '#withMinReplicas':: d.fn(help='"minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available."', args=[d.arg(name='minReplicas', type=d.T.integer)]), + withMinReplicas(minReplicas): { minReplicas: minReplicas }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerStatus.libsonnet new file mode 100644 index 0000000..e4753e7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/horizontalPodAutoscalerStatus.libsonnet @@ -0,0 +1,22 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='horizontalPodAutoscalerStatus', url='', help='"HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler."'), + '#withConditions':: d.fn(help='"conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met."', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withCurrentMetrics':: d.fn(help='"currentMetrics is the last read state of the metrics used by this autoscaler."', args=[d.arg(name='currentMetrics', type=d.T.array)]), + withCurrentMetrics(currentMetrics): { currentMetrics: if std.isArray(v=currentMetrics) then currentMetrics else [currentMetrics] }, + '#withCurrentMetricsMixin':: d.fn(help='"currentMetrics is the last read state of the metrics used by this autoscaler."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='currentMetrics', type=d.T.array)]), + withCurrentMetricsMixin(currentMetrics): { currentMetrics+: if std.isArray(v=currentMetrics) then currentMetrics else [currentMetrics] }, + '#withCurrentReplicas':: d.fn(help='"currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler."', args=[d.arg(name='currentReplicas', type=d.T.integer)]), + withCurrentReplicas(currentReplicas): { currentReplicas: currentReplicas }, + '#withDesiredReplicas':: d.fn(help='"desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler."', args=[d.arg(name='desiredReplicas', type=d.T.integer)]), + withDesiredReplicas(desiredReplicas): { desiredReplicas: desiredReplicas }, + '#withLastScaleTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastScaleTime', type=d.T.string)]), + withLastScaleTime(lastScaleTime): { lastScaleTime: lastScaleTime }, + '#withObservedGeneration':: d.fn(help='"observedGeneration is the most recent generation observed by this autoscaler."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/hpaScalingPolicy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/hpaScalingPolicy.libsonnet new file mode 100644 index 0000000..42d501b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/hpaScalingPolicy.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='hpaScalingPolicy', url='', help='"HPAScalingPolicy is a single policy which must hold true for a specified past interval."'), + '#withPeriodSeconds':: d.fn(help='"periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min)."', args=[d.arg(name='periodSeconds', type=d.T.integer)]), + withPeriodSeconds(periodSeconds): { periodSeconds: periodSeconds }, + '#withType':: d.fn(help='"type is used to specify the scaling policy."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#withValue':: d.fn(help='"value contains the amount of change which is permitted by the policy. It must be greater than zero"', args=[d.arg(name='value', type=d.T.integer)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/hpaScalingRules.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/hpaScalingRules.libsonnet new file mode 100644 index 0000000..7579f71 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/hpaScalingRules.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='hpaScalingRules', url='', help='"HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen."'), + '#withPolicies':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"', args=[d.arg(name='policies', type=d.T.array)]), + withPolicies(policies): { policies: if std.isArray(v=policies) then policies else [policies] }, + '#withPoliciesMixin':: d.fn(help='"policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='policies', type=d.T.array)]), + withPoliciesMixin(policies): { policies+: if std.isArray(v=policies) then policies else [policies] }, + '#withSelectPolicy':: d.fn(help='"selectPolicy is used to specify which policy should be used. If not set, the default value Max is used."', args=[d.arg(name='selectPolicy', type=d.T.string)]), + withSelectPolicy(selectPolicy): { selectPolicy: selectPolicy }, + '#withStabilizationWindowSeconds':: d.fn(help='"stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long)."', args=[d.arg(name='stabilizationWindowSeconds', type=d.T.integer)]), + withStabilizationWindowSeconds(stabilizationWindowSeconds): { stabilizationWindowSeconds: stabilizationWindowSeconds }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/main.libsonnet new file mode 100644 index 0000000..4db7c79 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/main.libsonnet @@ -0,0 +1,27 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v2', url='', help=''), + containerResourceMetricSource: (import 'containerResourceMetricSource.libsonnet'), + containerResourceMetricStatus: (import 'containerResourceMetricStatus.libsonnet'), + crossVersionObjectReference: (import 'crossVersionObjectReference.libsonnet'), + externalMetricSource: (import 'externalMetricSource.libsonnet'), + externalMetricStatus: (import 'externalMetricStatus.libsonnet'), + horizontalPodAutoscaler: (import 'horizontalPodAutoscaler.libsonnet'), + horizontalPodAutoscalerBehavior: (import 'horizontalPodAutoscalerBehavior.libsonnet'), + horizontalPodAutoscalerCondition: (import 'horizontalPodAutoscalerCondition.libsonnet'), + horizontalPodAutoscalerSpec: (import 'horizontalPodAutoscalerSpec.libsonnet'), + horizontalPodAutoscalerStatus: (import 'horizontalPodAutoscalerStatus.libsonnet'), + hpaScalingPolicy: (import 'hpaScalingPolicy.libsonnet'), + hpaScalingRules: (import 'hpaScalingRules.libsonnet'), + metricIdentifier: (import 'metricIdentifier.libsonnet'), + metricSpec: (import 'metricSpec.libsonnet'), + metricStatus: (import 'metricStatus.libsonnet'), + metricTarget: (import 'metricTarget.libsonnet'), + metricValueStatus: (import 'metricValueStatus.libsonnet'), + objectMetricSource: (import 'objectMetricSource.libsonnet'), + objectMetricStatus: (import 'objectMetricStatus.libsonnet'), + podsMetricSource: (import 'podsMetricSource.libsonnet'), + podsMetricStatus: (import 'podsMetricStatus.libsonnet'), + resourceMetricSource: (import 'resourceMetricSource.libsonnet'), + resourceMetricStatus: (import 'resourceMetricStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricIdentifier.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricIdentifier.libsonnet new file mode 100644 index 0000000..0eae4b6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricIdentifier.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='metricIdentifier', url='', help='"MetricIdentifier defines the name and optionally selector for a metric"'), + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricSpec.libsonnet new file mode 100644 index 0000000..6ad19a9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricSpec.libsonnet @@ -0,0 +1,141 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='metricSpec', url='', help='"MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once)."'), + '#containerResource':: d.obj(help='"ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \\"pods\\" source. Only one \\"target\\" type should be set."'), + containerResource: { + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { containerResource+: { target+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { containerResource+: { target+: { averageValue: averageValue } } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { containerResource+: { target+: { type: type } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { containerResource+: { target+: { value: value } } }, + }, + '#withContainer':: d.fn(help='"container is the name of the container in the pods of the scaling target"', args=[d.arg(name='container', type=d.T.string)]), + withContainer(container): { containerResource+: { container: container } }, + '#withName':: d.fn(help='"name is the name of the resource in question."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { containerResource+: { name: name } }, + }, + '#external':: d.obj(help='"ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)."'), + external: { + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { external+: { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { external+: { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { external+: { metric+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { external+: { metric+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { external+: { metric+: { name: name } } }, + }, + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { external+: { target+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { external+: { target+: { averageValue: averageValue } } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { external+: { target+: { type: type } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { external+: { target+: { value: value } } }, + }, + }, + '#object':: d.obj(help='"ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object)."'), + object: { + '#describedObject':: d.obj(help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + describedObject: { + '#withApiVersion':: d.fn(help='"apiVersion is the API version of the referent"', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { object+: { describedObject+: { apiVersion: apiVersion } } }, + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { object+: { describedObject+: { kind: kind } } }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { object+: { describedObject+: { name: name } } }, + }, + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { object+: { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { object+: { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { object+: { metric+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { object+: { metric+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { object+: { metric+: { name: name } } }, + }, + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { object+: { target+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { object+: { target+: { averageValue: averageValue } } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { object+: { target+: { type: type } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { object+: { target+: { value: value } } }, + }, + }, + '#pods':: d.obj(help='"PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value."'), + pods: { + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { pods+: { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { pods+: { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { pods+: { metric+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { pods+: { metric+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { pods+: { metric+: { name: name } } }, + }, + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { pods+: { target+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { pods+: { target+: { averageValue: averageValue } } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { pods+: { target+: { type: type } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { pods+: { target+: { value: value } } }, + }, + }, + '#resource':: d.obj(help='"ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \\"pods\\" source. Only one \\"target\\" type should be set."'), + resource: { + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { resource+: { target+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { resource+: { target+: { averageValue: averageValue } } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { resource+: { target+: { type: type } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { resource+: { target+: { value: value } } }, + }, + '#withName':: d.fn(help='"name is the name of the resource in question."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { resource+: { name: name } }, + }, + '#withType':: d.fn(help='"type is the type of metric source. It should be one of \\"ContainerResource\\", \\"External\\", \\"Object\\", \\"Pods\\" or \\"Resource\\", each mapping to a matching field in the object. Note: \\"ContainerResource\\" type is available on when the feature-gate HPAContainerMetrics is enabled"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricStatus.libsonnet new file mode 100644 index 0000000..9ccb2a9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricStatus.libsonnet @@ -0,0 +1,131 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='metricStatus', url='', help='"MetricStatus describes the last-read state of a single metric."'), + '#containerResource':: d.obj(help='"ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \\"pods\\" source."'), + containerResource: { + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { containerResource+: { current+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { containerResource+: { current+: { averageValue: averageValue } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { containerResource+: { current+: { value: value } } }, + }, + '#withContainer':: d.fn(help='"container is the name of the container in the pods of the scaling target"', args=[d.arg(name='container', type=d.T.string)]), + withContainer(container): { containerResource+: { container: container } }, + '#withName':: d.fn(help='"name is the name of the resource in question."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { containerResource+: { name: name } }, + }, + '#external':: d.obj(help='"ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object."'), + external: { + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { external+: { current+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { external+: { current+: { averageValue: averageValue } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { external+: { current+: { value: value } } }, + }, + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { external+: { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { external+: { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { external+: { metric+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { external+: { metric+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { external+: { metric+: { name: name } } }, + }, + }, + '#object':: d.obj(help='"ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object)."'), + object: { + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { object+: { current+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { object+: { current+: { averageValue: averageValue } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { object+: { current+: { value: value } } }, + }, + '#describedObject':: d.obj(help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + describedObject: { + '#withApiVersion':: d.fn(help='"apiVersion is the API version of the referent"', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { object+: { describedObject+: { apiVersion: apiVersion } } }, + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { object+: { describedObject+: { kind: kind } } }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { object+: { describedObject+: { name: name } } }, + }, + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { object+: { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { object+: { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { object+: { metric+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { object+: { metric+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { object+: { metric+: { name: name } } }, + }, + }, + '#pods':: d.obj(help='"PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second)."'), + pods: { + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { pods+: { current+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { pods+: { current+: { averageValue: averageValue } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { pods+: { current+: { value: value } } }, + }, + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { pods+: { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { pods+: { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { pods+: { metric+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { pods+: { metric+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { pods+: { metric+: { name: name } } }, + }, + }, + '#resource':: d.obj(help='"ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \\"pods\\" source."'), + resource: { + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { resource+: { current+: { averageUtilization: averageUtilization } } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { resource+: { current+: { averageValue: averageValue } } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { resource+: { current+: { value: value } } }, + }, + '#withName':: d.fn(help='"name is the name of the resource in question."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { resource+: { name: name } }, + }, + '#withType':: d.fn(help='"type is the type of metric source. It will be one of \\"ContainerResource\\", \\"External\\", \\"Object\\", \\"Pods\\" or \\"Resource\\", each corresponds to a matching field in the object. Note: \\"ContainerResource\\" type is available on when the feature-gate HPAContainerMetrics is enabled"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricTarget.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricTarget.libsonnet new file mode 100644 index 0000000..a73f145 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricTarget.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='metricTarget', url='', help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { averageUtilization: averageUtilization }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { averageValue: averageValue }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricValueStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricValueStatus.libsonnet new file mode 100644 index 0000000..51dec37 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/metricValueStatus.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='metricValueStatus', url='', help='"MetricValueStatus holds the current value for a metric"'), + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { averageUtilization: averageUtilization }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { averageValue: averageValue }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/objectMetricSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/objectMetricSource.libsonnet new file mode 100644 index 0000000..efd9a4b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/objectMetricSource.libsonnet @@ -0,0 +1,42 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='objectMetricSource', url='', help='"ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object)."'), + '#describedObject':: d.obj(help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + describedObject: { + '#withApiVersion':: d.fn(help='"apiVersion is the API version of the referent"', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { describedObject+: { apiVersion: apiVersion } }, + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { describedObject+: { kind: kind } }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { describedObject+: { name: name } }, + }, + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { metric+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { metric+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metric+: { name: name } }, + }, + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { target+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { target+: { averageValue: averageValue } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { target+: { type: type } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { target+: { value: value } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/objectMetricStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/objectMetricStatus.libsonnet new file mode 100644 index 0000000..171bbdd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/objectMetricStatus.libsonnet @@ -0,0 +1,40 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='objectMetricStatus', url='', help='"ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object)."'), + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { current+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { current+: { averageValue: averageValue } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { current+: { value: value } }, + }, + '#describedObject':: d.obj(help='"CrossVersionObjectReference contains enough information to let you identify the referred resource."'), + describedObject: { + '#withApiVersion':: d.fn(help='"apiVersion is the API version of the referent"', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { describedObject+: { apiVersion: apiVersion } }, + '#withKind':: d.fn(help='"kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { describedObject+: { kind: kind } }, + '#withName':: d.fn(help='"name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { describedObject+: { name: name } }, + }, + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { metric+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { metric+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metric+: { name: name } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/podsMetricSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/podsMetricSource.libsonnet new file mode 100644 index 0000000..ecb6d1b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/podsMetricSource.libsonnet @@ -0,0 +1,33 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podsMetricSource', url='', help='"PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value."'), + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { metric+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { metric+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metric+: { name: name } }, + }, + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { target+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { target+: { averageValue: averageValue } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { target+: { type: type } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { target+: { value: value } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/podsMetricStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/podsMetricStatus.libsonnet new file mode 100644 index 0000000..3e1642d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/podsMetricStatus.libsonnet @@ -0,0 +1,31 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podsMetricStatus', url='', help='"PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second)."'), + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { current+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { current+: { averageValue: averageValue } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { current+: { value: value } }, + }, + '#metric':: d.obj(help='"MetricIdentifier defines the name and optionally selector for a metric"'), + metric: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { metric+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { metric+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { metric+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { metric+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"name is the name of the given metric"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metric+: { name: name } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/resourceMetricSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/resourceMetricSource.libsonnet new file mode 100644 index 0000000..6417c9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/resourceMetricSource.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceMetricSource', url='', help='"ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \\"pods\\" source. Only one \\"target\\" type should be set."'), + '#target':: d.obj(help='"MetricTarget defines the target value, average value, or average utilization of a specific metric"'), + target: { + '#withAverageUtilization':: d.fn(help='"averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type"', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { target+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { target+: { averageValue: averageValue } }, + '#withType':: d.fn(help='"type represents whether the metric type is Utilization, Value, or AverageValue"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { target+: { type: type } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { target+: { value: value } }, + }, + '#withName':: d.fn(help='"name is the name of the resource in question."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/resourceMetricStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/resourceMetricStatus.libsonnet new file mode 100644 index 0000000..7b6da96 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/autoscaling/v2/resourceMetricStatus.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceMetricStatus', url='', help='"ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \\"pods\\" source."'), + '#current':: d.obj(help='"MetricValueStatus holds the current value for a metric"'), + current: { + '#withAverageUtilization':: d.fn(help='"currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods."', args=[d.arg(name='averageUtilization', type=d.T.integer)]), + withAverageUtilization(averageUtilization): { current+: { averageUtilization: averageUtilization } }, + '#withAverageValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='averageValue', type=d.T.string)]), + withAverageValue(averageValue): { current+: { averageValue: averageValue } }, + '#withValue':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { current+: { value: value } }, + }, + '#withName':: d.fn(help='"name is the name of the resource in question."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/main.libsonnet new file mode 100644 index 0000000..7d9c108 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='batch', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJob.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJob.libsonnet new file mode 100644 index 0000000..51dd6d1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJob.libsonnet @@ -0,0 +1,430 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='cronJob', url='', help='"CronJob represents the configuration of a single cron job."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of CronJob', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'batch/v1', + kind: 'CronJob', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"CronJobSpec describes how the job execution will look like and when it will actually run."'), + spec: { + '#jobTemplate':: d.obj(help='"JobTemplateSpec describes the data a Job should have when created from a template"'), + jobTemplate: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { jobTemplate+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { jobTemplate+: { metadata+: { annotations+: annotations } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { jobTemplate+: { metadata+: { creationTimestamp: creationTimestamp } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { jobTemplate+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { jobTemplate+: { metadata+: { deletionTimestamp: deletionTimestamp } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { jobTemplate+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { jobTemplate+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { jobTemplate+: { metadata+: { generateName: generateName } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { jobTemplate+: { metadata+: { generation: generation } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { jobTemplate+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { jobTemplate+: { metadata+: { labels+: labels } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { jobTemplate+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { jobTemplate+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { jobTemplate+: { metadata+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { jobTemplate+: { metadata+: { namespace: namespace } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { jobTemplate+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { jobTemplate+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { jobTemplate+: { metadata+: { resourceVersion: resourceVersion } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { jobTemplate+: { metadata+: { selfLink: selfLink } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { jobTemplate+: { metadata+: { uid: uid } } } }, + }, + '#spec':: d.obj(help='"JobSpec describes how the job execution will look like."'), + spec: { + '#podFailurePolicy':: d.obj(help='"PodFailurePolicy describes how failed pods influence the backoffLimit."'), + podFailurePolicy: { + '#withRules':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { spec+: { jobTemplate+: { spec+: { podFailurePolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } } } } }, + '#withRulesMixin':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { spec+: { jobTemplate+: { spec+: { podFailurePolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } } } } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { jobTemplate+: { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { jobTemplate+: { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { jobTemplate+: { spec+: { selector+: { matchLabels: matchLabels } } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { jobTemplate+: { spec+: { selector+: { matchLabels+: matchLabels } } } } }, + }, + '#successPolicy':: d.obj(help='"SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes."'), + successPolicy: { + '#withRules':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { spec+: { jobTemplate+: { spec+: { successPolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } } } } }, + '#withRulesMixin':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { spec+: { jobTemplate+: { spec+: { successPolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } } } } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { annotations: annotations } } } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { annotations+: annotations } } } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { creationTimestamp: creationTimestamp } } } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { generateName: generateName } } } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { generation: generation } } } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { labels: labels } } } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { labels+: labels } } } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { namespace: namespace } } } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { resourceVersion: resourceVersion } } } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { selfLink: selfLink } } } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { jobTemplate+: { spec+: { template+: { metadata+: { uid: uid } } } } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { os+: { name: name } } } } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } } } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } } } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } } } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { dnsPolicy: dnsPolicy } } } } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { enableServiceLinks: enableServiceLinks } } } } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { hostIPC: hostIPC } } } } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { hostNetwork: hostNetwork } } } } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { hostPID: hostPID } } } } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { hostUsers: hostUsers } } } } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { hostname: hostname } } } } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { nodeName: nodeName } } } } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { nodeSelector: nodeSelector } } } } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { nodeSelector+: nodeSelector } } } } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { overhead: overhead } } } } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { overhead+: overhead } } } } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { preemptionPolicy: preemptionPolicy } } } } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { priority: priority } } } } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { priorityClassName: priorityClassName } } } } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { restartPolicy: restartPolicy } } } } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { runtimeClassName: runtimeClassName } } } } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { schedulerName: schedulerName } } } } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { serviceAccount: serviceAccount } } } } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { serviceAccountName: serviceAccountName } } } } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } } } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } } } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { subdomain: subdomain } } } } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } } } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } } } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { jobTemplate+: { spec+: { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } } } } }, + }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { jobTemplate+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } }, + '#withBackoffLimit':: d.fn(help='"Specifies the number of retries before marking this job failed. Defaults to 6"', args=[d.arg(name='backoffLimit', type=d.T.integer)]), + withBackoffLimit(backoffLimit): { spec+: { jobTemplate+: { spec+: { backoffLimit: backoffLimit } } } }, + '#withBackoffLimitPerIndex':: d.fn(help="\"Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\"", args=[d.arg(name='backoffLimitPerIndex', type=d.T.integer)]), + withBackoffLimitPerIndex(backoffLimitPerIndex): { spec+: { jobTemplate+: { spec+: { backoffLimitPerIndex: backoffLimitPerIndex } } } }, + '#withCompletionMode':: d.fn(help="\"completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\\n\\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\\n\\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\\n\\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.\"", args=[d.arg(name='completionMode', type=d.T.string)]), + withCompletionMode(completionMode): { spec+: { jobTemplate+: { spec+: { completionMode: completionMode } } } }, + '#withCompletions':: d.fn(help='"Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='completions', type=d.T.integer)]), + withCompletions(completions): { spec+: { jobTemplate+: { spec+: { completions: completions } } } }, + '#withManagedBy':: d.fn(help="\"ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \\\"/\\\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \\\"/\\\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 64 characters.\\n\\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).\"", args=[d.arg(name='managedBy', type=d.T.string)]), + withManagedBy(managedBy): { spec+: { jobTemplate+: { spec+: { managedBy: managedBy } } } }, + '#withManualSelector':: d.fn(help='"manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector"', args=[d.arg(name='manualSelector', type=d.T.boolean)]), + withManualSelector(manualSelector): { spec+: { jobTemplate+: { spec+: { manualSelector: manualSelector } } } }, + '#withMaxFailedIndexes':: d.fn(help='"Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default)."', args=[d.arg(name='maxFailedIndexes', type=d.T.integer)]), + withMaxFailedIndexes(maxFailedIndexes): { spec+: { jobTemplate+: { spec+: { maxFailedIndexes: maxFailedIndexes } } } }, + '#withParallelism':: d.fn(help='"Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='parallelism', type=d.T.integer)]), + withParallelism(parallelism): { spec+: { jobTemplate+: { spec+: { parallelism: parallelism } } } }, + '#withPodReplacementPolicy':: d.fn(help='"podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\\n when they are terminating (has a metadata.deletionTimestamp) or failed.\\n- Failed means to wait until a previously created Pod is fully terminated (has phase\\n Failed or Succeeded) before creating a replacement Pod.\\n\\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default."', args=[d.arg(name='podReplacementPolicy', type=d.T.string)]), + withPodReplacementPolicy(podReplacementPolicy): { spec+: { jobTemplate+: { spec+: { podReplacementPolicy: podReplacementPolicy } } } }, + '#withSuspend':: d.fn(help='"suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false."', args=[d.arg(name='suspend', type=d.T.boolean)]), + withSuspend(suspend): { spec+: { jobTemplate+: { spec+: { suspend: suspend } } } }, + '#withTtlSecondsAfterFinished':: d.fn(help="\"ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.\"", args=[d.arg(name='ttlSecondsAfterFinished', type=d.T.integer)]), + withTtlSecondsAfterFinished(ttlSecondsAfterFinished): { spec+: { jobTemplate+: { spec+: { ttlSecondsAfterFinished: ttlSecondsAfterFinished } } } }, + }, + }, + '#withConcurrencyPolicy':: d.fn(help="\"Specifies how to treat concurrent executions of a Job. Valid values are:\\n\\n- \\\"Allow\\\" (default): allows CronJobs to run concurrently; - \\\"Forbid\\\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \\\"Replace\\\": cancels currently running job and replaces it with a new one\"", args=[d.arg(name='concurrencyPolicy', type=d.T.string)]), + withConcurrencyPolicy(concurrencyPolicy): { spec+: { concurrencyPolicy: concurrencyPolicy } }, + '#withFailedJobsHistoryLimit':: d.fn(help='"The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1."', args=[d.arg(name='failedJobsHistoryLimit', type=d.T.integer)]), + withFailedJobsHistoryLimit(failedJobsHistoryLimit): { spec+: { failedJobsHistoryLimit: failedJobsHistoryLimit } }, + '#withSchedule':: d.fn(help='"The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron."', args=[d.arg(name='schedule', type=d.T.string)]), + withSchedule(schedule): { spec+: { schedule: schedule } }, + '#withStartingDeadlineSeconds':: d.fn(help='"Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones."', args=[d.arg(name='startingDeadlineSeconds', type=d.T.integer)]), + withStartingDeadlineSeconds(startingDeadlineSeconds): { spec+: { startingDeadlineSeconds: startingDeadlineSeconds } }, + '#withSuccessfulJobsHistoryLimit':: d.fn(help='"The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3."', args=[d.arg(name='successfulJobsHistoryLimit', type=d.T.integer)]), + withSuccessfulJobsHistoryLimit(successfulJobsHistoryLimit): { spec+: { successfulJobsHistoryLimit: successfulJobsHistoryLimit } }, + '#withSuspend':: d.fn(help='"This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false."', args=[d.arg(name='suspend', type=d.T.boolean)]), + withSuspend(suspend): { spec+: { suspend: suspend } }, + '#withTimeZone':: d.fn(help='"The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones"', args=[d.arg(name='timeZone', type=d.T.string)]), + withTimeZone(timeZone): { spec+: { timeZone: timeZone } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJobSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJobSpec.libsonnet new file mode 100644 index 0000000..663218f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJobSpec.libsonnet @@ -0,0 +1,379 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='cronJobSpec', url='', help='"CronJobSpec describes how the job execution will look like and when it will actually run."'), + '#jobTemplate':: d.obj(help='"JobTemplateSpec describes the data a Job should have when created from a template"'), + jobTemplate: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { jobTemplate+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { jobTemplate+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { jobTemplate+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { jobTemplate+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { jobTemplate+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { jobTemplate+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { jobTemplate+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { jobTemplate+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { jobTemplate+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { jobTemplate+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { jobTemplate+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { jobTemplate+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { jobTemplate+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { jobTemplate+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { jobTemplate+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { jobTemplate+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { jobTemplate+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { jobTemplate+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { jobTemplate+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { jobTemplate+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"JobSpec describes how the job execution will look like."'), + spec: { + '#podFailurePolicy':: d.obj(help='"PodFailurePolicy describes how failed pods influence the backoffLimit."'), + podFailurePolicy: { + '#withRules':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { jobTemplate+: { spec+: { podFailurePolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } } } }, + '#withRulesMixin':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { jobTemplate+: { spec+: { podFailurePolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } } } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { jobTemplate+: { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { jobTemplate+: { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { jobTemplate+: { spec+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { jobTemplate+: { spec+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#successPolicy':: d.obj(help='"SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes."'), + successPolicy: { + '#withRules':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { jobTemplate+: { spec+: { successPolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } } } }, + '#withRulesMixin':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { jobTemplate+: { spec+: { successPolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } } } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { jobTemplate+: { spec+: { template+: { metadata+: { annotations: annotations } } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { jobTemplate+: { spec+: { template+: { metadata+: { annotations+: annotations } } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { jobTemplate+: { spec+: { template+: { metadata+: { creationTimestamp: creationTimestamp } } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { jobTemplate+: { spec+: { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { jobTemplate+: { spec+: { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { jobTemplate+: { spec+: { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { jobTemplate+: { spec+: { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { jobTemplate+: { spec+: { template+: { metadata+: { generateName: generateName } } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { jobTemplate+: { spec+: { template+: { metadata+: { generation: generation } } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { jobTemplate+: { spec+: { template+: { metadata+: { labels: labels } } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { jobTemplate+: { spec+: { template+: { metadata+: { labels+: labels } } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { jobTemplate+: { spec+: { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { jobTemplate+: { spec+: { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { jobTemplate+: { spec+: { template+: { metadata+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { jobTemplate+: { spec+: { template+: { metadata+: { namespace: namespace } } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { jobTemplate+: { spec+: { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { jobTemplate+: { spec+: { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { jobTemplate+: { spec+: { template+: { metadata+: { resourceVersion: resourceVersion } } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { jobTemplate+: { spec+: { template+: { metadata+: { selfLink: selfLink } } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { jobTemplate+: { spec+: { template+: { metadata+: { uid: uid } } } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { jobTemplate+: { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { jobTemplate+: { spec+: { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { jobTemplate+: { spec+: { template+: { spec+: { os+: { name: name } } } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { jobTemplate+: { spec+: { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { jobTemplate+: { spec+: { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { jobTemplate+: { spec+: { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { jobTemplate+: { spec+: { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { jobTemplate+: { spec+: { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { jobTemplate+: { spec+: { template+: { spec+: { dnsPolicy: dnsPolicy } } } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { jobTemplate+: { spec+: { template+: { spec+: { enableServiceLinks: enableServiceLinks } } } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { jobTemplate+: { spec+: { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { jobTemplate+: { spec+: { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { jobTemplate+: { spec+: { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { jobTemplate+: { spec+: { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { jobTemplate+: { spec+: { template+: { spec+: { hostIPC: hostIPC } } } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { jobTemplate+: { spec+: { template+: { spec+: { hostNetwork: hostNetwork } } } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { jobTemplate+: { spec+: { template+: { spec+: { hostPID: hostPID } } } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { jobTemplate+: { spec+: { template+: { spec+: { hostUsers: hostUsers } } } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { jobTemplate+: { spec+: { template+: { spec+: { hostname: hostname } } } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { jobTemplate+: { spec+: { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { jobTemplate+: { spec+: { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { jobTemplate+: { spec+: { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { jobTemplate+: { spec+: { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { jobTemplate+: { spec+: { template+: { spec+: { nodeName: nodeName } } } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { jobTemplate+: { spec+: { template+: { spec+: { nodeSelector: nodeSelector } } } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { jobTemplate+: { spec+: { template+: { spec+: { nodeSelector+: nodeSelector } } } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { jobTemplate+: { spec+: { template+: { spec+: { overhead: overhead } } } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { jobTemplate+: { spec+: { template+: { spec+: { overhead+: overhead } } } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { jobTemplate+: { spec+: { template+: { spec+: { preemptionPolicy: preemptionPolicy } } } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { jobTemplate+: { spec+: { template+: { spec+: { priority: priority } } } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { jobTemplate+: { spec+: { template+: { spec+: { priorityClassName: priorityClassName } } } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { jobTemplate+: { spec+: { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { jobTemplate+: { spec+: { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { jobTemplate+: { spec+: { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { jobTemplate+: { spec+: { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { jobTemplate+: { spec+: { template+: { spec+: { restartPolicy: restartPolicy } } } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { jobTemplate+: { spec+: { template+: { spec+: { runtimeClassName: runtimeClassName } } } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { jobTemplate+: { spec+: { template+: { spec+: { schedulerName: schedulerName } } } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { jobTemplate+: { spec+: { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { jobTemplate+: { spec+: { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { jobTemplate+: { spec+: { template+: { spec+: { serviceAccount: serviceAccount } } } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { jobTemplate+: { spec+: { template+: { spec+: { serviceAccountName: serviceAccountName } } } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { jobTemplate+: { spec+: { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { jobTemplate+: { spec+: { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { jobTemplate+: { spec+: { template+: { spec+: { subdomain: subdomain } } } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { jobTemplate+: { spec+: { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { jobTemplate+: { spec+: { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { jobTemplate+: { spec+: { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { jobTemplate+: { spec+: { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { jobTemplate+: { spec+: { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { jobTemplate+: { spec+: { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { jobTemplate+: { spec+: { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } } } }, + }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { jobTemplate+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } }, + '#withBackoffLimit':: d.fn(help='"Specifies the number of retries before marking this job failed. Defaults to 6"', args=[d.arg(name='backoffLimit', type=d.T.integer)]), + withBackoffLimit(backoffLimit): { jobTemplate+: { spec+: { backoffLimit: backoffLimit } } }, + '#withBackoffLimitPerIndex':: d.fn(help="\"Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\"", args=[d.arg(name='backoffLimitPerIndex', type=d.T.integer)]), + withBackoffLimitPerIndex(backoffLimitPerIndex): { jobTemplate+: { spec+: { backoffLimitPerIndex: backoffLimitPerIndex } } }, + '#withCompletionMode':: d.fn(help="\"completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\\n\\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\\n\\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\\n\\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.\"", args=[d.arg(name='completionMode', type=d.T.string)]), + withCompletionMode(completionMode): { jobTemplate+: { spec+: { completionMode: completionMode } } }, + '#withCompletions':: d.fn(help='"Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='completions', type=d.T.integer)]), + withCompletions(completions): { jobTemplate+: { spec+: { completions: completions } } }, + '#withManagedBy':: d.fn(help="\"ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \\\"/\\\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \\\"/\\\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 64 characters.\\n\\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).\"", args=[d.arg(name='managedBy', type=d.T.string)]), + withManagedBy(managedBy): { jobTemplate+: { spec+: { managedBy: managedBy } } }, + '#withManualSelector':: d.fn(help='"manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector"', args=[d.arg(name='manualSelector', type=d.T.boolean)]), + withManualSelector(manualSelector): { jobTemplate+: { spec+: { manualSelector: manualSelector } } }, + '#withMaxFailedIndexes':: d.fn(help='"Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default)."', args=[d.arg(name='maxFailedIndexes', type=d.T.integer)]), + withMaxFailedIndexes(maxFailedIndexes): { jobTemplate+: { spec+: { maxFailedIndexes: maxFailedIndexes } } }, + '#withParallelism':: d.fn(help='"Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='parallelism', type=d.T.integer)]), + withParallelism(parallelism): { jobTemplate+: { spec+: { parallelism: parallelism } } }, + '#withPodReplacementPolicy':: d.fn(help='"podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\\n when they are terminating (has a metadata.deletionTimestamp) or failed.\\n- Failed means to wait until a previously created Pod is fully terminated (has phase\\n Failed or Succeeded) before creating a replacement Pod.\\n\\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default."', args=[d.arg(name='podReplacementPolicy', type=d.T.string)]), + withPodReplacementPolicy(podReplacementPolicy): { jobTemplate+: { spec+: { podReplacementPolicy: podReplacementPolicy } } }, + '#withSuspend':: d.fn(help='"suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false."', args=[d.arg(name='suspend', type=d.T.boolean)]), + withSuspend(suspend): { jobTemplate+: { spec+: { suspend: suspend } } }, + '#withTtlSecondsAfterFinished':: d.fn(help="\"ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.\"", args=[d.arg(name='ttlSecondsAfterFinished', type=d.T.integer)]), + withTtlSecondsAfterFinished(ttlSecondsAfterFinished): { jobTemplate+: { spec+: { ttlSecondsAfterFinished: ttlSecondsAfterFinished } } }, + }, + }, + '#withConcurrencyPolicy':: d.fn(help="\"Specifies how to treat concurrent executions of a Job. Valid values are:\\n\\n- \\\"Allow\\\" (default): allows CronJobs to run concurrently; - \\\"Forbid\\\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \\\"Replace\\\": cancels currently running job and replaces it with a new one\"", args=[d.arg(name='concurrencyPolicy', type=d.T.string)]), + withConcurrencyPolicy(concurrencyPolicy): { concurrencyPolicy: concurrencyPolicy }, + '#withFailedJobsHistoryLimit':: d.fn(help='"The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1."', args=[d.arg(name='failedJobsHistoryLimit', type=d.T.integer)]), + withFailedJobsHistoryLimit(failedJobsHistoryLimit): { failedJobsHistoryLimit: failedJobsHistoryLimit }, + '#withSchedule':: d.fn(help='"The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron."', args=[d.arg(name='schedule', type=d.T.string)]), + withSchedule(schedule): { schedule: schedule }, + '#withStartingDeadlineSeconds':: d.fn(help='"Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones."', args=[d.arg(name='startingDeadlineSeconds', type=d.T.integer)]), + withStartingDeadlineSeconds(startingDeadlineSeconds): { startingDeadlineSeconds: startingDeadlineSeconds }, + '#withSuccessfulJobsHistoryLimit':: d.fn(help='"The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3."', args=[d.arg(name='successfulJobsHistoryLimit', type=d.T.integer)]), + withSuccessfulJobsHistoryLimit(successfulJobsHistoryLimit): { successfulJobsHistoryLimit: successfulJobsHistoryLimit }, + '#withSuspend':: d.fn(help='"This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false."', args=[d.arg(name='suspend', type=d.T.boolean)]), + withSuspend(suspend): { suspend: suspend }, + '#withTimeZone':: d.fn(help='"The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones"', args=[d.arg(name='timeZone', type=d.T.string)]), + withTimeZone(timeZone): { timeZone: timeZone }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJobStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJobStatus.libsonnet new file mode 100644 index 0000000..165dfd4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/cronJobStatus.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='cronJobStatus', url='', help='"CronJobStatus represents the current state of a cron job."'), + '#withActive':: d.fn(help='"A list of pointers to currently running jobs."', args=[d.arg(name='active', type=d.T.array)]), + withActive(active): { active: if std.isArray(v=active) then active else [active] }, + '#withActiveMixin':: d.fn(help='"A list of pointers to currently running jobs."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='active', type=d.T.array)]), + withActiveMixin(active): { active+: if std.isArray(v=active) then active else [active] }, + '#withLastScheduleTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastScheduleTime', type=d.T.string)]), + withLastScheduleTime(lastScheduleTime): { lastScheduleTime: lastScheduleTime }, + '#withLastSuccessfulTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastSuccessfulTime', type=d.T.string)]), + withLastSuccessfulTime(lastSuccessfulTime): { lastSuccessfulTime: lastSuccessfulTime }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/job.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/job.libsonnet new file mode 100644 index 0000000..9add2e8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/job.libsonnet @@ -0,0 +1,367 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='job', url='', help='"Job represents the configuration of a single job."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Job', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'batch/v1', + kind: 'Job', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"JobSpec describes how the job execution will look like."'), + spec: { + '#podFailurePolicy':: d.obj(help='"PodFailurePolicy describes how failed pods influence the backoffLimit."'), + podFailurePolicy: { + '#withRules':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { spec+: { podFailurePolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } } }, + '#withRulesMixin':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { spec+: { podFailurePolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#successPolicy':: d.obj(help='"SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes."'), + successPolicy: { + '#withRules':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { spec+: { successPolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } } }, + '#withRulesMixin':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { spec+: { successPolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { template+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { template+: { metadata+: { annotations+: annotations } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { template+: { metadata+: { creationTimestamp: creationTimestamp } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { template+: { metadata+: { generateName: generateName } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { template+: { metadata+: { generation: generation } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { template+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { template+: { metadata+: { labels+: labels } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { metadata+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { template+: { metadata+: { namespace: namespace } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { template+: { metadata+: { resourceVersion: resourceVersion } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { template+: { metadata+: { selfLink: selfLink } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { template+: { metadata+: { uid: uid } } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { spec+: { os+: { name: name } } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { template+: { spec+: { dnsPolicy: dnsPolicy } } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { template+: { spec+: { enableServiceLinks: enableServiceLinks } } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { template+: { spec+: { hostIPC: hostIPC } } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { template+: { spec+: { hostNetwork: hostNetwork } } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { template+: { spec+: { hostPID: hostPID } } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { template+: { spec+: { hostUsers: hostUsers } } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { template+: { spec+: { hostname: hostname } } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { template+: { spec+: { nodeName: nodeName } } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { template+: { spec+: { nodeSelector: nodeSelector } } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { template+: { spec+: { nodeSelector+: nodeSelector } } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { template+: { spec+: { overhead: overhead } } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { template+: { spec+: { overhead+: overhead } } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { template+: { spec+: { preemptionPolicy: preemptionPolicy } } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { template+: { spec+: { priority: priority } } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { template+: { spec+: { priorityClassName: priorityClassName } } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { template+: { spec+: { restartPolicy: restartPolicy } } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { template+: { spec+: { runtimeClassName: runtimeClassName } } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { template+: { spec+: { schedulerName: schedulerName } } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { template+: { spec+: { serviceAccount: serviceAccount } } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { template+: { spec+: { serviceAccountName: serviceAccountName } } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { template+: { spec+: { subdomain: subdomain } } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } }, + '#withBackoffLimit':: d.fn(help='"Specifies the number of retries before marking this job failed. Defaults to 6"', args=[d.arg(name='backoffLimit', type=d.T.integer)]), + withBackoffLimit(backoffLimit): { spec+: { backoffLimit: backoffLimit } }, + '#withBackoffLimitPerIndex':: d.fn(help="\"Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\"", args=[d.arg(name='backoffLimitPerIndex', type=d.T.integer)]), + withBackoffLimitPerIndex(backoffLimitPerIndex): { spec+: { backoffLimitPerIndex: backoffLimitPerIndex } }, + '#withCompletionMode':: d.fn(help="\"completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\\n\\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\\n\\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\\n\\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.\"", args=[d.arg(name='completionMode', type=d.T.string)]), + withCompletionMode(completionMode): { spec+: { completionMode: completionMode } }, + '#withCompletions':: d.fn(help='"Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='completions', type=d.T.integer)]), + withCompletions(completions): { spec+: { completions: completions } }, + '#withManagedBy':: d.fn(help="\"ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \\\"/\\\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \\\"/\\\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 64 characters.\\n\\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).\"", args=[d.arg(name='managedBy', type=d.T.string)]), + withManagedBy(managedBy): { spec+: { managedBy: managedBy } }, + '#withManualSelector':: d.fn(help='"manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector"', args=[d.arg(name='manualSelector', type=d.T.boolean)]), + withManualSelector(manualSelector): { spec+: { manualSelector: manualSelector } }, + '#withMaxFailedIndexes':: d.fn(help='"Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default)."', args=[d.arg(name='maxFailedIndexes', type=d.T.integer)]), + withMaxFailedIndexes(maxFailedIndexes): { spec+: { maxFailedIndexes: maxFailedIndexes } }, + '#withParallelism':: d.fn(help='"Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='parallelism', type=d.T.integer)]), + withParallelism(parallelism): { spec+: { parallelism: parallelism } }, + '#withPodReplacementPolicy':: d.fn(help='"podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\\n when they are terminating (has a metadata.deletionTimestamp) or failed.\\n- Failed means to wait until a previously created Pod is fully terminated (has phase\\n Failed or Succeeded) before creating a replacement Pod.\\n\\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default."', args=[d.arg(name='podReplacementPolicy', type=d.T.string)]), + withPodReplacementPolicy(podReplacementPolicy): { spec+: { podReplacementPolicy: podReplacementPolicy } }, + '#withSuspend':: d.fn(help='"suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false."', args=[d.arg(name='suspend', type=d.T.boolean)]), + withSuspend(suspend): { spec+: { suspend: suspend } }, + '#withTtlSecondsAfterFinished':: d.fn(help="\"ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.\"", args=[d.arg(name='ttlSecondsAfterFinished', type=d.T.integer)]), + withTtlSecondsAfterFinished(ttlSecondsAfterFinished): { spec+: { ttlSecondsAfterFinished: ttlSecondsAfterFinished } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobCondition.libsonnet new file mode 100644 index 0000000..7519105 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobCondition.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='jobCondition', url='', help='"JobCondition describes current state of a job."'), + '#withLastProbeTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastProbeTime', type=d.T.string)]), + withLastProbeTime(lastProbeTime): { lastProbeTime: lastProbeTime }, + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"Human readable message indicating details about last transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"(brief) reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of job condition, Complete or Failed."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobSpec.libsonnet new file mode 100644 index 0000000..d0b8151 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobSpec.libsonnet @@ -0,0 +1,316 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='jobSpec', url='', help='"JobSpec describes how the job execution will look like."'), + '#podFailurePolicy':: d.obj(help='"PodFailurePolicy describes how failed pods influence the backoffLimit."'), + podFailurePolicy: { + '#withRules':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { podFailurePolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } }, + '#withRulesMixin':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { podFailurePolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#successPolicy':: d.obj(help='"SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes."'), + successPolicy: { + '#withRules':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { successPolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } }, + '#withRulesMixin':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { successPolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { template+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { template+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { template+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { template+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { template+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { template+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { template+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { template+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { template+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { template+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { template+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { spec+: { os+: { name: name } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { template+: { spec+: { dnsPolicy: dnsPolicy } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { template+: { spec+: { enableServiceLinks: enableServiceLinks } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { template+: { spec+: { hostIPC: hostIPC } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { template+: { spec+: { hostNetwork: hostNetwork } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { template+: { spec+: { hostPID: hostPID } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { template+: { spec+: { hostUsers: hostUsers } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { template+: { spec+: { hostname: hostname } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { template+: { spec+: { nodeName: nodeName } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { template+: { spec+: { nodeSelector: nodeSelector } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { template+: { spec+: { nodeSelector+: nodeSelector } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { template+: { spec+: { overhead: overhead } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { template+: { spec+: { overhead+: overhead } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { template+: { spec+: { preemptionPolicy: preemptionPolicy } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { template+: { spec+: { priority: priority } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { template+: { spec+: { priorityClassName: priorityClassName } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { template+: { spec+: { restartPolicy: restartPolicy } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { template+: { spec+: { runtimeClassName: runtimeClassName } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { template+: { spec+: { schedulerName: schedulerName } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { template+: { spec+: { serviceAccount: serviceAccount } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { template+: { spec+: { serviceAccountName: serviceAccountName } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { template+: { spec+: { subdomain: subdomain } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } }, + }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { activeDeadlineSeconds: activeDeadlineSeconds }, + '#withBackoffLimit':: d.fn(help='"Specifies the number of retries before marking this job failed. Defaults to 6"', args=[d.arg(name='backoffLimit', type=d.T.integer)]), + withBackoffLimit(backoffLimit): { backoffLimit: backoffLimit }, + '#withBackoffLimitPerIndex':: d.fn(help="\"Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\"", args=[d.arg(name='backoffLimitPerIndex', type=d.T.integer)]), + withBackoffLimitPerIndex(backoffLimitPerIndex): { backoffLimitPerIndex: backoffLimitPerIndex }, + '#withCompletionMode':: d.fn(help="\"completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\\n\\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\\n\\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\\n\\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.\"", args=[d.arg(name='completionMode', type=d.T.string)]), + withCompletionMode(completionMode): { completionMode: completionMode }, + '#withCompletions':: d.fn(help='"Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='completions', type=d.T.integer)]), + withCompletions(completions): { completions: completions }, + '#withManagedBy':: d.fn(help="\"ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \\\"/\\\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \\\"/\\\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 64 characters.\\n\\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).\"", args=[d.arg(name='managedBy', type=d.T.string)]), + withManagedBy(managedBy): { managedBy: managedBy }, + '#withManualSelector':: d.fn(help='"manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector"', args=[d.arg(name='manualSelector', type=d.T.boolean)]), + withManualSelector(manualSelector): { manualSelector: manualSelector }, + '#withMaxFailedIndexes':: d.fn(help='"Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default)."', args=[d.arg(name='maxFailedIndexes', type=d.T.integer)]), + withMaxFailedIndexes(maxFailedIndexes): { maxFailedIndexes: maxFailedIndexes }, + '#withParallelism':: d.fn(help='"Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='parallelism', type=d.T.integer)]), + withParallelism(parallelism): { parallelism: parallelism }, + '#withPodReplacementPolicy':: d.fn(help='"podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\\n when they are terminating (has a metadata.deletionTimestamp) or failed.\\n- Failed means to wait until a previously created Pod is fully terminated (has phase\\n Failed or Succeeded) before creating a replacement Pod.\\n\\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default."', args=[d.arg(name='podReplacementPolicy', type=d.T.string)]), + withPodReplacementPolicy(podReplacementPolicy): { podReplacementPolicy: podReplacementPolicy }, + '#withSuspend':: d.fn(help='"suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false."', args=[d.arg(name='suspend', type=d.T.boolean)]), + withSuspend(suspend): { suspend: suspend }, + '#withTtlSecondsAfterFinished':: d.fn(help="\"ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.\"", args=[d.arg(name='ttlSecondsAfterFinished', type=d.T.integer)]), + withTtlSecondsAfterFinished(ttlSecondsAfterFinished): { ttlSecondsAfterFinished: ttlSecondsAfterFinished }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobStatus.libsonnet new file mode 100644 index 0000000..0565c19 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobStatus.libsonnet @@ -0,0 +1,39 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='jobStatus', url='', help='"JobStatus represents the current state of a Job."'), + '#uncountedTerminatedPods':: d.obj(help="\"UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.\""), + uncountedTerminatedPods: { + '#withFailed':: d.fn(help='"failed holds UIDs of failed Pods."', args=[d.arg(name='failed', type=d.T.array)]), + withFailed(failed): { uncountedTerminatedPods+: { failed: if std.isArray(v=failed) then failed else [failed] } }, + '#withFailedMixin':: d.fn(help='"failed holds UIDs of failed Pods."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='failed', type=d.T.array)]), + withFailedMixin(failed): { uncountedTerminatedPods+: { failed+: if std.isArray(v=failed) then failed else [failed] } }, + '#withSucceeded':: d.fn(help='"succeeded holds UIDs of succeeded Pods."', args=[d.arg(name='succeeded', type=d.T.array)]), + withSucceeded(succeeded): { uncountedTerminatedPods+: { succeeded: if std.isArray(v=succeeded) then succeeded else [succeeded] } }, + '#withSucceededMixin':: d.fn(help='"succeeded holds UIDs of succeeded Pods."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='succeeded', type=d.T.array)]), + withSucceededMixin(succeeded): { uncountedTerminatedPods+: { succeeded+: if std.isArray(v=succeeded) then succeeded else [succeeded] } }, + }, + '#withActive':: d.fn(help='"The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs."', args=[d.arg(name='active', type=d.T.integer)]), + withActive(active): { active: active }, + '#withCompletedIndexes':: d.fn(help='"completedIndexes holds the completed indexes when .spec.completionMode = \\"Indexed\\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \\"1,3-5,7\\"."', args=[d.arg(name='completedIndexes', type=d.T.string)]), + withCompletedIndexes(completedIndexes): { completedIndexes: completedIndexes }, + '#withCompletionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='completionTime', type=d.T.string)]), + withCompletionTime(completionTime): { completionTime: completionTime }, + '#withConditions':: d.fn(help="\"The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \\\"Failed\\\" and status true. When a Job is suspended, one of the conditions will have type \\\"Suspended\\\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \\\"Complete\\\" and status true.\\n\\nA job is considered finished when it is in a terminal condition, either \\\"Complete\\\" or \\\"Failed\\\". A Job cannot have both the \\\"Complete\\\" and \\\"Failed\\\" conditions. Additionally, it cannot be in the \\\"Complete\\\" and \\\"FailureTarget\\\" conditions. The \\\"Complete\\\", \\\"Failed\\\" and \\\"FailureTarget\\\" conditions cannot be disabled.\\n\\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \\\"Failed\\\" and status true. When a Job is suspended, one of the conditions will have type \\\"Suspended\\\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \\\"Complete\\\" and status true.\\n\\nA job is considered finished when it is in a terminal condition, either \\\"Complete\\\" or \\\"Failed\\\". A Job cannot have both the \\\"Complete\\\" and \\\"Failed\\\" conditions. Additionally, it cannot be in the \\\"Complete\\\" and \\\"FailureTarget\\\" conditions. The \\\"Complete\\\", \\\"Failed\\\" and \\\"FailureTarget\\\" conditions cannot be disabled.\\n\\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withFailed':: d.fn(help='"The number of pods which reached phase Failed. The value increases monotonically."', args=[d.arg(name='failed', type=d.T.integer)]), + withFailed(failed): { failed: failed }, + '#withFailedIndexes':: d.fn(help='"FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \\"1,3-5,7\\". The set of failed indexes cannot overlap with the set of completed indexes.\\n\\nThis field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default)."', args=[d.arg(name='failedIndexes', type=d.T.string)]), + withFailedIndexes(failedIndexes): { failedIndexes: failedIndexes }, + '#withReady':: d.fn(help='"The number of pods which have a Ready condition."', args=[d.arg(name='ready', type=d.T.integer)]), + withReady(ready): { ready: ready }, + '#withStartTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startTime', type=d.T.string)]), + withStartTime(startTime): { startTime: startTime }, + '#withSucceeded':: d.fn(help='"The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs."', args=[d.arg(name='succeeded', type=d.T.integer)]), + withSucceeded(succeeded): { succeeded: succeeded }, + '#withTerminating':: d.fn(help='"The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\\n\\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default)."', args=[d.arg(name='terminating', type=d.T.integer)]), + withTerminating(terminating): { terminating: terminating }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobTemplateSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobTemplateSpec.libsonnet new file mode 100644 index 0000000..8e3b6cd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/jobTemplateSpec.libsonnet @@ -0,0 +1,362 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='jobTemplateSpec', url='', help='"JobTemplateSpec describes the data a Job should have when created from a template"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#spec':: d.obj(help='"JobSpec describes how the job execution will look like."'), + spec: { + '#podFailurePolicy':: d.obj(help='"PodFailurePolicy describes how failed pods influence the backoffLimit."'), + podFailurePolicy: { + '#withRules':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { spec+: { podFailurePolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } } }, + '#withRulesMixin':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { spec+: { podFailurePolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#successPolicy':: d.obj(help='"SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes."'), + successPolicy: { + '#withRules':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { spec+: { successPolicy+: { rules: if std.isArray(v=rules) then rules else [rules] } } }, + '#withRulesMixin':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { spec+: { successPolicy+: { rules+: if std.isArray(v=rules) then rules else [rules] } } }, + }, + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { template+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { template+: { metadata+: { annotations+: annotations } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { template+: { metadata+: { creationTimestamp: creationTimestamp } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { template+: { metadata+: { generateName: generateName } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { template+: { metadata+: { generation: generation } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { template+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { template+: { metadata+: { labels+: labels } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { metadata+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { template+: { metadata+: { namespace: namespace } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { template+: { metadata+: { resourceVersion: resourceVersion } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { template+: { metadata+: { selfLink: selfLink } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { template+: { metadata+: { uid: uid } } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { spec+: { os+: { name: name } } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { template+: { spec+: { dnsPolicy: dnsPolicy } } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { template+: { spec+: { enableServiceLinks: enableServiceLinks } } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { template+: { spec+: { hostIPC: hostIPC } } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { template+: { spec+: { hostNetwork: hostNetwork } } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { template+: { spec+: { hostPID: hostPID } } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { template+: { spec+: { hostUsers: hostUsers } } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { template+: { spec+: { hostname: hostname } } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { template+: { spec+: { nodeName: nodeName } } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { template+: { spec+: { nodeSelector: nodeSelector } } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { template+: { spec+: { nodeSelector+: nodeSelector } } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { template+: { spec+: { overhead: overhead } } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { template+: { spec+: { overhead+: overhead } } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { template+: { spec+: { preemptionPolicy: preemptionPolicy } } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { template+: { spec+: { priority: priority } } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { template+: { spec+: { priorityClassName: priorityClassName } } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { template+: { spec+: { restartPolicy: restartPolicy } } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { template+: { spec+: { runtimeClassName: runtimeClassName } } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { template+: { spec+: { schedulerName: schedulerName } } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { template+: { spec+: { serviceAccount: serviceAccount } } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { template+: { spec+: { serviceAccountName: serviceAccountName } } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { template+: { spec+: { subdomain: subdomain } } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } }, + '#withBackoffLimit':: d.fn(help='"Specifies the number of retries before marking this job failed. Defaults to 6"', args=[d.arg(name='backoffLimit', type=d.T.integer)]), + withBackoffLimit(backoffLimit): { spec+: { backoffLimit: backoffLimit } }, + '#withBackoffLimitPerIndex':: d.fn(help="\"Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\"", args=[d.arg(name='backoffLimitPerIndex', type=d.T.integer)]), + withBackoffLimitPerIndex(backoffLimitPerIndex): { spec+: { backoffLimitPerIndex: backoffLimitPerIndex } }, + '#withCompletionMode':: d.fn(help="\"completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\\n\\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\\n\\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\\n\\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.\"", args=[d.arg(name='completionMode', type=d.T.string)]), + withCompletionMode(completionMode): { spec+: { completionMode: completionMode } }, + '#withCompletions':: d.fn(help='"Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='completions', type=d.T.integer)]), + withCompletions(completions): { spec+: { completions: completions } }, + '#withManagedBy':: d.fn(help="\"ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \\\"/\\\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \\\"/\\\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 64 characters.\\n\\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).\"", args=[d.arg(name='managedBy', type=d.T.string)]), + withManagedBy(managedBy): { spec+: { managedBy: managedBy } }, + '#withManualSelector':: d.fn(help='"manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector"', args=[d.arg(name='manualSelector', type=d.T.boolean)]), + withManualSelector(manualSelector): { spec+: { manualSelector: manualSelector } }, + '#withMaxFailedIndexes':: d.fn(help='"Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default)."', args=[d.arg(name='maxFailedIndexes', type=d.T.integer)]), + withMaxFailedIndexes(maxFailedIndexes): { spec+: { maxFailedIndexes: maxFailedIndexes } }, + '#withParallelism':: d.fn(help='"Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/"', args=[d.arg(name='parallelism', type=d.T.integer)]), + withParallelism(parallelism): { spec+: { parallelism: parallelism } }, + '#withPodReplacementPolicy':: d.fn(help='"podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\\n when they are terminating (has a metadata.deletionTimestamp) or failed.\\n- Failed means to wait until a previously created Pod is fully terminated (has phase\\n Failed or Succeeded) before creating a replacement Pod.\\n\\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default."', args=[d.arg(name='podReplacementPolicy', type=d.T.string)]), + withPodReplacementPolicy(podReplacementPolicy): { spec+: { podReplacementPolicy: podReplacementPolicy } }, + '#withSuspend':: d.fn(help='"suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false."', args=[d.arg(name='suspend', type=d.T.boolean)]), + withSuspend(suspend): { spec+: { suspend: suspend } }, + '#withTtlSecondsAfterFinished':: d.fn(help="\"ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.\"", args=[d.arg(name='ttlSecondsAfterFinished', type=d.T.integer)]), + withTtlSecondsAfterFinished(ttlSecondsAfterFinished): { spec+: { ttlSecondsAfterFinished: ttlSecondsAfterFinished } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/main.libsonnet new file mode 100644 index 0000000..1f54250 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/main.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + cronJob: (import 'cronJob.libsonnet'), + cronJobSpec: (import 'cronJobSpec.libsonnet'), + cronJobStatus: (import 'cronJobStatus.libsonnet'), + job: (import 'job.libsonnet'), + jobCondition: (import 'jobCondition.libsonnet'), + jobSpec: (import 'jobSpec.libsonnet'), + jobStatus: (import 'jobStatus.libsonnet'), + jobTemplateSpec: (import 'jobTemplateSpec.libsonnet'), + podFailurePolicy: (import 'podFailurePolicy.libsonnet'), + podFailurePolicyOnExitCodesRequirement: (import 'podFailurePolicyOnExitCodesRequirement.libsonnet'), + podFailurePolicyOnPodConditionsPattern: (import 'podFailurePolicyOnPodConditionsPattern.libsonnet'), + podFailurePolicyRule: (import 'podFailurePolicyRule.libsonnet'), + successPolicy: (import 'successPolicy.libsonnet'), + successPolicyRule: (import 'successPolicyRule.libsonnet'), + uncountedTerminatedPods: (import 'uncountedTerminatedPods.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicy.libsonnet new file mode 100644 index 0000000..29a4841 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicy.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podFailurePolicy', url='', help='"PodFailurePolicy describes how failed pods influence the backoffLimit."'), + '#withRules':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { rules: if std.isArray(v=rules) then rules else [rules] }, + '#withRulesMixin':: d.fn(help='"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { rules+: if std.isArray(v=rules) then rules else [rules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyOnExitCodesRequirement.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyOnExitCodesRequirement.libsonnet new file mode 100644 index 0000000..0a81d28 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyOnExitCodesRequirement.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podFailurePolicyOnExitCodesRequirement', url='', help='"PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check."'), + '#withContainerName':: d.fn(help='"Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template."', args=[d.arg(name='containerName', type=d.T.string)]), + withContainerName(containerName): { containerName: containerName }, + '#withOperator':: d.fn(help="\"Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\\n\\n- In: the requirement is satisfied if at least one container exit code\\n (might be multiple if there are multiple containers not restricted\\n by the 'containerName' field) is in the set of specified values.\\n- NotIn: the requirement is satisfied if at least one container exit code\\n (might be multiple if there are multiple containers not restricted\\n by the 'containerName' field) is not in the set of specified values.\\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.\"", args=[d.arg(name='operator', type=d.T.string)]), + withOperator(operator): { operator: operator }, + '#withValues':: d.fn(help="\"Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.\"", args=[d.arg(name='values', type=d.T.array)]), + withValues(values): { values: if std.isArray(v=values) then values else [values] }, + '#withValuesMixin':: d.fn(help="\"Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='values', type=d.T.array)]), + withValuesMixin(values): { values+: if std.isArray(v=values) then values else [values] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyOnPodConditionsPattern.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyOnPodConditionsPattern.libsonnet new file mode 100644 index 0000000..6037e13 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyOnPodConditionsPattern.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podFailurePolicyOnPodConditionsPattern', url='', help='"PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type."'), + '#withType':: d.fn(help='"Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyRule.libsonnet new file mode 100644 index 0000000..9134be6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/podFailurePolicyRule.libsonnet @@ -0,0 +1,23 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podFailurePolicyRule', url='', help='"PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule."'), + '#onExitCodes':: d.obj(help='"PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check."'), + onExitCodes: { + '#withContainerName':: d.fn(help='"Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template."', args=[d.arg(name='containerName', type=d.T.string)]), + withContainerName(containerName): { onExitCodes+: { containerName: containerName } }, + '#withOperator':: d.fn(help="\"Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\\n\\n- In: the requirement is satisfied if at least one container exit code\\n (might be multiple if there are multiple containers not restricted\\n by the 'containerName' field) is in the set of specified values.\\n- NotIn: the requirement is satisfied if at least one container exit code\\n (might be multiple if there are multiple containers not restricted\\n by the 'containerName' field) is not in the set of specified values.\\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.\"", args=[d.arg(name='operator', type=d.T.string)]), + withOperator(operator): { onExitCodes+: { operator: operator } }, + '#withValues':: d.fn(help="\"Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.\"", args=[d.arg(name='values', type=d.T.array)]), + withValues(values): { onExitCodes+: { values: if std.isArray(v=values) then values else [values] } }, + '#withValuesMixin':: d.fn(help="\"Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='values', type=d.T.array)]), + withValuesMixin(values): { onExitCodes+: { values+: if std.isArray(v=values) then values else [values] } }, + }, + '#withAction':: d.fn(help="\"Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\\n\\n- FailJob: indicates that the pod's job is marked as Failed and all\\n running pods are terminated.\\n- FailIndex: indicates that the pod's index is marked as Failed and will\\n not be restarted.\\n This value is beta-level. It can be used when the\\n `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\\n- Ignore: indicates that the counter towards the .backoffLimit is not\\n incremented and a replacement pod is created.\\n- Count: indicates that the pod is handled in the default way - the\\n counter towards the .backoffLimit is incremented.\\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.\"", args=[d.arg(name='action', type=d.T.string)]), + withAction(action): { action: action }, + '#withOnPodConditions':: d.fn(help='"Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed."', args=[d.arg(name='onPodConditions', type=d.T.array)]), + withOnPodConditions(onPodConditions): { onPodConditions: if std.isArray(v=onPodConditions) then onPodConditions else [onPodConditions] }, + '#withOnPodConditionsMixin':: d.fn(help='"Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='onPodConditions', type=d.T.array)]), + withOnPodConditionsMixin(onPodConditions): { onPodConditions+: if std.isArray(v=onPodConditions) then onPodConditions else [onPodConditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/successPolicy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/successPolicy.libsonnet new file mode 100644 index 0000000..a5e9f03 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/successPolicy.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='successPolicy', url='', help='"SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes."'), + '#withRules':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { rules: if std.isArray(v=rules) then rules else [rules] }, + '#withRulesMixin':: d.fn(help='"rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \\"SucceededCriteriaMet\\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \\"Complete\\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { rules+: if std.isArray(v=rules) then rules else [rules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/successPolicyRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/successPolicyRule.libsonnet new file mode 100644 index 0000000..8cde4fe --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/successPolicyRule.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='successPolicyRule', url='', help='"SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \\"succeededIndexes\\" or \\"succeededCount\\" specified."'), + '#withSucceededCount':: d.fn(help="\"succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \\\"1-4\\\", succeededCount is \\\"3\\\", and completed indexes are \\\"1\\\", \\\"3\\\", and \\\"5\\\", the Job isn't declared as succeeded because only \\\"1\\\" and \\\"3\\\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.\"", args=[d.arg(name='succeededCount', type=d.T.integer)]), + withSucceededCount(succeededCount): { succeededCount: succeededCount }, + '#withSucceededIndexes':: d.fn(help="\"succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \\\".spec.completions-1\\\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \\\"1,3-5,7\\\". When this field is null, this field doesn't default to any value and is never evaluated at any time.\"", args=[d.arg(name='succeededIndexes', type=d.T.string)]), + withSucceededIndexes(succeededIndexes): { succeededIndexes: succeededIndexes }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/uncountedTerminatedPods.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/uncountedTerminatedPods.libsonnet new file mode 100644 index 0000000..482a57a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/batch/v1/uncountedTerminatedPods.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='uncountedTerminatedPods', url='', help="\"UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.\""), + '#withFailed':: d.fn(help='"failed holds UIDs of failed Pods."', args=[d.arg(name='failed', type=d.T.array)]), + withFailed(failed): { failed: if std.isArray(v=failed) then failed else [failed] }, + '#withFailedMixin':: d.fn(help='"failed holds UIDs of failed Pods."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='failed', type=d.T.array)]), + withFailedMixin(failed): { failed+: if std.isArray(v=failed) then failed else [failed] }, + '#withSucceeded':: d.fn(help='"succeeded holds UIDs of succeeded Pods."', args=[d.arg(name='succeeded', type=d.T.array)]), + withSucceeded(succeeded): { succeeded: if std.isArray(v=succeeded) then succeeded else [succeeded] }, + '#withSucceededMixin':: d.fn(help='"succeeded holds UIDs of succeeded Pods."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='succeeded', type=d.T.array)]), + withSucceededMixin(succeeded): { succeeded+: if std.isArray(v=succeeded) then succeeded else [succeeded] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/main.libsonnet new file mode 100644 index 0000000..a1350a0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='certificates', url='', help=''), + v1: (import 'v1/main.libsonnet'), + v1alpha1: (import 'v1alpha1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequest.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequest.libsonnet new file mode 100644 index 0000000..ae3c70e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequest.libsonnet @@ -0,0 +1,79 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='certificateSigningRequest', url='', help='"CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\\n\\nKubelets use this API to obtain:\\n 1. client certificates to authenticate to kube-apiserver (with the \\"kubernetes.io/kube-apiserver-client-kubelet\\" signerName).\\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \\"kubernetes.io/kubelet-serving\\" signerName).\\n\\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \\"kubernetes.io/kube-apiserver-client\\" signerName), or to obtain certificates from custom non-Kubernetes signers."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of CertificateSigningRequest', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'certificates.k8s.io/v1', + kind: 'CertificateSigningRequest', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"CertificateSigningRequestSpec contains the certificate request."'), + spec: { + '#withExpirationSeconds':: d.fn(help='"expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\\n\\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\\n\\nCertificate signers may not honor this field for various reasons:\\n\\n 1. Old signer that is unaware of the field (such as the in-tree\\n implementations prior to v1.22)\\n 2. Signer whose configured maximum is shorter than the requested duration\\n 3. Signer whose configured minimum is longer than the requested duration\\n\\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes."', args=[d.arg(name='expirationSeconds', type=d.T.integer)]), + withExpirationSeconds(expirationSeconds): { spec+: { expirationSeconds: expirationSeconds } }, + '#withExtra':: d.fn(help='"extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { spec+: { extra: extra } }, + '#withExtraMixin':: d.fn(help='"extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { spec+: { extra+: extra } }, + '#withGroups':: d.fn(help='"groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."', args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { spec+: { groups: if std.isArray(v=groups) then groups else [groups] } }, + '#withGroupsMixin':: d.fn(help='"groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { spec+: { groups+: if std.isArray(v=groups) then groups else [groups] } }, + '#withRequest':: d.fn(help='"request contains an x509 certificate signing request encoded in a \\"CERTIFICATE REQUEST\\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded."', args=[d.arg(name='request', type=d.T.string)]), + withRequest(request): { spec+: { request: request } }, + '#withSignerName':: d.fn(help='"signerName indicates the requested signer, and is a qualified name.\\n\\nList/watch requests for CertificateSigningRequests can filter on this field using a \\"spec.signerName=NAME\\" fieldSelector.\\n\\nWell-known Kubernetes signers are:\\n 1. \\"kubernetes.io/kube-apiserver-client\\": issues client certificates that can be used to authenticate to kube-apiserver.\\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \\"csrsigning\\" controller in kube-controller-manager.\\n 2. \\"kubernetes.io/kube-apiserver-client-kubelet\\": issues client certificates that kubelets use to authenticate to kube-apiserver.\\n Requests for this signer can be auto-approved by the \\"csrapproving\\" controller in kube-controller-manager, and can be issued by the \\"csrsigning\\" controller in kube-controller-manager.\\n 3. \\"kubernetes.io/kubelet-serving\\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \\"csrsigning\\" controller in kube-controller-manager.\\n\\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\\n\\nCustom signerNames can also be specified. The signer defines:\\n 1. Trust distribution: how trust (CA bundles) are distributed.\\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\\n 4. Required, permitted, or forbidden key usages / extended key usages.\\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\\n 6. Whether or not requests for CA certificates are allowed."', args=[d.arg(name='signerName', type=d.T.string)]), + withSignerName(signerName): { spec+: { signerName: signerName } }, + '#withUid':: d.fn(help='"uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { uid: uid } }, + '#withUsages':: d.fn(help='"usages specifies a set of key usages requested in the issued certificate.\\n\\nRequests for TLS client certificates typically request: \\"digital signature\\", \\"key encipherment\\", \\"client auth\\".\\n\\nRequests for TLS serving certificates typically request: \\"key encipherment\\", \\"digital signature\\", \\"server auth\\".\\n\\nValid values are:\\n \\"signing\\", \\"digital signature\\", \\"content commitment\\",\\n \\"key encipherment\\", \\"key agreement\\", \\"data encipherment\\",\\n \\"cert sign\\", \\"crl sign\\", \\"encipher only\\", \\"decipher only\\", \\"any\\",\\n \\"server auth\\", \\"client auth\\",\\n \\"code signing\\", \\"email protection\\", \\"s/mime\\",\\n \\"ipsec end system\\", \\"ipsec tunnel\\", \\"ipsec user\\",\\n \\"timestamping\\", \\"ocsp signing\\", \\"microsoft sgc\\", \\"netscape sgc\\', args=[d.arg(name='usages', type=d.T.array)]), + withUsages(usages): { spec+: { usages: if std.isArray(v=usages) then usages else [usages] } }, + '#withUsagesMixin':: d.fn(help='"usages specifies a set of key usages requested in the issued certificate.\\n\\nRequests for TLS client certificates typically request: \\"digital signature\\", \\"key encipherment\\", \\"client auth\\".\\n\\nRequests for TLS serving certificates typically request: \\"key encipherment\\", \\"digital signature\\", \\"server auth\\".\\n\\nValid values are:\\n \\"signing\\", \\"digital signature\\", \\"content commitment\\",\\n \\"key encipherment\\", \\"key agreement\\", \\"data encipherment\\",\\n \\"cert sign\\", \\"crl sign\\", \\"encipher only\\", \\"decipher only\\", \\"any\\",\\n \\"server auth\\", \\"client auth\\",\\n \\"code signing\\", \\"email protection\\", \\"s/mime\\",\\n \\"ipsec end system\\", \\"ipsec tunnel\\", \\"ipsec user\\",\\n \\"timestamping\\", \\"ocsp signing\\", \\"microsoft sgc\\", \\"netscape sgc\\\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='usages', type=d.T.array)]), + withUsagesMixin(usages): { spec+: { usages+: if std.isArray(v=usages) then usages else [usages] } }, + '#withUsername':: d.fn(help='"username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."', args=[d.arg(name='username', type=d.T.string)]), + withUsername(username): { spec+: { username: username } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestCondition.libsonnet new file mode 100644 index 0000000..fb8a9bd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestCondition.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='certificateSigningRequestCondition', url='', help='"CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object"'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withLastUpdateTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastUpdateTime', type=d.T.string)]), + withLastUpdateTime(lastUpdateTime): { lastUpdateTime: lastUpdateTime }, + '#withMessage':: d.fn(help='"message contains a human readable message with details about the request state"', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help='"reason indicates a brief reason for the request state"', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"type of the condition. Known conditions are \\"Approved\\", \\"Denied\\", and \\"Failed\\".\\n\\nAn \\"Approved\\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\\n\\nA \\"Denied\\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\\n\\nA \\"Failed\\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\\n\\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\\n\\nOnly one condition of a given type is allowed."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestSpec.libsonnet new file mode 100644 index 0000000..34fd3da --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestSpec.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='certificateSigningRequestSpec', url='', help='"CertificateSigningRequestSpec contains the certificate request."'), + '#withExpirationSeconds':: d.fn(help='"expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\\n\\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\\n\\nCertificate signers may not honor this field for various reasons:\\n\\n 1. Old signer that is unaware of the field (such as the in-tree\\n implementations prior to v1.22)\\n 2. Signer whose configured maximum is shorter than the requested duration\\n 3. Signer whose configured minimum is longer than the requested duration\\n\\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes."', args=[d.arg(name='expirationSeconds', type=d.T.integer)]), + withExpirationSeconds(expirationSeconds): { expirationSeconds: expirationSeconds }, + '#withExtra':: d.fn(help='"extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."', args=[d.arg(name='extra', type=d.T.object)]), + withExtra(extra): { extra: extra }, + '#withExtraMixin':: d.fn(help='"extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extra', type=d.T.object)]), + withExtraMixin(extra): { extra+: extra }, + '#withGroups':: d.fn(help='"groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."', args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { groups: if std.isArray(v=groups) then groups else [groups] }, + '#withGroupsMixin':: d.fn(help='"groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { groups+: if std.isArray(v=groups) then groups else [groups] }, + '#withRequest':: d.fn(help='"request contains an x509 certificate signing request encoded in a \\"CERTIFICATE REQUEST\\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded."', args=[d.arg(name='request', type=d.T.string)]), + withRequest(request): { request: request }, + '#withSignerName':: d.fn(help='"signerName indicates the requested signer, and is a qualified name.\\n\\nList/watch requests for CertificateSigningRequests can filter on this field using a \\"spec.signerName=NAME\\" fieldSelector.\\n\\nWell-known Kubernetes signers are:\\n 1. \\"kubernetes.io/kube-apiserver-client\\": issues client certificates that can be used to authenticate to kube-apiserver.\\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \\"csrsigning\\" controller in kube-controller-manager.\\n 2. \\"kubernetes.io/kube-apiserver-client-kubelet\\": issues client certificates that kubelets use to authenticate to kube-apiserver.\\n Requests for this signer can be auto-approved by the \\"csrapproving\\" controller in kube-controller-manager, and can be issued by the \\"csrsigning\\" controller in kube-controller-manager.\\n 3. \\"kubernetes.io/kubelet-serving\\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \\"csrsigning\\" controller in kube-controller-manager.\\n\\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\\n\\nCustom signerNames can also be specified. The signer defines:\\n 1. Trust distribution: how trust (CA bundles) are distributed.\\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\\n 4. Required, permitted, or forbidden key usages / extended key usages.\\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\\n 6. Whether or not requests for CA certificates are allowed."', args=[d.arg(name='signerName', type=d.T.string)]), + withSignerName(signerName): { signerName: signerName }, + '#withUid':: d.fn(help='"uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#withUsages':: d.fn(help='"usages specifies a set of key usages requested in the issued certificate.\\n\\nRequests for TLS client certificates typically request: \\"digital signature\\", \\"key encipherment\\", \\"client auth\\".\\n\\nRequests for TLS serving certificates typically request: \\"key encipherment\\", \\"digital signature\\", \\"server auth\\".\\n\\nValid values are:\\n \\"signing\\", \\"digital signature\\", \\"content commitment\\",\\n \\"key encipherment\\", \\"key agreement\\", \\"data encipherment\\",\\n \\"cert sign\\", \\"crl sign\\", \\"encipher only\\", \\"decipher only\\", \\"any\\",\\n \\"server auth\\", \\"client auth\\",\\n \\"code signing\\", \\"email protection\\", \\"s/mime\\",\\n \\"ipsec end system\\", \\"ipsec tunnel\\", \\"ipsec user\\",\\n \\"timestamping\\", \\"ocsp signing\\", \\"microsoft sgc\\", \\"netscape sgc\\', args=[d.arg(name='usages', type=d.T.array)]), + withUsages(usages): { usages: if std.isArray(v=usages) then usages else [usages] }, + '#withUsagesMixin':: d.fn(help='"usages specifies a set of key usages requested in the issued certificate.\\n\\nRequests for TLS client certificates typically request: \\"digital signature\\", \\"key encipherment\\", \\"client auth\\".\\n\\nRequests for TLS serving certificates typically request: \\"key encipherment\\", \\"digital signature\\", \\"server auth\\".\\n\\nValid values are:\\n \\"signing\\", \\"digital signature\\", \\"content commitment\\",\\n \\"key encipherment\\", \\"key agreement\\", \\"data encipherment\\",\\n \\"cert sign\\", \\"crl sign\\", \\"encipher only\\", \\"decipher only\\", \\"any\\",\\n \\"server auth\\", \\"client auth\\",\\n \\"code signing\\", \\"email protection\\", \\"s/mime\\",\\n \\"ipsec end system\\", \\"ipsec tunnel\\", \\"ipsec user\\",\\n \\"timestamping\\", \\"ocsp signing\\", \\"microsoft sgc\\", \\"netscape sgc\\\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='usages', type=d.T.array)]), + withUsagesMixin(usages): { usages+: if std.isArray(v=usages) then usages else [usages] }, + '#withUsername':: d.fn(help='"username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable."', args=[d.arg(name='username', type=d.T.string)]), + withUsername(username): { username: username }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestStatus.libsonnet new file mode 100644 index 0000000..5da0537 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/certificateSigningRequestStatus.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='certificateSigningRequestStatus', url='', help='"CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate."'), + '#withCertificate':: d.fn(help='"certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\\n\\nIf the certificate signing request is denied, a condition of type \\"Denied\\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \\"Failed\\" is added and this field remains empty.\\n\\nValidation requirements:\\n 1. certificate must contain one or more PEM blocks.\\n 2. All PEM blocks must have the \\"CERTIFICATE\\" label, contain no headers, and the encoded data\\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\\n 3. Non-PEM content may appear before or after the \\"CERTIFICATE\\" PEM blocks and is unvalidated,\\n to allow for explanatory text as described in section 5.2 of RFC7468.\\n\\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\\n\\nThe certificate is encoded in PEM format.\\n\\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\\n\\n base64(\\n -----BEGIN CERTIFICATE-----\\n ...\\n -----END CERTIFICATE-----\\n )"', args=[d.arg(name='certificate', type=d.T.string)]), + withCertificate(certificate): { certificate: certificate }, + '#withConditions':: d.fn(help='"conditions applied to the request. Known conditions are \\"Approved\\", \\"Denied\\", and \\"Failed\\"."', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"conditions applied to the request. Known conditions are \\"Approved\\", \\"Denied\\", and \\"Failed\\"."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/main.libsonnet new file mode 100644 index 0000000..2f3a81b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1/main.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + certificateSigningRequest: (import 'certificateSigningRequest.libsonnet'), + certificateSigningRequestCondition: (import 'certificateSigningRequestCondition.libsonnet'), + certificateSigningRequestSpec: (import 'certificateSigningRequestSpec.libsonnet'), + certificateSigningRequestStatus: (import 'certificateSigningRequestStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/clusterTrustBundle.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/clusterTrustBundle.libsonnet new file mode 100644 index 0000000..939b716 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/clusterTrustBundle.libsonnet @@ -0,0 +1,61 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='clusterTrustBundle', url='', help='"ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\\n\\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\\n\\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ClusterTrustBundle', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'certificates.k8s.io/v1alpha1', + kind: 'ClusterTrustBundle', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ClusterTrustBundleSpec contains the signer and trust anchors."'), + spec: { + '#withSignerName':: d.fn(help="\"signerName indicates the associated signer, if any.\\n\\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=\u003cthe signer name\u003e verb=attest.\\n\\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\\n\\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\\n\\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.\"", args=[d.arg(name='signerName', type=d.T.string)]), + withSignerName(signerName): { spec+: { signerName: signerName } }, + '#withTrustBundle':: d.fn(help='"trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\\n\\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\\n\\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data."', args=[d.arg(name='trustBundle', type=d.T.string)]), + withTrustBundle(trustBundle): { spec+: { trustBundle: trustBundle } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/clusterTrustBundleSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/clusterTrustBundleSpec.libsonnet new file mode 100644 index 0000000..1c3be20 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/clusterTrustBundleSpec.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='clusterTrustBundleSpec', url='', help='"ClusterTrustBundleSpec contains the signer and trust anchors."'), + '#withSignerName':: d.fn(help="\"signerName indicates the associated signer, if any.\\n\\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=\u003cthe signer name\u003e verb=attest.\\n\\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\\n\\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\\n\\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.\"", args=[d.arg(name='signerName', type=d.T.string)]), + withSignerName(signerName): { signerName: signerName }, + '#withTrustBundle':: d.fn(help='"trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\\n\\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\\n\\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data."', args=[d.arg(name='trustBundle', type=d.T.string)]), + withTrustBundle(trustBundle): { trustBundle: trustBundle }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/main.libsonnet new file mode 100644 index 0000000..697fa66 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/certificates/v1alpha1/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1alpha1', url='', help=''), + clusterTrustBundle: (import 'clusterTrustBundle.libsonnet'), + clusterTrustBundleSpec: (import 'clusterTrustBundleSpec.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/main.libsonnet new file mode 100644 index 0000000..cad91a8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='coordination', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/lease.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/lease.libsonnet new file mode 100644 index 0000000..4e89e2b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/lease.libsonnet @@ -0,0 +1,67 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='lease', url='', help='"Lease defines a lease concept."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Lease', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'coordination.k8s.io/v1', + kind: 'Lease', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"LeaseSpec is a specification of a Lease."'), + spec: { + '#withAcquireTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='acquireTime', type=d.T.string)]), + withAcquireTime(acquireTime): { spec+: { acquireTime: acquireTime } }, + '#withHolderIdentity':: d.fn(help='"holderIdentity contains the identity of the holder of a current lease."', args=[d.arg(name='holderIdentity', type=d.T.string)]), + withHolderIdentity(holderIdentity): { spec+: { holderIdentity: holderIdentity } }, + '#withLeaseDurationSeconds':: d.fn(help='"leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime."', args=[d.arg(name='leaseDurationSeconds', type=d.T.integer)]), + withLeaseDurationSeconds(leaseDurationSeconds): { spec+: { leaseDurationSeconds: leaseDurationSeconds } }, + '#withLeaseTransitions':: d.fn(help='"leaseTransitions is the number of transitions of a lease between holders."', args=[d.arg(name='leaseTransitions', type=d.T.integer)]), + withLeaseTransitions(leaseTransitions): { spec+: { leaseTransitions: leaseTransitions } }, + '#withRenewTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='renewTime', type=d.T.string)]), + withRenewTime(renewTime): { spec+: { renewTime: renewTime } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/leaseSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/leaseSpec.libsonnet new file mode 100644 index 0000000..af47be3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/leaseSpec.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='leaseSpec', url='', help='"LeaseSpec is a specification of a Lease."'), + '#withAcquireTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='acquireTime', type=d.T.string)]), + withAcquireTime(acquireTime): { acquireTime: acquireTime }, + '#withHolderIdentity':: d.fn(help='"holderIdentity contains the identity of the holder of a current lease."', args=[d.arg(name='holderIdentity', type=d.T.string)]), + withHolderIdentity(holderIdentity): { holderIdentity: holderIdentity }, + '#withLeaseDurationSeconds':: d.fn(help='"leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime."', args=[d.arg(name='leaseDurationSeconds', type=d.T.integer)]), + withLeaseDurationSeconds(leaseDurationSeconds): { leaseDurationSeconds: leaseDurationSeconds }, + '#withLeaseTransitions':: d.fn(help='"leaseTransitions is the number of transitions of a lease between holders."', args=[d.arg(name='leaseTransitions', type=d.T.integer)]), + withLeaseTransitions(leaseTransitions): { leaseTransitions: leaseTransitions }, + '#withRenewTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='renewTime', type=d.T.string)]), + withRenewTime(renewTime): { renewTime: renewTime }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/main.libsonnet new file mode 100644 index 0000000..882a9e0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/coordination/v1/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + lease: (import 'lease.libsonnet'), + leaseSpec: (import 'leaseSpec.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/main.libsonnet new file mode 100644 index 0000000..54730e5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='core', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/affinity.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/affinity.libsonnet new file mode 100644 index 0000000..a69c04c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/affinity.libsonnet @@ -0,0 +1,42 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='affinity', url='', help='"Affinity is a group of affinity scheduling rules."'), + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/appArmorProfile.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/appArmorProfile.libsonnet new file mode 100644 index 0000000..63d30a1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/appArmorProfile.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='appArmorProfile', url='', help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { localhostProfile: localhostProfile }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/attachedVolume.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/attachedVolume.libsonnet new file mode 100644 index 0000000..aac6b30 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/attachedVolume.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='attachedVolume', url='', help='"AttachedVolume describes a volume attached to a node"'), + '#withDevicePath':: d.fn(help='"DevicePath represents the device path where the volume should be available"', args=[d.arg(name='devicePath', type=d.T.string)]), + withDevicePath(devicePath): { devicePath: devicePath }, + '#withName':: d.fn(help='"Name of the attached volume"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/awsElasticBlockStoreVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/awsElasticBlockStoreVolumeSource.libsonnet new file mode 100644 index 0000000..61e425f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/awsElasticBlockStoreVolumeSource.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='awsElasticBlockStoreVolumeSource', url='', help='"Represents a Persistent Disk resource in AWS.\\n\\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling."'), + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty)."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { partition: partition }, + '#withReadOnly':: d.fn(help='"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withVolumeID':: d.fn(help='"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { volumeID: volumeID }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureDiskVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureDiskVolumeSource.libsonnet new file mode 100644 index 0000000..195149e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureDiskVolumeSource.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='azureDiskVolumeSource', url='', help='"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."'), + '#withCachingMode':: d.fn(help='"cachingMode is the Host Caching mode: None, Read Only, Read Write."', args=[d.arg(name='cachingMode', type=d.T.string)]), + withCachingMode(cachingMode): { cachingMode: cachingMode }, + '#withDiskName':: d.fn(help='"diskName is the Name of the data disk in the blob storage"', args=[d.arg(name='diskName', type=d.T.string)]), + withDiskName(diskName): { diskName: diskName }, + '#withDiskURI':: d.fn(help='"diskURI is the URI of data disk in the blob storage"', args=[d.arg(name='diskURI', type=d.T.string)]), + withDiskURI(diskURI): { diskURI: diskURI }, + '#withFsType':: d.fn(help='"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withKind':: d.fn(help='"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withReadOnly':: d.fn(help='"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureFilePersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureFilePersistentVolumeSource.libsonnet new file mode 100644 index 0000000..38119e4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureFilePersistentVolumeSource.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='azureFilePersistentVolumeSource', url='', help='"AzureFile represents an Azure File Service mount on the host and bind mount to the pod."'), + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withSecretName':: d.fn(help='"secretName is the name of secret that contains Azure Storage Account Name and Key"', args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { secretName: secretName }, + '#withSecretNamespace':: d.fn(help='"secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod"', args=[d.arg(name='secretNamespace', type=d.T.string)]), + withSecretNamespace(secretNamespace): { secretNamespace: secretNamespace }, + '#withShareName':: d.fn(help='"shareName is the azure Share Name"', args=[d.arg(name='shareName', type=d.T.string)]), + withShareName(shareName): { shareName: shareName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureFileVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureFileVolumeSource.libsonnet new file mode 100644 index 0000000..04663ce --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/azureFileVolumeSource.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='azureFileVolumeSource', url='', help='"AzureFile represents an Azure File Service mount on the host and bind mount to the pod."'), + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withSecretName':: d.fn(help='"secretName is the name of secret that contains Azure Storage Account Name and Key"', args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { secretName: secretName }, + '#withShareName':: d.fn(help='"shareName is the azure share Name"', args=[d.arg(name='shareName', type=d.T.string)]), + withShareName(shareName): { shareName: shareName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/binding.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/binding.libsonnet new file mode 100644 index 0000000..3746613 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/binding.libsonnet @@ -0,0 +1,71 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='binding', url='', help='"Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Binding', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'Binding', + } + self.metadata.withName(name=name), + '#target':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + target: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { target+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { target+: { fieldPath: fieldPath } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { target+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { target+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { target+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { target+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { target+: { uid: uid } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/capabilities.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/capabilities.libsonnet new file mode 100644 index 0000000..9714172 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/capabilities.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='capabilities', url='', help='"Adds and removes POSIX capabilities from running containers."'), + '#withAdd':: d.fn(help='"Added capabilities"', args=[d.arg(name='add', type=d.T.array)]), + withAdd(add): { add: if std.isArray(v=add) then add else [add] }, + '#withAddMixin':: d.fn(help='"Added capabilities"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='add', type=d.T.array)]), + withAddMixin(add): { add+: if std.isArray(v=add) then add else [add] }, + '#withDrop':: d.fn(help='"Removed capabilities"', args=[d.arg(name='drop', type=d.T.array)]), + withDrop(drop): { drop: if std.isArray(v=drop) then drop else [drop] }, + '#withDropMixin':: d.fn(help='"Removed capabilities"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='drop', type=d.T.array)]), + withDropMixin(drop): { drop+: if std.isArray(v=drop) then drop else [drop] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cephFSPersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cephFSPersistentVolumeSource.libsonnet new file mode 100644 index 0000000..1215a07 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cephFSPersistentVolumeSource.libsonnet @@ -0,0 +1,25 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='cephFSPersistentVolumeSource', url='', help='"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."'), + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretRef+: { namespace: namespace } }, + }, + '#withMonitors':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { monitors: if std.isArray(v=monitors) then monitors else [monitors] }, + '#withMonitorsMixin':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { monitors+: if std.isArray(v=monitors) then monitors else [monitors] }, + '#withPath':: d.fn(help='"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withSecretFile':: d.fn(help='"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='secretFile', type=d.T.string)]), + withSecretFile(secretFile): { secretFile: secretFile }, + '#withUser':: d.fn(help='"user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { user: user }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cephFSVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cephFSVolumeSource.libsonnet new file mode 100644 index 0000000..d29831b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cephFSVolumeSource.libsonnet @@ -0,0 +1,23 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='cephFSVolumeSource', url='', help='"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."'), + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + }, + '#withMonitors':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { monitors: if std.isArray(v=monitors) then monitors else [monitors] }, + '#withMonitorsMixin':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { monitors+: if std.isArray(v=monitors) then monitors else [monitors] }, + '#withPath':: d.fn(help='"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withSecretFile':: d.fn(help='"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='secretFile', type=d.T.string)]), + withSecretFile(secretFile): { secretFile: secretFile }, + '#withUser':: d.fn(help='"user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { user: user }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cinderPersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cinderPersistentVolumeSource.libsonnet new file mode 100644 index 0000000..ca00d72 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cinderPersistentVolumeSource.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='cinderPersistentVolumeSource', url='', help='"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."'), + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretRef+: { namespace: namespace } }, + }, + '#withFsType':: d.fn(help='"fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withVolumeID':: d.fn(help='"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { volumeID: volumeID }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cinderVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cinderVolumeSource.libsonnet new file mode 100644 index 0000000..7cbea35 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/cinderVolumeSource.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='cinderVolumeSource', url='', help='"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."'), + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withVolumeID':: d.fn(help='"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { volumeID: volumeID }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/claimSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/claimSource.libsonnet new file mode 100644 index 0000000..8753faf --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/claimSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='claimSource', url='', help='"ClaimSource describes a reference to a ResourceClaim.\\n\\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value."'), + '#withResourceClaimName':: d.fn(help='"ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod."', args=[d.arg(name='resourceClaimName', type=d.T.string)]), + withResourceClaimName(resourceClaimName): { resourceClaimName: resourceClaimName }, + '#withResourceClaimTemplateName':: d.fn(help='"ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\\n\\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\\n\\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim."', args=[d.arg(name='resourceClaimTemplateName', type=d.T.string)]), + withResourceClaimTemplateName(resourceClaimTemplateName): { resourceClaimTemplateName: resourceClaimTemplateName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/clientIPConfig.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/clientIPConfig.libsonnet new file mode 100644 index 0000000..86568e1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/clientIPConfig.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='clientIPConfig', url='', help='"ClientIPConfig represents the configurations of Client IP based session affinity."'), + '#withTimeoutSeconds':: d.fn(help='"timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \\"ClientIP\\". Default value is 10800(for 3 hours)."', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { timeoutSeconds: timeoutSeconds }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/clusterTrustBundleProjection.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/clusterTrustBundleProjection.libsonnet new file mode 100644 index 0000000..0aa0424 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/clusterTrustBundleProjection.libsonnet @@ -0,0 +1,25 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='clusterTrustBundleProjection', url='', help='"ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem."'), + '#labelSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + labelSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { labelSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { labelSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { labelSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { labelSelector+: { matchLabels+: matchLabels } }, + }, + '#withName':: d.fn(help='"Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withOptional':: d.fn(help="\"If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.\"", args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { optional: optional }, + '#withPath':: d.fn(help='"Relative path from the volume root to write the bundle."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withSignerName':: d.fn(help='"Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated."', args=[d.arg(name='signerName', type=d.T.string)]), + withSignerName(signerName): { signerName: signerName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/componentCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/componentCondition.libsonnet new file mode 100644 index 0000000..0b72c47 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/componentCondition.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='componentCondition', url='', help='"Information about the condition of a component."'), + '#withError':: d.fn(help='"Condition error code for a component. For example, a health check error code."', args=[d.arg(name='err', type=d.T.string)]), + withError(err): { 'error': err }, + '#withMessage':: d.fn(help='"Message about the condition for a component. For example, information about a health check."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withType':: d.fn(help='"Type of condition for a component. Valid value: \\"Healthy\\', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/componentStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/componentStatus.libsonnet new file mode 100644 index 0000000..3fb5e6e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/componentStatus.libsonnet @@ -0,0 +1,58 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='componentStatus', url='', help='"ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ComponentStatus', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'ComponentStatus', + } + self.metadata.withName(name=name), + '#withConditions':: d.fn(help='"List of component conditions observed"', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"List of component conditions observed"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMap.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMap.libsonnet new file mode 100644 index 0000000..126d23c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMap.libsonnet @@ -0,0 +1,64 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='configMap', url='', help='"ConfigMap holds configuration data for pods to consume."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ConfigMap', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'ConfigMap', + } + self.metadata.withName(name=name), + '#withBinaryData':: d.fn(help="\"BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.\"", args=[d.arg(name='binaryData', type=d.T.object)]), + withBinaryData(binaryData): { binaryData: binaryData }, + '#withBinaryDataMixin':: d.fn(help="\"BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='binaryData', type=d.T.object)]), + withBinaryDataMixin(binaryData): { binaryData+: binaryData }, + '#withData':: d.fn(help="\"Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.\"", args=[d.arg(name='data', type=d.T.object)]), + withData(data): { data: data }, + '#withDataMixin':: d.fn(help="\"Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='data', type=d.T.object)]), + withDataMixin(data): { data+: data }, + '#withImmutable':: d.fn(help='"Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil."', args=[d.arg(name='immutable', type=d.T.boolean)]), + withImmutable(immutable): { immutable: immutable }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapEnvSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapEnvSource.libsonnet new file mode 100644 index 0000000..0340986 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapEnvSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='configMapEnvSource', url='', help="\"ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\\n\\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.\""), + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withOptional':: d.fn(help='"Specify whether the ConfigMap must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { optional: optional }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapKeySelector.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapKeySelector.libsonnet new file mode 100644 index 0000000..d53547a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapKeySelector.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='configMapKeySelector', url='', help='"Selects a key from a ConfigMap."'), + '#withKey':: d.fn(help='"The key to select."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withOptional':: d.fn(help='"Specify whether the ConfigMap or its key must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { optional: optional }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapNodeConfigSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapNodeConfigSource.libsonnet new file mode 100644 index 0000000..f3271d8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapNodeConfigSource.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='configMapNodeConfigSource', url='', help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { kubeletConfigKey: kubeletConfigKey }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { resourceVersion: resourceVersion }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapProjection.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapProjection.libsonnet new file mode 100644 index 0000000..34f173a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapProjection.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='configMapProjection', url='', help="\"Adapts a ConfigMap into a projected volume.\\n\\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.\""), + '#withItems':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"", args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { items: if std.isArray(v=items) then items else [items] }, + '#withItemsMixin':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { items+: if std.isArray(v=items) then items else [items] }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withOptional':: d.fn(help='"optional specify whether the ConfigMap or its keys must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { optional: optional }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapVolumeSource.libsonnet new file mode 100644 index 0000000..3dfd8a9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/configMapVolumeSource.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='configMapVolumeSource', url='', help="\"Adapts a ConfigMap into a volume.\\n\\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.\""), + '#withDefaultMode':: d.fn(help='"defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='defaultMode', type=d.T.integer)]), + withDefaultMode(defaultMode): { defaultMode: defaultMode }, + '#withItems':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"", args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { items: if std.isArray(v=items) then items else [items] }, + '#withItemsMixin':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { items+: if std.isArray(v=items) then items else [items] }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withOptional':: d.fn(help='"optional specify whether the ConfigMap or its keys must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { optional: optional }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/container.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/container.libsonnet new file mode 100644 index 0000000..c989ded --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/container.libsonnet @@ -0,0 +1,367 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='container', url='', help='"A single application container that you want to run within a pod."'), + '#lifecycle':: d.obj(help='"Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted."'), + lifecycle: { + '#postStart':: d.obj(help='"LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified."'), + postStart: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { lifecycle+: { postStart+: { exec+: { command: if std.isArray(v=command) then command else [command] } } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { lifecycle+: { postStart+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { lifecycle+: { postStart+: { httpGet+: { host: host } } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { lifecycle+: { postStart+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { lifecycle+: { postStart+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { lifecycle+: { postStart+: { httpGet+: { path: path } } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { lifecycle+: { postStart+: { httpGet+: { port: port } } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { lifecycle+: { postStart+: { httpGet+: { scheme: scheme } } } }, + }, + '#sleep':: d.obj(help='"SleepAction describes a \\"sleep\\" action."'), + sleep: { + '#withSeconds':: d.fn(help='"Seconds is the number of seconds to sleep."', args=[d.arg(name='seconds', type=d.T.integer)]), + withSeconds(seconds): { lifecycle+: { postStart+: { sleep+: { seconds: seconds } } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { lifecycle+: { postStart+: { tcpSocket+: { host: host } } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { lifecycle+: { postStart+: { tcpSocket+: { port: port } } } }, + }, + }, + '#preStop':: d.obj(help='"LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified."'), + preStop: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { lifecycle+: { preStop+: { exec+: { command: if std.isArray(v=command) then command else [command] } } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { lifecycle+: { preStop+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { lifecycle+: { preStop+: { httpGet+: { host: host } } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { lifecycle+: { preStop+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { lifecycle+: { preStop+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { lifecycle+: { preStop+: { httpGet+: { path: path } } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { lifecycle+: { preStop+: { httpGet+: { port: port } } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { lifecycle+: { preStop+: { httpGet+: { scheme: scheme } } } }, + }, + '#sleep':: d.obj(help='"SleepAction describes a \\"sleep\\" action."'), + sleep: { + '#withSeconds':: d.fn(help='"Seconds is the number of seconds to sleep."', args=[d.arg(name='seconds', type=d.T.integer)]), + withSeconds(seconds): { lifecycle+: { preStop+: { sleep+: { seconds: seconds } } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { lifecycle+: { preStop+: { tcpSocket+: { host: host } } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { lifecycle+: { preStop+: { tcpSocket+: { port: port } } } }, + }, + }, + }, + '#livenessProbe':: d.obj(help='"Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic."'), + livenessProbe: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { livenessProbe+: { exec+: { command: if std.isArray(v=command) then command else [command] } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { livenessProbe+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } }, + }, + '#grpc':: d.obj(help=''), + grpc: { + '#withPort':: d.fn(help='"Port number of the gRPC service. Number must be in the range 1 to 65535."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { livenessProbe+: { grpc+: { port: port } } }, + '#withService':: d.fn(help='"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\\n\\nIf this is not specified, the default behavior is defined by gRPC."', args=[d.arg(name='service', type=d.T.string)]), + withService(service): { livenessProbe+: { grpc+: { service: service } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { livenessProbe+: { httpGet+: { host: host } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { livenessProbe+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { livenessProbe+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { livenessProbe+: { httpGet+: { path: path } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { livenessProbe+: { httpGet+: { port: port } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { livenessProbe+: { httpGet+: { scheme: scheme } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { livenessProbe+: { tcpSocket+: { host: host } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { livenessProbe+: { tcpSocket+: { port: port } } }, + }, + '#withFailureThreshold':: d.fn(help='"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."', args=[d.arg(name='failureThreshold', type=d.T.integer)]), + withFailureThreshold(failureThreshold): { livenessProbe+: { failureThreshold: failureThreshold } }, + '#withInitialDelaySeconds':: d.fn(help='"Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='initialDelaySeconds', type=d.T.integer)]), + withInitialDelaySeconds(initialDelaySeconds): { livenessProbe+: { initialDelaySeconds: initialDelaySeconds } }, + '#withPeriodSeconds':: d.fn(help='"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."', args=[d.arg(name='periodSeconds', type=d.T.integer)]), + withPeriodSeconds(periodSeconds): { livenessProbe+: { periodSeconds: periodSeconds } }, + '#withSuccessThreshold':: d.fn(help='"Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1."', args=[d.arg(name='successThreshold', type=d.T.integer)]), + withSuccessThreshold(successThreshold): { livenessProbe+: { successThreshold: successThreshold } }, + '#withTerminationGracePeriodSeconds':: d.fn(help="\"Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\"", args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { livenessProbe+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } }, + '#withTimeoutSeconds':: d.fn(help='"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { livenessProbe+: { timeoutSeconds: timeoutSeconds } }, + }, + '#readinessProbe':: d.obj(help='"Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic."'), + readinessProbe: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { readinessProbe+: { exec+: { command: if std.isArray(v=command) then command else [command] } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { readinessProbe+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } }, + }, + '#grpc':: d.obj(help=''), + grpc: { + '#withPort':: d.fn(help='"Port number of the gRPC service. Number must be in the range 1 to 65535."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { readinessProbe+: { grpc+: { port: port } } }, + '#withService':: d.fn(help='"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\\n\\nIf this is not specified, the default behavior is defined by gRPC."', args=[d.arg(name='service', type=d.T.string)]), + withService(service): { readinessProbe+: { grpc+: { service: service } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { readinessProbe+: { httpGet+: { host: host } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { readinessProbe+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { readinessProbe+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { readinessProbe+: { httpGet+: { path: path } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { readinessProbe+: { httpGet+: { port: port } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { readinessProbe+: { httpGet+: { scheme: scheme } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { readinessProbe+: { tcpSocket+: { host: host } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { readinessProbe+: { tcpSocket+: { port: port } } }, + }, + '#withFailureThreshold':: d.fn(help='"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."', args=[d.arg(name='failureThreshold', type=d.T.integer)]), + withFailureThreshold(failureThreshold): { readinessProbe+: { failureThreshold: failureThreshold } }, + '#withInitialDelaySeconds':: d.fn(help='"Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='initialDelaySeconds', type=d.T.integer)]), + withInitialDelaySeconds(initialDelaySeconds): { readinessProbe+: { initialDelaySeconds: initialDelaySeconds } }, + '#withPeriodSeconds':: d.fn(help='"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."', args=[d.arg(name='periodSeconds', type=d.T.integer)]), + withPeriodSeconds(periodSeconds): { readinessProbe+: { periodSeconds: periodSeconds } }, + '#withSuccessThreshold':: d.fn(help='"Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1."', args=[d.arg(name='successThreshold', type=d.T.integer)]), + withSuccessThreshold(successThreshold): { readinessProbe+: { successThreshold: successThreshold } }, + '#withTerminationGracePeriodSeconds':: d.fn(help="\"Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\"", args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { readinessProbe+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } }, + '#withTimeoutSeconds':: d.fn(help='"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { readinessProbe+: { timeoutSeconds: timeoutSeconds } }, + }, + '#resources':: d.obj(help='"ResourceRequirements describes the compute resource requirements."'), + resources: { + '#withClaims':: d.fn(help='"Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable. It can only be set for containers."', args=[d.arg(name='claims', type=d.T.array)]), + withClaims(claims): { resources+: { claims: if std.isArray(v=claims) then claims else [claims] } }, + '#withClaimsMixin':: d.fn(help='"Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable. It can only be set for containers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='claims', type=d.T.array)]), + withClaimsMixin(claims): { resources+: { claims+: if std.isArray(v=claims) then claims else [claims] } }, + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { resources+: { limits: limits } }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { resources+: { limits+: limits } }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { resources+: { requests: requests } }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { resources+: { requests+: requests } }, + }, + '#securityContext':: d.obj(help='"SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { securityContext+: { appArmorProfile+: { type: type } } }, + }, + '#capabilities':: d.obj(help='"Adds and removes POSIX capabilities from running containers."'), + capabilities: { + '#withAdd':: d.fn(help='"Added capabilities"', args=[d.arg(name='add', type=d.T.array)]), + withAdd(add): { securityContext+: { capabilities+: { add: if std.isArray(v=add) then add else [add] } } }, + '#withAddMixin':: d.fn(help='"Added capabilities"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='add', type=d.T.array)]), + withAddMixin(add): { securityContext+: { capabilities+: { add+: if std.isArray(v=add) then add else [add] } } }, + '#withDrop':: d.fn(help='"Removed capabilities"', args=[d.arg(name='drop', type=d.T.array)]), + withDrop(drop): { securityContext+: { capabilities+: { drop: if std.isArray(v=drop) then drop else [drop] } } }, + '#withDropMixin':: d.fn(help='"Removed capabilities"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='drop', type=d.T.array)]), + withDropMixin(drop): { securityContext+: { capabilities+: { drop+: if std.isArray(v=drop) then drop else [drop] } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { securityContext+: { seLinuxOptions+: { level: level } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { securityContext+: { seLinuxOptions+: { role: role } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { securityContext+: { seLinuxOptions+: { type: type } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { securityContext+: { seLinuxOptions+: { user: user } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { securityContext+: { seccompProfile+: { type: type } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } }, + }, + '#withAllowPrivilegeEscalation':: d.fn(help='"AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='allowPrivilegeEscalation', type=d.T.boolean)]), + withAllowPrivilegeEscalation(allowPrivilegeEscalation): { securityContext+: { allowPrivilegeEscalation: allowPrivilegeEscalation } }, + '#withPrivileged':: d.fn(help='"Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='privileged', type=d.T.boolean)]), + withPrivileged(privileged): { securityContext+: { privileged: privileged } }, + '#withProcMount':: d.fn(help='"procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='procMount', type=d.T.string)]), + withProcMount(procMount): { securityContext+: { procMount: procMount } }, + '#withReadOnlyRootFilesystem':: d.fn(help='"Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='readOnlyRootFilesystem', type=d.T.boolean)]), + withReadOnlyRootFilesystem(readOnlyRootFilesystem): { securityContext+: { readOnlyRootFilesystem: readOnlyRootFilesystem } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { securityContext+: { runAsGroup: runAsGroup } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { securityContext+: { runAsNonRoot: runAsNonRoot } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { securityContext+: { runAsUser: runAsUser } }, + }, + '#startupProbe':: d.obj(help='"Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic."'), + startupProbe: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { startupProbe+: { exec+: { command: if std.isArray(v=command) then command else [command] } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { startupProbe+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } }, + }, + '#grpc':: d.obj(help=''), + grpc: { + '#withPort':: d.fn(help='"Port number of the gRPC service. Number must be in the range 1 to 65535."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { startupProbe+: { grpc+: { port: port } } }, + '#withService':: d.fn(help='"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\\n\\nIf this is not specified, the default behavior is defined by gRPC."', args=[d.arg(name='service', type=d.T.string)]), + withService(service): { startupProbe+: { grpc+: { service: service } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { startupProbe+: { httpGet+: { host: host } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { startupProbe+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { startupProbe+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { startupProbe+: { httpGet+: { path: path } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { startupProbe+: { httpGet+: { port: port } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { startupProbe+: { httpGet+: { scheme: scheme } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { startupProbe+: { tcpSocket+: { host: host } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { startupProbe+: { tcpSocket+: { port: port } } }, + }, + '#withFailureThreshold':: d.fn(help='"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."', args=[d.arg(name='failureThreshold', type=d.T.integer)]), + withFailureThreshold(failureThreshold): { startupProbe+: { failureThreshold: failureThreshold } }, + '#withInitialDelaySeconds':: d.fn(help='"Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='initialDelaySeconds', type=d.T.integer)]), + withInitialDelaySeconds(initialDelaySeconds): { startupProbe+: { initialDelaySeconds: initialDelaySeconds } }, + '#withPeriodSeconds':: d.fn(help='"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."', args=[d.arg(name='periodSeconds', type=d.T.integer)]), + withPeriodSeconds(periodSeconds): { startupProbe+: { periodSeconds: periodSeconds } }, + '#withSuccessThreshold':: d.fn(help='"Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1."', args=[d.arg(name='successThreshold', type=d.T.integer)]), + withSuccessThreshold(successThreshold): { startupProbe+: { successThreshold: successThreshold } }, + '#withTerminationGracePeriodSeconds':: d.fn(help="\"Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\"", args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { startupProbe+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } }, + '#withTimeoutSeconds':: d.fn(help='"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { startupProbe+: { timeoutSeconds: timeoutSeconds } }, + }, + '#withArgs':: d.fn(help="\"Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will produce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\"", args=[d.arg(name='args', type=d.T.array)]), + withArgs(args): { args: if std.isArray(v=args) then args else [args] }, + '#withArgsMixin':: d.fn(help="\"Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will produce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='args', type=d.T.array)]), + withArgsMixin(args): { args+: if std.isArray(v=args) then args else [args] }, + '#withCommand':: d.fn(help="\"Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will produce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { command: if std.isArray(v=command) then command else [command] }, + '#withCommandMixin':: d.fn(help="\"Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will produce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { command+: if std.isArray(v=command) then command else [command] }, + '#withEnv':: d.fn(help='"List of environment variables to set in the container. Cannot be updated."', args=[d.arg(name='env', type=d.T.array)]), + withEnv(env): { env: if std.isArray(v=env) then env else [env] }, + '#withEnvFrom':: d.fn(help='"List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated."', args=[d.arg(name='envFrom', type=d.T.array)]), + withEnvFrom(envFrom): { envFrom: if std.isArray(v=envFrom) then envFrom else [envFrom] }, + '#withEnvFromMixin':: d.fn(help='"List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='envFrom', type=d.T.array)]), + withEnvFromMixin(envFrom): { envFrom+: if std.isArray(v=envFrom) then envFrom else [envFrom] }, + '#withEnvMixin':: d.fn(help='"List of environment variables to set in the container. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='env', type=d.T.array)]), + withEnvMixin(env): { env+: if std.isArray(v=env) then env else [env] }, + '#withImage':: d.fn(help='"Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets."', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { image: image }, + '#withImagePullPolicy':: d.fn(help='"Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images"', args=[d.arg(name='imagePullPolicy', type=d.T.string)]), + withImagePullPolicy(imagePullPolicy): { imagePullPolicy: imagePullPolicy }, + '#withName':: d.fn(help='"Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withPorts':: d.fn(help='"List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \\"0.0.0.0\\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated."', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { ports: if std.isArray(v=ports) then ports else [ports] }, + '#withPortsMixin':: d.fn(help='"List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \\"0.0.0.0\\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { ports+: if std.isArray(v=ports) then ports else [ports] }, + '#withResizePolicy':: d.fn(help='"Resources resize policy for the container."', args=[d.arg(name='resizePolicy', type=d.T.array)]), + withResizePolicy(resizePolicy): { resizePolicy: if std.isArray(v=resizePolicy) then resizePolicy else [resizePolicy] }, + '#withResizePolicyMixin':: d.fn(help='"Resources resize policy for the container."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resizePolicy', type=d.T.array)]), + withResizePolicyMixin(resizePolicy): { resizePolicy+: if std.isArray(v=resizePolicy) then resizePolicy else [resizePolicy] }, + '#withRestartPolicy':: d.fn(help="\"RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \\\"Always\\\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \\\"Always\\\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \\\"Always\\\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \\\"sidecar\\\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.\"", args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { restartPolicy: restartPolicy }, + '#withStdin':: d.fn(help='"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false."', args=[d.arg(name='stdin', type=d.T.boolean)]), + withStdin(stdin): { stdin: stdin }, + '#withStdinOnce':: d.fn(help='"Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false"', args=[d.arg(name='stdinOnce', type=d.T.boolean)]), + withStdinOnce(stdinOnce): { stdinOnce: stdinOnce }, + '#withTerminationMessagePath':: d.fn(help="\"Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.\"", args=[d.arg(name='terminationMessagePath', type=d.T.string)]), + withTerminationMessagePath(terminationMessagePath): { terminationMessagePath: terminationMessagePath }, + '#withTerminationMessagePolicy':: d.fn(help='"Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated."', args=[d.arg(name='terminationMessagePolicy', type=d.T.string)]), + withTerminationMessagePolicy(terminationMessagePolicy): { terminationMessagePolicy: terminationMessagePolicy }, + '#withTty':: d.fn(help="\"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.\"", args=[d.arg(name='tty', type=d.T.boolean)]), + withTty(tty): { tty: tty }, + '#withVolumeDevices':: d.fn(help='"volumeDevices is the list of block devices to be used by the container."', args=[d.arg(name='volumeDevices', type=d.T.array)]), + withVolumeDevices(volumeDevices): { volumeDevices: if std.isArray(v=volumeDevices) then volumeDevices else [volumeDevices] }, + '#withVolumeDevicesMixin':: d.fn(help='"volumeDevices is the list of block devices to be used by the container."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeDevices', type=d.T.array)]), + withVolumeDevicesMixin(volumeDevices): { volumeDevices+: if std.isArray(v=volumeDevices) then volumeDevices else [volumeDevices] }, + '#withVolumeMounts':: d.fn(help="\"Pod volumes to mount into the container's filesystem. Cannot be updated.\"", args=[d.arg(name='volumeMounts', type=d.T.array)]), + withVolumeMounts(volumeMounts): { volumeMounts: if std.isArray(v=volumeMounts) then volumeMounts else [volumeMounts] }, + '#withVolumeMountsMixin':: d.fn(help="\"Pod volumes to mount into the container's filesystem. Cannot be updated.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='volumeMounts', type=d.T.array)]), + withVolumeMountsMixin(volumeMounts): { volumeMounts+: if std.isArray(v=volumeMounts) then volumeMounts else [volumeMounts] }, + '#withWorkingDir':: d.fn(help="\"Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.\"", args=[d.arg(name='workingDir', type=d.T.string)]), + withWorkingDir(workingDir): { workingDir: workingDir }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerImage.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerImage.libsonnet new file mode 100644 index 0000000..d5dfb1d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerImage.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerImage', url='', help='"Describe a container image"'), + '#withNames':: d.fn(help='"Names by which this image is known. e.g. [\\"kubernetes.example/hyperkube:v1.0.7\\", \\"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\\"]"', args=[d.arg(name='names', type=d.T.array)]), + withNames(names): { names: if std.isArray(v=names) then names else [names] }, + '#withNamesMixin':: d.fn(help='"Names by which this image is known. e.g. [\\"kubernetes.example/hyperkube:v1.0.7\\", \\"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\\"]"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='names', type=d.T.array)]), + withNamesMixin(names): { names+: if std.isArray(v=names) then names else [names] }, + '#withSizeBytes':: d.fn(help='"The size of the image in bytes."', args=[d.arg(name='sizeBytes', type=d.T.integer)]), + withSizeBytes(sizeBytes): { sizeBytes: sizeBytes }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerPort.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerPort.libsonnet new file mode 100644 index 0000000..6904620 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerPort.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerPort', url='', help='"ContainerPort represents a network port in a single container."'), + '#withContainerPort':: d.fn(help="\"Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536.\"", args=[d.arg(name='containerPort', type=d.T.integer)]), + withContainerPort(containerPort): { containerPort: containerPort }, + '#withHostIP':: d.fn(help='"What host IP to bind the external port to."', args=[d.arg(name='hostIP', type=d.T.string)]), + withHostIP(hostIP): { hostIP: hostIP }, + '#withHostPort':: d.fn(help='"Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this."', args=[d.arg(name='hostPort', type=d.T.integer)]), + withHostPort(hostPort): { hostPort: hostPort }, + '#withName':: d.fn(help='"If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withProtocol':: d.fn(help='"Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \\"TCP\\"."', args=[d.arg(name='protocol', type=d.T.string)]), + withProtocol(protocol): { protocol: protocol }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerResizePolicy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerResizePolicy.libsonnet new file mode 100644 index 0000000..430d614 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerResizePolicy.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerResizePolicy', url='', help='"ContainerResizePolicy represents resource resize policy for the container."'), + '#withResourceName':: d.fn(help='"Name of the resource to which this resource resize policy applies. Supported values: cpu, memory."', args=[d.arg(name='resourceName', type=d.T.string)]), + withResourceName(resourceName): { resourceName: resourceName }, + '#withRestartPolicy':: d.fn(help='"Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired."', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { restartPolicy: restartPolicy }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerState.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerState.libsonnet new file mode 100644 index 0000000..0a29b35 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerState.libsonnet @@ -0,0 +1,35 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerState', url='', help='"ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting."'), + '#running':: d.obj(help='"ContainerStateRunning is a running state of a container."'), + running: { + '#withStartedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startedAt', type=d.T.string)]), + withStartedAt(startedAt): { running+: { startedAt: startedAt } }, + }, + '#terminated':: d.obj(help='"ContainerStateTerminated is a terminated state of a container."'), + terminated: { + '#withContainerID':: d.fn(help="\"Container's ID in the format '\u003ctype\u003e://\u003ccontainer_id\u003e'\"", args=[d.arg(name='containerID', type=d.T.string)]), + withContainerID(containerID): { terminated+: { containerID: containerID } }, + '#withExitCode':: d.fn(help='"Exit status from the last termination of the container"', args=[d.arg(name='exitCode', type=d.T.integer)]), + withExitCode(exitCode): { terminated+: { exitCode: exitCode } }, + '#withFinishedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='finishedAt', type=d.T.string)]), + withFinishedAt(finishedAt): { terminated+: { finishedAt: finishedAt } }, + '#withMessage':: d.fn(help='"Message regarding the last termination of the container"', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { terminated+: { message: message } }, + '#withReason':: d.fn(help='"(brief) reason from the last termination of the container"', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { terminated+: { reason: reason } }, + '#withSignal':: d.fn(help='"Signal from the last termination of the container"', args=[d.arg(name='signal', type=d.T.integer)]), + withSignal(signal): { terminated+: { signal: signal } }, + '#withStartedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startedAt', type=d.T.string)]), + withStartedAt(startedAt): { terminated+: { startedAt: startedAt } }, + }, + '#waiting':: d.obj(help='"ContainerStateWaiting is a waiting state of a container."'), + waiting: { + '#withMessage':: d.fn(help='"Message regarding why the container is not yet running."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { waiting+: { message: message } }, + '#withReason':: d.fn(help='"(brief) reason the container is not yet running."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { waiting+: { reason: reason } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateRunning.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateRunning.libsonnet new file mode 100644 index 0000000..a75ab88 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateRunning.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerStateRunning', url='', help='"ContainerStateRunning is a running state of a container."'), + '#withStartedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startedAt', type=d.T.string)]), + withStartedAt(startedAt): { startedAt: startedAt }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateTerminated.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateTerminated.libsonnet new file mode 100644 index 0000000..f0e13ba --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateTerminated.libsonnet @@ -0,0 +1,20 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerStateTerminated', url='', help='"ContainerStateTerminated is a terminated state of a container."'), + '#withContainerID':: d.fn(help="\"Container's ID in the format '\u003ctype\u003e://\u003ccontainer_id\u003e'\"", args=[d.arg(name='containerID', type=d.T.string)]), + withContainerID(containerID): { containerID: containerID }, + '#withExitCode':: d.fn(help='"Exit status from the last termination of the container"', args=[d.arg(name='exitCode', type=d.T.integer)]), + withExitCode(exitCode): { exitCode: exitCode }, + '#withFinishedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='finishedAt', type=d.T.string)]), + withFinishedAt(finishedAt): { finishedAt: finishedAt }, + '#withMessage':: d.fn(help='"Message regarding the last termination of the container"', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help='"(brief) reason from the last termination of the container"', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withSignal':: d.fn(help='"Signal from the last termination of the container"', args=[d.arg(name='signal', type=d.T.integer)]), + withSignal(signal): { signal: signal }, + '#withStartedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startedAt', type=d.T.string)]), + withStartedAt(startedAt): { startedAt: startedAt }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateWaiting.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateWaiting.libsonnet new file mode 100644 index 0000000..52af178 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStateWaiting.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerStateWaiting', url='', help='"ContainerStateWaiting is a waiting state of a container."'), + '#withMessage':: d.fn(help='"Message regarding why the container is not yet running."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help='"(brief) reason the container is not yet running."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStatus.libsonnet new file mode 100644 index 0000000..4d7eb00 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/containerStatus.libsonnet @@ -0,0 +1,107 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='containerStatus', url='', help='"ContainerStatus contains details for the current status of this container."'), + '#lastState':: d.obj(help='"ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting."'), + lastState: { + '#running':: d.obj(help='"ContainerStateRunning is a running state of a container."'), + running: { + '#withStartedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startedAt', type=d.T.string)]), + withStartedAt(startedAt): { lastState+: { running+: { startedAt: startedAt } } }, + }, + '#terminated':: d.obj(help='"ContainerStateTerminated is a terminated state of a container."'), + terminated: { + '#withContainerID':: d.fn(help="\"Container's ID in the format '\u003ctype\u003e://\u003ccontainer_id\u003e'\"", args=[d.arg(name='containerID', type=d.T.string)]), + withContainerID(containerID): { lastState+: { terminated+: { containerID: containerID } } }, + '#withExitCode':: d.fn(help='"Exit status from the last termination of the container"', args=[d.arg(name='exitCode', type=d.T.integer)]), + withExitCode(exitCode): { lastState+: { terminated+: { exitCode: exitCode } } }, + '#withFinishedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='finishedAt', type=d.T.string)]), + withFinishedAt(finishedAt): { lastState+: { terminated+: { finishedAt: finishedAt } } }, + '#withMessage':: d.fn(help='"Message regarding the last termination of the container"', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { lastState+: { terminated+: { message: message } } }, + '#withReason':: d.fn(help='"(brief) reason from the last termination of the container"', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { lastState+: { terminated+: { reason: reason } } }, + '#withSignal':: d.fn(help='"Signal from the last termination of the container"', args=[d.arg(name='signal', type=d.T.integer)]), + withSignal(signal): { lastState+: { terminated+: { signal: signal } } }, + '#withStartedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startedAt', type=d.T.string)]), + withStartedAt(startedAt): { lastState+: { terminated+: { startedAt: startedAt } } }, + }, + '#waiting':: d.obj(help='"ContainerStateWaiting is a waiting state of a container."'), + waiting: { + '#withMessage':: d.fn(help='"Message regarding why the container is not yet running."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { lastState+: { waiting+: { message: message } } }, + '#withReason':: d.fn(help='"(brief) reason the container is not yet running."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { lastState+: { waiting+: { reason: reason } } }, + }, + }, + '#resources':: d.obj(help='"ResourceRequirements describes the compute resource requirements."'), + resources: { + '#withClaims':: d.fn(help='"Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable. It can only be set for containers."', args=[d.arg(name='claims', type=d.T.array)]), + withClaims(claims): { resources+: { claims: if std.isArray(v=claims) then claims else [claims] } }, + '#withClaimsMixin':: d.fn(help='"Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable. It can only be set for containers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='claims', type=d.T.array)]), + withClaimsMixin(claims): { resources+: { claims+: if std.isArray(v=claims) then claims else [claims] } }, + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { resources+: { limits: limits } }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { resources+: { limits+: limits } }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { resources+: { requests: requests } }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { resources+: { requests+: requests } }, + }, + '#state':: d.obj(help='"ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting."'), + state: { + '#running':: d.obj(help='"ContainerStateRunning is a running state of a container."'), + running: { + '#withStartedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startedAt', type=d.T.string)]), + withStartedAt(startedAt): { state+: { running+: { startedAt: startedAt } } }, + }, + '#terminated':: d.obj(help='"ContainerStateTerminated is a terminated state of a container."'), + terminated: { + '#withContainerID':: d.fn(help="\"Container's ID in the format '\u003ctype\u003e://\u003ccontainer_id\u003e'\"", args=[d.arg(name='containerID', type=d.T.string)]), + withContainerID(containerID): { state+: { terminated+: { containerID: containerID } } }, + '#withExitCode':: d.fn(help='"Exit status from the last termination of the container"', args=[d.arg(name='exitCode', type=d.T.integer)]), + withExitCode(exitCode): { state+: { terminated+: { exitCode: exitCode } } }, + '#withFinishedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='finishedAt', type=d.T.string)]), + withFinishedAt(finishedAt): { state+: { terminated+: { finishedAt: finishedAt } } }, + '#withMessage':: d.fn(help='"Message regarding the last termination of the container"', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { state+: { terminated+: { message: message } } }, + '#withReason':: d.fn(help='"(brief) reason from the last termination of the container"', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { state+: { terminated+: { reason: reason } } }, + '#withSignal':: d.fn(help='"Signal from the last termination of the container"', args=[d.arg(name='signal', type=d.T.integer)]), + withSignal(signal): { state+: { terminated+: { signal: signal } } }, + '#withStartedAt':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startedAt', type=d.T.string)]), + withStartedAt(startedAt): { state+: { terminated+: { startedAt: startedAt } } }, + }, + '#waiting':: d.obj(help='"ContainerStateWaiting is a waiting state of a container."'), + waiting: { + '#withMessage':: d.fn(help='"Message regarding why the container is not yet running."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { state+: { waiting+: { message: message } } }, + '#withReason':: d.fn(help='"(brief) reason the container is not yet running."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { state+: { waiting+: { reason: reason } } }, + }, + }, + '#withAllocatedResources':: d.fn(help='"AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize."', args=[d.arg(name='allocatedResources', type=d.T.object)]), + withAllocatedResources(allocatedResources): { allocatedResources: allocatedResources }, + '#withAllocatedResourcesMixin':: d.fn(help='"AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='allocatedResources', type=d.T.object)]), + withAllocatedResourcesMixin(allocatedResources): { allocatedResources+: allocatedResources }, + '#withContainerID':: d.fn(help="\"ContainerID is the ID of the container in the format '\u003ctype\u003e://\u003ccontainer_id\u003e'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \\\"containerd\\\").\"", args=[d.arg(name='containerID', type=d.T.string)]), + withContainerID(containerID): { containerID: containerID }, + '#withImage':: d.fn(help='"Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images."', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { image: image }, + '#withImageID':: d.fn(help="\"ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.\"", args=[d.arg(name='imageID', type=d.T.string)]), + withImageID(imageID): { imageID: imageID }, + '#withName':: d.fn(help='"Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withReady':: d.fn(help='"Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\\n\\nThe value is typically used to determine whether a container is ready to accept traffic."', args=[d.arg(name='ready', type=d.T.boolean)]), + withReady(ready): { ready: ready }, + '#withRestartCount':: d.fn(help='"RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative."', args=[d.arg(name='restartCount', type=d.T.integer)]), + withRestartCount(restartCount): { restartCount: restartCount }, + '#withStarted':: d.fn(help='"Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false."', args=[d.arg(name='started', type=d.T.boolean)]), + withStarted(started): { started: started }, + '#withVolumeMounts':: d.fn(help='"Status of volume mounts."', args=[d.arg(name='volumeMounts', type=d.T.array)]), + withVolumeMounts(volumeMounts): { volumeMounts: if std.isArray(v=volumeMounts) then volumeMounts else [volumeMounts] }, + '#withVolumeMountsMixin':: d.fn(help='"Status of volume mounts."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeMounts', type=d.T.array)]), + withVolumeMountsMixin(volumeMounts): { volumeMounts+: if std.isArray(v=volumeMounts) then volumeMounts else [volumeMounts] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/csiPersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/csiPersistentVolumeSource.libsonnet new file mode 100644 index 0000000..78d0d75 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/csiPersistentVolumeSource.libsonnet @@ -0,0 +1,53 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='csiPersistentVolumeSource', url='', help='"Represents storage that is managed by an external CSI volume driver (Beta feature)"'), + '#controllerExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { controllerExpandSecretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { controllerExpandSecretRef+: { namespace: namespace } }, + }, + '#controllerPublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerPublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { controllerPublishSecretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { controllerPublishSecretRef+: { namespace: namespace } }, + }, + '#nodeExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { nodeExpandSecretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { nodeExpandSecretRef+: { namespace: namespace } }, + }, + '#nodePublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodePublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { nodePublishSecretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { nodePublishSecretRef+: { namespace: namespace } }, + }, + '#nodeStageSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeStageSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { nodeStageSecretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { nodeStageSecretRef+: { namespace: namespace } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume. Required."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { driver: driver }, + '#withFsType':: d.fn(help='"fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\"."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withReadOnly':: d.fn(help='"readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write)."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withVolumeAttributes':: d.fn(help='"volumeAttributes of the volume to publish."', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributes(volumeAttributes): { volumeAttributes: volumeAttributes }, + '#withVolumeAttributesMixin':: d.fn(help='"volumeAttributes of the volume to publish."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributesMixin(volumeAttributes): { volumeAttributes+: volumeAttributes }, + '#withVolumeHandle':: d.fn(help='"volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required."', args=[d.arg(name='volumeHandle', type=d.T.string)]), + withVolumeHandle(volumeHandle): { volumeHandle: volumeHandle }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/csiVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/csiVolumeSource.libsonnet new file mode 100644 index 0000000..2c63c59 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/csiVolumeSource.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='csiVolumeSource', url='', help='"Represents a source location of a volume to mount, managed by an external CSI driver"'), + '#nodePublishSecretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + nodePublishSecretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { nodePublishSecretRef+: { name: name } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { driver: driver }, + '#withFsType':: d.fn(help='"fsType to mount. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withReadOnly':: d.fn(help='"readOnly specifies a read-only configuration for the volume. Defaults to false (read/write)."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withVolumeAttributes':: d.fn(help="\"volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.\"", args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributes(volumeAttributes): { volumeAttributes: volumeAttributes }, + '#withVolumeAttributesMixin':: d.fn(help="\"volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributesMixin(volumeAttributes): { volumeAttributes+: volumeAttributes }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/daemonEndpoint.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/daemonEndpoint.libsonnet new file mode 100644 index 0000000..19afc31 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/daemonEndpoint.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='daemonEndpoint', url='', help='"DaemonEndpoint contains information about a single Daemon endpoint."'), + '#withPort':: d.fn(help='"Port number of the given endpoint."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { port: port }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIProjection.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIProjection.libsonnet new file mode 100644 index 0000000..5fa05e5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIProjection.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='downwardAPIProjection', url='', help='"Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode."'), + '#withItems':: d.fn(help='"Items is a list of DownwardAPIVolume file"', args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { items: if std.isArray(v=items) then items else [items] }, + '#withItemsMixin':: d.fn(help='"Items is a list of DownwardAPIVolume file"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { items+: if std.isArray(v=items) then items else [items] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIVolumeFile.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIVolumeFile.libsonnet new file mode 100644 index 0000000..2a32c08 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIVolumeFile.libsonnet @@ -0,0 +1,26 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='downwardAPIVolumeFile', url='', help='"DownwardAPIVolumeFile represents information to create the file containing the pod field"'), + '#fieldRef':: d.obj(help='"ObjectFieldSelector selects an APIVersioned field of an object."'), + fieldRef: { + '#withApiVersion':: d.fn(help='"Version of the schema the FieldPath is written in terms of, defaults to \\"v1\\"."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { fieldRef+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"Path of the field to select in the specified API version."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { fieldRef+: { fieldPath: fieldPath } }, + }, + '#resourceFieldRef':: d.obj(help='"ResourceFieldSelector represents container resources (cpu, memory) and their output format"'), + resourceFieldRef: { + '#withContainerName':: d.fn(help='"Container name: required for volumes, optional for env vars"', args=[d.arg(name='containerName', type=d.T.string)]), + withContainerName(containerName): { resourceFieldRef+: { containerName: containerName } }, + '#withDivisor':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='divisor', type=d.T.string)]), + withDivisor(divisor): { resourceFieldRef+: { divisor: divisor } }, + '#withResource':: d.fn(help='"Required: resource to select"', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resourceFieldRef+: { resource: resource } }, + }, + '#withMode':: d.fn(help='"Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='mode', type=d.T.integer)]), + withMode(mode): { mode: mode }, + '#withPath':: d.fn(help="\"Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'\"", args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIVolumeSource.libsonnet new file mode 100644 index 0000000..74af02d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/downwardAPIVolumeSource.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='downwardAPIVolumeSource', url='', help='"DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling."'), + '#withDefaultMode':: d.fn(help='"Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='defaultMode', type=d.T.integer)]), + withDefaultMode(defaultMode): { defaultMode: defaultMode }, + '#withItems':: d.fn(help='"Items is a list of downward API volume file"', args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { items: if std.isArray(v=items) then items else [items] }, + '#withItemsMixin':: d.fn(help='"Items is a list of downward API volume file"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { items+: if std.isArray(v=items) then items else [items] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/emptyDirVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/emptyDirVolumeSource.libsonnet new file mode 100644 index 0000000..1d05420 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/emptyDirVolumeSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='emptyDirVolumeSource', url='', help='"Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling."'), + '#withMedium':: d.fn(help="\"medium represents what type of storage medium should back this directory. The default is \\\"\\\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir\"", args=[d.arg(name='medium', type=d.T.string)]), + withMedium(medium): { medium: medium }, + '#withSizeLimit':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='sizeLimit', type=d.T.string)]), + withSizeLimit(sizeLimit): { sizeLimit: sizeLimit }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointAddress.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointAddress.libsonnet new file mode 100644 index 0000000..12628c4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointAddress.libsonnet @@ -0,0 +1,29 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='endpointAddress', url='', help='"EndpointAddress is a tuple that describes single IP address."'), + '#targetRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + targetRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { targetRef+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { targetRef+: { fieldPath: fieldPath } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { targetRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { targetRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { targetRef+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { targetRef+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { targetRef+: { uid: uid } }, + }, + '#withHostname':: d.fn(help='"The Hostname of this endpoint"', args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { hostname: hostname }, + '#withIp':: d.fn(help='"The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16)."', args=[d.arg(name='ip', type=d.T.string)]), + withIp(ip): { ip: ip }, + '#withNodeName':: d.fn(help='"Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { nodeName: nodeName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointPort.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointPort.libsonnet new file mode 100644 index 0000000..1ba81c7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointPort.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='endpointPort', url='', help='"EndpointPort is a tuple that describes a single port."'), + '#withAppProtocol':: d.fn(help="\"The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\\n\\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\\n\\n* Kubernetes-defined prefixed names:\\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\\n\\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.\"", args=[d.arg(name='appProtocol', type=d.T.string)]), + withAppProtocol(appProtocol): { appProtocol: appProtocol }, + '#withName':: d.fn(help="\"The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.\"", args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withPort':: d.fn(help='"The port number of the endpoint."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { port: port }, + '#withProtocol':: d.fn(help='"The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP."', args=[d.arg(name='protocol', type=d.T.string)]), + withProtocol(protocol): { protocol: protocol }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointSubset.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointSubset.libsonnet new file mode 100644 index 0000000..40ac9bb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpointSubset.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='endpointSubset', url='', help='"EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\\n\\n\\t{\\n\\t Addresses: [{\\"ip\\": \\"10.10.1.1\\"}, {\\"ip\\": \\"10.10.2.2\\"}],\\n\\t Ports: [{\\"name\\": \\"a\\", \\"port\\": 8675}, {\\"name\\": \\"b\\", \\"port\\": 309}]\\n\\t}\\n\\nThe resulting set of endpoints can be viewed as:\\n\\n\\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\\n\\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]"'), + '#withAddresses':: d.fn(help='"IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize."', args=[d.arg(name='addresses', type=d.T.array)]), + withAddresses(addresses): { addresses: if std.isArray(v=addresses) then addresses else [addresses] }, + '#withAddressesMixin':: d.fn(help='"IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='addresses', type=d.T.array)]), + withAddressesMixin(addresses): { addresses+: if std.isArray(v=addresses) then addresses else [addresses] }, + '#withNotReadyAddresses':: d.fn(help='"IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check."', args=[d.arg(name='notReadyAddresses', type=d.T.array)]), + withNotReadyAddresses(notReadyAddresses): { notReadyAddresses: if std.isArray(v=notReadyAddresses) then notReadyAddresses else [notReadyAddresses] }, + '#withNotReadyAddressesMixin':: d.fn(help='"IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='notReadyAddresses', type=d.T.array)]), + withNotReadyAddressesMixin(notReadyAddresses): { notReadyAddresses+: if std.isArray(v=notReadyAddresses) then notReadyAddresses else [notReadyAddresses] }, + '#withPorts':: d.fn(help='"Port numbers available on the related IP addresses."', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { ports: if std.isArray(v=ports) then ports else [ports] }, + '#withPortsMixin':: d.fn(help='"Port numbers available on the related IP addresses."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { ports+: if std.isArray(v=ports) then ports else [ports] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpoints.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpoints.libsonnet new file mode 100644 index 0000000..10a6231 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/endpoints.libsonnet @@ -0,0 +1,58 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='endpoints', url='', help='"Endpoints is a collection of endpoints that implement the actual service. Example:\\n\\n\\t Name: \\"mysvc\\",\\n\\t Subsets: [\\n\\t {\\n\\t Addresses: [{\\"ip\\": \\"10.10.1.1\\"}, {\\"ip\\": \\"10.10.2.2\\"}],\\n\\t Ports: [{\\"name\\": \\"a\\", \\"port\\": 8675}, {\\"name\\": \\"b\\", \\"port\\": 309}]\\n\\t },\\n\\t {\\n\\t Addresses: [{\\"ip\\": \\"10.10.3.3\\"}],\\n\\t Ports: [{\\"name\\": \\"a\\", \\"port\\": 93}, {\\"name\\": \\"b\\", \\"port\\": 76}]\\n\\t },\\n\\t]"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Endpoints', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'Endpoints', + } + self.metadata.withName(name=name), + '#withSubsets':: d.fn(help='"The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service."', args=[d.arg(name='subsets', type=d.T.array)]), + withSubsets(subsets): { subsets: if std.isArray(v=subsets) then subsets else [subsets] }, + '#withSubsetsMixin':: d.fn(help='"The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='subsets', type=d.T.array)]), + withSubsetsMixin(subsets): { subsets+: if std.isArray(v=subsets) then subsets else [subsets] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envFromSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envFromSource.libsonnet new file mode 100644 index 0000000..fa627fd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envFromSource.libsonnet @@ -0,0 +1,22 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='envFromSource', url='', help='"EnvFromSource represents the source of a set of ConfigMaps"'), + '#configMapRef':: d.obj(help="\"ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\\n\\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.\""), + configMapRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { configMapRef+: { name: name } }, + '#withOptional':: d.fn(help='"Specify whether the ConfigMap must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { configMapRef+: { optional: optional } }, + }, + '#secretRef':: d.obj(help="\"SecretEnvSource selects a Secret to populate the environment variables with.\\n\\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.\""), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + '#withOptional':: d.fn(help='"Specify whether the Secret must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { secretRef+: { optional: optional } }, + }, + '#withPrefix':: d.fn(help='"An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER."', args=[d.arg(name='prefix', type=d.T.string)]), + withPrefix(prefix): { prefix: prefix }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envVar.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envVar.libsonnet new file mode 100644 index 0000000..2fcf55d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envVar.libsonnet @@ -0,0 +1,47 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='envVar', url='', help='"EnvVar represents an environment variable present in a Container."'), + '#valueFrom':: d.obj(help='"EnvVarSource represents a source for the value of an EnvVar."'), + valueFrom: { + '#configMapKeyRef':: d.obj(help='"Selects a key from a ConfigMap."'), + configMapKeyRef: { + '#withKey':: d.fn(help='"The key to select."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { valueFrom+: { configMapKeyRef+: { key: key } } }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { valueFrom+: { configMapKeyRef+: { name: name } } }, + '#withOptional':: d.fn(help='"Specify whether the ConfigMap or its key must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { valueFrom+: { configMapKeyRef+: { optional: optional } } }, + }, + '#fieldRef':: d.obj(help='"ObjectFieldSelector selects an APIVersioned field of an object."'), + fieldRef: { + '#withApiVersion':: d.fn(help='"Version of the schema the FieldPath is written in terms of, defaults to \\"v1\\"."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { valueFrom+: { fieldRef+: { apiVersion: apiVersion } } }, + '#withFieldPath':: d.fn(help='"Path of the field to select in the specified API version."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { valueFrom+: { fieldRef+: { fieldPath: fieldPath } } }, + }, + '#resourceFieldRef':: d.obj(help='"ResourceFieldSelector represents container resources (cpu, memory) and their output format"'), + resourceFieldRef: { + '#withContainerName':: d.fn(help='"Container name: required for volumes, optional for env vars"', args=[d.arg(name='containerName', type=d.T.string)]), + withContainerName(containerName): { valueFrom+: { resourceFieldRef+: { containerName: containerName } } }, + '#withDivisor':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='divisor', type=d.T.string)]), + withDivisor(divisor): { valueFrom+: { resourceFieldRef+: { divisor: divisor } } }, + '#withResource':: d.fn(help='"Required: resource to select"', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { valueFrom+: { resourceFieldRef+: { resource: resource } } }, + }, + '#secretKeyRef':: d.obj(help='"SecretKeySelector selects a key of a Secret."'), + secretKeyRef: { + '#withKey':: d.fn(help='"The key of the secret to select from. Must be a valid secret key."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { valueFrom+: { secretKeyRef+: { key: key } } }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { valueFrom+: { secretKeyRef+: { name: name } } }, + '#withOptional':: d.fn(help='"Specify whether the Secret or its key must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { valueFrom+: { secretKeyRef+: { optional: optional } } }, + }, + }, + '#withName':: d.fn(help='"Name of the environment variable. Must be a C_IDENTIFIER."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withValue':: d.fn(help='"Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\"$$(VAR_NAME)\\" will produce the string literal \\"$(VAR_NAME)\\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \\"\\"."', args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envVarSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envVarSource.libsonnet new file mode 100644 index 0000000..34004cd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/envVarSource.libsonnet @@ -0,0 +1,40 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='envVarSource', url='', help='"EnvVarSource represents a source for the value of an EnvVar."'), + '#configMapKeyRef':: d.obj(help='"Selects a key from a ConfigMap."'), + configMapKeyRef: { + '#withKey':: d.fn(help='"The key to select."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { configMapKeyRef+: { key: key } }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { configMapKeyRef+: { name: name } }, + '#withOptional':: d.fn(help='"Specify whether the ConfigMap or its key must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { configMapKeyRef+: { optional: optional } }, + }, + '#fieldRef':: d.obj(help='"ObjectFieldSelector selects an APIVersioned field of an object."'), + fieldRef: { + '#withApiVersion':: d.fn(help='"Version of the schema the FieldPath is written in terms of, defaults to \\"v1\\"."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { fieldRef+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"Path of the field to select in the specified API version."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { fieldRef+: { fieldPath: fieldPath } }, + }, + '#resourceFieldRef':: d.obj(help='"ResourceFieldSelector represents container resources (cpu, memory) and their output format"'), + resourceFieldRef: { + '#withContainerName':: d.fn(help='"Container name: required for volumes, optional for env vars"', args=[d.arg(name='containerName', type=d.T.string)]), + withContainerName(containerName): { resourceFieldRef+: { containerName: containerName } }, + '#withDivisor':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='divisor', type=d.T.string)]), + withDivisor(divisor): { resourceFieldRef+: { divisor: divisor } }, + '#withResource':: d.fn(help='"Required: resource to select"', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resourceFieldRef+: { resource: resource } }, + }, + '#secretKeyRef':: d.obj(help='"SecretKeySelector selects a key of a Secret."'), + secretKeyRef: { + '#withKey':: d.fn(help='"The key of the secret to select from. Must be a valid secret key."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { secretKeyRef+: { key: key } }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretKeyRef+: { name: name } }, + '#withOptional':: d.fn(help='"Specify whether the Secret or its key must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { secretKeyRef+: { optional: optional } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/ephemeralContainer.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/ephemeralContainer.libsonnet new file mode 100644 index 0000000..4848ca4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/ephemeralContainer.libsonnet @@ -0,0 +1,369 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ephemeralContainer', url='', help='"An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\\n\\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted."'), + '#lifecycle':: d.obj(help='"Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted."'), + lifecycle: { + '#postStart':: d.obj(help='"LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified."'), + postStart: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { lifecycle+: { postStart+: { exec+: { command: if std.isArray(v=command) then command else [command] } } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { lifecycle+: { postStart+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { lifecycle+: { postStart+: { httpGet+: { host: host } } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { lifecycle+: { postStart+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { lifecycle+: { postStart+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { lifecycle+: { postStart+: { httpGet+: { path: path } } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { lifecycle+: { postStart+: { httpGet+: { port: port } } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { lifecycle+: { postStart+: { httpGet+: { scheme: scheme } } } }, + }, + '#sleep':: d.obj(help='"SleepAction describes a \\"sleep\\" action."'), + sleep: { + '#withSeconds':: d.fn(help='"Seconds is the number of seconds to sleep."', args=[d.arg(name='seconds', type=d.T.integer)]), + withSeconds(seconds): { lifecycle+: { postStart+: { sleep+: { seconds: seconds } } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { lifecycle+: { postStart+: { tcpSocket+: { host: host } } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { lifecycle+: { postStart+: { tcpSocket+: { port: port } } } }, + }, + }, + '#preStop':: d.obj(help='"LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified."'), + preStop: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { lifecycle+: { preStop+: { exec+: { command: if std.isArray(v=command) then command else [command] } } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { lifecycle+: { preStop+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { lifecycle+: { preStop+: { httpGet+: { host: host } } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { lifecycle+: { preStop+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { lifecycle+: { preStop+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { lifecycle+: { preStop+: { httpGet+: { path: path } } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { lifecycle+: { preStop+: { httpGet+: { port: port } } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { lifecycle+: { preStop+: { httpGet+: { scheme: scheme } } } }, + }, + '#sleep':: d.obj(help='"SleepAction describes a \\"sleep\\" action."'), + sleep: { + '#withSeconds':: d.fn(help='"Seconds is the number of seconds to sleep."', args=[d.arg(name='seconds', type=d.T.integer)]), + withSeconds(seconds): { lifecycle+: { preStop+: { sleep+: { seconds: seconds } } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { lifecycle+: { preStop+: { tcpSocket+: { host: host } } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { lifecycle+: { preStop+: { tcpSocket+: { port: port } } } }, + }, + }, + }, + '#livenessProbe':: d.obj(help='"Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic."'), + livenessProbe: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { livenessProbe+: { exec+: { command: if std.isArray(v=command) then command else [command] } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { livenessProbe+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } }, + }, + '#grpc':: d.obj(help=''), + grpc: { + '#withPort':: d.fn(help='"Port number of the gRPC service. Number must be in the range 1 to 65535."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { livenessProbe+: { grpc+: { port: port } } }, + '#withService':: d.fn(help='"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\\n\\nIf this is not specified, the default behavior is defined by gRPC."', args=[d.arg(name='service', type=d.T.string)]), + withService(service): { livenessProbe+: { grpc+: { service: service } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { livenessProbe+: { httpGet+: { host: host } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { livenessProbe+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { livenessProbe+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { livenessProbe+: { httpGet+: { path: path } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { livenessProbe+: { httpGet+: { port: port } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { livenessProbe+: { httpGet+: { scheme: scheme } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { livenessProbe+: { tcpSocket+: { host: host } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { livenessProbe+: { tcpSocket+: { port: port } } }, + }, + '#withFailureThreshold':: d.fn(help='"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."', args=[d.arg(name='failureThreshold', type=d.T.integer)]), + withFailureThreshold(failureThreshold): { livenessProbe+: { failureThreshold: failureThreshold } }, + '#withInitialDelaySeconds':: d.fn(help='"Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='initialDelaySeconds', type=d.T.integer)]), + withInitialDelaySeconds(initialDelaySeconds): { livenessProbe+: { initialDelaySeconds: initialDelaySeconds } }, + '#withPeriodSeconds':: d.fn(help='"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."', args=[d.arg(name='periodSeconds', type=d.T.integer)]), + withPeriodSeconds(periodSeconds): { livenessProbe+: { periodSeconds: periodSeconds } }, + '#withSuccessThreshold':: d.fn(help='"Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1."', args=[d.arg(name='successThreshold', type=d.T.integer)]), + withSuccessThreshold(successThreshold): { livenessProbe+: { successThreshold: successThreshold } }, + '#withTerminationGracePeriodSeconds':: d.fn(help="\"Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\"", args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { livenessProbe+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } }, + '#withTimeoutSeconds':: d.fn(help='"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { livenessProbe+: { timeoutSeconds: timeoutSeconds } }, + }, + '#readinessProbe':: d.obj(help='"Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic."'), + readinessProbe: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { readinessProbe+: { exec+: { command: if std.isArray(v=command) then command else [command] } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { readinessProbe+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } }, + }, + '#grpc':: d.obj(help=''), + grpc: { + '#withPort':: d.fn(help='"Port number of the gRPC service. Number must be in the range 1 to 65535."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { readinessProbe+: { grpc+: { port: port } } }, + '#withService':: d.fn(help='"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\\n\\nIf this is not specified, the default behavior is defined by gRPC."', args=[d.arg(name='service', type=d.T.string)]), + withService(service): { readinessProbe+: { grpc+: { service: service } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { readinessProbe+: { httpGet+: { host: host } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { readinessProbe+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { readinessProbe+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { readinessProbe+: { httpGet+: { path: path } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { readinessProbe+: { httpGet+: { port: port } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { readinessProbe+: { httpGet+: { scheme: scheme } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { readinessProbe+: { tcpSocket+: { host: host } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { readinessProbe+: { tcpSocket+: { port: port } } }, + }, + '#withFailureThreshold':: d.fn(help='"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."', args=[d.arg(name='failureThreshold', type=d.T.integer)]), + withFailureThreshold(failureThreshold): { readinessProbe+: { failureThreshold: failureThreshold } }, + '#withInitialDelaySeconds':: d.fn(help='"Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='initialDelaySeconds', type=d.T.integer)]), + withInitialDelaySeconds(initialDelaySeconds): { readinessProbe+: { initialDelaySeconds: initialDelaySeconds } }, + '#withPeriodSeconds':: d.fn(help='"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."', args=[d.arg(name='periodSeconds', type=d.T.integer)]), + withPeriodSeconds(periodSeconds): { readinessProbe+: { periodSeconds: periodSeconds } }, + '#withSuccessThreshold':: d.fn(help='"Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1."', args=[d.arg(name='successThreshold', type=d.T.integer)]), + withSuccessThreshold(successThreshold): { readinessProbe+: { successThreshold: successThreshold } }, + '#withTerminationGracePeriodSeconds':: d.fn(help="\"Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\"", args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { readinessProbe+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } }, + '#withTimeoutSeconds':: d.fn(help='"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { readinessProbe+: { timeoutSeconds: timeoutSeconds } }, + }, + '#resources':: d.obj(help='"ResourceRequirements describes the compute resource requirements."'), + resources: { + '#withClaims':: d.fn(help='"Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable. It can only be set for containers."', args=[d.arg(name='claims', type=d.T.array)]), + withClaims(claims): { resources+: { claims: if std.isArray(v=claims) then claims else [claims] } }, + '#withClaimsMixin':: d.fn(help='"Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable. It can only be set for containers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='claims', type=d.T.array)]), + withClaimsMixin(claims): { resources+: { claims+: if std.isArray(v=claims) then claims else [claims] } }, + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { resources+: { limits: limits } }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { resources+: { limits+: limits } }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { resources+: { requests: requests } }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { resources+: { requests+: requests } }, + }, + '#securityContext':: d.obj(help='"SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { securityContext+: { appArmorProfile+: { type: type } } }, + }, + '#capabilities':: d.obj(help='"Adds and removes POSIX capabilities from running containers."'), + capabilities: { + '#withAdd':: d.fn(help='"Added capabilities"', args=[d.arg(name='add', type=d.T.array)]), + withAdd(add): { securityContext+: { capabilities+: { add: if std.isArray(v=add) then add else [add] } } }, + '#withAddMixin':: d.fn(help='"Added capabilities"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='add', type=d.T.array)]), + withAddMixin(add): { securityContext+: { capabilities+: { add+: if std.isArray(v=add) then add else [add] } } }, + '#withDrop':: d.fn(help='"Removed capabilities"', args=[d.arg(name='drop', type=d.T.array)]), + withDrop(drop): { securityContext+: { capabilities+: { drop: if std.isArray(v=drop) then drop else [drop] } } }, + '#withDropMixin':: d.fn(help='"Removed capabilities"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='drop', type=d.T.array)]), + withDropMixin(drop): { securityContext+: { capabilities+: { drop+: if std.isArray(v=drop) then drop else [drop] } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { securityContext+: { seLinuxOptions+: { level: level } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { securityContext+: { seLinuxOptions+: { role: role } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { securityContext+: { seLinuxOptions+: { type: type } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { securityContext+: { seLinuxOptions+: { user: user } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { securityContext+: { seccompProfile+: { type: type } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } }, + }, + '#withAllowPrivilegeEscalation':: d.fn(help='"AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='allowPrivilegeEscalation', type=d.T.boolean)]), + withAllowPrivilegeEscalation(allowPrivilegeEscalation): { securityContext+: { allowPrivilegeEscalation: allowPrivilegeEscalation } }, + '#withPrivileged':: d.fn(help='"Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='privileged', type=d.T.boolean)]), + withPrivileged(privileged): { securityContext+: { privileged: privileged } }, + '#withProcMount':: d.fn(help='"procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='procMount', type=d.T.string)]), + withProcMount(procMount): { securityContext+: { procMount: procMount } }, + '#withReadOnlyRootFilesystem':: d.fn(help='"Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='readOnlyRootFilesystem', type=d.T.boolean)]), + withReadOnlyRootFilesystem(readOnlyRootFilesystem): { securityContext+: { readOnlyRootFilesystem: readOnlyRootFilesystem } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { securityContext+: { runAsGroup: runAsGroup } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { securityContext+: { runAsNonRoot: runAsNonRoot } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { securityContext+: { runAsUser: runAsUser } }, + }, + '#startupProbe':: d.obj(help='"Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic."'), + startupProbe: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { startupProbe+: { exec+: { command: if std.isArray(v=command) then command else [command] } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { startupProbe+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } }, + }, + '#grpc':: d.obj(help=''), + grpc: { + '#withPort':: d.fn(help='"Port number of the gRPC service. Number must be in the range 1 to 65535."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { startupProbe+: { grpc+: { port: port } } }, + '#withService':: d.fn(help='"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\\n\\nIf this is not specified, the default behavior is defined by gRPC."', args=[d.arg(name='service', type=d.T.string)]), + withService(service): { startupProbe+: { grpc+: { service: service } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { startupProbe+: { httpGet+: { host: host } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { startupProbe+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { startupProbe+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { startupProbe+: { httpGet+: { path: path } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { startupProbe+: { httpGet+: { port: port } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { startupProbe+: { httpGet+: { scheme: scheme } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { startupProbe+: { tcpSocket+: { host: host } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { startupProbe+: { tcpSocket+: { port: port } } }, + }, + '#withFailureThreshold':: d.fn(help='"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."', args=[d.arg(name='failureThreshold', type=d.T.integer)]), + withFailureThreshold(failureThreshold): { startupProbe+: { failureThreshold: failureThreshold } }, + '#withInitialDelaySeconds':: d.fn(help='"Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='initialDelaySeconds', type=d.T.integer)]), + withInitialDelaySeconds(initialDelaySeconds): { startupProbe+: { initialDelaySeconds: initialDelaySeconds } }, + '#withPeriodSeconds':: d.fn(help='"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."', args=[d.arg(name='periodSeconds', type=d.T.integer)]), + withPeriodSeconds(periodSeconds): { startupProbe+: { periodSeconds: periodSeconds } }, + '#withSuccessThreshold':: d.fn(help='"Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1."', args=[d.arg(name='successThreshold', type=d.T.integer)]), + withSuccessThreshold(successThreshold): { startupProbe+: { successThreshold: successThreshold } }, + '#withTerminationGracePeriodSeconds':: d.fn(help="\"Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\"", args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { startupProbe+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } }, + '#withTimeoutSeconds':: d.fn(help='"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { startupProbe+: { timeoutSeconds: timeoutSeconds } }, + }, + '#withArgs':: d.fn(help="\"Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will produce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\"", args=[d.arg(name='args', type=d.T.array)]), + withArgs(args): { args: if std.isArray(v=args) then args else [args] }, + '#withArgsMixin':: d.fn(help="\"Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will produce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='args', type=d.T.array)]), + withArgsMixin(args): { args+: if std.isArray(v=args) then args else [args] }, + '#withCommand':: d.fn(help="\"Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will produce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { command: if std.isArray(v=command) then command else [command] }, + '#withCommandMixin':: d.fn(help="\"Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will produce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { command+: if std.isArray(v=command) then command else [command] }, + '#withEnv':: d.fn(help='"List of environment variables to set in the container. Cannot be updated."', args=[d.arg(name='env', type=d.T.array)]), + withEnv(env): { env: if std.isArray(v=env) then env else [env] }, + '#withEnvFrom':: d.fn(help='"List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated."', args=[d.arg(name='envFrom', type=d.T.array)]), + withEnvFrom(envFrom): { envFrom: if std.isArray(v=envFrom) then envFrom else [envFrom] }, + '#withEnvFromMixin':: d.fn(help='"List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='envFrom', type=d.T.array)]), + withEnvFromMixin(envFrom): { envFrom+: if std.isArray(v=envFrom) then envFrom else [envFrom] }, + '#withEnvMixin':: d.fn(help='"List of environment variables to set in the container. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='env', type=d.T.array)]), + withEnvMixin(env): { env+: if std.isArray(v=env) then env else [env] }, + '#withImage':: d.fn(help='"Container image name. More info: https://kubernetes.io/docs/concepts/containers/images"', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { image: image }, + '#withImagePullPolicy':: d.fn(help='"Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images"', args=[d.arg(name='imagePullPolicy', type=d.T.string)]), + withImagePullPolicy(imagePullPolicy): { imagePullPolicy: imagePullPolicy }, + '#withName':: d.fn(help='"Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withPorts':: d.fn(help='"Ports are not allowed for ephemeral containers."', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { ports: if std.isArray(v=ports) then ports else [ports] }, + '#withPortsMixin':: d.fn(help='"Ports are not allowed for ephemeral containers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { ports+: if std.isArray(v=ports) then ports else [ports] }, + '#withResizePolicy':: d.fn(help='"Resources resize policy for the container."', args=[d.arg(name='resizePolicy', type=d.T.array)]), + withResizePolicy(resizePolicy): { resizePolicy: if std.isArray(v=resizePolicy) then resizePolicy else [resizePolicy] }, + '#withResizePolicyMixin':: d.fn(help='"Resources resize policy for the container."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resizePolicy', type=d.T.array)]), + withResizePolicyMixin(resizePolicy): { resizePolicy+: if std.isArray(v=resizePolicy) then resizePolicy else [resizePolicy] }, + '#withRestartPolicy':: d.fn(help='"Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers."', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { restartPolicy: restartPolicy }, + '#withStdin':: d.fn(help='"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false."', args=[d.arg(name='stdin', type=d.T.boolean)]), + withStdin(stdin): { stdin: stdin }, + '#withStdinOnce':: d.fn(help='"Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false"', args=[d.arg(name='stdinOnce', type=d.T.boolean)]), + withStdinOnce(stdinOnce): { stdinOnce: stdinOnce }, + '#withTargetContainerName':: d.fn(help='"If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\\n\\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined."', args=[d.arg(name='targetContainerName', type=d.T.string)]), + withTargetContainerName(targetContainerName): { targetContainerName: targetContainerName }, + '#withTerminationMessagePath':: d.fn(help="\"Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.\"", args=[d.arg(name='terminationMessagePath', type=d.T.string)]), + withTerminationMessagePath(terminationMessagePath): { terminationMessagePath: terminationMessagePath }, + '#withTerminationMessagePolicy':: d.fn(help='"Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated."', args=[d.arg(name='terminationMessagePolicy', type=d.T.string)]), + withTerminationMessagePolicy(terminationMessagePolicy): { terminationMessagePolicy: terminationMessagePolicy }, + '#withTty':: d.fn(help="\"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.\"", args=[d.arg(name='tty', type=d.T.boolean)]), + withTty(tty): { tty: tty }, + '#withVolumeDevices':: d.fn(help='"volumeDevices is the list of block devices to be used by the container."', args=[d.arg(name='volumeDevices', type=d.T.array)]), + withVolumeDevices(volumeDevices): { volumeDevices: if std.isArray(v=volumeDevices) then volumeDevices else [volumeDevices] }, + '#withVolumeDevicesMixin':: d.fn(help='"volumeDevices is the list of block devices to be used by the container."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeDevices', type=d.T.array)]), + withVolumeDevicesMixin(volumeDevices): { volumeDevices+: if std.isArray(v=volumeDevices) then volumeDevices else [volumeDevices] }, + '#withVolumeMounts':: d.fn(help="\"Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.\"", args=[d.arg(name='volumeMounts', type=d.T.array)]), + withVolumeMounts(volumeMounts): { volumeMounts: if std.isArray(v=volumeMounts) then volumeMounts else [volumeMounts] }, + '#withVolumeMountsMixin':: d.fn(help="\"Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='volumeMounts', type=d.T.array)]), + withVolumeMountsMixin(volumeMounts): { volumeMounts+: if std.isArray(v=volumeMounts) then volumeMounts else [volumeMounts] }, + '#withWorkingDir':: d.fn(help="\"Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.\"", args=[d.arg(name='workingDir', type=d.T.string)]), + withWorkingDir(workingDir): { workingDir: workingDir }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/ephemeralVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/ephemeralVolumeSource.libsonnet new file mode 100644 index 0000000..3507e83 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/ephemeralVolumeSource.libsonnet @@ -0,0 +1,109 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ephemeralVolumeSource', url='', help='"Represents an ephemeral volume that is handled by a normal storage driver."'), + '#volumeClaimTemplate':: d.obj(help='"PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource."'), + volumeClaimTemplate: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { volumeClaimTemplate+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { volumeClaimTemplate+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { volumeClaimTemplate+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { volumeClaimTemplate+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { volumeClaimTemplate+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { volumeClaimTemplate+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { volumeClaimTemplate+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { volumeClaimTemplate+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { volumeClaimTemplate+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { volumeClaimTemplate+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { volumeClaimTemplate+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { volumeClaimTemplate+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { volumeClaimTemplate+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { volumeClaimTemplate+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { volumeClaimTemplate+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { volumeClaimTemplate+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { volumeClaimTemplate+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { volumeClaimTemplate+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { volumeClaimTemplate+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { volumeClaimTemplate+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes"'), + spec: { + '#dataSource':: d.obj(help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + dataSource: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { volumeClaimTemplate+: { spec+: { dataSource+: { apiGroup: apiGroup } } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { volumeClaimTemplate+: { spec+: { dataSource+: { kind: kind } } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { volumeClaimTemplate+: { spec+: { dataSource+: { name: name } } } }, + }, + '#dataSourceRef':: d.obj(help=''), + dataSourceRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { volumeClaimTemplate+: { spec+: { dataSourceRef+: { apiGroup: apiGroup } } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { volumeClaimTemplate+: { spec+: { dataSourceRef+: { kind: kind } } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { volumeClaimTemplate+: { spec+: { dataSourceRef+: { name: name } } } }, + '#withNamespace':: d.fn(help="\"Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\"", args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { volumeClaimTemplate+: { spec+: { dataSourceRef+: { namespace: namespace } } } }, + }, + '#resources':: d.obj(help='"VolumeResourceRequirements describes the storage resource requirements for a volume."'), + resources: { + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { volumeClaimTemplate+: { spec+: { resources+: { limits: limits } } } }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { volumeClaimTemplate+: { spec+: { resources+: { limits+: limits } } } }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { volumeClaimTemplate+: { spec+: { resources+: { requests: requests } } } }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { volumeClaimTemplate+: { spec+: { resources+: { requests+: requests } } } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { volumeClaimTemplate+: { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { volumeClaimTemplate+: { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { volumeClaimTemplate+: { spec+: { selector+: { matchLabels: matchLabels } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { volumeClaimTemplate+: { spec+: { selector+: { matchLabels+: matchLabels } } } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { volumeClaimTemplate+: { spec+: { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] } } }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { volumeClaimTemplate+: { spec+: { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] } } }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { volumeClaimTemplate+: { spec+: { storageClassName: storageClassName } } }, + '#withVolumeAttributesClassName':: d.fn(help="\"volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.\"", args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { volumeClaimTemplate+: { spec+: { volumeAttributesClassName: volumeAttributesClassName } } }, + '#withVolumeMode':: d.fn(help='"volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { volumeClaimTemplate+: { spec+: { volumeMode: volumeMode } } }, + '#withVolumeName':: d.fn(help='"volumeName is the binding reference to the PersistentVolume backing this claim."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { volumeClaimTemplate+: { spec+: { volumeName: volumeName } } }, + }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/event.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/event.libsonnet new file mode 100644 index 0000000..5211af2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/event.libsonnet @@ -0,0 +1,122 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='event', url='', help='"Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data."'), + '#involvedObject':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + involvedObject: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { involvedObject+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { involvedObject+: { fieldPath: fieldPath } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { involvedObject+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { involvedObject+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { involvedObject+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { involvedObject+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { involvedObject+: { uid: uid } }, + }, + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Event', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'Event', + } + self.metadata.withName(name=name), + '#related':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + related: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { related+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { related+: { fieldPath: fieldPath } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { related+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { related+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { related+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { related+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { related+: { uid: uid } }, + }, + '#series':: d.obj(help='"EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time."'), + series: { + '#withCount':: d.fn(help='"Number of occurrences in this series up to the last heartbeat time"', args=[d.arg(name='count', type=d.T.integer)]), + withCount(count): { series+: { count: count } }, + '#withLastObservedTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='lastObservedTime', type=d.T.string)]), + withLastObservedTime(lastObservedTime): { series+: { lastObservedTime: lastObservedTime } }, + }, + '#source':: d.obj(help='"EventSource contains information for an event."'), + source: { + '#withComponent':: d.fn(help='"Component from which the event is generated."', args=[d.arg(name='component', type=d.T.string)]), + withComponent(component): { source+: { component: component } }, + '#withHost':: d.fn(help='"Node name on which the event is generated."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { source+: { host: host } }, + }, + '#withAction':: d.fn(help='"What action was taken/failed regarding to the Regarding object."', args=[d.arg(name='action', type=d.T.string)]), + withAction(action): { action: action }, + '#withCount':: d.fn(help='"The number of times this event has occurred."', args=[d.arg(name='count', type=d.T.integer)]), + withCount(count): { count: count }, + '#withEventTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='eventTime', type=d.T.string)]), + withEventTime(eventTime): { eventTime: eventTime }, + '#withFirstTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='firstTimestamp', type=d.T.string)]), + withFirstTimestamp(firstTimestamp): { firstTimestamp: firstTimestamp }, + '#withLastTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTimestamp', type=d.T.string)]), + withLastTimestamp(lastTimestamp): { lastTimestamp: lastTimestamp }, + '#withMessage':: d.fn(help='"A human-readable description of the status of this operation."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"This should be a short, machine understandable string that gives the reason for the transition into the object's current status.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withReportingComponent':: d.fn(help='"Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`."', args=[d.arg(name='reportingComponent', type=d.T.string)]), + withReportingComponent(reportingComponent): { reportingComponent: reportingComponent }, + '#withReportingInstance':: d.fn(help='"ID of the controller instance, e.g. `kubelet-xyzf`."', args=[d.arg(name='reportingInstance', type=d.T.string)]), + withReportingInstance(reportingInstance): { reportingInstance: reportingInstance }, + '#withType':: d.fn(help='"Type of this event (Normal, Warning), new types could be added in the future"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/eventSeries.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/eventSeries.libsonnet new file mode 100644 index 0000000..ac0837c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/eventSeries.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='eventSeries', url='', help='"EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time."'), + '#withCount':: d.fn(help='"Number of occurrences in this series up to the last heartbeat time"', args=[d.arg(name='count', type=d.T.integer)]), + withCount(count): { count: count }, + '#withLastObservedTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='lastObservedTime', type=d.T.string)]), + withLastObservedTime(lastObservedTime): { lastObservedTime: lastObservedTime }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/eventSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/eventSource.libsonnet new file mode 100644 index 0000000..c94f379 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/eventSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='eventSource', url='', help='"EventSource contains information for an event."'), + '#withComponent':: d.fn(help='"Component from which the event is generated."', args=[d.arg(name='component', type=d.T.string)]), + withComponent(component): { component: component }, + '#withHost':: d.fn(help='"Node name on which the event is generated."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { host: host }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/execAction.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/execAction.libsonnet new file mode 100644 index 0000000..dd9795e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/execAction.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='execAction', url='', help='"ExecAction describes a \\"run in container\\" action."'), + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { command: if std.isArray(v=command) then command else [command] }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { command+: if std.isArray(v=command) then command else [command] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/fcVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/fcVolumeSource.libsonnet new file mode 100644 index 0000000..31608c3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/fcVolumeSource.libsonnet @@ -0,0 +1,20 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='fcVolumeSource', url='', help='"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling."'), + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withLun':: d.fn(help='"lun is Optional: FC target lun number"', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { lun: lun }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withTargetWWNs':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNs(targetWWNs): { targetWWNs: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] }, + '#withTargetWWNsMixin':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNsMixin(targetWWNs): { targetWWNs+: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] }, + '#withWwids':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."', args=[d.arg(name='wwids', type=d.T.array)]), + withWwids(wwids): { wwids: if std.isArray(v=wwids) then wwids else [wwids] }, + '#withWwidsMixin':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='wwids', type=d.T.array)]), + withWwidsMixin(wwids): { wwids+: if std.isArray(v=wwids) then wwids else [wwids] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flexPersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flexPersistentVolumeSource.libsonnet new file mode 100644 index 0000000..545fc3a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flexPersistentVolumeSource.libsonnet @@ -0,0 +1,23 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flexPersistentVolumeSource', url='', help='"FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin."'), + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretRef+: { namespace: namespace } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { driver: driver }, + '#withFsType':: d.fn(help='"fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default filesystem depends on FlexVolume script."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withOptions':: d.fn(help='"options is Optional: this field holds extra command options if any."', args=[d.arg(name='options', type=d.T.object)]), + withOptions(options): { options: options }, + '#withOptionsMixin':: d.fn(help='"options is Optional: this field holds extra command options if any."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.object)]), + withOptionsMixin(options): { options+: options }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flexVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flexVolumeSource.libsonnet new file mode 100644 index 0000000..2915b5f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flexVolumeSource.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flexVolumeSource', url='', help='"FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin."'), + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { driver: driver }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default filesystem depends on FlexVolume script."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withOptions':: d.fn(help='"options is Optional: this field holds extra command options if any."', args=[d.arg(name='options', type=d.T.object)]), + withOptions(options): { options: options }, + '#withOptionsMixin':: d.fn(help='"options is Optional: this field holds extra command options if any."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.object)]), + withOptionsMixin(options): { options+: options }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flockerVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flockerVolumeSource.libsonnet new file mode 100644 index 0000000..722d636 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/flockerVolumeSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flockerVolumeSource', url='', help='"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling."'), + '#withDatasetName':: d.fn(help='"datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"', args=[d.arg(name='datasetName', type=d.T.string)]), + withDatasetName(datasetName): { datasetName: datasetName }, + '#withDatasetUUID':: d.fn(help='"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset"', args=[d.arg(name='datasetUUID', type=d.T.string)]), + withDatasetUUID(datasetUUID): { datasetUUID: datasetUUID }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/gcePersistentDiskVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/gcePersistentDiskVolumeSource.libsonnet new file mode 100644 index 0000000..e045186 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/gcePersistentDiskVolumeSource.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='gcePersistentDiskVolumeSource', url='', help='"Represents a Persistent Disk resource in Google Compute Engine.\\n\\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling."'), + '#withFsType':: d.fn(help='"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { partition: partition }, + '#withPdName':: d.fn(help='"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='pdName', type=d.T.string)]), + withPdName(pdName): { pdName: pdName }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/gitRepoVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/gitRepoVolumeSource.libsonnet new file mode 100644 index 0000000..e9e6021 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/gitRepoVolumeSource.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='gitRepoVolumeSource', url='', help="\"Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\\n\\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.\""), + '#withDirectory':: d.fn(help="\"directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.\"", args=[d.arg(name='directory', type=d.T.string)]), + withDirectory(directory): { directory: directory }, + '#withRepository':: d.fn(help='"repository is the URL"', args=[d.arg(name='repository', type=d.T.string)]), + withRepository(repository): { repository: repository }, + '#withRevision':: d.fn(help='"revision is the commit hash for the specified revision."', args=[d.arg(name='revision', type=d.T.string)]), + withRevision(revision): { revision: revision }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/glusterfsPersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/glusterfsPersistentVolumeSource.libsonnet new file mode 100644 index 0000000..d504871 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/glusterfsPersistentVolumeSource.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='glusterfsPersistentVolumeSource', url='', help='"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."'), + '#withEndpoints':: d.fn(help='"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpoints', type=d.T.string)]), + withEndpoints(endpoints): { endpoints: endpoints }, + '#withEndpointsNamespace':: d.fn(help='"endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpointsNamespace', type=d.T.string)]), + withEndpointsNamespace(endpointsNamespace): { endpointsNamespace: endpointsNamespace }, + '#withPath':: d.fn(help='"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/glusterfsVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/glusterfsVolumeSource.libsonnet new file mode 100644 index 0000000..1698ec6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/glusterfsVolumeSource.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='glusterfsVolumeSource', url='', help='"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."'), + '#withEndpoints':: d.fn(help='"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpoints', type=d.T.string)]), + withEndpoints(endpoints): { endpoints: endpoints }, + '#withPath':: d.fn(help='"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/grpcAction.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/grpcAction.libsonnet new file mode 100644 index 0000000..d2d37a0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/grpcAction.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='grpcAction', url='', help=''), + '#withPort':: d.fn(help='"Port number of the gRPC service. Number must be in the range 1 to 65535."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { port: port }, + '#withService':: d.fn(help='"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\\n\\nIf this is not specified, the default behavior is defined by gRPC."', args=[d.arg(name='service', type=d.T.string)]), + withService(service): { service: service }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostAlias.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostAlias.libsonnet new file mode 100644 index 0000000..a1abf33 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostAlias.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='hostAlias', url='', help="\"HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.\""), + '#withHostnames':: d.fn(help='"Hostnames for the above IP address."', args=[d.arg(name='hostnames', type=d.T.array)]), + withHostnames(hostnames): { hostnames: if std.isArray(v=hostnames) then hostnames else [hostnames] }, + '#withHostnamesMixin':: d.fn(help='"Hostnames for the above IP address."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='hostnames', type=d.T.array)]), + withHostnamesMixin(hostnames): { hostnames+: if std.isArray(v=hostnames) then hostnames else [hostnames] }, + '#withIp':: d.fn(help='"IP address of the host file entry."', args=[d.arg(name='ip', type=d.T.string)]), + withIp(ip): { ip: ip }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostIP.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostIP.libsonnet new file mode 100644 index 0000000..945b1e0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostIP.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='hostIP', url='', help='"HostIP represents a single IP address allocated to the host."'), + '#withIp':: d.fn(help='"IP is the IP address assigned to the host"', args=[d.arg(name='ip', type=d.T.string)]), + withIp(ip): { ip: ip }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostPathVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostPathVolumeSource.libsonnet new file mode 100644 index 0000000..1e3dd93 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/hostPathVolumeSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='hostPathVolumeSource', url='', help='"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling."'), + '#withPath':: d.fn(help='"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withType':: d.fn(help='"type for HostPath Volume Defaults to \\"\\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/httpGetAction.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/httpGetAction.libsonnet new file mode 100644 index 0000000..cd35f7f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/httpGetAction.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='httpGetAction', url='', help='"HTTPGetAction describes an action based on HTTP Get requests."'), + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { host: host }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { port: port }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { scheme: scheme }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/httpHeader.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/httpHeader.libsonnet new file mode 100644 index 0000000..3964427 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/httpHeader.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='httpHeader', url='', help='"HTTPHeader describes a custom header to be used in HTTP probes"'), + '#withName':: d.fn(help='"The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withValue':: d.fn(help='"The header field value"', args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/iscsiPersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/iscsiPersistentVolumeSource.libsonnet new file mode 100644 index 0000000..430270d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/iscsiPersistentVolumeSource.libsonnet @@ -0,0 +1,35 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='iscsiPersistentVolumeSource', url='', help='"ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."'), + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretRef+: { namespace: namespace } }, + }, + '#withChapAuthDiscovery':: d.fn(help='"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"', args=[d.arg(name='chapAuthDiscovery', type=d.T.boolean)]), + withChapAuthDiscovery(chapAuthDiscovery): { chapAuthDiscovery: chapAuthDiscovery }, + '#withChapAuthSession':: d.fn(help='"chapAuthSession defines whether support iSCSI Session CHAP authentication"', args=[d.arg(name='chapAuthSession', type=d.T.boolean)]), + withChapAuthSession(chapAuthSession): { chapAuthSession: chapAuthSession }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withInitiatorName':: d.fn(help='"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection."', args=[d.arg(name='initiatorName', type=d.T.string)]), + withInitiatorName(initiatorName): { initiatorName: initiatorName }, + '#withIqn':: d.fn(help='"iqn is Target iSCSI Qualified Name."', args=[d.arg(name='iqn', type=d.T.string)]), + withIqn(iqn): { iqn: iqn }, + '#withIscsiInterface':: d.fn(help="\"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).\"", args=[d.arg(name='iscsiInterface', type=d.T.string)]), + withIscsiInterface(iscsiInterface): { iscsiInterface: iscsiInterface }, + '#withLun':: d.fn(help='"lun is iSCSI Target Lun number."', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { lun: lun }, + '#withPortals':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='portals', type=d.T.array)]), + withPortals(portals): { portals: if std.isArray(v=portals) then portals else [portals] }, + '#withPortalsMixin':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='portals', type=d.T.array)]), + withPortalsMixin(portals): { portals+: if std.isArray(v=portals) then portals else [portals] }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withTargetPortal':: d.fn(help='"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='targetPortal', type=d.T.string)]), + withTargetPortal(targetPortal): { targetPortal: targetPortal }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/iscsiVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/iscsiVolumeSource.libsonnet new file mode 100644 index 0000000..275a0e5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/iscsiVolumeSource.libsonnet @@ -0,0 +1,33 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='iscsiVolumeSource', url='', help='"Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."'), + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + }, + '#withChapAuthDiscovery':: d.fn(help='"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"', args=[d.arg(name='chapAuthDiscovery', type=d.T.boolean)]), + withChapAuthDiscovery(chapAuthDiscovery): { chapAuthDiscovery: chapAuthDiscovery }, + '#withChapAuthSession':: d.fn(help='"chapAuthSession defines whether support iSCSI Session CHAP authentication"', args=[d.arg(name='chapAuthSession', type=d.T.boolean)]), + withChapAuthSession(chapAuthSession): { chapAuthSession: chapAuthSession }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withInitiatorName':: d.fn(help='"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection."', args=[d.arg(name='initiatorName', type=d.T.string)]), + withInitiatorName(initiatorName): { initiatorName: initiatorName }, + '#withIqn':: d.fn(help='"iqn is the target iSCSI Qualified Name."', args=[d.arg(name='iqn', type=d.T.string)]), + withIqn(iqn): { iqn: iqn }, + '#withIscsiInterface':: d.fn(help="\"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).\"", args=[d.arg(name='iscsiInterface', type=d.T.string)]), + withIscsiInterface(iscsiInterface): { iscsiInterface: iscsiInterface }, + '#withLun':: d.fn(help='"lun represents iSCSI Target Lun number."', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { lun: lun }, + '#withPortals':: d.fn(help='"portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='portals', type=d.T.array)]), + withPortals(portals): { portals: if std.isArray(v=portals) then portals else [portals] }, + '#withPortalsMixin':: d.fn(help='"portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='portals', type=d.T.array)]), + withPortalsMixin(portals): { portals+: if std.isArray(v=portals) then portals else [portals] }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withTargetPortal':: d.fn(help='"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='targetPortal', type=d.T.string)]), + withTargetPortal(targetPortal): { targetPortal: targetPortal }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/keyToPath.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/keyToPath.libsonnet new file mode 100644 index 0000000..288c94a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/keyToPath.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='keyToPath', url='', help='"Maps a string key to a path within a volume."'), + '#withKey':: d.fn(help='"key is the key to project."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withMode':: d.fn(help='"mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='mode', type=d.T.integer)]), + withMode(mode): { mode: mode }, + '#withPath':: d.fn(help="\"path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.\"", args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/lifecycle.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/lifecycle.libsonnet new file mode 100644 index 0000000..84282f5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/lifecycle.libsonnet @@ -0,0 +1,80 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='lifecycle', url='', help='"Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted."'), + '#postStart':: d.obj(help='"LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified."'), + postStart: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { postStart+: { exec+: { command: if std.isArray(v=command) then command else [command] } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { postStart+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { postStart+: { httpGet+: { host: host } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { postStart+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { postStart+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { postStart+: { httpGet+: { path: path } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { postStart+: { httpGet+: { port: port } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { postStart+: { httpGet+: { scheme: scheme } } }, + }, + '#sleep':: d.obj(help='"SleepAction describes a \\"sleep\\" action."'), + sleep: { + '#withSeconds':: d.fn(help='"Seconds is the number of seconds to sleep."', args=[d.arg(name='seconds', type=d.T.integer)]), + withSeconds(seconds): { postStart+: { sleep+: { seconds: seconds } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { postStart+: { tcpSocket+: { host: host } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { postStart+: { tcpSocket+: { port: port } } }, + }, + }, + '#preStop':: d.obj(help='"LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified."'), + preStop: { + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { preStop+: { exec+: { command: if std.isArray(v=command) then command else [command] } } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { preStop+: { exec+: { command+: if std.isArray(v=command) then command else [command] } } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { preStop+: { httpGet+: { host: host } } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { preStop+: { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { preStop+: { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { preStop+: { httpGet+: { path: path } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { preStop+: { httpGet+: { port: port } } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { preStop+: { httpGet+: { scheme: scheme } } }, + }, + '#sleep':: d.obj(help='"SleepAction describes a \\"sleep\\" action."'), + sleep: { + '#withSeconds':: d.fn(help='"Seconds is the number of seconds to sleep."', args=[d.arg(name='seconds', type=d.T.integer)]), + withSeconds(seconds): { preStop+: { sleep+: { seconds: seconds } } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { preStop+: { tcpSocket+: { host: host } } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { preStop+: { tcpSocket+: { port: port } } }, + }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/lifecycleHandler.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/lifecycleHandler.libsonnet new file mode 100644 index 0000000..1e967c7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/lifecycleHandler.libsonnet @@ -0,0 +1,40 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='lifecycleHandler', url='', help='"LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified."'), + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { exec+: { command: if std.isArray(v=command) then command else [command] } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { exec+: { command+: if std.isArray(v=command) then command else [command] } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { httpGet+: { host: host } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { httpGet+: { path: path } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { httpGet+: { port: port } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { httpGet+: { scheme: scheme } }, + }, + '#sleep':: d.obj(help='"SleepAction describes a \\"sleep\\" action."'), + sleep: { + '#withSeconds':: d.fn(help='"Seconds is the number of seconds to sleep."', args=[d.arg(name='seconds', type=d.T.integer)]), + withSeconds(seconds): { sleep+: { seconds: seconds } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { tcpSocket+: { host: host } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { tcpSocket+: { port: port } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRange.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRange.libsonnet new file mode 100644 index 0000000..7310f78 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRange.libsonnet @@ -0,0 +1,61 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='limitRange', url='', help='"LimitRange sets resource usage limits for each kind of resource in a Namespace."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of LimitRange', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'LimitRange', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"LimitRangeSpec defines a min/max usage limit for resources that match on kind."'), + spec: { + '#withLimits':: d.fn(help='"Limits is the list of LimitRangeItem objects that are enforced."', args=[d.arg(name='limits', type=d.T.array)]), + withLimits(limits): { spec+: { limits: if std.isArray(v=limits) then limits else [limits] } }, + '#withLimitsMixin':: d.fn(help='"Limits is the list of LimitRangeItem objects that are enforced."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.array)]), + withLimitsMixin(limits): { spec+: { limits+: if std.isArray(v=limits) then limits else [limits] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRangeItem.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRangeItem.libsonnet new file mode 100644 index 0000000..44a45dd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRangeItem.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='limitRangeItem', url='', help='"LimitRangeItem defines a min/max usage limit for any resource that matches on kind."'), + '#withDefault':: d.fn(help='"Default resource requirement limit value by resource name if resource limit is omitted."', args=[d.arg(name='default', type=d.T.object)]), + withDefault(default): { default: default }, + '#withDefaultMixin':: d.fn(help='"Default resource requirement limit value by resource name if resource limit is omitted."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='default', type=d.T.object)]), + withDefaultMixin(default): { default+: default }, + '#withDefaultRequest':: d.fn(help='"DefaultRequest is the default resource requirement request value by resource name if resource request is omitted."', args=[d.arg(name='defaultRequest', type=d.T.object)]), + withDefaultRequest(defaultRequest): { defaultRequest: defaultRequest }, + '#withDefaultRequestMixin':: d.fn(help='"DefaultRequest is the default resource requirement request value by resource name if resource request is omitted."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='defaultRequest', type=d.T.object)]), + withDefaultRequestMixin(defaultRequest): { defaultRequest+: defaultRequest }, + '#withMax':: d.fn(help='"Max usage constraints on this kind by resource name."', args=[d.arg(name='max', type=d.T.object)]), + withMax(max): { max: max }, + '#withMaxLimitRequestRatio':: d.fn(help='"MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource."', args=[d.arg(name='maxLimitRequestRatio', type=d.T.object)]), + withMaxLimitRequestRatio(maxLimitRequestRatio): { maxLimitRequestRatio: maxLimitRequestRatio }, + '#withMaxLimitRequestRatioMixin':: d.fn(help='"MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='maxLimitRequestRatio', type=d.T.object)]), + withMaxLimitRequestRatioMixin(maxLimitRequestRatio): { maxLimitRequestRatio+: maxLimitRequestRatio }, + '#withMaxMixin':: d.fn(help='"Max usage constraints on this kind by resource name."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='max', type=d.T.object)]), + withMaxMixin(max): { max+: max }, + '#withMin':: d.fn(help='"Min usage constraints on this kind by resource name."', args=[d.arg(name='min', type=d.T.object)]), + withMin(min): { min: min }, + '#withMinMixin':: d.fn(help='"Min usage constraints on this kind by resource name."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='min', type=d.T.object)]), + withMinMixin(min): { min+: min }, + '#withType':: d.fn(help='"Type of resource that this limit applies to."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRangeSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRangeSpec.libsonnet new file mode 100644 index 0000000..f0635bd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/limitRangeSpec.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='limitRangeSpec', url='', help='"LimitRangeSpec defines a min/max usage limit for resources that match on kind."'), + '#withLimits':: d.fn(help='"Limits is the list of LimitRangeItem objects that are enforced."', args=[d.arg(name='limits', type=d.T.array)]), + withLimits(limits): { limits: if std.isArray(v=limits) then limits else [limits] }, + '#withLimitsMixin':: d.fn(help='"Limits is the list of LimitRangeItem objects that are enforced."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.array)]), + withLimitsMixin(limits): { limits+: if std.isArray(v=limits) then limits else [limits] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/loadBalancerIngress.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/loadBalancerIngress.libsonnet new file mode 100644 index 0000000..17d2f7e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/loadBalancerIngress.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='loadBalancerIngress', url='', help='"LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point."'), + '#withHostname':: d.fn(help='"Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)"', args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { hostname: hostname }, + '#withIp':: d.fn(help='"IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)"', args=[d.arg(name='ip', type=d.T.string)]), + withIp(ip): { ip: ip }, + '#withIpMode':: d.fn(help="\"IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \\\"VIP\\\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \\\"Proxy\\\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.\"", args=[d.arg(name='ipMode', type=d.T.string)]), + withIpMode(ipMode): { ipMode: ipMode }, + '#withPorts':: d.fn(help='"Ports is a list of records of service ports If used, every port defined in the service should have an entry in it"', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { ports: if std.isArray(v=ports) then ports else [ports] }, + '#withPortsMixin':: d.fn(help='"Ports is a list of records of service ports If used, every port defined in the service should have an entry in it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { ports+: if std.isArray(v=ports) then ports else [ports] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/loadBalancerStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/loadBalancerStatus.libsonnet new file mode 100644 index 0000000..97d0780 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/loadBalancerStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='loadBalancerStatus', url='', help='"LoadBalancerStatus represents the status of a load-balancer."'), + '#withIngress':: d.fn(help='"Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points."', args=[d.arg(name='ingress', type=d.T.array)]), + withIngress(ingress): { ingress: if std.isArray(v=ingress) then ingress else [ingress] }, + '#withIngressMixin':: d.fn(help='"Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ingress', type=d.T.array)]), + withIngressMixin(ingress): { ingress+: if std.isArray(v=ingress) then ingress else [ingress] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/localObjectReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/localObjectReference.libsonnet new file mode 100644 index 0000000..bf16978 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/localObjectReference.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='localObjectReference', url='', help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/localVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/localVolumeSource.libsonnet new file mode 100644 index 0000000..420a881 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/localVolumeSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='localVolumeSource', url='', help='"Local represents directly-attached storage with node affinity (Beta feature)"'), + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default value is to auto-select a filesystem if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withPath':: d.fn(help='"path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...)."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/main.libsonnet new file mode 100644 index 0000000..aad181b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/main.libsonnet @@ -0,0 +1,194 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + affinity: (import 'affinity.libsonnet'), + appArmorProfile: (import 'appArmorProfile.libsonnet'), + attachedVolume: (import 'attachedVolume.libsonnet'), + awsElasticBlockStoreVolumeSource: (import 'awsElasticBlockStoreVolumeSource.libsonnet'), + azureDiskVolumeSource: (import 'azureDiskVolumeSource.libsonnet'), + azureFilePersistentVolumeSource: (import 'azureFilePersistentVolumeSource.libsonnet'), + azureFileVolumeSource: (import 'azureFileVolumeSource.libsonnet'), + binding: (import 'binding.libsonnet'), + capabilities: (import 'capabilities.libsonnet'), + cephFSPersistentVolumeSource: (import 'cephFSPersistentVolumeSource.libsonnet'), + cephFSVolumeSource: (import 'cephFSVolumeSource.libsonnet'), + cinderPersistentVolumeSource: (import 'cinderPersistentVolumeSource.libsonnet'), + cinderVolumeSource: (import 'cinderVolumeSource.libsonnet'), + claimSource: (import 'claimSource.libsonnet'), + clientIPConfig: (import 'clientIPConfig.libsonnet'), + clusterTrustBundleProjection: (import 'clusterTrustBundleProjection.libsonnet'), + componentCondition: (import 'componentCondition.libsonnet'), + componentStatus: (import 'componentStatus.libsonnet'), + configMap: (import 'configMap.libsonnet'), + configMapEnvSource: (import 'configMapEnvSource.libsonnet'), + configMapKeySelector: (import 'configMapKeySelector.libsonnet'), + configMapNodeConfigSource: (import 'configMapNodeConfigSource.libsonnet'), + configMapProjection: (import 'configMapProjection.libsonnet'), + configMapVolumeSource: (import 'configMapVolumeSource.libsonnet'), + container: (import 'container.libsonnet'), + containerImage: (import 'containerImage.libsonnet'), + containerPort: (import 'containerPort.libsonnet'), + containerResizePolicy: (import 'containerResizePolicy.libsonnet'), + containerState: (import 'containerState.libsonnet'), + containerStateRunning: (import 'containerStateRunning.libsonnet'), + containerStateTerminated: (import 'containerStateTerminated.libsonnet'), + containerStateWaiting: (import 'containerStateWaiting.libsonnet'), + containerStatus: (import 'containerStatus.libsonnet'), + csiPersistentVolumeSource: (import 'csiPersistentVolumeSource.libsonnet'), + csiVolumeSource: (import 'csiVolumeSource.libsonnet'), + daemonEndpoint: (import 'daemonEndpoint.libsonnet'), + downwardAPIProjection: (import 'downwardAPIProjection.libsonnet'), + downwardAPIVolumeFile: (import 'downwardAPIVolumeFile.libsonnet'), + downwardAPIVolumeSource: (import 'downwardAPIVolumeSource.libsonnet'), + emptyDirVolumeSource: (import 'emptyDirVolumeSource.libsonnet'), + endpointAddress: (import 'endpointAddress.libsonnet'), + endpointPort: (import 'endpointPort.libsonnet'), + endpointSubset: (import 'endpointSubset.libsonnet'), + endpoints: (import 'endpoints.libsonnet'), + envFromSource: (import 'envFromSource.libsonnet'), + envVar: (import 'envVar.libsonnet'), + envVarSource: (import 'envVarSource.libsonnet'), + ephemeralContainer: (import 'ephemeralContainer.libsonnet'), + ephemeralVolumeSource: (import 'ephemeralVolumeSource.libsonnet'), + event: (import 'event.libsonnet'), + eventSeries: (import 'eventSeries.libsonnet'), + eventSource: (import 'eventSource.libsonnet'), + execAction: (import 'execAction.libsonnet'), + fcVolumeSource: (import 'fcVolumeSource.libsonnet'), + flexPersistentVolumeSource: (import 'flexPersistentVolumeSource.libsonnet'), + flexVolumeSource: (import 'flexVolumeSource.libsonnet'), + flockerVolumeSource: (import 'flockerVolumeSource.libsonnet'), + gcePersistentDiskVolumeSource: (import 'gcePersistentDiskVolumeSource.libsonnet'), + gitRepoVolumeSource: (import 'gitRepoVolumeSource.libsonnet'), + glusterfsPersistentVolumeSource: (import 'glusterfsPersistentVolumeSource.libsonnet'), + glusterfsVolumeSource: (import 'glusterfsVolumeSource.libsonnet'), + grpcAction: (import 'grpcAction.libsonnet'), + hostAlias: (import 'hostAlias.libsonnet'), + hostIP: (import 'hostIP.libsonnet'), + hostPathVolumeSource: (import 'hostPathVolumeSource.libsonnet'), + httpGetAction: (import 'httpGetAction.libsonnet'), + httpHeader: (import 'httpHeader.libsonnet'), + iscsiPersistentVolumeSource: (import 'iscsiPersistentVolumeSource.libsonnet'), + iscsiVolumeSource: (import 'iscsiVolumeSource.libsonnet'), + keyToPath: (import 'keyToPath.libsonnet'), + lifecycle: (import 'lifecycle.libsonnet'), + lifecycleHandler: (import 'lifecycleHandler.libsonnet'), + limitRange: (import 'limitRange.libsonnet'), + limitRangeItem: (import 'limitRangeItem.libsonnet'), + limitRangeSpec: (import 'limitRangeSpec.libsonnet'), + loadBalancerIngress: (import 'loadBalancerIngress.libsonnet'), + loadBalancerStatus: (import 'loadBalancerStatus.libsonnet'), + localObjectReference: (import 'localObjectReference.libsonnet'), + localVolumeSource: (import 'localVolumeSource.libsonnet'), + modifyVolumeStatus: (import 'modifyVolumeStatus.libsonnet'), + namespace: (import 'namespace.libsonnet'), + namespaceCondition: (import 'namespaceCondition.libsonnet'), + namespaceSpec: (import 'namespaceSpec.libsonnet'), + namespaceStatus: (import 'namespaceStatus.libsonnet'), + nfsVolumeSource: (import 'nfsVolumeSource.libsonnet'), + node: (import 'node.libsonnet'), + nodeAddress: (import 'nodeAddress.libsonnet'), + nodeAffinity: (import 'nodeAffinity.libsonnet'), + nodeCondition: (import 'nodeCondition.libsonnet'), + nodeConfigSource: (import 'nodeConfigSource.libsonnet'), + nodeConfigStatus: (import 'nodeConfigStatus.libsonnet'), + nodeDaemonEndpoints: (import 'nodeDaemonEndpoints.libsonnet'), + nodeRuntimeHandler: (import 'nodeRuntimeHandler.libsonnet'), + nodeRuntimeHandlerFeatures: (import 'nodeRuntimeHandlerFeatures.libsonnet'), + nodeSelector: (import 'nodeSelector.libsonnet'), + nodeSelectorRequirement: (import 'nodeSelectorRequirement.libsonnet'), + nodeSelectorTerm: (import 'nodeSelectorTerm.libsonnet'), + nodeSpec: (import 'nodeSpec.libsonnet'), + nodeStatus: (import 'nodeStatus.libsonnet'), + nodeSystemInfo: (import 'nodeSystemInfo.libsonnet'), + objectFieldSelector: (import 'objectFieldSelector.libsonnet'), + objectReference: (import 'objectReference.libsonnet'), + persistentVolume: (import 'persistentVolume.libsonnet'), + persistentVolumeClaim: (import 'persistentVolumeClaim.libsonnet'), + persistentVolumeClaimCondition: (import 'persistentVolumeClaimCondition.libsonnet'), + persistentVolumeClaimSpec: (import 'persistentVolumeClaimSpec.libsonnet'), + persistentVolumeClaimStatus: (import 'persistentVolumeClaimStatus.libsonnet'), + persistentVolumeClaimTemplate: (import 'persistentVolumeClaimTemplate.libsonnet'), + persistentVolumeClaimVolumeSource: (import 'persistentVolumeClaimVolumeSource.libsonnet'), + persistentVolumeSpec: (import 'persistentVolumeSpec.libsonnet'), + persistentVolumeStatus: (import 'persistentVolumeStatus.libsonnet'), + photonPersistentDiskVolumeSource: (import 'photonPersistentDiskVolumeSource.libsonnet'), + pod: (import 'pod.libsonnet'), + podAffinity: (import 'podAffinity.libsonnet'), + podAffinityTerm: (import 'podAffinityTerm.libsonnet'), + podAntiAffinity: (import 'podAntiAffinity.libsonnet'), + podCondition: (import 'podCondition.libsonnet'), + podDNSConfig: (import 'podDNSConfig.libsonnet'), + podDNSConfigOption: (import 'podDNSConfigOption.libsonnet'), + podIP: (import 'podIP.libsonnet'), + podOS: (import 'podOS.libsonnet'), + podReadinessGate: (import 'podReadinessGate.libsonnet'), + podResourceClaim: (import 'podResourceClaim.libsonnet'), + podResourceClaimStatus: (import 'podResourceClaimStatus.libsonnet'), + podSchedulingGate: (import 'podSchedulingGate.libsonnet'), + podSecurityContext: (import 'podSecurityContext.libsonnet'), + podSpec: (import 'podSpec.libsonnet'), + podStatus: (import 'podStatus.libsonnet'), + podTemplate: (import 'podTemplate.libsonnet'), + podTemplateSpec: (import 'podTemplateSpec.libsonnet'), + portStatus: (import 'portStatus.libsonnet'), + portworxVolumeSource: (import 'portworxVolumeSource.libsonnet'), + preferredSchedulingTerm: (import 'preferredSchedulingTerm.libsonnet'), + probe: (import 'probe.libsonnet'), + projectedVolumeSource: (import 'projectedVolumeSource.libsonnet'), + quobyteVolumeSource: (import 'quobyteVolumeSource.libsonnet'), + rbdPersistentVolumeSource: (import 'rbdPersistentVolumeSource.libsonnet'), + rbdVolumeSource: (import 'rbdVolumeSource.libsonnet'), + replicationController: (import 'replicationController.libsonnet'), + replicationControllerCondition: (import 'replicationControllerCondition.libsonnet'), + replicationControllerSpec: (import 'replicationControllerSpec.libsonnet'), + replicationControllerStatus: (import 'replicationControllerStatus.libsonnet'), + resourceClaim: (import 'resourceClaim.libsonnet'), + resourceFieldSelector: (import 'resourceFieldSelector.libsonnet'), + resourceQuota: (import 'resourceQuota.libsonnet'), + resourceQuotaSpec: (import 'resourceQuotaSpec.libsonnet'), + resourceQuotaStatus: (import 'resourceQuotaStatus.libsonnet'), + resourceRequirements: (import 'resourceRequirements.libsonnet'), + scaleIOPersistentVolumeSource: (import 'scaleIOPersistentVolumeSource.libsonnet'), + scaleIOVolumeSource: (import 'scaleIOVolumeSource.libsonnet'), + scopeSelector: (import 'scopeSelector.libsonnet'), + scopedResourceSelectorRequirement: (import 'scopedResourceSelectorRequirement.libsonnet'), + seLinuxOptions: (import 'seLinuxOptions.libsonnet'), + seccompProfile: (import 'seccompProfile.libsonnet'), + secret: (import 'secret.libsonnet'), + secretEnvSource: (import 'secretEnvSource.libsonnet'), + secretKeySelector: (import 'secretKeySelector.libsonnet'), + secretProjection: (import 'secretProjection.libsonnet'), + secretReference: (import 'secretReference.libsonnet'), + secretVolumeSource: (import 'secretVolumeSource.libsonnet'), + securityContext: (import 'securityContext.libsonnet'), + service: (import 'service.libsonnet'), + serviceAccount: (import 'serviceAccount.libsonnet'), + serviceAccountTokenProjection: (import 'serviceAccountTokenProjection.libsonnet'), + servicePort: (import 'servicePort.libsonnet'), + serviceSpec: (import 'serviceSpec.libsonnet'), + serviceStatus: (import 'serviceStatus.libsonnet'), + sessionAffinityConfig: (import 'sessionAffinityConfig.libsonnet'), + sleepAction: (import 'sleepAction.libsonnet'), + storageOSPersistentVolumeSource: (import 'storageOSPersistentVolumeSource.libsonnet'), + storageOSVolumeSource: (import 'storageOSVolumeSource.libsonnet'), + sysctl: (import 'sysctl.libsonnet'), + taint: (import 'taint.libsonnet'), + tcpSocketAction: (import 'tcpSocketAction.libsonnet'), + toleration: (import 'toleration.libsonnet'), + topologySelectorLabelRequirement: (import 'topologySelectorLabelRequirement.libsonnet'), + topologySelectorTerm: (import 'topologySelectorTerm.libsonnet'), + topologySpreadConstraint: (import 'topologySpreadConstraint.libsonnet'), + typedLocalObjectReference: (import 'typedLocalObjectReference.libsonnet'), + typedObjectReference: (import 'typedObjectReference.libsonnet'), + volume: (import 'volume.libsonnet'), + volumeDevice: (import 'volumeDevice.libsonnet'), + volumeMount: (import 'volumeMount.libsonnet'), + volumeMountStatus: (import 'volumeMountStatus.libsonnet'), + volumeNodeAffinity: (import 'volumeNodeAffinity.libsonnet'), + volumeProjection: (import 'volumeProjection.libsonnet'), + volumeResourceRequirements: (import 'volumeResourceRequirements.libsonnet'), + vsphereVirtualDiskVolumeSource: (import 'vsphereVirtualDiskVolumeSource.libsonnet'), + weightedPodAffinityTerm: (import 'weightedPodAffinityTerm.libsonnet'), + windowsSecurityContextOptions: (import 'windowsSecurityContextOptions.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/modifyVolumeStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/modifyVolumeStatus.libsonnet new file mode 100644 index 0000000..7ff98a2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/modifyVolumeStatus.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='modifyVolumeStatus', url='', help='"ModifyVolumeStatus represents the status object of ControllerModifyVolume operation"'), + '#withTargetVolumeAttributesClassName':: d.fn(help='"targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled"', args=[d.arg(name='targetVolumeAttributesClassName', type=d.T.string)]), + withTargetVolumeAttributesClassName(targetVolumeAttributesClassName): { targetVolumeAttributesClassName: targetVolumeAttributesClassName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespace.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespace.libsonnet new file mode 100644 index 0000000..d95602b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespace.libsonnet @@ -0,0 +1,61 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namespace', url='', help='"Namespace provides a scope for Names. Use of multiple namespaces is optional."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Namespace', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'Namespace', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"NamespaceSpec describes the attributes on a Namespace."'), + spec: { + '#withFinalizers':: d.fn(help='"Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/"', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceCondition.libsonnet new file mode 100644 index 0000000..591b5d0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namespaceCondition', url='', help='"NamespaceCondition contains details about state of namespace."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help='', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of namespace controller condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceSpec.libsonnet new file mode 100644 index 0000000..bb01bf6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceSpec.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namespaceSpec', url='', help='"NamespaceSpec describes the attributes on a Namespace."'), + '#withFinalizers':: d.fn(help='"Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/"', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] }, + '#withFinalizersMixin':: d.fn(help='"Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceStatus.libsonnet new file mode 100644 index 0000000..592899d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/namespaceStatus.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namespaceStatus', url='', help='"NamespaceStatus is information about the current status of a Namespace."'), + '#withConditions':: d.fn(help="\"Represents the latest available observations of a namespace's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"Represents the latest available observations of a namespace's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withPhase':: d.fn(help='"Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/"', args=[d.arg(name='phase', type=d.T.string)]), + withPhase(phase): { phase: phase }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nfsVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nfsVolumeSource.libsonnet new file mode 100644 index 0000000..ce26840 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nfsVolumeSource.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nfsVolumeSource', url='', help='"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling."'), + '#withPath':: d.fn(help='"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withReadOnly':: d.fn(help='"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withServer':: d.fn(help='"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='server', type=d.T.string)]), + withServer(server): { server: server }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/node.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/node.libsonnet new file mode 100644 index 0000000..6303a35 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/node.libsonnet @@ -0,0 +1,89 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='node', url='', help='"Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd)."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Node', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'Node', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"NodeSpec describes the attributes that a node is created with."'), + spec: { + '#configSource':: d.obj(help='"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22"'), + configSource: { + '#configMap':: d.obj(help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + configMap: { + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { spec+: { configSource+: { configMap+: { kubeletConfigKey: kubeletConfigKey } } } }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { configSource+: { configMap+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { configSource+: { configMap+: { namespace: namespace } } } }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { configSource+: { configMap+: { resourceVersion: resourceVersion } } } }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { configSource+: { configMap+: { uid: uid } } } }, + }, + }, + '#withExternalID':: d.fn(help='"Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966"', args=[d.arg(name='externalID', type=d.T.string)]), + withExternalID(externalID): { spec+: { externalID: externalID } }, + '#withPodCIDR':: d.fn(help='"PodCIDR represents the pod IP range assigned to the node."', args=[d.arg(name='podCIDR', type=d.T.string)]), + withPodCIDR(podCIDR): { spec+: { podCIDR: podCIDR } }, + '#withPodCIDRs':: d.fn(help='"podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6."', args=[d.arg(name='podCIDRs', type=d.T.array)]), + withPodCIDRs(podCIDRs): { spec+: { podCIDRs: if std.isArray(v=podCIDRs) then podCIDRs else [podCIDRs] } }, + '#withPodCIDRsMixin':: d.fn(help='"podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='podCIDRs', type=d.T.array)]), + withPodCIDRsMixin(podCIDRs): { spec+: { podCIDRs+: if std.isArray(v=podCIDRs) then podCIDRs else [podCIDRs] } }, + '#withProviderID':: d.fn(help='"ID of the node assigned by the cloud provider in the format: ://"', args=[d.arg(name='providerID', type=d.T.string)]), + withProviderID(providerID): { spec+: { providerID: providerID } }, + '#withTaints':: d.fn(help="\"If specified, the node's taints.\"", args=[d.arg(name='taints', type=d.T.array)]), + withTaints(taints): { spec+: { taints: if std.isArray(v=taints) then taints else [taints] } }, + '#withTaintsMixin':: d.fn(help="\"If specified, the node's taints.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='taints', type=d.T.array)]), + withTaintsMixin(taints): { spec+: { taints+: if std.isArray(v=taints) then taints else [taints] } }, + '#withUnschedulable':: d.fn(help='"Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration"', args=[d.arg(name='unschedulable', type=d.T.boolean)]), + withUnschedulable(unschedulable): { spec+: { unschedulable: unschedulable } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeAddress.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeAddress.libsonnet new file mode 100644 index 0000000..485710e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeAddress.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeAddress', url='', help="\"NodeAddress contains information for the node's address.\""), + '#withAddress':: d.fn(help='"The node address."', args=[d.arg(name='address', type=d.T.string)]), + withAddress(address): { address: address }, + '#withType':: d.fn(help='"Node address type, one of Hostname, ExternalIP or InternalIP."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeAffinity.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeAffinity.libsonnet new file mode 100644 index 0000000..0212549 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeAffinity.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeAffinity', url='', help='"Node affinity is a group of node affinity scheduling rules."'), + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeCondition.libsonnet new file mode 100644 index 0000000..3055560 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeCondition.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeCondition', url='', help='"NodeCondition contains condition information for a node."'), + '#withLastHeartbeatTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastHeartbeatTime', type=d.T.string)]), + withLastHeartbeatTime(lastHeartbeatTime): { lastHeartbeatTime: lastHeartbeatTime }, + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"Human readable message indicating details about last transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"(brief) reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of node condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeConfigSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeConfigSource.libsonnet new file mode 100644 index 0000000..4845bb0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeConfigSource.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeConfigSource', url='', help='"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22"'), + '#configMap':: d.obj(help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + configMap: { + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { configMap+: { kubeletConfigKey: kubeletConfigKey } }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { configMap+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { configMap+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { configMap+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { configMap+: { uid: uid } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeConfigStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeConfigStatus.libsonnet new file mode 100644 index 0000000..d79efd2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeConfigStatus.libsonnet @@ -0,0 +1,56 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeConfigStatus', url='', help='"NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource."'), + '#active':: d.obj(help='"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22"'), + active: { + '#configMap':: d.obj(help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + configMap: { + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { active+: { configMap+: { kubeletConfigKey: kubeletConfigKey } } }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { active+: { configMap+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { active+: { configMap+: { namespace: namespace } } }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { active+: { configMap+: { resourceVersion: resourceVersion } } }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { active+: { configMap+: { uid: uid } } }, + }, + }, + '#assigned':: d.obj(help='"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22"'), + assigned: { + '#configMap':: d.obj(help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + configMap: { + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { assigned+: { configMap+: { kubeletConfigKey: kubeletConfigKey } } }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { assigned+: { configMap+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { assigned+: { configMap+: { namespace: namespace } } }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { assigned+: { configMap+: { resourceVersion: resourceVersion } } }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { assigned+: { configMap+: { uid: uid } } }, + }, + }, + '#lastKnownGood':: d.obj(help='"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22"'), + lastKnownGood: { + '#configMap':: d.obj(help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + configMap: { + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { lastKnownGood+: { configMap+: { kubeletConfigKey: kubeletConfigKey } } }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { lastKnownGood+: { configMap+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { lastKnownGood+: { configMap+: { namespace: namespace } } }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { lastKnownGood+: { configMap+: { resourceVersion: resourceVersion } } }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { lastKnownGood+: { configMap+: { uid: uid } } }, + }, + }, + '#withError':: d.fn(help='"Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions."', args=[d.arg(name='err', type=d.T.string)]), + withError(err): { 'error': err }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeDaemonEndpoints.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeDaemonEndpoints.libsonnet new file mode 100644 index 0000000..17db39c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeDaemonEndpoints.libsonnet @@ -0,0 +1,11 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeDaemonEndpoints', url='', help='"NodeDaemonEndpoints lists ports opened by daemons running on the Node."'), + '#kubeletEndpoint':: d.obj(help='"DaemonEndpoint contains information about a single Daemon endpoint."'), + kubeletEndpoint: { + '#withPort':: d.fn(help='"Port number of the given endpoint."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { kubeletEndpoint+: { port: port } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeRuntimeHandler.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeRuntimeHandler.libsonnet new file mode 100644 index 0000000..52bc4a8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeRuntimeHandler.libsonnet @@ -0,0 +1,13 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeRuntimeHandler', url='', help='"NodeRuntimeHandler is a set of runtime handler information."'), + '#features':: d.obj(help='"NodeRuntimeHandlerFeatures is a set of runtime features."'), + features: { + '#withRecursiveReadOnlyMounts':: d.fn(help='"RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts."', args=[d.arg(name='recursiveReadOnlyMounts', type=d.T.boolean)]), + withRecursiveReadOnlyMounts(recursiveReadOnlyMounts): { features+: { recursiveReadOnlyMounts: recursiveReadOnlyMounts } }, + }, + '#withName':: d.fn(help='"Runtime handler name. Empty for the default runtime handler."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeRuntimeHandlerFeatures.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeRuntimeHandlerFeatures.libsonnet new file mode 100644 index 0000000..00cb12e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeRuntimeHandlerFeatures.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeRuntimeHandlerFeatures', url='', help='"NodeRuntimeHandlerFeatures is a set of runtime features."'), + '#withRecursiveReadOnlyMounts':: d.fn(help='"RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts."', args=[d.arg(name='recursiveReadOnlyMounts', type=d.T.boolean)]), + withRecursiveReadOnlyMounts(recursiveReadOnlyMounts): { recursiveReadOnlyMounts: recursiveReadOnlyMounts }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelector.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelector.libsonnet new file mode 100644 index 0000000..4a44c34 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelector.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeSelector', url='', help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelectorRequirement.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelectorRequirement.libsonnet new file mode 100644 index 0000000..5e20b52 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelectorRequirement.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeSelectorRequirement', url='', help='"A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values."'), + '#withKey':: d.fn(help='"The label key that the selector applies to."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withOperator':: d.fn(help="\"Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\"", args=[d.arg(name='operator', type=d.T.string)]), + withOperator(operator): { operator: operator }, + '#withValues':: d.fn(help='"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch."', args=[d.arg(name='values', type=d.T.array)]), + withValues(values): { values: if std.isArray(v=values) then values else [values] }, + '#withValuesMixin':: d.fn(help='"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='values', type=d.T.array)]), + withValuesMixin(values): { values+: if std.isArray(v=values) then values else [values] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelectorTerm.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelectorTerm.libsonnet new file mode 100644 index 0000000..1514f9e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSelectorTerm.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeSelectorTerm', url='', help='"A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm."'), + '#withMatchExpressions':: d.fn(help="\"A list of node selector requirements by node's labels.\"", args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] }, + '#withMatchExpressionsMixin':: d.fn(help="\"A list of node selector requirements by node's labels.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] }, + '#withMatchFields':: d.fn(help="\"A list of node selector requirements by node's fields.\"", args=[d.arg(name='matchFields', type=d.T.array)]), + withMatchFields(matchFields): { matchFields: if std.isArray(v=matchFields) then matchFields else [matchFields] }, + '#withMatchFieldsMixin':: d.fn(help="\"A list of node selector requirements by node's fields.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='matchFields', type=d.T.array)]), + withMatchFieldsMixin(matchFields): { matchFields+: if std.isArray(v=matchFields) then matchFields else [matchFields] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSpec.libsonnet new file mode 100644 index 0000000..a06625e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSpec.libsonnet @@ -0,0 +1,38 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeSpec', url='', help='"NodeSpec describes the attributes that a node is created with."'), + '#configSource':: d.obj(help='"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22"'), + configSource: { + '#configMap':: d.obj(help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + configMap: { + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { configSource+: { configMap+: { kubeletConfigKey: kubeletConfigKey } } }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { configSource+: { configMap+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { configSource+: { configMap+: { namespace: namespace } } }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { configSource+: { configMap+: { resourceVersion: resourceVersion } } }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { configSource+: { configMap+: { uid: uid } } }, + }, + }, + '#withExternalID':: d.fn(help='"Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966"', args=[d.arg(name='externalID', type=d.T.string)]), + withExternalID(externalID): { externalID: externalID }, + '#withPodCIDR':: d.fn(help='"PodCIDR represents the pod IP range assigned to the node."', args=[d.arg(name='podCIDR', type=d.T.string)]), + withPodCIDR(podCIDR): { podCIDR: podCIDR }, + '#withPodCIDRs':: d.fn(help='"podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6."', args=[d.arg(name='podCIDRs', type=d.T.array)]), + withPodCIDRs(podCIDRs): { podCIDRs: if std.isArray(v=podCIDRs) then podCIDRs else [podCIDRs] }, + '#withPodCIDRsMixin':: d.fn(help='"podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='podCIDRs', type=d.T.array)]), + withPodCIDRsMixin(podCIDRs): { podCIDRs+: if std.isArray(v=podCIDRs) then podCIDRs else [podCIDRs] }, + '#withProviderID':: d.fn(help='"ID of the node assigned by the cloud provider in the format: ://"', args=[d.arg(name='providerID', type=d.T.string)]), + withProviderID(providerID): { providerID: providerID }, + '#withTaints':: d.fn(help="\"If specified, the node's taints.\"", args=[d.arg(name='taints', type=d.T.array)]), + withTaints(taints): { taints: if std.isArray(v=taints) then taints else [taints] }, + '#withTaintsMixin':: d.fn(help="\"If specified, the node's taints.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='taints', type=d.T.array)]), + withTaintsMixin(taints): { taints+: if std.isArray(v=taints) then taints else [taints] }, + '#withUnschedulable':: d.fn(help='"Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration"', args=[d.arg(name='unschedulable', type=d.T.boolean)]), + withUnschedulable(unschedulable): { unschedulable: unschedulable }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeStatus.libsonnet new file mode 100644 index 0000000..27d34d7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeStatus.libsonnet @@ -0,0 +1,124 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeStatus', url='', help='"NodeStatus is information about the current status of a node."'), + '#config':: d.obj(help='"NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource."'), + config: { + '#active':: d.obj(help='"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22"'), + active: { + '#configMap':: d.obj(help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + configMap: { + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { config+: { active+: { configMap+: { kubeletConfigKey: kubeletConfigKey } } } }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { config+: { active+: { configMap+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { config+: { active+: { configMap+: { namespace: namespace } } } }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { config+: { active+: { configMap+: { resourceVersion: resourceVersion } } } }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { config+: { active+: { configMap+: { uid: uid } } } }, + }, + }, + '#assigned':: d.obj(help='"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22"'), + assigned: { + '#configMap':: d.obj(help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + configMap: { + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { config+: { assigned+: { configMap+: { kubeletConfigKey: kubeletConfigKey } } } }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { config+: { assigned+: { configMap+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { config+: { assigned+: { configMap+: { namespace: namespace } } } }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { config+: { assigned+: { configMap+: { resourceVersion: resourceVersion } } } }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { config+: { assigned+: { configMap+: { uid: uid } } } }, + }, + }, + '#lastKnownGood':: d.obj(help='"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22"'), + lastKnownGood: { + '#configMap':: d.obj(help='"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration"'), + configMap: { + '#withKubeletConfigKey':: d.fn(help='"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases."', args=[d.arg(name='kubeletConfigKey', type=d.T.string)]), + withKubeletConfigKey(kubeletConfigKey): { config+: { lastKnownGood+: { configMap+: { kubeletConfigKey: kubeletConfigKey } } } }, + '#withName':: d.fn(help='"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { config+: { lastKnownGood+: { configMap+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { config+: { lastKnownGood+: { configMap+: { namespace: namespace } } } }, + '#withResourceVersion':: d.fn(help='"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { config+: { lastKnownGood+: { configMap+: { resourceVersion: resourceVersion } } } }, + '#withUid':: d.fn(help='"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { config+: { lastKnownGood+: { configMap+: { uid: uid } } } }, + }, + }, + '#withError':: d.fn(help='"Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions."', args=[d.arg(name='err', type=d.T.string)]), + withError(err): { config+: { 'error': err } }, + }, + '#daemonEndpoints':: d.obj(help='"NodeDaemonEndpoints lists ports opened by daemons running on the Node."'), + daemonEndpoints: { + '#kubeletEndpoint':: d.obj(help='"DaemonEndpoint contains information about a single Daemon endpoint."'), + kubeletEndpoint: { + '#withPort':: d.fn(help='"Port number of the given endpoint."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { daemonEndpoints+: { kubeletEndpoint+: { port: port } } }, + }, + }, + '#nodeInfo':: d.obj(help='"NodeSystemInfo is a set of ids/uuids to uniquely identify the node."'), + nodeInfo: { + '#withArchitecture':: d.fn(help='"The Architecture reported by the node"', args=[d.arg(name='architecture', type=d.T.string)]), + withArchitecture(architecture): { nodeInfo+: { architecture: architecture } }, + '#withBootID':: d.fn(help='"Boot ID reported by the node."', args=[d.arg(name='bootID', type=d.T.string)]), + withBootID(bootID): { nodeInfo+: { bootID: bootID } }, + '#withContainerRuntimeVersion':: d.fn(help='"ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2)."', args=[d.arg(name='containerRuntimeVersion', type=d.T.string)]), + withContainerRuntimeVersion(containerRuntimeVersion): { nodeInfo+: { containerRuntimeVersion: containerRuntimeVersion } }, + '#withKernelVersion':: d.fn(help="\"Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).\"", args=[d.arg(name='kernelVersion', type=d.T.string)]), + withKernelVersion(kernelVersion): { nodeInfo+: { kernelVersion: kernelVersion } }, + '#withKubeProxyVersion':: d.fn(help='"KubeProxy Version reported by the node."', args=[d.arg(name='kubeProxyVersion', type=d.T.string)]), + withKubeProxyVersion(kubeProxyVersion): { nodeInfo+: { kubeProxyVersion: kubeProxyVersion } }, + '#withKubeletVersion':: d.fn(help='"Kubelet Version reported by the node."', args=[d.arg(name='kubeletVersion', type=d.T.string)]), + withKubeletVersion(kubeletVersion): { nodeInfo+: { kubeletVersion: kubeletVersion } }, + '#withMachineID':: d.fn(help='"MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html"', args=[d.arg(name='machineID', type=d.T.string)]), + withMachineID(machineID): { nodeInfo+: { machineID: machineID } }, + '#withOperatingSystem':: d.fn(help='"The Operating System reported by the node"', args=[d.arg(name='operatingSystem', type=d.T.string)]), + withOperatingSystem(operatingSystem): { nodeInfo+: { operatingSystem: operatingSystem } }, + '#withOsImage':: d.fn(help='"OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy))."', args=[d.arg(name='osImage', type=d.T.string)]), + withOsImage(osImage): { nodeInfo+: { osImage: osImage } }, + '#withSystemUUID':: d.fn(help='"SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid"', args=[d.arg(name='systemUUID', type=d.T.string)]), + withSystemUUID(systemUUID): { nodeInfo+: { systemUUID: systemUUID } }, + }, + '#withAddresses':: d.fn(help="\"List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).\"", args=[d.arg(name='addresses', type=d.T.array)]), + withAddresses(addresses): { addresses: if std.isArray(v=addresses) then addresses else [addresses] }, + '#withAddressesMixin':: d.fn(help="\"List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='addresses', type=d.T.array)]), + withAddressesMixin(addresses): { addresses+: if std.isArray(v=addresses) then addresses else [addresses] }, + '#withAllocatable':: d.fn(help='"Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity."', args=[d.arg(name='allocatable', type=d.T.object)]), + withAllocatable(allocatable): { allocatable: allocatable }, + '#withAllocatableMixin':: d.fn(help='"Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='allocatable', type=d.T.object)]), + withAllocatableMixin(allocatable): { allocatable+: allocatable }, + '#withCapacity':: d.fn(help='"Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity"', args=[d.arg(name='capacity', type=d.T.object)]), + withCapacity(capacity): { capacity: capacity }, + '#withCapacityMixin':: d.fn(help='"Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='capacity', type=d.T.object)]), + withCapacityMixin(capacity): { capacity+: capacity }, + '#withConditions':: d.fn(help='"Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition"', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withImages':: d.fn(help='"List of container images on this node"', args=[d.arg(name='images', type=d.T.array)]), + withImages(images): { images: if std.isArray(v=images) then images else [images] }, + '#withImagesMixin':: d.fn(help='"List of container images on this node"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='images', type=d.T.array)]), + withImagesMixin(images): { images+: if std.isArray(v=images) then images else [images] }, + '#withPhase':: d.fn(help='"NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated."', args=[d.arg(name='phase', type=d.T.string)]), + withPhase(phase): { phase: phase }, + '#withRuntimeHandlers':: d.fn(help='"The available runtime handlers."', args=[d.arg(name='runtimeHandlers', type=d.T.array)]), + withRuntimeHandlers(runtimeHandlers): { runtimeHandlers: if std.isArray(v=runtimeHandlers) then runtimeHandlers else [runtimeHandlers] }, + '#withRuntimeHandlersMixin':: d.fn(help='"The available runtime handlers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='runtimeHandlers', type=d.T.array)]), + withRuntimeHandlersMixin(runtimeHandlers): { runtimeHandlers+: if std.isArray(v=runtimeHandlers) then runtimeHandlers else [runtimeHandlers] }, + '#withVolumesAttached':: d.fn(help='"List of volumes that are attached to the node."', args=[d.arg(name='volumesAttached', type=d.T.array)]), + withVolumesAttached(volumesAttached): { volumesAttached: if std.isArray(v=volumesAttached) then volumesAttached else [volumesAttached] }, + '#withVolumesAttachedMixin':: d.fn(help='"List of volumes that are attached to the node."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumesAttached', type=d.T.array)]), + withVolumesAttachedMixin(volumesAttached): { volumesAttached+: if std.isArray(v=volumesAttached) then volumesAttached else [volumesAttached] }, + '#withVolumesInUse':: d.fn(help='"List of attachable volumes in use (mounted) by the node."', args=[d.arg(name='volumesInUse', type=d.T.array)]), + withVolumesInUse(volumesInUse): { volumesInUse: if std.isArray(v=volumesInUse) then volumesInUse else [volumesInUse] }, + '#withVolumesInUseMixin':: d.fn(help='"List of attachable volumes in use (mounted) by the node."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumesInUse', type=d.T.array)]), + withVolumesInUseMixin(volumesInUse): { volumesInUse+: if std.isArray(v=volumesInUse) then volumesInUse else [volumesInUse] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSystemInfo.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSystemInfo.libsonnet new file mode 100644 index 0000000..1100622 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/nodeSystemInfo.libsonnet @@ -0,0 +1,26 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nodeSystemInfo', url='', help='"NodeSystemInfo is a set of ids/uuids to uniquely identify the node."'), + '#withArchitecture':: d.fn(help='"The Architecture reported by the node"', args=[d.arg(name='architecture', type=d.T.string)]), + withArchitecture(architecture): { architecture: architecture }, + '#withBootID':: d.fn(help='"Boot ID reported by the node."', args=[d.arg(name='bootID', type=d.T.string)]), + withBootID(bootID): { bootID: bootID }, + '#withContainerRuntimeVersion':: d.fn(help='"ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2)."', args=[d.arg(name='containerRuntimeVersion', type=d.T.string)]), + withContainerRuntimeVersion(containerRuntimeVersion): { containerRuntimeVersion: containerRuntimeVersion }, + '#withKernelVersion':: d.fn(help="\"Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).\"", args=[d.arg(name='kernelVersion', type=d.T.string)]), + withKernelVersion(kernelVersion): { kernelVersion: kernelVersion }, + '#withKubeProxyVersion':: d.fn(help='"KubeProxy Version reported by the node."', args=[d.arg(name='kubeProxyVersion', type=d.T.string)]), + withKubeProxyVersion(kubeProxyVersion): { kubeProxyVersion: kubeProxyVersion }, + '#withKubeletVersion':: d.fn(help='"Kubelet Version reported by the node."', args=[d.arg(name='kubeletVersion', type=d.T.string)]), + withKubeletVersion(kubeletVersion): { kubeletVersion: kubeletVersion }, + '#withMachineID':: d.fn(help='"MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html"', args=[d.arg(name='machineID', type=d.T.string)]), + withMachineID(machineID): { machineID: machineID }, + '#withOperatingSystem':: d.fn(help='"The Operating System reported by the node"', args=[d.arg(name='operatingSystem', type=d.T.string)]), + withOperatingSystem(operatingSystem): { operatingSystem: operatingSystem }, + '#withOsImage':: d.fn(help='"OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy))."', args=[d.arg(name='osImage', type=d.T.string)]), + withOsImage(osImage): { osImage: osImage }, + '#withSystemUUID':: d.fn(help='"SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid"', args=[d.arg(name='systemUUID', type=d.T.string)]), + withSystemUUID(systemUUID): { systemUUID: systemUUID }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/objectFieldSelector.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/objectFieldSelector.libsonnet new file mode 100644 index 0000000..fc987fb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/objectFieldSelector.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='objectFieldSelector', url='', help='"ObjectFieldSelector selects an APIVersioned field of an object."'), + '#withFieldPath':: d.fn(help='"Path of the field to select in the specified API version."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { fieldPath: fieldPath }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/objectReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/objectReference.libsonnet new file mode 100644 index 0000000..7ac4928 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/objectReference.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='objectReference', url='', help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { fieldPath: fieldPath }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { resourceVersion: resourceVersion }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolume.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolume.libsonnet new file mode 100644 index 0000000..888fd18 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolume.libsonnet @@ -0,0 +1,474 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='persistentVolume', url='', help='"PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of PersistentVolume', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'PersistentVolume', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"PersistentVolumeSpec is the specification of a persistent volume."'), + spec: { + '#awsElasticBlockStore':: d.obj(help='"Represents a Persistent Disk resource in AWS.\\n\\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling."'), + awsElasticBlockStore: { + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { awsElasticBlockStore+: { fsType: fsType } } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty)."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { spec+: { awsElasticBlockStore+: { partition: partition } } }, + '#withReadOnly':: d.fn(help='"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { awsElasticBlockStore+: { readOnly: readOnly } } }, + '#withVolumeID':: d.fn(help='"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { spec+: { awsElasticBlockStore+: { volumeID: volumeID } } }, + }, + '#azureDisk':: d.obj(help='"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."'), + azureDisk: { + '#withCachingMode':: d.fn(help='"cachingMode is the Host Caching mode: None, Read Only, Read Write."', args=[d.arg(name='cachingMode', type=d.T.string)]), + withCachingMode(cachingMode): { spec+: { azureDisk+: { cachingMode: cachingMode } } }, + '#withDiskName':: d.fn(help='"diskName is the Name of the data disk in the blob storage"', args=[d.arg(name='diskName', type=d.T.string)]), + withDiskName(diskName): { spec+: { azureDisk+: { diskName: diskName } } }, + '#withDiskURI':: d.fn(help='"diskURI is the URI of data disk in the blob storage"', args=[d.arg(name='diskURI', type=d.T.string)]), + withDiskURI(diskURI): { spec+: { azureDisk+: { diskURI: diskURI } } }, + '#withFsType':: d.fn(help='"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { azureDisk+: { fsType: fsType } } }, + '#withKind':: d.fn(help='"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { azureDisk+: { kind: kind } } }, + '#withReadOnly':: d.fn(help='"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { azureDisk+: { readOnly: readOnly } } }, + }, + '#azureFile':: d.obj(help='"AzureFile represents an Azure File Service mount on the host and bind mount to the pod."'), + azureFile: { + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { azureFile+: { readOnly: readOnly } } }, + '#withSecretName':: d.fn(help='"secretName is the name of secret that contains Azure Storage Account Name and Key"', args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { spec+: { azureFile+: { secretName: secretName } } }, + '#withSecretNamespace':: d.fn(help='"secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod"', args=[d.arg(name='secretNamespace', type=d.T.string)]), + withSecretNamespace(secretNamespace): { spec+: { azureFile+: { secretNamespace: secretNamespace } } }, + '#withShareName':: d.fn(help='"shareName is the azure Share Name"', args=[d.arg(name='shareName', type=d.T.string)]), + withShareName(shareName): { spec+: { azureFile+: { shareName: shareName } } }, + }, + '#cephfs':: d.obj(help='"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."'), + cephfs: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { cephfs+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { cephfs+: { secretRef+: { namespace: namespace } } } }, + }, + '#withMonitors':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { spec+: { cephfs+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } } }, + '#withMonitorsMixin':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { spec+: { cephfs+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } } }, + '#withPath':: d.fn(help='"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { cephfs+: { path: path } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { cephfs+: { readOnly: readOnly } } }, + '#withSecretFile':: d.fn(help='"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='secretFile', type=d.T.string)]), + withSecretFile(secretFile): { spec+: { cephfs+: { secretFile: secretFile } } }, + '#withUser':: d.fn(help='"user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { cephfs+: { user: user } } }, + }, + '#cinder':: d.obj(help='"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."'), + cinder: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { cinder+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { cinder+: { secretRef+: { namespace: namespace } } } }, + }, + '#withFsType':: d.fn(help='"fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { cinder+: { fsType: fsType } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { cinder+: { readOnly: readOnly } } }, + '#withVolumeID':: d.fn(help='"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { spec+: { cinder+: { volumeID: volumeID } } }, + }, + '#claimRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + claimRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { claimRef+: { apiVersion: apiVersion } } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { spec+: { claimRef+: { fieldPath: fieldPath } } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { claimRef+: { kind: kind } } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { claimRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { claimRef+: { namespace: namespace } } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { claimRef+: { resourceVersion: resourceVersion } } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { claimRef+: { uid: uid } } }, + }, + '#csi':: d.obj(help='"Represents storage that is managed by an external CSI volume driver (Beta feature)"'), + csi: { + '#controllerExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { csi+: { controllerExpandSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { csi+: { controllerExpandSecretRef+: { namespace: namespace } } } }, + }, + '#controllerPublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerPublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { csi+: { controllerPublishSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { csi+: { controllerPublishSecretRef+: { namespace: namespace } } } }, + }, + '#nodeExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { csi+: { nodeExpandSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { csi+: { nodeExpandSecretRef+: { namespace: namespace } } } }, + }, + '#nodePublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodePublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { csi+: { nodePublishSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { csi+: { nodePublishSecretRef+: { namespace: namespace } } } }, + }, + '#nodeStageSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeStageSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { csi+: { nodeStageSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { csi+: { nodeStageSecretRef+: { namespace: namespace } } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume. Required."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { spec+: { csi+: { driver: driver } } }, + '#withFsType':: d.fn(help='"fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\"."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { csi+: { fsType: fsType } } }, + '#withReadOnly':: d.fn(help='"readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write)."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { csi+: { readOnly: readOnly } } }, + '#withVolumeAttributes':: d.fn(help='"volumeAttributes of the volume to publish."', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributes(volumeAttributes): { spec+: { csi+: { volumeAttributes: volumeAttributes } } }, + '#withVolumeAttributesMixin':: d.fn(help='"volumeAttributes of the volume to publish."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributesMixin(volumeAttributes): { spec+: { csi+: { volumeAttributes+: volumeAttributes } } }, + '#withVolumeHandle':: d.fn(help='"volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required."', args=[d.arg(name='volumeHandle', type=d.T.string)]), + withVolumeHandle(volumeHandle): { spec+: { csi+: { volumeHandle: volumeHandle } } }, + }, + '#fc':: d.obj(help='"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling."'), + fc: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { fc+: { fsType: fsType } } }, + '#withLun':: d.fn(help='"lun is Optional: FC target lun number"', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { spec+: { fc+: { lun: lun } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { fc+: { readOnly: readOnly } } }, + '#withTargetWWNs':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNs(targetWWNs): { spec+: { fc+: { targetWWNs: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } } }, + '#withTargetWWNsMixin':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNsMixin(targetWWNs): { spec+: { fc+: { targetWWNs+: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } } }, + '#withWwids':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."', args=[d.arg(name='wwids', type=d.T.array)]), + withWwids(wwids): { spec+: { fc+: { wwids: if std.isArray(v=wwids) then wwids else [wwids] } } }, + '#withWwidsMixin':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='wwids', type=d.T.array)]), + withWwidsMixin(wwids): { spec+: { fc+: { wwids+: if std.isArray(v=wwids) then wwids else [wwids] } } }, + }, + '#flexVolume':: d.obj(help='"FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin."'), + flexVolume: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { flexVolume+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { flexVolume+: { secretRef+: { namespace: namespace } } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { spec+: { flexVolume+: { driver: driver } } }, + '#withFsType':: d.fn(help='"fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default filesystem depends on FlexVolume script."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { flexVolume+: { fsType: fsType } } }, + '#withOptions':: d.fn(help='"options is Optional: this field holds extra command options if any."', args=[d.arg(name='options', type=d.T.object)]), + withOptions(options): { spec+: { flexVolume+: { options: options } } }, + '#withOptionsMixin':: d.fn(help='"options is Optional: this field holds extra command options if any."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.object)]), + withOptionsMixin(options): { spec+: { flexVolume+: { options+: options } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { flexVolume+: { readOnly: readOnly } } }, + }, + '#flocker':: d.obj(help='"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling."'), + flocker: { + '#withDatasetName':: d.fn(help='"datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"', args=[d.arg(name='datasetName', type=d.T.string)]), + withDatasetName(datasetName): { spec+: { flocker+: { datasetName: datasetName } } }, + '#withDatasetUUID':: d.fn(help='"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset"', args=[d.arg(name='datasetUUID', type=d.T.string)]), + withDatasetUUID(datasetUUID): { spec+: { flocker+: { datasetUUID: datasetUUID } } }, + }, + '#gcePersistentDisk':: d.obj(help='"Represents a Persistent Disk resource in Google Compute Engine.\\n\\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling."'), + gcePersistentDisk: { + '#withFsType':: d.fn(help='"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { gcePersistentDisk+: { fsType: fsType } } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { spec+: { gcePersistentDisk+: { partition: partition } } }, + '#withPdName':: d.fn(help='"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='pdName', type=d.T.string)]), + withPdName(pdName): { spec+: { gcePersistentDisk+: { pdName: pdName } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { gcePersistentDisk+: { readOnly: readOnly } } }, + }, + '#glusterfs':: d.obj(help='"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."'), + glusterfs: { + '#withEndpoints':: d.fn(help='"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpoints', type=d.T.string)]), + withEndpoints(endpoints): { spec+: { glusterfs+: { endpoints: endpoints } } }, + '#withEndpointsNamespace':: d.fn(help='"endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpointsNamespace', type=d.T.string)]), + withEndpointsNamespace(endpointsNamespace): { spec+: { glusterfs+: { endpointsNamespace: endpointsNamespace } } }, + '#withPath':: d.fn(help='"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { glusterfs+: { path: path } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { glusterfs+: { readOnly: readOnly } } }, + }, + '#hostPath':: d.obj(help='"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling."'), + hostPath: { + '#withPath':: d.fn(help='"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { hostPath+: { path: path } } }, + '#withType':: d.fn(help='"type for HostPath Volume Defaults to \\"\\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { hostPath+: { type: type } } }, + }, + '#iscsi':: d.obj(help='"ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."'), + iscsi: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { iscsi+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { iscsi+: { secretRef+: { namespace: namespace } } } }, + }, + '#withChapAuthDiscovery':: d.fn(help='"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"', args=[d.arg(name='chapAuthDiscovery', type=d.T.boolean)]), + withChapAuthDiscovery(chapAuthDiscovery): { spec+: { iscsi+: { chapAuthDiscovery: chapAuthDiscovery } } }, + '#withChapAuthSession':: d.fn(help='"chapAuthSession defines whether support iSCSI Session CHAP authentication"', args=[d.arg(name='chapAuthSession', type=d.T.boolean)]), + withChapAuthSession(chapAuthSession): { spec+: { iscsi+: { chapAuthSession: chapAuthSession } } }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { iscsi+: { fsType: fsType } } }, + '#withInitiatorName':: d.fn(help='"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection."', args=[d.arg(name='initiatorName', type=d.T.string)]), + withInitiatorName(initiatorName): { spec+: { iscsi+: { initiatorName: initiatorName } } }, + '#withIqn':: d.fn(help='"iqn is Target iSCSI Qualified Name."', args=[d.arg(name='iqn', type=d.T.string)]), + withIqn(iqn): { spec+: { iscsi+: { iqn: iqn } } }, + '#withIscsiInterface':: d.fn(help="\"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).\"", args=[d.arg(name='iscsiInterface', type=d.T.string)]), + withIscsiInterface(iscsiInterface): { spec+: { iscsi+: { iscsiInterface: iscsiInterface } } }, + '#withLun':: d.fn(help='"lun is iSCSI Target Lun number."', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { spec+: { iscsi+: { lun: lun } } }, + '#withPortals':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='portals', type=d.T.array)]), + withPortals(portals): { spec+: { iscsi+: { portals: if std.isArray(v=portals) then portals else [portals] } } }, + '#withPortalsMixin':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='portals', type=d.T.array)]), + withPortalsMixin(portals): { spec+: { iscsi+: { portals+: if std.isArray(v=portals) then portals else [portals] } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { iscsi+: { readOnly: readOnly } } }, + '#withTargetPortal':: d.fn(help='"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='targetPortal', type=d.T.string)]), + withTargetPortal(targetPortal): { spec+: { iscsi+: { targetPortal: targetPortal } } }, + }, + '#local':: d.obj(help='"Local represents directly-attached storage with node affinity (Beta feature)"'), + 'local': { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default value is to auto-select a filesystem if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { 'local'+: { fsType: fsType } } }, + '#withPath':: d.fn(help='"path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...)."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { 'local'+: { path: path } } }, + }, + '#nfs':: d.obj(help='"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling."'), + nfs: { + '#withPath':: d.fn(help='"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { nfs+: { path: path } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { nfs+: { readOnly: readOnly } } }, + '#withServer':: d.fn(help='"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='server', type=d.T.string)]), + withServer(server): { spec+: { nfs+: { server: server } } }, + }, + '#nodeAffinity':: d.obj(help='"VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from."'), + nodeAffinity: { + '#required':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + required: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { nodeAffinity+: { required+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { nodeAffinity+: { required+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } }, + }, + }, + '#photonPersistentDisk':: d.obj(help='"Represents a Photon Controller persistent disk resource."'), + photonPersistentDisk: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { photonPersistentDisk+: { fsType: fsType } } }, + '#withPdID':: d.fn(help='"pdID is the ID that identifies Photon Controller persistent disk"', args=[d.arg(name='pdID', type=d.T.string)]), + withPdID(pdID): { spec+: { photonPersistentDisk+: { pdID: pdID } } }, + }, + '#portworxVolume':: d.obj(help='"PortworxVolumeSource represents a Portworx volume resource."'), + portworxVolume: { + '#withFsType':: d.fn(help='"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { portworxVolume+: { fsType: fsType } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { portworxVolume+: { readOnly: readOnly } } }, + '#withVolumeID':: d.fn(help='"volumeID uniquely identifies a Portworx volume"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { spec+: { portworxVolume+: { volumeID: volumeID } } }, + }, + '#quobyte':: d.obj(help='"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling."'), + quobyte: { + '#withGroup':: d.fn(help='"group to map volume access to Default is no group"', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { spec+: { quobyte+: { group: group } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { quobyte+: { readOnly: readOnly } } }, + '#withRegistry':: d.fn(help='"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"', args=[d.arg(name='registry', type=d.T.string)]), + withRegistry(registry): { spec+: { quobyte+: { registry: registry } } }, + '#withTenant':: d.fn(help='"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin"', args=[d.arg(name='tenant', type=d.T.string)]), + withTenant(tenant): { spec+: { quobyte+: { tenant: tenant } } }, + '#withUser':: d.fn(help='"user to map volume access to Defaults to serivceaccount user"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { quobyte+: { user: user } } }, + '#withVolume':: d.fn(help='"volume is a string that references an already created Quobyte volume by name."', args=[d.arg(name='volume', type=d.T.string)]), + withVolume(volume): { spec+: { quobyte+: { volume: volume } } }, + }, + '#rbd':: d.obj(help='"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."'), + rbd: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { rbd+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { rbd+: { secretRef+: { namespace: namespace } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { rbd+: { fsType: fsType } } }, + '#withImage':: d.fn(help='"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { spec+: { rbd+: { image: image } } }, + '#withKeyring':: d.fn(help='"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='keyring', type=d.T.string)]), + withKeyring(keyring): { spec+: { rbd+: { keyring: keyring } } }, + '#withMonitors':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { spec+: { rbd+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } } }, + '#withMonitorsMixin':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { spec+: { rbd+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } } }, + '#withPool':: d.fn(help='"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='pool', type=d.T.string)]), + withPool(pool): { spec+: { rbd+: { pool: pool } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { rbd+: { readOnly: readOnly } } }, + '#withUser':: d.fn(help='"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { rbd+: { user: user } } }, + }, + '#scaleIO':: d.obj(help='"ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume"'), + scaleIO: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { scaleIO+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { scaleIO+: { secretRef+: { namespace: namespace } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Default is \\"xfs\\', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { scaleIO+: { fsType: fsType } } }, + '#withGateway':: d.fn(help='"gateway is the host address of the ScaleIO API Gateway."', args=[d.arg(name='gateway', type=d.T.string)]), + withGateway(gateway): { spec+: { scaleIO+: { gateway: gateway } } }, + '#withProtectionDomain':: d.fn(help='"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."', args=[d.arg(name='protectionDomain', type=d.T.string)]), + withProtectionDomain(protectionDomain): { spec+: { scaleIO+: { protectionDomain: protectionDomain } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { scaleIO+: { readOnly: readOnly } } }, + '#withSslEnabled':: d.fn(help='"sslEnabled is the flag to enable/disable SSL communication with Gateway, default false"', args=[d.arg(name='sslEnabled', type=d.T.boolean)]), + withSslEnabled(sslEnabled): { spec+: { scaleIO+: { sslEnabled: sslEnabled } } }, + '#withStorageMode':: d.fn(help='"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."', args=[d.arg(name='storageMode', type=d.T.string)]), + withStorageMode(storageMode): { spec+: { scaleIO+: { storageMode: storageMode } } }, + '#withStoragePool':: d.fn(help='"storagePool is the ScaleIO Storage Pool associated with the protection domain."', args=[d.arg(name='storagePool', type=d.T.string)]), + withStoragePool(storagePool): { spec+: { scaleIO+: { storagePool: storagePool } } }, + '#withSystem':: d.fn(help='"system is the name of the storage system as configured in ScaleIO."', args=[d.arg(name='system', type=d.T.string)]), + withSystem(system): { spec+: { scaleIO+: { system: system } } }, + '#withVolumeName':: d.fn(help='"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { spec+: { scaleIO+: { volumeName: volumeName } } }, + }, + '#storageos':: d.obj(help='"Represents a StorageOS persistent volume resource."'), + storageos: { + '#secretRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + secretRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { storageos+: { secretRef+: { apiVersion: apiVersion } } } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { spec+: { storageos+: { secretRef+: { fieldPath: fieldPath } } } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { storageos+: { secretRef+: { kind: kind } } } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { storageos+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { storageos+: { secretRef+: { namespace: namespace } } } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { storageos+: { secretRef+: { resourceVersion: resourceVersion } } } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { storageos+: { secretRef+: { uid: uid } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { storageos+: { fsType: fsType } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { storageos+: { readOnly: readOnly } } }, + '#withVolumeName':: d.fn(help='"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { spec+: { storageos+: { volumeName: volumeName } } }, + '#withVolumeNamespace':: d.fn(help="\"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \\\"default\\\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.\"", args=[d.arg(name='volumeNamespace', type=d.T.string)]), + withVolumeNamespace(volumeNamespace): { spec+: { storageos+: { volumeNamespace: volumeNamespace } } }, + }, + '#vsphereVolume':: d.obj(help='"Represents a vSphere volume resource."'), + vsphereVolume: { + '#withFsType':: d.fn(help='"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { vsphereVolume+: { fsType: fsType } } }, + '#withStoragePolicyID':: d.fn(help='"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."', args=[d.arg(name='storagePolicyID', type=d.T.string)]), + withStoragePolicyID(storagePolicyID): { spec+: { vsphereVolume+: { storagePolicyID: storagePolicyID } } }, + '#withStoragePolicyName':: d.fn(help='"storagePolicyName is the storage Policy Based Management (SPBM) profile name."', args=[d.arg(name='storagePolicyName', type=d.T.string)]), + withStoragePolicyName(storagePolicyName): { spec+: { vsphereVolume+: { storagePolicyName: storagePolicyName } } }, + '#withVolumePath':: d.fn(help='"volumePath is the path that identifies vSphere volume vmdk"', args=[d.arg(name='volumePath', type=d.T.string)]), + withVolumePath(volumePath): { spec+: { vsphereVolume+: { volumePath: volumePath } } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { spec+: { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] } }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { spec+: { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] } }, + '#withCapacity':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacity(capacity): { spec+: { capacity: capacity } }, + '#withCapacityMixin':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacityMixin(capacity): { spec+: { capacity+: capacity } }, + '#withMountOptions':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptions(mountOptions): { spec+: { mountOptions: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] } }, + '#withMountOptionsMixin':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptionsMixin(mountOptions): { spec+: { mountOptions+: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] } }, + '#withPersistentVolumeReclaimPolicy':: d.fn(help='"persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming"', args=[d.arg(name='persistentVolumeReclaimPolicy', type=d.T.string)]), + withPersistentVolumeReclaimPolicy(persistentVolumeReclaimPolicy): { spec+: { persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy } }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass."', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { spec+: { storageClassName: storageClassName } }, + '#withVolumeAttributesClassName':: d.fn(help='"Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature."', args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { spec+: { volumeAttributesClassName: volumeAttributesClassName } }, + '#withVolumeMode':: d.fn(help='"volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { spec+: { volumeMode: volumeMode } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaim.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaim.libsonnet new file mode 100644 index 0000000..45cc903 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaim.libsonnet @@ -0,0 +1,111 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='persistentVolumeClaim', url='', help="\"PersistentVolumeClaim is a user's request for and claim to a persistent volume\""), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of PersistentVolumeClaim', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'PersistentVolumeClaim', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes"'), + spec: { + '#dataSource':: d.obj(help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + dataSource: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { spec+: { dataSource+: { apiGroup: apiGroup } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { dataSource+: { kind: kind } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { dataSource+: { name: name } } }, + }, + '#dataSourceRef':: d.obj(help=''), + dataSourceRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { spec+: { dataSourceRef+: { apiGroup: apiGroup } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { dataSourceRef+: { kind: kind } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { dataSourceRef+: { name: name } } }, + '#withNamespace':: d.fn(help="\"Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\"", args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { dataSourceRef+: { namespace: namespace } } }, + }, + '#resources':: d.obj(help='"VolumeResourceRequirements describes the storage resource requirements for a volume."'), + resources: { + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { spec+: { resources+: { limits: limits } } }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { spec+: { resources+: { limits+: limits } } }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { spec+: { resources+: { requests: requests } } }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { spec+: { resources+: { requests+: requests } } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { spec+: { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] } }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { spec+: { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] } }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { spec+: { storageClassName: storageClassName } }, + '#withVolumeAttributesClassName':: d.fn(help="\"volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.\"", args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { spec+: { volumeAttributesClassName: volumeAttributesClassName } }, + '#withVolumeMode':: d.fn(help='"volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { spec+: { volumeMode: volumeMode } }, + '#withVolumeName':: d.fn(help='"volumeName is the binding reference to the PersistentVolume backing this claim."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { spec+: { volumeName: volumeName } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimCondition.libsonnet new file mode 100644 index 0000000..1fcc0bd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimCondition.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='persistentVolumeClaimCondition', url='', help='"PersistentVolumeClaimCondition contains details about state of pvc"'), + '#withLastProbeTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastProbeTime', type=d.T.string)]), + withLastProbeTime(lastProbeTime): { lastProbeTime: lastProbeTime }, + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"message is the human-readable message indicating details about last transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \\\"Resizing\\\" that means the underlying persistent volume is being resized.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimSpec.libsonnet new file mode 100644 index 0000000..c2cab12 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimSpec.libsonnet @@ -0,0 +1,60 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='persistentVolumeClaimSpec', url='', help='"PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes"'), + '#dataSource':: d.obj(help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + dataSource: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { dataSource+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { dataSource+: { kind: kind } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { dataSource+: { name: name } }, + }, + '#dataSourceRef':: d.obj(help=''), + dataSourceRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { dataSourceRef+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { dataSourceRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { dataSourceRef+: { name: name } }, + '#withNamespace':: d.fn(help="\"Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\"", args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { dataSourceRef+: { namespace: namespace } }, + }, + '#resources':: d.obj(help='"VolumeResourceRequirements describes the storage resource requirements for a volume."'), + resources: { + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { resources+: { limits: limits } }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { resources+: { limits+: limits } }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { resources+: { requests: requests } }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { resources+: { requests+: requests } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { storageClassName: storageClassName }, + '#withVolumeAttributesClassName':: d.fn(help="\"volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.\"", args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { volumeAttributesClassName: volumeAttributesClassName }, + '#withVolumeMode':: d.fn(help='"volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { volumeMode: volumeMode }, + '#withVolumeName':: d.fn(help='"volumeName is the binding reference to the PersistentVolume backing this claim."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { volumeName: volumeName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimStatus.libsonnet new file mode 100644 index 0000000..7534a7a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimStatus.libsonnet @@ -0,0 +1,35 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='persistentVolumeClaimStatus', url='', help='"PersistentVolumeClaimStatus is the current status of a persistent volume claim."'), + '#modifyVolumeStatus':: d.obj(help='"ModifyVolumeStatus represents the status object of ControllerModifyVolume operation"'), + modifyVolumeStatus: { + '#withTargetVolumeAttributesClassName':: d.fn(help='"targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled"', args=[d.arg(name='targetVolumeAttributesClassName', type=d.T.string)]), + withTargetVolumeAttributesClassName(targetVolumeAttributesClassName): { modifyVolumeStatus+: { targetVolumeAttributesClassName: targetVolumeAttributesClassName } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] }, + '#withAllocatedResourceStatuses':: d.fn(help="\"allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\\n\\t* Un-prefixed keys:\\n\\t\\t- storage - the capacity of the volume.\\n\\t* Custom resources must use implementation-defined prefixed names such as \\\"example.com/my-custom-resource\\\"\\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\\n\\nClaimResourceStatus can be in any of following states:\\n\\t- ControllerResizeInProgress:\\n\\t\\tState set when resize controller starts resizing the volume in control-plane.\\n\\t- ControllerResizeFailed:\\n\\t\\tState set when resize has failed in resize controller with a terminal error.\\n\\t- NodeResizePending:\\n\\t\\tState set when resize controller has finished resizing the volume but further resizing of\\n\\t\\tvolume is needed on the node.\\n\\t- NodeResizeInProgress:\\n\\t\\tState set when kubelet starts resizing the volume.\\n\\t- NodeResizeFailed:\\n\\t\\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\\n\\t\\tNodeResizeFailed.\\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\\n\\t- pvc.status.allocatedResourceStatus['storage'] = \\\"ControllerResizeInProgress\\\"\\n - pvc.status.allocatedResourceStatus['storage'] = \\\"ControllerResizeFailed\\\"\\n - pvc.status.allocatedResourceStatus['storage'] = \\\"NodeResizePending\\\"\\n - pvc.status.allocatedResourceStatus['storage'] = \\\"NodeResizeInProgress\\\"\\n - pvc.status.allocatedResourceStatus['storage'] = \\\"NodeResizeFailed\\\"\\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\\n\\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\\n\\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.\"", args=[d.arg(name='allocatedResourceStatuses', type=d.T.object)]), + withAllocatedResourceStatuses(allocatedResourceStatuses): { allocatedResourceStatuses: allocatedResourceStatuses }, + '#withAllocatedResourceStatusesMixin':: d.fn(help="\"allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\\n\\t* Un-prefixed keys:\\n\\t\\t- storage - the capacity of the volume.\\n\\t* Custom resources must use implementation-defined prefixed names such as \\\"example.com/my-custom-resource\\\"\\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\\n\\nClaimResourceStatus can be in any of following states:\\n\\t- ControllerResizeInProgress:\\n\\t\\tState set when resize controller starts resizing the volume in control-plane.\\n\\t- ControllerResizeFailed:\\n\\t\\tState set when resize has failed in resize controller with a terminal error.\\n\\t- NodeResizePending:\\n\\t\\tState set when resize controller has finished resizing the volume but further resizing of\\n\\t\\tvolume is needed on the node.\\n\\t- NodeResizeInProgress:\\n\\t\\tState set when kubelet starts resizing the volume.\\n\\t- NodeResizeFailed:\\n\\t\\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\\n\\t\\tNodeResizeFailed.\\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\\n\\t- pvc.status.allocatedResourceStatus['storage'] = \\\"ControllerResizeInProgress\\\"\\n - pvc.status.allocatedResourceStatus['storage'] = \\\"ControllerResizeFailed\\\"\\n - pvc.status.allocatedResourceStatus['storage'] = \\\"NodeResizePending\\\"\\n - pvc.status.allocatedResourceStatus['storage'] = \\\"NodeResizeInProgress\\\"\\n - pvc.status.allocatedResourceStatus['storage'] = \\\"NodeResizeFailed\\\"\\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\\n\\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\\n\\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='allocatedResourceStatuses', type=d.T.object)]), + withAllocatedResourceStatusesMixin(allocatedResourceStatuses): { allocatedResourceStatuses+: allocatedResourceStatuses }, + '#withAllocatedResources':: d.fn(help='"allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\\n\\t* Un-prefixed keys:\\n\\t\\t- storage - the capacity of the volume.\\n\\t* Custom resources must use implementation-defined prefixed names such as \\"example.com/my-custom-resource\\"\\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\\n\\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\\n\\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\\n\\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature."', args=[d.arg(name='allocatedResources', type=d.T.object)]), + withAllocatedResources(allocatedResources): { allocatedResources: allocatedResources }, + '#withAllocatedResourcesMixin':: d.fn(help='"allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\\n\\t* Un-prefixed keys:\\n\\t\\t- storage - the capacity of the volume.\\n\\t* Custom resources must use implementation-defined prefixed names such as \\"example.com/my-custom-resource\\"\\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\\n\\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\\n\\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\\n\\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='allocatedResources', type=d.T.object)]), + withAllocatedResourcesMixin(allocatedResources): { allocatedResources+: allocatedResources }, + '#withCapacity':: d.fn(help='"capacity represents the actual resources of the underlying volume."', args=[d.arg(name='capacity', type=d.T.object)]), + withCapacity(capacity): { capacity: capacity }, + '#withCapacityMixin':: d.fn(help='"capacity represents the actual resources of the underlying volume."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='capacity', type=d.T.object)]), + withCapacityMixin(capacity): { capacity+: capacity }, + '#withConditions':: d.fn(help="\"conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withCurrentVolumeAttributesClassName':: d.fn(help='"currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is an alpha field and requires enabling VolumeAttributesClass feature."', args=[d.arg(name='currentVolumeAttributesClassName', type=d.T.string)]), + withCurrentVolumeAttributesClassName(currentVolumeAttributesClassName): { currentVolumeAttributesClassName: currentVolumeAttributesClassName }, + '#withPhase':: d.fn(help='"phase represents the current phase of PersistentVolumeClaim."', args=[d.arg(name='phase', type=d.T.string)]), + withPhase(phase): { phase: phase }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimTemplate.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimTemplate.libsonnet new file mode 100644 index 0000000..b09e852 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimTemplate.libsonnet @@ -0,0 +1,106 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='persistentVolumeClaimTemplate', url='', help='"PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#spec':: d.obj(help='"PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes"'), + spec: { + '#dataSource':: d.obj(help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + dataSource: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { spec+: { dataSource+: { apiGroup: apiGroup } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { dataSource+: { kind: kind } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { dataSource+: { name: name } } }, + }, + '#dataSourceRef':: d.obj(help=''), + dataSourceRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { spec+: { dataSourceRef+: { apiGroup: apiGroup } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { dataSourceRef+: { kind: kind } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { dataSourceRef+: { name: name } } }, + '#withNamespace':: d.fn(help="\"Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\"", args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { dataSourceRef+: { namespace: namespace } } }, + }, + '#resources':: d.obj(help='"VolumeResourceRequirements describes the storage resource requirements for a volume."'), + resources: { + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { spec+: { resources+: { limits: limits } } }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { spec+: { resources+: { limits+: limits } } }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { spec+: { resources+: { requests: requests } } }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { spec+: { resources+: { requests+: requests } } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { spec+: { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] } }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { spec+: { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] } }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { spec+: { storageClassName: storageClassName } }, + '#withVolumeAttributesClassName':: d.fn(help="\"volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.\"", args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { spec+: { volumeAttributesClassName: volumeAttributesClassName } }, + '#withVolumeMode':: d.fn(help='"volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { spec+: { volumeMode: volumeMode } }, + '#withVolumeName':: d.fn(help='"volumeName is the binding reference to the PersistentVolume backing this claim."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { spec+: { volumeName: volumeName } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimVolumeSource.libsonnet new file mode 100644 index 0000000..41a0af8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeClaimVolumeSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='persistentVolumeClaimVolumeSource', url='', help="\"PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).\""), + '#withClaimName':: d.fn(help='"claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"', args=[d.arg(name='claimName', type=d.T.string)]), + withClaimName(claimName): { claimName: claimName }, + '#withReadOnly':: d.fn(help='"readOnly Will force the ReadOnly setting in VolumeMounts. Default false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeSpec.libsonnet new file mode 100644 index 0000000..e20d809 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeSpec.libsonnet @@ -0,0 +1,423 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='persistentVolumeSpec', url='', help='"PersistentVolumeSpec is the specification of a persistent volume."'), + '#awsElasticBlockStore':: d.obj(help='"Represents a Persistent Disk resource in AWS.\\n\\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling."'), + awsElasticBlockStore: { + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { awsElasticBlockStore+: { fsType: fsType } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty)."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { awsElasticBlockStore+: { partition: partition } }, + '#withReadOnly':: d.fn(help='"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { awsElasticBlockStore+: { readOnly: readOnly } }, + '#withVolumeID':: d.fn(help='"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { awsElasticBlockStore+: { volumeID: volumeID } }, + }, + '#azureDisk':: d.obj(help='"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."'), + azureDisk: { + '#withCachingMode':: d.fn(help='"cachingMode is the Host Caching mode: None, Read Only, Read Write."', args=[d.arg(name='cachingMode', type=d.T.string)]), + withCachingMode(cachingMode): { azureDisk+: { cachingMode: cachingMode } }, + '#withDiskName':: d.fn(help='"diskName is the Name of the data disk in the blob storage"', args=[d.arg(name='diskName', type=d.T.string)]), + withDiskName(diskName): { azureDisk+: { diskName: diskName } }, + '#withDiskURI':: d.fn(help='"diskURI is the URI of data disk in the blob storage"', args=[d.arg(name='diskURI', type=d.T.string)]), + withDiskURI(diskURI): { azureDisk+: { diskURI: diskURI } }, + '#withFsType':: d.fn(help='"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { azureDisk+: { fsType: fsType } }, + '#withKind':: d.fn(help='"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { azureDisk+: { kind: kind } }, + '#withReadOnly':: d.fn(help='"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { azureDisk+: { readOnly: readOnly } }, + }, + '#azureFile':: d.obj(help='"AzureFile represents an Azure File Service mount on the host and bind mount to the pod."'), + azureFile: { + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { azureFile+: { readOnly: readOnly } }, + '#withSecretName':: d.fn(help='"secretName is the name of secret that contains Azure Storage Account Name and Key"', args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { azureFile+: { secretName: secretName } }, + '#withSecretNamespace':: d.fn(help='"secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod"', args=[d.arg(name='secretNamespace', type=d.T.string)]), + withSecretNamespace(secretNamespace): { azureFile+: { secretNamespace: secretNamespace } }, + '#withShareName':: d.fn(help='"shareName is the azure Share Name"', args=[d.arg(name='shareName', type=d.T.string)]), + withShareName(shareName): { azureFile+: { shareName: shareName } }, + }, + '#cephfs':: d.obj(help='"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."'), + cephfs: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { cephfs+: { secretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { cephfs+: { secretRef+: { namespace: namespace } } }, + }, + '#withMonitors':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { cephfs+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } }, + '#withMonitorsMixin':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { cephfs+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } }, + '#withPath':: d.fn(help='"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { cephfs+: { path: path } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { cephfs+: { readOnly: readOnly } }, + '#withSecretFile':: d.fn(help='"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='secretFile', type=d.T.string)]), + withSecretFile(secretFile): { cephfs+: { secretFile: secretFile } }, + '#withUser':: d.fn(help='"user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { cephfs+: { user: user } }, + }, + '#cinder':: d.obj(help='"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."'), + cinder: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { cinder+: { secretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { cinder+: { secretRef+: { namespace: namespace } } }, + }, + '#withFsType':: d.fn(help='"fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { cinder+: { fsType: fsType } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { cinder+: { readOnly: readOnly } }, + '#withVolumeID':: d.fn(help='"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { cinder+: { volumeID: volumeID } }, + }, + '#claimRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + claimRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { claimRef+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { claimRef+: { fieldPath: fieldPath } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { claimRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { claimRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { claimRef+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { claimRef+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { claimRef+: { uid: uid } }, + }, + '#csi':: d.obj(help='"Represents storage that is managed by an external CSI volume driver (Beta feature)"'), + csi: { + '#controllerExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { csi+: { controllerExpandSecretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { csi+: { controllerExpandSecretRef+: { namespace: namespace } } }, + }, + '#controllerPublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerPublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { csi+: { controllerPublishSecretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { csi+: { controllerPublishSecretRef+: { namespace: namespace } } }, + }, + '#nodeExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { csi+: { nodeExpandSecretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { csi+: { nodeExpandSecretRef+: { namespace: namespace } } }, + }, + '#nodePublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodePublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { csi+: { nodePublishSecretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { csi+: { nodePublishSecretRef+: { namespace: namespace } } }, + }, + '#nodeStageSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeStageSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { csi+: { nodeStageSecretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { csi+: { nodeStageSecretRef+: { namespace: namespace } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume. Required."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { csi+: { driver: driver } }, + '#withFsType':: d.fn(help='"fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\"."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { csi+: { fsType: fsType } }, + '#withReadOnly':: d.fn(help='"readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write)."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { csi+: { readOnly: readOnly } }, + '#withVolumeAttributes':: d.fn(help='"volumeAttributes of the volume to publish."', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributes(volumeAttributes): { csi+: { volumeAttributes: volumeAttributes } }, + '#withVolumeAttributesMixin':: d.fn(help='"volumeAttributes of the volume to publish."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributesMixin(volumeAttributes): { csi+: { volumeAttributes+: volumeAttributes } }, + '#withVolumeHandle':: d.fn(help='"volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required."', args=[d.arg(name='volumeHandle', type=d.T.string)]), + withVolumeHandle(volumeHandle): { csi+: { volumeHandle: volumeHandle } }, + }, + '#fc':: d.obj(help='"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling."'), + fc: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fc+: { fsType: fsType } }, + '#withLun':: d.fn(help='"lun is Optional: FC target lun number"', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { fc+: { lun: lun } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { fc+: { readOnly: readOnly } }, + '#withTargetWWNs':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNs(targetWWNs): { fc+: { targetWWNs: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } }, + '#withTargetWWNsMixin':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNsMixin(targetWWNs): { fc+: { targetWWNs+: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } }, + '#withWwids':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."', args=[d.arg(name='wwids', type=d.T.array)]), + withWwids(wwids): { fc+: { wwids: if std.isArray(v=wwids) then wwids else [wwids] } }, + '#withWwidsMixin':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='wwids', type=d.T.array)]), + withWwidsMixin(wwids): { fc+: { wwids+: if std.isArray(v=wwids) then wwids else [wwids] } }, + }, + '#flexVolume':: d.obj(help='"FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin."'), + flexVolume: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { flexVolume+: { secretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { flexVolume+: { secretRef+: { namespace: namespace } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { flexVolume+: { driver: driver } }, + '#withFsType':: d.fn(help='"fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default filesystem depends on FlexVolume script."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { flexVolume+: { fsType: fsType } }, + '#withOptions':: d.fn(help='"options is Optional: this field holds extra command options if any."', args=[d.arg(name='options', type=d.T.object)]), + withOptions(options): { flexVolume+: { options: options } }, + '#withOptionsMixin':: d.fn(help='"options is Optional: this field holds extra command options if any."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.object)]), + withOptionsMixin(options): { flexVolume+: { options+: options } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { flexVolume+: { readOnly: readOnly } }, + }, + '#flocker':: d.obj(help='"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling."'), + flocker: { + '#withDatasetName':: d.fn(help='"datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"', args=[d.arg(name='datasetName', type=d.T.string)]), + withDatasetName(datasetName): { flocker+: { datasetName: datasetName } }, + '#withDatasetUUID':: d.fn(help='"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset"', args=[d.arg(name='datasetUUID', type=d.T.string)]), + withDatasetUUID(datasetUUID): { flocker+: { datasetUUID: datasetUUID } }, + }, + '#gcePersistentDisk':: d.obj(help='"Represents a Persistent Disk resource in Google Compute Engine.\\n\\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling."'), + gcePersistentDisk: { + '#withFsType':: d.fn(help='"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { gcePersistentDisk+: { fsType: fsType } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { gcePersistentDisk+: { partition: partition } }, + '#withPdName':: d.fn(help='"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='pdName', type=d.T.string)]), + withPdName(pdName): { gcePersistentDisk+: { pdName: pdName } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { gcePersistentDisk+: { readOnly: readOnly } }, + }, + '#glusterfs':: d.obj(help='"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."'), + glusterfs: { + '#withEndpoints':: d.fn(help='"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpoints', type=d.T.string)]), + withEndpoints(endpoints): { glusterfs+: { endpoints: endpoints } }, + '#withEndpointsNamespace':: d.fn(help='"endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpointsNamespace', type=d.T.string)]), + withEndpointsNamespace(endpointsNamespace): { glusterfs+: { endpointsNamespace: endpointsNamespace } }, + '#withPath':: d.fn(help='"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { glusterfs+: { path: path } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { glusterfs+: { readOnly: readOnly } }, + }, + '#hostPath':: d.obj(help='"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling."'), + hostPath: { + '#withPath':: d.fn(help='"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { hostPath+: { path: path } }, + '#withType':: d.fn(help='"type for HostPath Volume Defaults to \\"\\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { hostPath+: { type: type } }, + }, + '#iscsi':: d.obj(help='"ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."'), + iscsi: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { iscsi+: { secretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { iscsi+: { secretRef+: { namespace: namespace } } }, + }, + '#withChapAuthDiscovery':: d.fn(help='"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"', args=[d.arg(name='chapAuthDiscovery', type=d.T.boolean)]), + withChapAuthDiscovery(chapAuthDiscovery): { iscsi+: { chapAuthDiscovery: chapAuthDiscovery } }, + '#withChapAuthSession':: d.fn(help='"chapAuthSession defines whether support iSCSI Session CHAP authentication"', args=[d.arg(name='chapAuthSession', type=d.T.boolean)]), + withChapAuthSession(chapAuthSession): { iscsi+: { chapAuthSession: chapAuthSession } }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { iscsi+: { fsType: fsType } }, + '#withInitiatorName':: d.fn(help='"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection."', args=[d.arg(name='initiatorName', type=d.T.string)]), + withInitiatorName(initiatorName): { iscsi+: { initiatorName: initiatorName } }, + '#withIqn':: d.fn(help='"iqn is Target iSCSI Qualified Name."', args=[d.arg(name='iqn', type=d.T.string)]), + withIqn(iqn): { iscsi+: { iqn: iqn } }, + '#withIscsiInterface':: d.fn(help="\"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).\"", args=[d.arg(name='iscsiInterface', type=d.T.string)]), + withIscsiInterface(iscsiInterface): { iscsi+: { iscsiInterface: iscsiInterface } }, + '#withLun':: d.fn(help='"lun is iSCSI Target Lun number."', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { iscsi+: { lun: lun } }, + '#withPortals':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='portals', type=d.T.array)]), + withPortals(portals): { iscsi+: { portals: if std.isArray(v=portals) then portals else [portals] } }, + '#withPortalsMixin':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='portals', type=d.T.array)]), + withPortalsMixin(portals): { iscsi+: { portals+: if std.isArray(v=portals) then portals else [portals] } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { iscsi+: { readOnly: readOnly } }, + '#withTargetPortal':: d.fn(help='"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='targetPortal', type=d.T.string)]), + withTargetPortal(targetPortal): { iscsi+: { targetPortal: targetPortal } }, + }, + '#local':: d.obj(help='"Local represents directly-attached storage with node affinity (Beta feature)"'), + 'local': { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default value is to auto-select a filesystem if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { 'local'+: { fsType: fsType } }, + '#withPath':: d.fn(help='"path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...)."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { 'local'+: { path: path } }, + }, + '#nfs':: d.obj(help='"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling."'), + nfs: { + '#withPath':: d.fn(help='"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { nfs+: { path: path } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { nfs+: { readOnly: readOnly } }, + '#withServer':: d.fn(help='"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='server', type=d.T.string)]), + withServer(server): { nfs+: { server: server } }, + }, + '#nodeAffinity':: d.obj(help='"VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from."'), + nodeAffinity: { + '#required':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + required: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { nodeAffinity+: { required+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { nodeAffinity+: { required+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } }, + }, + }, + '#photonPersistentDisk':: d.obj(help='"Represents a Photon Controller persistent disk resource."'), + photonPersistentDisk: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { photonPersistentDisk+: { fsType: fsType } }, + '#withPdID':: d.fn(help='"pdID is the ID that identifies Photon Controller persistent disk"', args=[d.arg(name='pdID', type=d.T.string)]), + withPdID(pdID): { photonPersistentDisk+: { pdID: pdID } }, + }, + '#portworxVolume':: d.obj(help='"PortworxVolumeSource represents a Portworx volume resource."'), + portworxVolume: { + '#withFsType':: d.fn(help='"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { portworxVolume+: { fsType: fsType } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { portworxVolume+: { readOnly: readOnly } }, + '#withVolumeID':: d.fn(help='"volumeID uniquely identifies a Portworx volume"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { portworxVolume+: { volumeID: volumeID } }, + }, + '#quobyte':: d.obj(help='"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling."'), + quobyte: { + '#withGroup':: d.fn(help='"group to map volume access to Default is no group"', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { quobyte+: { group: group } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { quobyte+: { readOnly: readOnly } }, + '#withRegistry':: d.fn(help='"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"', args=[d.arg(name='registry', type=d.T.string)]), + withRegistry(registry): { quobyte+: { registry: registry } }, + '#withTenant':: d.fn(help='"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin"', args=[d.arg(name='tenant', type=d.T.string)]), + withTenant(tenant): { quobyte+: { tenant: tenant } }, + '#withUser':: d.fn(help='"user to map volume access to Defaults to serivceaccount user"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { quobyte+: { user: user } }, + '#withVolume':: d.fn(help='"volume is a string that references an already created Quobyte volume by name."', args=[d.arg(name='volume', type=d.T.string)]), + withVolume(volume): { quobyte+: { volume: volume } }, + }, + '#rbd':: d.obj(help='"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."'), + rbd: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { rbd+: { secretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { rbd+: { secretRef+: { namespace: namespace } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { rbd+: { fsType: fsType } }, + '#withImage':: d.fn(help='"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { rbd+: { image: image } }, + '#withKeyring':: d.fn(help='"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='keyring', type=d.T.string)]), + withKeyring(keyring): { rbd+: { keyring: keyring } }, + '#withMonitors':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { rbd+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } }, + '#withMonitorsMixin':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { rbd+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } }, + '#withPool':: d.fn(help='"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='pool', type=d.T.string)]), + withPool(pool): { rbd+: { pool: pool } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { rbd+: { readOnly: readOnly } }, + '#withUser':: d.fn(help='"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { rbd+: { user: user } }, + }, + '#scaleIO':: d.obj(help='"ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume"'), + scaleIO: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { scaleIO+: { secretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { scaleIO+: { secretRef+: { namespace: namespace } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Default is \\"xfs\\', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { scaleIO+: { fsType: fsType } }, + '#withGateway':: d.fn(help='"gateway is the host address of the ScaleIO API Gateway."', args=[d.arg(name='gateway', type=d.T.string)]), + withGateway(gateway): { scaleIO+: { gateway: gateway } }, + '#withProtectionDomain':: d.fn(help='"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."', args=[d.arg(name='protectionDomain', type=d.T.string)]), + withProtectionDomain(protectionDomain): { scaleIO+: { protectionDomain: protectionDomain } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { scaleIO+: { readOnly: readOnly } }, + '#withSslEnabled':: d.fn(help='"sslEnabled is the flag to enable/disable SSL communication with Gateway, default false"', args=[d.arg(name='sslEnabled', type=d.T.boolean)]), + withSslEnabled(sslEnabled): { scaleIO+: { sslEnabled: sslEnabled } }, + '#withStorageMode':: d.fn(help='"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."', args=[d.arg(name='storageMode', type=d.T.string)]), + withStorageMode(storageMode): { scaleIO+: { storageMode: storageMode } }, + '#withStoragePool':: d.fn(help='"storagePool is the ScaleIO Storage Pool associated with the protection domain."', args=[d.arg(name='storagePool', type=d.T.string)]), + withStoragePool(storagePool): { scaleIO+: { storagePool: storagePool } }, + '#withSystem':: d.fn(help='"system is the name of the storage system as configured in ScaleIO."', args=[d.arg(name='system', type=d.T.string)]), + withSystem(system): { scaleIO+: { system: system } }, + '#withVolumeName':: d.fn(help='"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { scaleIO+: { volumeName: volumeName } }, + }, + '#storageos':: d.obj(help='"Represents a StorageOS persistent volume resource."'), + storageos: { + '#secretRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + secretRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { storageos+: { secretRef+: { apiVersion: apiVersion } } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { storageos+: { secretRef+: { fieldPath: fieldPath } } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { storageos+: { secretRef+: { kind: kind } } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { storageos+: { secretRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { storageos+: { secretRef+: { namespace: namespace } } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { storageos+: { secretRef+: { resourceVersion: resourceVersion } } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { storageos+: { secretRef+: { uid: uid } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { storageos+: { fsType: fsType } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { storageos+: { readOnly: readOnly } }, + '#withVolumeName':: d.fn(help='"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { storageos+: { volumeName: volumeName } }, + '#withVolumeNamespace':: d.fn(help="\"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \\\"default\\\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.\"", args=[d.arg(name='volumeNamespace', type=d.T.string)]), + withVolumeNamespace(volumeNamespace): { storageos+: { volumeNamespace: volumeNamespace } }, + }, + '#vsphereVolume':: d.obj(help='"Represents a vSphere volume resource."'), + vsphereVolume: { + '#withFsType':: d.fn(help='"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { vsphereVolume+: { fsType: fsType } }, + '#withStoragePolicyID':: d.fn(help='"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."', args=[d.arg(name='storagePolicyID', type=d.T.string)]), + withStoragePolicyID(storagePolicyID): { vsphereVolume+: { storagePolicyID: storagePolicyID } }, + '#withStoragePolicyName':: d.fn(help='"storagePolicyName is the storage Policy Based Management (SPBM) profile name."', args=[d.arg(name='storagePolicyName', type=d.T.string)]), + withStoragePolicyName(storagePolicyName): { vsphereVolume+: { storagePolicyName: storagePolicyName } }, + '#withVolumePath':: d.fn(help='"volumePath is the path that identifies vSphere volume vmdk"', args=[d.arg(name='volumePath', type=d.T.string)]), + withVolumePath(volumePath): { vsphereVolume+: { volumePath: volumePath } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] }, + '#withCapacity':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacity(capacity): { capacity: capacity }, + '#withCapacityMixin':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacityMixin(capacity): { capacity+: capacity }, + '#withMountOptions':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptions(mountOptions): { mountOptions: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] }, + '#withMountOptionsMixin':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptionsMixin(mountOptions): { mountOptions+: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] }, + '#withPersistentVolumeReclaimPolicy':: d.fn(help='"persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming"', args=[d.arg(name='persistentVolumeReclaimPolicy', type=d.T.string)]), + withPersistentVolumeReclaimPolicy(persistentVolumeReclaimPolicy): { persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass."', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { storageClassName: storageClassName }, + '#withVolumeAttributesClassName':: d.fn(help='"Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature."', args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { volumeAttributesClassName: volumeAttributesClassName }, + '#withVolumeMode':: d.fn(help='"volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { volumeMode: volumeMode }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeStatus.libsonnet new file mode 100644 index 0000000..e855006 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/persistentVolumeStatus.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='persistentVolumeStatus', url='', help='"PersistentVolumeStatus is the current status of a persistent volume."'), + '#withLastPhaseTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastPhaseTransitionTime', type=d.T.string)]), + withLastPhaseTransitionTime(lastPhaseTransitionTime): { lastPhaseTransitionTime: lastPhaseTransitionTime }, + '#withMessage':: d.fn(help='"message is a human-readable message indicating details about why the volume is in this state."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withPhase':: d.fn(help='"phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase"', args=[d.arg(name='phase', type=d.T.string)]), + withPhase(phase): { phase: phase }, + '#withReason':: d.fn(help='"reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/photonPersistentDiskVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/photonPersistentDiskVolumeSource.libsonnet new file mode 100644 index 0000000..15b92e0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/photonPersistentDiskVolumeSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='photonPersistentDiskVolumeSource', url='', help='"Represents a Photon Controller persistent disk resource."'), + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withPdID':: d.fn(help='"pdID is the ID that identifies Photon Controller persistent disk"', args=[d.arg(name='pdID', type=d.T.string)]), + withPdID(pdID): { pdID: pdID }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/pod.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/pod.libsonnet new file mode 100644 index 0000000..4b71316 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/pod.libsonnet @@ -0,0 +1,269 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='pod', url='', help='"Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Pod', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'Pod', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { os+: { name: name } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { securityContext+: { appArmorProfile+: { type: type } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { securityContext+: { seccompProfile+: { type: type } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { securityContext+: { fsGroup: fsGroup } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { securityContext+: { runAsGroup: runAsGroup } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { securityContext+: { runAsUser: runAsUser } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { automountServiceAccountToken: automountServiceAccountToken } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { dnsPolicy: dnsPolicy } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { enableServiceLinks: enableServiceLinks } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { hostIPC: hostIPC } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { hostNetwork: hostNetwork } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { hostPID: hostPID } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { hostUsers: hostUsers } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { hostname: hostname } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { nodeName: nodeName } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { nodeSelector: nodeSelector } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { nodeSelector+: nodeSelector } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { overhead: overhead } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { overhead+: overhead } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { preemptionPolicy: preemptionPolicy } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { priority: priority } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { priorityClassName: priorityClassName } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { restartPolicy: restartPolicy } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { runtimeClassName: runtimeClassName } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { schedulerName: schedulerName } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { serviceAccount: serviceAccount } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { serviceAccountName: serviceAccountName } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { shareProcessNamespace: shareProcessNamespace } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { subdomain: subdomain } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAffinity.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAffinity.libsonnet new file mode 100644 index 0000000..5f5bb55 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAffinity.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podAffinity', url='', help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAffinityTerm.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAffinityTerm.libsonnet new file mode 100644 index 0000000..117deb7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAffinityTerm.libsonnet @@ -0,0 +1,42 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podAffinityTerm', url='', help='"Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running"'), + '#labelSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + labelSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { labelSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { labelSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { labelSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { labelSelector+: { matchLabels+: matchLabels } }, + }, + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { namespaceSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { namespaceSelector+: { matchLabels+: matchLabels } }, + }, + '#withMatchLabelKeys':: d.fn(help="\"MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.\"", args=[d.arg(name='matchLabelKeys', type=d.T.array)]), + withMatchLabelKeys(matchLabelKeys): { matchLabelKeys: if std.isArray(v=matchLabelKeys) then matchLabelKeys else [matchLabelKeys] }, + '#withMatchLabelKeysMixin':: d.fn(help="\"MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='matchLabelKeys', type=d.T.array)]), + withMatchLabelKeysMixin(matchLabelKeys): { matchLabelKeys+: if std.isArray(v=matchLabelKeys) then matchLabelKeys else [matchLabelKeys] }, + '#withMismatchLabelKeys':: d.fn(help="\"MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.\"", args=[d.arg(name='mismatchLabelKeys', type=d.T.array)]), + withMismatchLabelKeys(mismatchLabelKeys): { mismatchLabelKeys: if std.isArray(v=mismatchLabelKeys) then mismatchLabelKeys else [mismatchLabelKeys] }, + '#withMismatchLabelKeysMixin':: d.fn(help="\"MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='mismatchLabelKeys', type=d.T.array)]), + withMismatchLabelKeysMixin(mismatchLabelKeys): { mismatchLabelKeys+: if std.isArray(v=mismatchLabelKeys) then mismatchLabelKeys else [mismatchLabelKeys] }, + '#withNamespaces':: d.fn(help="\"namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \\\"this pod's namespace\\\".\"", args=[d.arg(name='namespaces', type=d.T.array)]), + withNamespaces(namespaces): { namespaces: if std.isArray(v=namespaces) then namespaces else [namespaces] }, + '#withNamespacesMixin':: d.fn(help="\"namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \\\"this pod's namespace\\\".\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='namespaces', type=d.T.array)]), + withNamespacesMixin(namespaces): { namespaces+: if std.isArray(v=namespaces) then namespaces else [namespaces] }, + '#withTopologyKey':: d.fn(help='"This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed."', args=[d.arg(name='topologyKey', type=d.T.string)]), + withTopologyKey(topologyKey): { topologyKey: topologyKey }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAntiAffinity.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAntiAffinity.libsonnet new file mode 100644 index 0000000..000efc2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podAntiAffinity.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podAntiAffinity', url='', help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podCondition.libsonnet new file mode 100644 index 0000000..74b6628 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podCondition.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podCondition', url='', help='"PodCondition contains details for the current condition of this pod."'), + '#withLastProbeTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastProbeTime', type=d.T.string)]), + withLastProbeTime(lastProbeTime): { lastProbeTime: lastProbeTime }, + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"Human-readable message indicating details about last transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"Unique, one-word, CamelCase reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podDNSConfig.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podDNSConfig.libsonnet new file mode 100644 index 0000000..f2188af --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podDNSConfig.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podDNSConfig', url='', help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { options: if std.isArray(v=options) then options else [options] }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { options+: if std.isArray(v=options) then options else [options] }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { searches: if std.isArray(v=searches) then searches else [searches] }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { searches+: if std.isArray(v=searches) then searches else [searches] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podDNSConfigOption.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podDNSConfigOption.libsonnet new file mode 100644 index 0000000..f3a047d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podDNSConfigOption.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podDNSConfigOption', url='', help='"PodDNSConfigOption defines DNS resolver options of a pod."'), + '#withName':: d.fn(help='"Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withValue':: d.fn(help='', args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podIP.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podIP.libsonnet new file mode 100644 index 0000000..08951dc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podIP.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podIP', url='', help='"PodIP represents a single IP address allocated to the pod."'), + '#withIp':: d.fn(help='"IP is the IP address assigned to the pod"', args=[d.arg(name='ip', type=d.T.string)]), + withIp(ip): { ip: ip }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podOS.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podOS.libsonnet new file mode 100644 index 0000000..fd6b949 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podOS.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podOS', url='', help='"PodOS defines the OS parameters of a pod."'), + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podReadinessGate.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podReadinessGate.libsonnet new file mode 100644 index 0000000..effcf42 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podReadinessGate.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podReadinessGate', url='', help='"PodReadinessGate contains the reference to a pod condition"'), + '#withConditionType':: d.fn(help="\"ConditionType refers to a condition in the pod's condition list with matching type.\"", args=[d.arg(name='conditionType', type=d.T.string)]), + withConditionType(conditionType): { conditionType: conditionType }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podResourceClaim.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podResourceClaim.libsonnet new file mode 100644 index 0000000..bbe0a5b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podResourceClaim.libsonnet @@ -0,0 +1,15 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podResourceClaim', url='', help='"PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name."'), + '#source':: d.obj(help='"ClaimSource describes a reference to a ResourceClaim.\\n\\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value."'), + source: { + '#withResourceClaimName':: d.fn(help='"ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod."', args=[d.arg(name='resourceClaimName', type=d.T.string)]), + withResourceClaimName(resourceClaimName): { source+: { resourceClaimName: resourceClaimName } }, + '#withResourceClaimTemplateName':: d.fn(help='"ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\\n\\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\\n\\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim."', args=[d.arg(name='resourceClaimTemplateName', type=d.T.string)]), + withResourceClaimTemplateName(resourceClaimTemplateName): { source+: { resourceClaimTemplateName: resourceClaimTemplateName } }, + }, + '#withName':: d.fn(help='"Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podResourceClaimStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podResourceClaimStatus.libsonnet new file mode 100644 index 0000000..11fa0c7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podResourceClaimStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podResourceClaimStatus', url='', help='"PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim."'), + '#withName':: d.fn(help='"Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withResourceClaimName':: d.fn(help='"ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case."', args=[d.arg(name='resourceClaimName', type=d.T.string)]), + withResourceClaimName(resourceClaimName): { resourceClaimName: resourceClaimName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSchedulingGate.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSchedulingGate.libsonnet new file mode 100644 index 0000000..072a4eb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSchedulingGate.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podSchedulingGate', url='', help='"PodSchedulingGate is associated to a Pod to guard its scheduling."'), + '#withName':: d.fn(help='"Name of the scheduling gate. Each scheduling gate must have a unique name field."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSecurityContext.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSecurityContext.libsonnet new file mode 100644 index 0000000..564dd45 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSecurityContext.libsonnet @@ -0,0 +1,60 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podSecurityContext', url='', help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { appArmorProfile+: { localhostProfile: localhostProfile } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { appArmorProfile+: { type: type } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { seLinuxOptions+: { level: level } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { seLinuxOptions+: { role: role } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { seLinuxOptions+: { type: type } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { seLinuxOptions+: { user: user } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { seccompProfile+: { localhostProfile: localhostProfile } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { seccompProfile+: { type: type } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { windowsOptions+: { hostProcess: hostProcess } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { windowsOptions+: { runAsUserName: runAsUserName } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { fsGroup: fsGroup }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { fsGroupChangePolicy: fsGroupChangePolicy }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { runAsGroup: runAsGroup }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { runAsNonRoot: runAsNonRoot }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { runAsUser: runAsUser }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSpec.libsonnet new file mode 100644 index 0000000..b3d9423 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podSpec.libsonnet @@ -0,0 +1,218 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podSpec', url='', help='"PodSpec is a description of a pod."'), + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { os+: { name: name } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { securityContext+: { appArmorProfile+: { type: type } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { securityContext+: { seLinuxOptions+: { level: level } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { securityContext+: { seLinuxOptions+: { role: role } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { securityContext+: { seLinuxOptions+: { type: type } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { securityContext+: { seLinuxOptions+: { user: user } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { securityContext+: { seccompProfile+: { type: type } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { securityContext+: { fsGroup: fsGroup } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { securityContext+: { runAsGroup: runAsGroup } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { securityContext+: { runAsNonRoot: runAsNonRoot } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { securityContext+: { runAsUser: runAsUser } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { activeDeadlineSeconds: activeDeadlineSeconds }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { automountServiceAccountToken: automountServiceAccountToken }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { containers: if std.isArray(v=containers) then containers else [containers] }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { containers+: if std.isArray(v=containers) then containers else [containers] }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { dnsPolicy: dnsPolicy }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { enableServiceLinks: enableServiceLinks }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { hostIPC: hostIPC }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { hostNetwork: hostNetwork }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { hostPID: hostPID }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { hostUsers: hostUsers }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { hostname: hostname }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { nodeName: nodeName }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { nodeSelector: nodeSelector }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { nodeSelector+: nodeSelector }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { overhead: overhead }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { overhead+: overhead }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { preemptionPolicy: preemptionPolicy }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { priority: priority }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { priorityClassName: priorityClassName }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { restartPolicy: restartPolicy }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { runtimeClassName: runtimeClassName }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { schedulerName: schedulerName }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { serviceAccount: serviceAccount }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { serviceAccountName: serviceAccountName }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { setHostnameAsFQDN: setHostnameAsFQDN }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { shareProcessNamespace: shareProcessNamespace }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { subdomain: subdomain }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { terminationGracePeriodSeconds: terminationGracePeriodSeconds }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { volumes: if std.isArray(v=volumes) then volumes else [volumes] }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { volumes+: if std.isArray(v=volumes) then volumes else [volumes] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podStatus.libsonnet new file mode 100644 index 0000000..e76c07d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podStatus.libsonnet @@ -0,0 +1,52 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podStatus', url='', help='"PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane."'), + '#withConditions':: d.fn(help='"Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions"', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withContainerStatuses':: d.fn(help='"The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status"', args=[d.arg(name='containerStatuses', type=d.T.array)]), + withContainerStatuses(containerStatuses): { containerStatuses: if std.isArray(v=containerStatuses) then containerStatuses else [containerStatuses] }, + '#withContainerStatusesMixin':: d.fn(help='"The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containerStatuses', type=d.T.array)]), + withContainerStatusesMixin(containerStatuses): { containerStatuses+: if std.isArray(v=containerStatuses) then containerStatuses else [containerStatuses] }, + '#withEphemeralContainerStatuses':: d.fn(help='"Status for any ephemeral containers that have run in this pod."', args=[d.arg(name='ephemeralContainerStatuses', type=d.T.array)]), + withEphemeralContainerStatuses(ephemeralContainerStatuses): { ephemeralContainerStatuses: if std.isArray(v=ephemeralContainerStatuses) then ephemeralContainerStatuses else [ephemeralContainerStatuses] }, + '#withEphemeralContainerStatusesMixin':: d.fn(help='"Status for any ephemeral containers that have run in this pod."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ephemeralContainerStatuses', type=d.T.array)]), + withEphemeralContainerStatusesMixin(ephemeralContainerStatuses): { ephemeralContainerStatuses+: if std.isArray(v=ephemeralContainerStatuses) then ephemeralContainerStatuses else [ephemeralContainerStatuses] }, + '#withHostIP':: d.fn(help='"hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod"', args=[d.arg(name='hostIP', type=d.T.string)]), + withHostIP(hostIP): { hostIP: hostIP }, + '#withHostIPs':: d.fn(help='"hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod."', args=[d.arg(name='hostIPs', type=d.T.array)]), + withHostIPs(hostIPs): { hostIPs: if std.isArray(v=hostIPs) then hostIPs else [hostIPs] }, + '#withHostIPsMixin':: d.fn(help='"hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='hostIPs', type=d.T.array)]), + withHostIPsMixin(hostIPs): { hostIPs+: if std.isArray(v=hostIPs) then hostIPs else [hostIPs] }, + '#withInitContainerStatuses':: d.fn(help='"The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status"', args=[d.arg(name='initContainerStatuses', type=d.T.array)]), + withInitContainerStatuses(initContainerStatuses): { initContainerStatuses: if std.isArray(v=initContainerStatuses) then initContainerStatuses else [initContainerStatuses] }, + '#withInitContainerStatusesMixin':: d.fn(help='"The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainerStatuses', type=d.T.array)]), + withInitContainerStatusesMixin(initContainerStatuses): { initContainerStatuses+: if std.isArray(v=initContainerStatuses) then initContainerStatuses else [initContainerStatuses] }, + '#withMessage':: d.fn(help='"A human readable message indicating details about why the pod is in this condition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withNominatedNodeName':: d.fn(help='"nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled."', args=[d.arg(name='nominatedNodeName', type=d.T.string)]), + withNominatedNodeName(nominatedNodeName): { nominatedNodeName: nominatedNodeName }, + '#withPhase':: d.fn(help="\"The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\\n\\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\\n\\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase\"", args=[d.arg(name='phase', type=d.T.string)]), + withPhase(phase): { phase: phase }, + '#withPodIP':: d.fn(help='"podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated."', args=[d.arg(name='podIP', type=d.T.string)]), + withPodIP(podIP): { podIP: podIP }, + '#withPodIPs':: d.fn(help='"podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet."', args=[d.arg(name='podIPs', type=d.T.array)]), + withPodIPs(podIPs): { podIPs: if std.isArray(v=podIPs) then podIPs else [podIPs] }, + '#withPodIPsMixin':: d.fn(help='"podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='podIPs', type=d.T.array)]), + withPodIPsMixin(podIPs): { podIPs+: if std.isArray(v=podIPs) then podIPs else [podIPs] }, + '#withQosClass':: d.fn(help='"The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes"', args=[d.arg(name='qosClass', type=d.T.string)]), + withQosClass(qosClass): { qosClass: qosClass }, + '#withReason':: d.fn(help="\"A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withResize':: d.fn(help="\"Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \\\"Proposed\\", args=[d.arg(name='resize', type=d.T.string)]), + withResize(resize): { resize: resize }, + '#withResourceClaimStatuses':: d.fn(help='"Status of resource claims."', args=[d.arg(name='resourceClaimStatuses', type=d.T.array)]), + withResourceClaimStatuses(resourceClaimStatuses): { resourceClaimStatuses: if std.isArray(v=resourceClaimStatuses) then resourceClaimStatuses else [resourceClaimStatuses] }, + '#withResourceClaimStatusesMixin':: d.fn(help='"Status of resource claims."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaimStatuses', type=d.T.array)]), + withResourceClaimStatusesMixin(resourceClaimStatuses): { resourceClaimStatuses+: if std.isArray(v=resourceClaimStatuses) then resourceClaimStatuses else [resourceClaimStatuses] }, + '#withStartTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='startTime', type=d.T.string)]), + withStartTime(startTime): { startTime: startTime }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podTemplate.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podTemplate.libsonnet new file mode 100644 index 0000000..ac0c032 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podTemplate.libsonnet @@ -0,0 +1,315 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podTemplate', url='', help='"PodTemplate describes a template for creating copies of a predefined pod."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of PodTemplate', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'PodTemplate', + } + self.metadata.withName(name=name), + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { template+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { template+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { template+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { template+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { template+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { template+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { template+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { template+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { template+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { template+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { template+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { spec+: { os+: { name: name } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { template+: { spec+: { dnsPolicy: dnsPolicy } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { template+: { spec+: { enableServiceLinks: enableServiceLinks } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { template+: { spec+: { hostIPC: hostIPC } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { template+: { spec+: { hostNetwork: hostNetwork } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { template+: { spec+: { hostPID: hostPID } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { template+: { spec+: { hostUsers: hostUsers } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { template+: { spec+: { hostname: hostname } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { template+: { spec+: { nodeName: nodeName } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { template+: { spec+: { nodeSelector: nodeSelector } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { template+: { spec+: { nodeSelector+: nodeSelector } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { template+: { spec+: { overhead: overhead } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { template+: { spec+: { overhead+: overhead } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { template+: { spec+: { preemptionPolicy: preemptionPolicy } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { template+: { spec+: { priority: priority } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { template+: { spec+: { priorityClassName: priorityClassName } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { template+: { spec+: { restartPolicy: restartPolicy } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { template+: { spec+: { runtimeClassName: runtimeClassName } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { template+: { spec+: { schedulerName: schedulerName } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { template+: { spec+: { serviceAccount: serviceAccount } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { template+: { spec+: { serviceAccountName: serviceAccountName } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { template+: { spec+: { subdomain: subdomain } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } }, + }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podTemplateSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podTemplateSpec.libsonnet new file mode 100644 index 0000000..b72068a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/podTemplateSpec.libsonnet @@ -0,0 +1,264 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podTemplateSpec', url='', help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { os+: { name: name } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { securityContext+: { appArmorProfile+: { type: type } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { securityContext+: { seccompProfile+: { type: type } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { securityContext+: { fsGroup: fsGroup } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { securityContext+: { runAsGroup: runAsGroup } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { securityContext+: { runAsUser: runAsUser } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { automountServiceAccountToken: automountServiceAccountToken } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { dnsPolicy: dnsPolicy } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { enableServiceLinks: enableServiceLinks } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { hostIPC: hostIPC } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { hostNetwork: hostNetwork } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { hostPID: hostPID } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { hostUsers: hostUsers } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { hostname: hostname } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { nodeName: nodeName } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { nodeSelector: nodeSelector } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { nodeSelector+: nodeSelector } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { overhead: overhead } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { overhead+: overhead } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { preemptionPolicy: preemptionPolicy } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { priority: priority } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { priorityClassName: priorityClassName } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { restartPolicy: restartPolicy } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { runtimeClassName: runtimeClassName } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { schedulerName: schedulerName } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { serviceAccount: serviceAccount } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { serviceAccountName: serviceAccountName } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { shareProcessNamespace: shareProcessNamespace } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { subdomain: subdomain } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/portStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/portStatus.libsonnet new file mode 100644 index 0000000..2d966f6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/portStatus.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='portStatus', url='', help=''), + '#withError':: d.fn(help='"Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\\n CamelCase names\\n- cloud provider specific error values must have names that comply with the\\n format foo.example.com/CamelCase."', args=[d.arg(name='err', type=d.T.string)]), + withError(err): { 'error': err }, + '#withPort':: d.fn(help='"Port is the port number of the service port of which status is recorded here"', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { port: port }, + '#withProtocol':: d.fn(help='"Protocol is the protocol of the service port of which status is recorded here The supported values are: \\"TCP\\", \\"UDP\\", \\"SCTP\\', args=[d.arg(name='protocol', type=d.T.string)]), + withProtocol(protocol): { protocol: protocol }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/portworxVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/portworxVolumeSource.libsonnet new file mode 100644 index 0000000..82be17b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/portworxVolumeSource.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='portworxVolumeSource', url='', help='"PortworxVolumeSource represents a Portworx volume resource."'), + '#withFsType':: d.fn(help='"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withVolumeID':: d.fn(help='"volumeID uniquely identifies a Portworx volume"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { volumeID: volumeID }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/preferredSchedulingTerm.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/preferredSchedulingTerm.libsonnet new file mode 100644 index 0000000..2057ccb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/preferredSchedulingTerm.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='preferredSchedulingTerm', url='', help="\"An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).\""), + '#preference':: d.obj(help='"A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm."'), + preference: { + '#withMatchExpressions':: d.fn(help="\"A list of node selector requirements by node's labels.\"", args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { preference+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help="\"A list of node selector requirements by node's labels.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { preference+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchFields':: d.fn(help="\"A list of node selector requirements by node's fields.\"", args=[d.arg(name='matchFields', type=d.T.array)]), + withMatchFields(matchFields): { preference+: { matchFields: if std.isArray(v=matchFields) then matchFields else [matchFields] } }, + '#withMatchFieldsMixin':: d.fn(help="\"A list of node selector requirements by node's fields.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='matchFields', type=d.T.array)]), + withMatchFieldsMixin(matchFields): { preference+: { matchFields+: if std.isArray(v=matchFields) then matchFields else [matchFields] } }, + }, + '#withWeight':: d.fn(help='"Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100."', args=[d.arg(name='weight', type=d.T.integer)]), + withWeight(weight): { weight: weight }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/probe.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/probe.libsonnet new file mode 100644 index 0000000..bd982b3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/probe.libsonnet @@ -0,0 +1,54 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='probe', url='', help='"Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic."'), + '#exec':: d.obj(help='"ExecAction describes a \\"run in container\\" action."'), + exec: { + '#withCommand':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"", args=[d.arg(name='command', type=d.T.array)]), + withCommand(command): { exec+: { command: if std.isArray(v=command) then command else [command] } }, + '#withCommandMixin':: d.fn(help="\"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='command', type=d.T.array)]), + withCommandMixin(command): { exec+: { command+: if std.isArray(v=command) then command else [command] } }, + }, + '#grpc':: d.obj(help=''), + grpc: { + '#withPort':: d.fn(help='"Port number of the gRPC service. Number must be in the range 1 to 65535."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { grpc+: { port: port } }, + '#withService':: d.fn(help='"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\\n\\nIf this is not specified, the default behavior is defined by gRPC."', args=[d.arg(name='service', type=d.T.string)]), + withService(service): { grpc+: { service: service } }, + }, + '#httpGet':: d.obj(help='"HTTPGetAction describes an action based on HTTP Get requests."'), + httpGet: { + '#withHost':: d.fn(help='"Host name to connect to, defaults to the pod IP. You probably want to set \\"Host\\" in httpHeaders instead."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { httpGet+: { host: host } }, + '#withHttpHeaders':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeaders(httpHeaders): { httpGet+: { httpHeaders: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } }, + '#withHttpHeadersMixin':: d.fn(help='"Custom headers to set in the request. HTTP allows repeated headers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='httpHeaders', type=d.T.array)]), + withHttpHeadersMixin(httpHeaders): { httpGet+: { httpHeaders+: if std.isArray(v=httpHeaders) then httpHeaders else [httpHeaders] } }, + '#withPath':: d.fn(help='"Path to access on the HTTP server."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { httpGet+: { path: path } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { httpGet+: { port: port } }, + '#withScheme':: d.fn(help='"Scheme to use for connecting to the host. Defaults to HTTP."', args=[d.arg(name='scheme', type=d.T.string)]), + withScheme(scheme): { httpGet+: { scheme: scheme } }, + }, + '#tcpSocket':: d.obj(help='"TCPSocketAction describes an action based on opening a socket"'), + tcpSocket: { + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { tcpSocket+: { host: host } }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { tcpSocket+: { port: port } }, + }, + '#withFailureThreshold':: d.fn(help='"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."', args=[d.arg(name='failureThreshold', type=d.T.integer)]), + withFailureThreshold(failureThreshold): { failureThreshold: failureThreshold }, + '#withInitialDelaySeconds':: d.fn(help='"Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='initialDelaySeconds', type=d.T.integer)]), + withInitialDelaySeconds(initialDelaySeconds): { initialDelaySeconds: initialDelaySeconds }, + '#withPeriodSeconds':: d.fn(help='"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1."', args=[d.arg(name='periodSeconds', type=d.T.integer)]), + withPeriodSeconds(periodSeconds): { periodSeconds: periodSeconds }, + '#withSuccessThreshold':: d.fn(help='"Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1."', args=[d.arg(name='successThreshold', type=d.T.integer)]), + withSuccessThreshold(successThreshold): { successThreshold: successThreshold }, + '#withTerminationGracePeriodSeconds':: d.fn(help="\"Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\"", args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { terminationGracePeriodSeconds: terminationGracePeriodSeconds }, + '#withTimeoutSeconds':: d.fn(help='"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { timeoutSeconds: timeoutSeconds }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/projectedVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/projectedVolumeSource.libsonnet new file mode 100644 index 0000000..2bbb9a4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/projectedVolumeSource.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='projectedVolumeSource', url='', help='"Represents a projected volume source"'), + '#withDefaultMode':: d.fn(help='"defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='defaultMode', type=d.T.integer)]), + withDefaultMode(defaultMode): { defaultMode: defaultMode }, + '#withSources':: d.fn(help='"sources is the list of volume projections"', args=[d.arg(name='sources', type=d.T.array)]), + withSources(sources): { sources: if std.isArray(v=sources) then sources else [sources] }, + '#withSourcesMixin':: d.fn(help='"sources is the list of volume projections"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sources', type=d.T.array)]), + withSourcesMixin(sources): { sources+: if std.isArray(v=sources) then sources else [sources] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/quobyteVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/quobyteVolumeSource.libsonnet new file mode 100644 index 0000000..f83b09c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/quobyteVolumeSource.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='quobyteVolumeSource', url='', help='"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling."'), + '#withGroup':: d.fn(help='"group to map volume access to Default is no group"', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { group: group }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withRegistry':: d.fn(help='"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"', args=[d.arg(name='registry', type=d.T.string)]), + withRegistry(registry): { registry: registry }, + '#withTenant':: d.fn(help='"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin"', args=[d.arg(name='tenant', type=d.T.string)]), + withTenant(tenant): { tenant: tenant }, + '#withUser':: d.fn(help='"user to map volume access to Defaults to serivceaccount user"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { user: user }, + '#withVolume':: d.fn(help='"volume is a string that references an already created Quobyte volume by name."', args=[d.arg(name='volume', type=d.T.string)]), + withVolume(volume): { volume: volume }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/rbdPersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/rbdPersistentVolumeSource.libsonnet new file mode 100644 index 0000000..5aa18be --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/rbdPersistentVolumeSource.libsonnet @@ -0,0 +1,29 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='rbdPersistentVolumeSource', url='', help='"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."'), + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretRef+: { namespace: namespace } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withImage':: d.fn(help='"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { image: image }, + '#withKeyring':: d.fn(help='"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='keyring', type=d.T.string)]), + withKeyring(keyring): { keyring: keyring }, + '#withMonitors':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { monitors: if std.isArray(v=monitors) then monitors else [monitors] }, + '#withMonitorsMixin':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { monitors+: if std.isArray(v=monitors) then monitors else [monitors] }, + '#withPool':: d.fn(help='"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='pool', type=d.T.string)]), + withPool(pool): { pool: pool }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withUser':: d.fn(help='"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { user: user }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/rbdVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/rbdVolumeSource.libsonnet new file mode 100644 index 0000000..873baa3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/rbdVolumeSource.libsonnet @@ -0,0 +1,27 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='rbdVolumeSource', url='', help='"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."'), + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withImage':: d.fn(help='"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { image: image }, + '#withKeyring':: d.fn(help='"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='keyring', type=d.T.string)]), + withKeyring(keyring): { keyring: keyring }, + '#withMonitors':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { monitors: if std.isArray(v=monitors) then monitors else [monitors] }, + '#withMonitorsMixin':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { monitors+: if std.isArray(v=monitors) then monitors else [monitors] }, + '#withPool':: d.fn(help='"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='pool', type=d.T.string)]), + withPool(pool): { pool: pool }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withUser':: d.fn(help='"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { user: user }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationController.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationController.libsonnet new file mode 100644 index 0000000..4ba8d02 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationController.libsonnet @@ -0,0 +1,326 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='replicationController', url='', help='"ReplicationController represents the configuration of a replication controller."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ReplicationController', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'ReplicationController', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ReplicationControllerSpec is the specification of a replication controller."'), + spec: { + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { template+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { template+: { metadata+: { annotations+: annotations } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { template+: { metadata+: { creationTimestamp: creationTimestamp } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { template+: { metadata+: { generateName: generateName } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { template+: { metadata+: { generation: generation } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { template+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { template+: { metadata+: { labels+: labels } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { metadata+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { template+: { metadata+: { namespace: namespace } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { template+: { metadata+: { resourceVersion: resourceVersion } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { template+: { metadata+: { selfLink: selfLink } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { template+: { metadata+: { uid: uid } } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { spec+: { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { spec+: { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { spec+: { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { spec+: { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { spec+: { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { template+: { spec+: { os+: { name: name } } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { spec+: { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { spec+: { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { spec+: { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { spec+: { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { spec+: { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { spec+: { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { spec+: { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { spec+: { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { spec+: { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { spec+: { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { spec+: { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { spec+: { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { spec+: { template+: { spec+: { dnsPolicy: dnsPolicy } } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { spec+: { template+: { spec+: { enableServiceLinks: enableServiceLinks } } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { spec+: { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { spec+: { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { spec+: { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { spec+: { template+: { spec+: { hostIPC: hostIPC } } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { spec+: { template+: { spec+: { hostNetwork: hostNetwork } } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { spec+: { template+: { spec+: { hostPID: hostPID } } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { spec+: { template+: { spec+: { hostUsers: hostUsers } } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { spec+: { template+: { spec+: { hostname: hostname } } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { spec+: { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { spec+: { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { spec+: { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { template+: { spec+: { nodeName: nodeName } } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { spec+: { template+: { spec+: { nodeSelector: nodeSelector } } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { spec+: { template+: { spec+: { nodeSelector+: nodeSelector } } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { spec+: { template+: { spec+: { overhead: overhead } } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { spec+: { template+: { spec+: { overhead+: overhead } } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { spec+: { template+: { spec+: { preemptionPolicy: preemptionPolicy } } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { spec+: { template+: { spec+: { priority: priority } } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { spec+: { template+: { spec+: { priorityClassName: priorityClassName } } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { spec+: { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { spec+: { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { spec+: { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { spec+: { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { spec+: { template+: { spec+: { restartPolicy: restartPolicy } } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { spec+: { template+: { spec+: { runtimeClassName: runtimeClassName } } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { spec+: { template+: { spec+: { schedulerName: schedulerName } } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { spec+: { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { spec+: { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { spec+: { template+: { spec+: { serviceAccount: serviceAccount } } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { spec+: { template+: { spec+: { serviceAccountName: serviceAccountName } } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { spec+: { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { spec+: { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { spec+: { template+: { spec+: { subdomain: subdomain } } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { spec+: { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { spec+: { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { spec+: { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { spec+: { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { spec+: { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { spec+: { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } } }, + }, + }, + '#withMinReadySeconds':: d.fn(help='"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)"', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { spec+: { minReadySeconds: minReadySeconds } }, + '#withReplicas':: d.fn(help='"Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller"', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { spec+: { replicas: replicas } }, + '#withSelector':: d.fn(help='"Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors"', args=[d.arg(name='selector', type=d.T.object)]), + withSelector(selector): { spec+: { selector: selector } }, + '#withSelectorMixin':: d.fn(help='"Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='selector', type=d.T.object)]), + withSelectorMixin(selector): { spec+: { selector+: selector } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerCondition.libsonnet new file mode 100644 index 0000000..f686c6e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='replicationControllerCondition', url='', help='"ReplicationControllerCondition describes the state of a replication controller at a certain point."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"A human readable message indicating details about the transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"The reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of replication controller condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerSpec.libsonnet new file mode 100644 index 0000000..83fb1c1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerSpec.libsonnet @@ -0,0 +1,275 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='replicationControllerSpec', url='', help='"ReplicationControllerSpec is the specification of a replication controller."'), + '#template':: d.obj(help='"PodTemplateSpec describes the data a pod should have when created from a template"'), + template: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { template+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { template+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { template+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { template+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { template+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { template+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { template+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { template+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { template+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { template+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { template+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { template+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { template+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { template+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { template+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { template+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { template+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { template+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { template+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"PodSpec is a description of a pod."'), + spec: { + '#affinity':: d.obj(help='"Affinity is a group of affinity scheduling rules."'), + affinity: { + '#nodeAffinity':: d.obj(help='"Node affinity is a group of node affinity scheduling rules."'), + nodeAffinity: { + '#requiredDuringSchedulingIgnoredDuringExecution':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + requiredDuringSchedulingIgnoredDuringExecution: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { template+: { spec+: { affinity+: { nodeAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + }, + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { nodeAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAffinity':: d.obj(help='"Pod affinity is a group of inter pod affinity scheduling rules."'), + podAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + '#podAntiAffinity':: d.obj(help='"Pod anti affinity is a group of inter pod anti affinity scheduling rules."'), + podAntiAffinity: { + '#withPreferredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecution(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withPreferredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \\"weight\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='preferredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withPreferredDuringSchedulingIgnoredDuringExecutionMixin(preferredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { preferredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=preferredDuringSchedulingIgnoredDuringExecution) then preferredDuringSchedulingIgnoredDuringExecution else [preferredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecution':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecution(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + '#withRequiredDuringSchedulingIgnoredDuringExecutionMixin':: d.fn(help='"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requiredDuringSchedulingIgnoredDuringExecution', type=d.T.array)]), + withRequiredDuringSchedulingIgnoredDuringExecutionMixin(requiredDuringSchedulingIgnoredDuringExecution): { template+: { spec+: { affinity+: { podAntiAffinity+: { requiredDuringSchedulingIgnoredDuringExecution+: if std.isArray(v=requiredDuringSchedulingIgnoredDuringExecution) then requiredDuringSchedulingIgnoredDuringExecution else [requiredDuringSchedulingIgnoredDuringExecution] } } } } }, + }, + }, + '#dnsConfig':: d.obj(help='"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy."'), + dnsConfig: { + '#withNameservers':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameservers(nameservers): { template+: { spec+: { dnsConfig+: { nameservers: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withNameserversMixin':: d.fn(help='"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nameservers', type=d.T.array)]), + withNameserversMixin(nameservers): { template+: { spec+: { dnsConfig+: { nameservers+: if std.isArray(v=nameservers) then nameservers else [nameservers] } } } }, + '#withOptions':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."', args=[d.arg(name='options', type=d.T.array)]), + withOptions(options): { template+: { spec+: { dnsConfig+: { options: if std.isArray(v=options) then options else [options] } } } }, + '#withOptionsMixin':: d.fn(help='"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.array)]), + withOptionsMixin(options): { template+: { spec+: { dnsConfig+: { options+: if std.isArray(v=options) then options else [options] } } } }, + '#withSearches':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."', args=[d.arg(name='searches', type=d.T.array)]), + withSearches(searches): { template+: { spec+: { dnsConfig+: { searches: if std.isArray(v=searches) then searches else [searches] } } } }, + '#withSearchesMixin':: d.fn(help='"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='searches', type=d.T.array)]), + withSearchesMixin(searches): { template+: { spec+: { dnsConfig+: { searches+: if std.isArray(v=searches) then searches else [searches] } } } }, + }, + '#os':: d.obj(help='"PodOS defines the OS parameters of a pod."'), + os: { + '#withName':: d.fn(help='"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { template+: { spec+: { os+: { name: name } } } }, + }, + '#securityContext':: d.obj(help='"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext."'), + securityContext: { + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { appArmorProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { appArmorProfile+: { type: type } } } } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { template+: { spec+: { securityContext+: { seLinuxOptions+: { level: level } } } } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { template+: { spec+: { securityContext+: { seLinuxOptions+: { role: role } } } } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seLinuxOptions+: { type: type } } } } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { template+: { spec+: { securityContext+: { seLinuxOptions+: { user: user } } } } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { template+: { spec+: { securityContext+: { seccompProfile+: { localhostProfile: localhostProfile } } } } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { template+: { spec+: { securityContext+: { seccompProfile+: { type: type } } } } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } } } } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { template+: { spec+: { securityContext+: { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } } } } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { template+: { spec+: { securityContext+: { windowsOptions+: { hostProcess: hostProcess } } } } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { template+: { spec+: { securityContext+: { windowsOptions+: { runAsUserName: runAsUserName } } } } }, + }, + '#withFsGroup':: d.fn(help="\"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\\n\\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='fsGroup', type=d.T.integer)]), + withFsGroup(fsGroup): { template+: { spec+: { securityContext+: { fsGroup: fsGroup } } } }, + '#withFsGroupChangePolicy':: d.fn(help='"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \\"OnRootMismatch\\" and \\"Always\\". If not specified, \\"Always\\" is used. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='fsGroupChangePolicy', type=d.T.string)]), + withFsGroupChangePolicy(fsGroupChangePolicy): { template+: { spec+: { securityContext+: { fsGroupChangePolicy: fsGroupChangePolicy } } } }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { template+: { spec+: { securityContext+: { runAsGroup: runAsGroup } } } }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { template+: { spec+: { securityContext+: { runAsNonRoot: runAsNonRoot } } } }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { template+: { spec+: { securityContext+: { runAsUser: runAsUser } } } }, + '#withSupplementalGroups':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroups(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSupplementalGroupsMixin':: d.fn(help="\"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='supplementalGroups', type=d.T.array)]), + withSupplementalGroupsMixin(supplementalGroups): { template+: { spec+: { securityContext+: { supplementalGroups+: if std.isArray(v=supplementalGroups) then supplementalGroups else [supplementalGroups] } } } }, + '#withSysctls':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctls(sysctls): { template+: { spec+: { securityContext+: { sysctls: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + '#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]), + withSysctlsMixin(sysctls): { template+: { spec+: { securityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } } }, + }, + '#withActiveDeadlineSeconds':: d.fn(help='"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer."', args=[d.arg(name='activeDeadlineSeconds', type=d.T.integer)]), + withActiveDeadlineSeconds(activeDeadlineSeconds): { template+: { spec+: { activeDeadlineSeconds: activeDeadlineSeconds } } }, + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { template+: { spec+: { automountServiceAccountToken: automountServiceAccountToken } } }, + '#withContainers':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."', args=[d.arg(name='containers', type=d.T.array)]), + withContainers(containers): { template+: { spec+: { containers: if std.isArray(v=containers) then containers else [containers] } } }, + '#withContainersMixin':: d.fn(help='"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='containers', type=d.T.array)]), + withContainersMixin(containers): { template+: { spec+: { containers+: if std.isArray(v=containers) then containers else [containers] } } }, + '#withDnsPolicy':: d.fn(help="\"Set DNS policy for the pod. Defaults to \\\"ClusterFirst\\\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\"", args=[d.arg(name='dnsPolicy', type=d.T.string)]), + withDnsPolicy(dnsPolicy): { template+: { spec+: { dnsPolicy: dnsPolicy } } }, + '#withEnableServiceLinks':: d.fn(help="\"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.\"", args=[d.arg(name='enableServiceLinks', type=d.T.boolean)]), + withEnableServiceLinks(enableServiceLinks): { template+: { spec+: { enableServiceLinks: enableServiceLinks } } }, + '#withEphemeralContainers':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainers(ephemeralContainers): { template+: { spec+: { ephemeralContainers: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withEphemeralContainersMixin':: d.fn(help="\"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ephemeralContainers', type=d.T.array)]), + withEphemeralContainersMixin(ephemeralContainers): { template+: { spec+: { ephemeralContainers+: if std.isArray(v=ephemeralContainers) then ephemeralContainers else [ephemeralContainers] } } }, + '#withHostAliases':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliases(hostAliases): { template+: { spec+: { hostAliases: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostAliasesMixin':: d.fn(help="\"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='hostAliases', type=d.T.array)]), + withHostAliasesMixin(hostAliases): { template+: { spec+: { hostAliases+: if std.isArray(v=hostAliases) then hostAliases else [hostAliases] } } }, + '#withHostIPC':: d.fn(help="\"Use the host's ipc namespace. Optional: Default to false.\"", args=[d.arg(name='hostIPC', type=d.T.boolean)]), + withHostIPC(hostIPC): { template+: { spec+: { hostIPC: hostIPC } } }, + '#withHostNetwork':: d.fn(help="\"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.\"", args=[d.arg(name='hostNetwork', type=d.T.boolean)]), + withHostNetwork(hostNetwork): { template+: { spec+: { hostNetwork: hostNetwork } } }, + '#withHostPID':: d.fn(help="\"Use the host's pid namespace. Optional: Default to false.\"", args=[d.arg(name='hostPID', type=d.T.boolean)]), + withHostPID(hostPID): { template+: { spec+: { hostPID: hostPID } } }, + '#withHostUsers':: d.fn(help="\"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\"", args=[d.arg(name='hostUsers', type=d.T.boolean)]), + withHostUsers(hostUsers): { template+: { spec+: { hostUsers: hostUsers } } }, + '#withHostname':: d.fn(help="\"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.\"", args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { template+: { spec+: { hostname: hostname } } }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { template+: { spec+: { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { template+: { spec+: { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] } } }, + '#withInitContainers':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainers(initContainers): { template+: { spec+: { initContainers: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withInitContainersMixin':: d.fn(help='"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='initContainers', type=d.T.array)]), + withInitContainersMixin(initContainers): { template+: { spec+: { initContainers+: if std.isArray(v=initContainers) then initContainers else [initContainers] } } }, + '#withNodeName':: d.fn(help='"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { template+: { spec+: { nodeName: nodeName } } }, + '#withNodeSelector':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { template+: { spec+: { nodeSelector: nodeSelector } } }, + '#withNodeSelectorMixin':: d.fn(help="\"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { template+: { spec+: { nodeSelector+: nodeSelector } } }, + '#withOverhead':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"', args=[d.arg(name='overhead', type=d.T.object)]), + withOverhead(overhead): { template+: { spec+: { overhead: overhead } } }, + '#withOverheadMixin':: d.fn(help='"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='overhead', type=d.T.object)]), + withOverheadMixin(overhead): { template+: { spec+: { overhead+: overhead } } }, + '#withPreemptionPolicy':: d.fn(help='"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { template+: { spec+: { preemptionPolicy: preemptionPolicy } } }, + '#withPriority':: d.fn(help='"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority."', args=[d.arg(name='priority', type=d.T.integer)]), + withPriority(priority): { template+: { spec+: { priority: priority } } }, + '#withPriorityClassName':: d.fn(help="\"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and \\\"system-cluster-critical\\\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.\"", args=[d.arg(name='priorityClassName', type=d.T.string)]), + withPriorityClassName(priorityClassName): { template+: { spec+: { priorityClassName: priorityClassName } } }, + '#withReadinessGates':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGates(readinessGates): { template+: { spec+: { readinessGates: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withReadinessGatesMixin':: d.fn(help='"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \\"True\\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='readinessGates', type=d.T.array)]), + withReadinessGatesMixin(readinessGates): { template+: { spec+: { readinessGates+: if std.isArray(v=readinessGates) then readinessGates else [readinessGates] } } }, + '#withResourceClaims':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { template+: { spec+: { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { template+: { spec+: { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] } } }, + '#withRestartPolicy':: d.fn(help='"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy"', args=[d.arg(name='restartPolicy', type=d.T.string)]), + withRestartPolicy(restartPolicy): { template+: { spec+: { restartPolicy: restartPolicy } } }, + '#withRuntimeClassName':: d.fn(help='"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \\"legacy\\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class"', args=[d.arg(name='runtimeClassName', type=d.T.string)]), + withRuntimeClassName(runtimeClassName): { template+: { spec+: { runtimeClassName: runtimeClassName } } }, + '#withSchedulerName':: d.fn(help='"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler."', args=[d.arg(name='schedulerName', type=d.T.string)]), + withSchedulerName(schedulerName): { template+: { spec+: { schedulerName: schedulerName } } }, + '#withSchedulingGates':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGates(schedulingGates): { template+: { spec+: { schedulingGates: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withSchedulingGatesMixin':: d.fn(help='"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\\n\\nSchedulingGates can only be set at pod creation time, and be removed only afterwards."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='schedulingGates', type=d.T.array)]), + withSchedulingGatesMixin(schedulingGates): { template+: { spec+: { schedulingGates+: if std.isArray(v=schedulingGates) then schedulingGates else [schedulingGates] } } }, + '#withServiceAccount':: d.fn(help='"DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead."', args=[d.arg(name='serviceAccount', type=d.T.string)]), + withServiceAccount(serviceAccount): { template+: { spec+: { serviceAccount: serviceAccount } } }, + '#withServiceAccountName':: d.fn(help='"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/"', args=[d.arg(name='serviceAccountName', type=d.T.string)]), + withServiceAccountName(serviceAccountName): { template+: { spec+: { serviceAccountName: serviceAccountName } } }, + '#withSetHostnameAsFQDN':: d.fn(help="\"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.\"", args=[d.arg(name='setHostnameAsFQDN', type=d.T.boolean)]), + withSetHostnameAsFQDN(setHostnameAsFQDN): { template+: { spec+: { setHostnameAsFQDN: setHostnameAsFQDN } } }, + '#withShareProcessNamespace':: d.fn(help='"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false."', args=[d.arg(name='shareProcessNamespace', type=d.T.boolean)]), + withShareProcessNamespace(shareProcessNamespace): { template+: { spec+: { shareProcessNamespace: shareProcessNamespace } } }, + '#withSubdomain':: d.fn(help='"If specified, the fully qualified Pod hostname will be \\"...svc.\\". If not specified, the pod will not have a domainname at all."', args=[d.arg(name='subdomain', type=d.T.string)]), + withSubdomain(subdomain): { template+: { spec+: { subdomain: subdomain } } }, + '#withTerminationGracePeriodSeconds':: d.fn(help='"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds."', args=[d.arg(name='terminationGracePeriodSeconds', type=d.T.integer)]), + withTerminationGracePeriodSeconds(terminationGracePeriodSeconds): { template+: { spec+: { terminationGracePeriodSeconds: terminationGracePeriodSeconds } } }, + '#withTolerations':: d.fn(help="\"If specified, the pod's tolerations.\"", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { template+: { spec+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTolerationsMixin':: d.fn(help="\"If specified, the pod's tolerations.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { template+: { spec+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } } }, + '#withTopologySpreadConstraints':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraints(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withTopologySpreadConstraintsMixin':: d.fn(help='"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologySpreadConstraints', type=d.T.array)]), + withTopologySpreadConstraintsMixin(topologySpreadConstraints): { template+: { spec+: { topologySpreadConstraints+: if std.isArray(v=topologySpreadConstraints) then topologySpreadConstraints else [topologySpreadConstraints] } } }, + '#withVolumes':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumes(volumes): { template+: { spec+: { volumes: if std.isArray(v=volumes) then volumes else [volumes] } } }, + '#withVolumesMixin':: d.fn(help='"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumes', type=d.T.array)]), + withVolumesMixin(volumes): { template+: { spec+: { volumes+: if std.isArray(v=volumes) then volumes else [volumes] } } }, + }, + }, + '#withMinReadySeconds':: d.fn(help='"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)"', args=[d.arg(name='minReadySeconds', type=d.T.integer)]), + withMinReadySeconds(minReadySeconds): { minReadySeconds: minReadySeconds }, + '#withReplicas':: d.fn(help='"Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller"', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#withSelector':: d.fn(help='"Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors"', args=[d.arg(name='selector', type=d.T.object)]), + withSelector(selector): { selector: selector }, + '#withSelectorMixin':: d.fn(help='"Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='selector', type=d.T.object)]), + withSelectorMixin(selector): { selector+: selector }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerStatus.libsonnet new file mode 100644 index 0000000..b1a60d4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/replicationControllerStatus.libsonnet @@ -0,0 +1,20 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='replicationControllerStatus', url='', help='"ReplicationControllerStatus represents the current status of a replication controller."'), + '#withAvailableReplicas':: d.fn(help='"The number of available replicas (ready for at least minReadySeconds) for this replication controller."', args=[d.arg(name='availableReplicas', type=d.T.integer)]), + withAvailableReplicas(availableReplicas): { availableReplicas: availableReplicas }, + '#withConditions':: d.fn(help="\"Represents the latest available observations of a replication controller's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"Represents the latest available observations of a replication controller's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withFullyLabeledReplicas':: d.fn(help='"The number of pods that have labels matching the labels of the pod template of the replication controller."', args=[d.arg(name='fullyLabeledReplicas', type=d.T.integer)]), + withFullyLabeledReplicas(fullyLabeledReplicas): { fullyLabeledReplicas: fullyLabeledReplicas }, + '#withObservedGeneration':: d.fn(help='"ObservedGeneration reflects the generation of the most recently observed replication controller."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#withReadyReplicas':: d.fn(help='"The number of ready replicas for this replication controller."', args=[d.arg(name='readyReplicas', type=d.T.integer)]), + withReadyReplicas(readyReplicas): { readyReplicas: readyReplicas }, + '#withReplicas':: d.fn(help='"Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller"', args=[d.arg(name='replicas', type=d.T.integer)]), + withReplicas(replicas): { replicas: replicas }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceClaim.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceClaim.libsonnet new file mode 100644 index 0000000..b1275e4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceClaim.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaim', url='', help='"ResourceClaim references one entry in PodSpec.ResourceClaims."'), + '#withName':: d.fn(help='"Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceFieldSelector.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceFieldSelector.libsonnet new file mode 100644 index 0000000..2721174 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceFieldSelector.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceFieldSelector', url='', help='"ResourceFieldSelector represents container resources (cpu, memory) and their output format"'), + '#withContainerName':: d.fn(help='"Container name: required for volumes, optional for env vars"', args=[d.arg(name='containerName', type=d.T.string)]), + withContainerName(containerName): { containerName: containerName }, + '#withDivisor':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='divisor', type=d.T.string)]), + withDivisor(divisor): { divisor: divisor }, + '#withResource':: d.fn(help='"Required: resource to select"', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resource: resource }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuota.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuota.libsonnet new file mode 100644 index 0000000..b8fd098 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuota.libsonnet @@ -0,0 +1,72 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceQuota', url='', help='"ResourceQuota sets aggregate quota restrictions enforced per namespace"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ResourceQuota', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'ResourceQuota', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ResourceQuotaSpec defines the desired hard limits to enforce for Quota."'), + spec: { + '#scopeSelector':: d.obj(help='"A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements."'), + scopeSelector: { + '#withMatchExpressions':: d.fn(help='"A list of scope selector requirements by scope of the resources."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { scopeSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"A list of scope selector requirements by scope of the resources."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { scopeSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + }, + '#withHard':: d.fn(help='"hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/"', args=[d.arg(name='hard', type=d.T.object)]), + withHard(hard): { spec+: { hard: hard } }, + '#withHardMixin':: d.fn(help='"hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='hard', type=d.T.object)]), + withHardMixin(hard): { spec+: { hard+: hard } }, + '#withScopes':: d.fn(help='"A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects."', args=[d.arg(name='scopes', type=d.T.array)]), + withScopes(scopes): { spec+: { scopes: if std.isArray(v=scopes) then scopes else [scopes] } }, + '#withScopesMixin':: d.fn(help='"A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='scopes', type=d.T.array)]), + withScopesMixin(scopes): { spec+: { scopes+: if std.isArray(v=scopes) then scopes else [scopes] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuotaSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuotaSpec.libsonnet new file mode 100644 index 0000000..7a559d4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuotaSpec.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceQuotaSpec', url='', help='"ResourceQuotaSpec defines the desired hard limits to enforce for Quota."'), + '#scopeSelector':: d.obj(help='"A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements."'), + scopeSelector: { + '#withMatchExpressions':: d.fn(help='"A list of scope selector requirements by scope of the resources."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { scopeSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"A list of scope selector requirements by scope of the resources."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { scopeSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + }, + '#withHard':: d.fn(help='"hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/"', args=[d.arg(name='hard', type=d.T.object)]), + withHard(hard): { hard: hard }, + '#withHardMixin':: d.fn(help='"hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='hard', type=d.T.object)]), + withHardMixin(hard): { hard+: hard }, + '#withScopes':: d.fn(help='"A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects."', args=[d.arg(name='scopes', type=d.T.array)]), + withScopes(scopes): { scopes: if std.isArray(v=scopes) then scopes else [scopes] }, + '#withScopesMixin':: d.fn(help='"A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='scopes', type=d.T.array)]), + withScopesMixin(scopes): { scopes+: if std.isArray(v=scopes) then scopes else [scopes] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuotaStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuotaStatus.libsonnet new file mode 100644 index 0000000..522afb6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceQuotaStatus.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceQuotaStatus', url='', help='"ResourceQuotaStatus defines the enforced hard limits and observed use."'), + '#withHard':: d.fn(help='"Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/"', args=[d.arg(name='hard', type=d.T.object)]), + withHard(hard): { hard: hard }, + '#withHardMixin':: d.fn(help='"Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='hard', type=d.T.object)]), + withHardMixin(hard): { hard+: hard }, + '#withUsed':: d.fn(help='"Used is the current observed total usage of the resource in the namespace."', args=[d.arg(name='used', type=d.T.object)]), + withUsed(used): { used: used }, + '#withUsedMixin':: d.fn(help='"Used is the current observed total usage of the resource in the namespace."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='used', type=d.T.object)]), + withUsedMixin(used): { used+: used }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceRequirements.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceRequirements.libsonnet new file mode 100644 index 0000000..e760fe8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/resourceRequirements.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceRequirements', url='', help='"ResourceRequirements describes the compute resource requirements."'), + '#withClaims':: d.fn(help='"Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable. It can only be set for containers."', args=[d.arg(name='claims', type=d.T.array)]), + withClaims(claims): { claims: if std.isArray(v=claims) then claims else [claims] }, + '#withClaimsMixin':: d.fn(help='"Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\\n\\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\\n\\nThis field is immutable. It can only be set for containers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='claims', type=d.T.array)]), + withClaimsMixin(claims): { claims+: if std.isArray(v=claims) then claims else [claims] }, + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { limits: limits }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { limits+: limits }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { requests: requests }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { requests+: requests }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scaleIOPersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scaleIOPersistentVolumeSource.libsonnet new file mode 100644 index 0000000..b5b776d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scaleIOPersistentVolumeSource.libsonnet @@ -0,0 +1,31 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='scaleIOPersistentVolumeSource', url='', help='"ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume"'), + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretRef+: { namespace: namespace } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Default is \\"xfs\\', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withGateway':: d.fn(help='"gateway is the host address of the ScaleIO API Gateway."', args=[d.arg(name='gateway', type=d.T.string)]), + withGateway(gateway): { gateway: gateway }, + '#withProtectionDomain':: d.fn(help='"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."', args=[d.arg(name='protectionDomain', type=d.T.string)]), + withProtectionDomain(protectionDomain): { protectionDomain: protectionDomain }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withSslEnabled':: d.fn(help='"sslEnabled is the flag to enable/disable SSL communication with Gateway, default false"', args=[d.arg(name='sslEnabled', type=d.T.boolean)]), + withSslEnabled(sslEnabled): { sslEnabled: sslEnabled }, + '#withStorageMode':: d.fn(help='"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."', args=[d.arg(name='storageMode', type=d.T.string)]), + withStorageMode(storageMode): { storageMode: storageMode }, + '#withStoragePool':: d.fn(help='"storagePool is the ScaleIO Storage Pool associated with the protection domain."', args=[d.arg(name='storagePool', type=d.T.string)]), + withStoragePool(storagePool): { storagePool: storagePool }, + '#withSystem':: d.fn(help='"system is the name of the storage system as configured in ScaleIO."', args=[d.arg(name='system', type=d.T.string)]), + withSystem(system): { system: system }, + '#withVolumeName':: d.fn(help='"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { volumeName: volumeName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scaleIOVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scaleIOVolumeSource.libsonnet new file mode 100644 index 0000000..f6c381a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scaleIOVolumeSource.libsonnet @@ -0,0 +1,29 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='scaleIOVolumeSource', url='', help='"ScaleIOVolumeSource represents a persistent ScaleIO volume"'), + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Default is \\"xfs\\"."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withGateway':: d.fn(help='"gateway is the host address of the ScaleIO API Gateway."', args=[d.arg(name='gateway', type=d.T.string)]), + withGateway(gateway): { gateway: gateway }, + '#withProtectionDomain':: d.fn(help='"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."', args=[d.arg(name='protectionDomain', type=d.T.string)]), + withProtectionDomain(protectionDomain): { protectionDomain: protectionDomain }, + '#withReadOnly':: d.fn(help='"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withSslEnabled':: d.fn(help='"sslEnabled Flag enable/disable SSL communication with Gateway, default false"', args=[d.arg(name='sslEnabled', type=d.T.boolean)]), + withSslEnabled(sslEnabled): { sslEnabled: sslEnabled }, + '#withStorageMode':: d.fn(help='"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."', args=[d.arg(name='storageMode', type=d.T.string)]), + withStorageMode(storageMode): { storageMode: storageMode }, + '#withStoragePool':: d.fn(help='"storagePool is the ScaleIO Storage Pool associated with the protection domain."', args=[d.arg(name='storagePool', type=d.T.string)]), + withStoragePool(storagePool): { storagePool: storagePool }, + '#withSystem':: d.fn(help='"system is the name of the storage system as configured in ScaleIO."', args=[d.arg(name='system', type=d.T.string)]), + withSystem(system): { system: system }, + '#withVolumeName':: d.fn(help='"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { volumeName: volumeName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scopeSelector.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scopeSelector.libsonnet new file mode 100644 index 0000000..060426f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scopeSelector.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='scopeSelector', url='', help='"A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements."'), + '#withMatchExpressions':: d.fn(help='"A list of scope selector requirements by scope of the resources."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] }, + '#withMatchExpressionsMixin':: d.fn(help='"A list of scope selector requirements by scope of the resources."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scopedResourceSelectorRequirement.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scopedResourceSelectorRequirement.libsonnet new file mode 100644 index 0000000..6a8c2d7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/scopedResourceSelectorRequirement.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='scopedResourceSelectorRequirement', url='', help='"A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values."'), + '#withOperator':: d.fn(help="\"Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.\"", args=[d.arg(name='operator', type=d.T.string)]), + withOperator(operator): { operator: operator }, + '#withScopeName':: d.fn(help='"The name of the scope that the selector applies to."', args=[d.arg(name='scopeName', type=d.T.string)]), + withScopeName(scopeName): { scopeName: scopeName }, + '#withValues':: d.fn(help='"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."', args=[d.arg(name='values', type=d.T.array)]), + withValues(values): { values: if std.isArray(v=values) then values else [values] }, + '#withValuesMixin':: d.fn(help='"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='values', type=d.T.array)]), + withValuesMixin(values): { values+: if std.isArray(v=values) then values else [values] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/seLinuxOptions.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/seLinuxOptions.libsonnet new file mode 100644 index 0000000..8a1b8ea --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/seLinuxOptions.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='seLinuxOptions', url='', help='"SELinuxOptions are the labels to be applied to the container"'), + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { level: level }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { role: role }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { user: user }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/seccompProfile.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/seccompProfile.libsonnet new file mode 100644 index 0000000..9a34b45 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/seccompProfile.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='seccompProfile', url='', help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { localhostProfile: localhostProfile }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secret.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secret.libsonnet new file mode 100644 index 0000000..2f37842 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secret.libsonnet @@ -0,0 +1,66 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='secret', url='', help='"Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Secret', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'Secret', + } + self.metadata.withName(name=name), + '#withData':: d.fn(help="\"Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4\"", args=[d.arg(name='data', type=d.T.object)]), + withData(data): { data: data }, + '#withDataMixin':: d.fn(help="\"Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='data', type=d.T.object)]), + withDataMixin(data): { data+: data }, + '#withImmutable':: d.fn(help='"Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil."', args=[d.arg(name='immutable', type=d.T.boolean)]), + withImmutable(immutable): { immutable: immutable }, + '#withStringData':: d.fn(help='"stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API."', args=[d.arg(name='stringData', type=d.T.object)]), + withStringData(stringData): { stringData: stringData }, + '#withStringDataMixin':: d.fn(help='"stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='stringData', type=d.T.object)]), + withStringDataMixin(stringData): { stringData+: stringData }, + '#withType':: d.fn(help='"Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretEnvSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretEnvSource.libsonnet new file mode 100644 index 0000000..ee829f8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretEnvSource.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='secretEnvSource', url='', help="\"SecretEnvSource selects a Secret to populate the environment variables with.\\n\\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.\""), + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withOptional':: d.fn(help='"Specify whether the Secret must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { optional: optional }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretKeySelector.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretKeySelector.libsonnet new file mode 100644 index 0000000..ce2419e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretKeySelector.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='secretKeySelector', url='', help='"SecretKeySelector selects a key of a Secret."'), + '#withKey':: d.fn(help='"The key of the secret to select from. Must be a valid secret key."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withOptional':: d.fn(help='"Specify whether the Secret or its key must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { optional: optional }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretProjection.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretProjection.libsonnet new file mode 100644 index 0000000..5947bfb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretProjection.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='secretProjection', url='', help="\"Adapts a secret into a projected volume.\\n\\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.\""), + '#withItems':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"", args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { items: if std.isArray(v=items) then items else [items] }, + '#withItemsMixin':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { items+: if std.isArray(v=items) then items else [items] }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withOptional':: d.fn(help='"optional field specify whether the Secret or its key must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { optional: optional }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretReference.libsonnet new file mode 100644 index 0000000..de3e3d3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretReference.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='secretReference', url='', help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretVolumeSource.libsonnet new file mode 100644 index 0000000..8e01278 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/secretVolumeSource.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='secretVolumeSource', url='', help="\"Adapts a Secret into a volume.\\n\\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.\""), + '#withDefaultMode':: d.fn(help='"defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='defaultMode', type=d.T.integer)]), + withDefaultMode(defaultMode): { defaultMode: defaultMode }, + '#withItems':: d.fn(help="\"items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"", args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { items: if std.isArray(v=items) then items else [items] }, + '#withItemsMixin':: d.fn(help="\"items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { items+: if std.isArray(v=items) then items else [items] }, + '#withOptional':: d.fn(help='"optional field specify whether the Secret or its keys must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { optional: optional }, + '#withSecretName':: d.fn(help="\"secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret\"", args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { secretName: secretName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/securityContext.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/securityContext.libsonnet new file mode 100644 index 0000000..c6dc5bb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/securityContext.libsonnet @@ -0,0 +1,67 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='securityContext', url='', help='"SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence."'), + '#appArmorProfile':: d.obj(help="\"AppArmorProfile defines a pod or container's AppArmor settings.\""), + appArmorProfile: { + '#withLocalhostProfile':: d.fn(help='"localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \\"Localhost\\"."', args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { appArmorProfile+: { localhostProfile: localhostProfile } }, + '#withType':: d.fn(help="\"type indicates which kind of AppArmor profile will be applied. Valid options are:\\n Localhost - a profile pre-loaded on the node.\\n RuntimeDefault - the container runtime's default profile.\\n Unconfined - no AppArmor enforcement.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { appArmorProfile+: { type: type } }, + }, + '#capabilities':: d.obj(help='"Adds and removes POSIX capabilities from running containers."'), + capabilities: { + '#withAdd':: d.fn(help='"Added capabilities"', args=[d.arg(name='add', type=d.T.array)]), + withAdd(add): { capabilities+: { add: if std.isArray(v=add) then add else [add] } }, + '#withAddMixin':: d.fn(help='"Added capabilities"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='add', type=d.T.array)]), + withAddMixin(add): { capabilities+: { add+: if std.isArray(v=add) then add else [add] } }, + '#withDrop':: d.fn(help='"Removed capabilities"', args=[d.arg(name='drop', type=d.T.array)]), + withDrop(drop): { capabilities+: { drop: if std.isArray(v=drop) then drop else [drop] } }, + '#withDropMixin':: d.fn(help='"Removed capabilities"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='drop', type=d.T.array)]), + withDropMixin(drop): { capabilities+: { drop+: if std.isArray(v=drop) then drop else [drop] } }, + }, + '#seLinuxOptions':: d.obj(help='"SELinuxOptions are the labels to be applied to the container"'), + seLinuxOptions: { + '#withLevel':: d.fn(help='"Level is SELinux level label that applies to the container."', args=[d.arg(name='level', type=d.T.string)]), + withLevel(level): { seLinuxOptions+: { level: level } }, + '#withRole':: d.fn(help='"Role is a SELinux role label that applies to the container."', args=[d.arg(name='role', type=d.T.string)]), + withRole(role): { seLinuxOptions+: { role: role } }, + '#withType':: d.fn(help='"Type is a SELinux type label that applies to the container."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { seLinuxOptions+: { type: type } }, + '#withUser':: d.fn(help='"User is a SELinux user label that applies to the container."', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { seLinuxOptions+: { user: user } }, + }, + '#seccompProfile':: d.obj(help="\"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.\""), + seccompProfile: { + '#withLocalhostProfile':: d.fn(help="\"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \\\"Localhost\\\". Must NOT be set for any other type.\"", args=[d.arg(name='localhostProfile', type=d.T.string)]), + withLocalhostProfile(localhostProfile): { seccompProfile+: { localhostProfile: localhostProfile } }, + '#withType':: d.fn(help='"type indicates which kind of seccomp profile will be applied. Valid options are:\\n\\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { seccompProfile+: { type: type } }, + }, + '#windowsOptions':: d.obj(help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + windowsOptions: { + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { windowsOptions+: { gmsaCredentialSpec: gmsaCredentialSpec } }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { windowsOptions+: { gmsaCredentialSpecName: gmsaCredentialSpecName } }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { windowsOptions+: { hostProcess: hostProcess } }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { windowsOptions+: { runAsUserName: runAsUserName } }, + }, + '#withAllowPrivilegeEscalation':: d.fn(help='"AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='allowPrivilegeEscalation', type=d.T.boolean)]), + withAllowPrivilegeEscalation(allowPrivilegeEscalation): { allowPrivilegeEscalation: allowPrivilegeEscalation }, + '#withPrivileged':: d.fn(help='"Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='privileged', type=d.T.boolean)]), + withPrivileged(privileged): { privileged: privileged }, + '#withProcMount':: d.fn(help='"procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='procMount', type=d.T.string)]), + withProcMount(procMount): { procMount: procMount }, + '#withReadOnlyRootFilesystem':: d.fn(help='"Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='readOnlyRootFilesystem', type=d.T.boolean)]), + withReadOnlyRootFilesystem(readOnlyRootFilesystem): { readOnlyRootFilesystem: readOnlyRootFilesystem }, + '#withRunAsGroup':: d.fn(help='"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsGroup', type=d.T.integer)]), + withRunAsGroup(runAsGroup): { runAsGroup: runAsGroup }, + '#withRunAsNonRoot':: d.fn(help='"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsNonRoot', type=d.T.boolean)]), + withRunAsNonRoot(runAsNonRoot): { runAsNonRoot: runAsNonRoot }, + '#withRunAsUser':: d.fn(help='"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows."', args=[d.arg(name='runAsUser', type=d.T.integer)]), + withRunAsUser(runAsUser): { runAsUser: runAsUser }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/service.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/service.libsonnet new file mode 100644 index 0000000..d5a20c1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/service.libsonnet @@ -0,0 +1,115 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='service', url='', help='"Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Service', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'Service', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ServiceSpec describes the attributes that a user creates on a service."'), + spec: { + '#sessionAffinityConfig':: d.obj(help='"SessionAffinityConfig represents the configurations of session affinity."'), + sessionAffinityConfig: { + '#clientIP':: d.obj(help='"ClientIPConfig represents the configurations of Client IP based session affinity."'), + clientIP: { + '#withTimeoutSeconds':: d.fn(help='"timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \\"ClientIP\\". Default value is 10800(for 3 hours)."', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { spec+: { sessionAffinityConfig+: { clientIP+: { timeoutSeconds: timeoutSeconds } } } }, + }, + }, + '#withAllocateLoadBalancerNodePorts':: d.fn(help='"allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \\"true\\". It may be set to \\"false\\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type."', args=[d.arg(name='allocateLoadBalancerNodePorts', type=d.T.boolean)]), + withAllocateLoadBalancerNodePorts(allocateLoadBalancerNodePorts): { spec+: { allocateLoadBalancerNodePorts: allocateLoadBalancerNodePorts } }, + '#withClusterIP':: d.fn(help='"clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \\"None\\", empty string (\\"\\"), or a valid IP address. Setting this to \\"None\\" makes a \\"headless service\\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"', args=[d.arg(name='clusterIP', type=d.T.string)]), + withClusterIP(clusterIP): { spec+: { clusterIP: clusterIP } }, + '#withClusterIPs':: d.fn(help='"ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \\"None\\", empty string (\\"\\"), or a valid IP address. Setting this to \\"None\\" makes a \\"headless service\\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\\n\\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"', args=[d.arg(name='clusterIPs', type=d.T.array)]), + withClusterIPs(clusterIPs): { spec+: { clusterIPs: if std.isArray(v=clusterIPs) then clusterIPs else [clusterIPs] } }, + '#withClusterIPsMixin':: d.fn(help='"ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \\"None\\", empty string (\\"\\"), or a valid IP address. Setting this to \\"None\\" makes a \\"headless service\\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\\n\\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='clusterIPs', type=d.T.array)]), + withClusterIPsMixin(clusterIPs): { spec+: { clusterIPs+: if std.isArray(v=clusterIPs) then clusterIPs else [clusterIPs] } }, + '#withExternalIPs':: d.fn(help='"externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system."', args=[d.arg(name='externalIPs', type=d.T.array)]), + withExternalIPs(externalIPs): { spec+: { externalIPs: if std.isArray(v=externalIPs) then externalIPs else [externalIPs] } }, + '#withExternalIPsMixin':: d.fn(help='"externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='externalIPs', type=d.T.array)]), + withExternalIPsMixin(externalIPs): { spec+: { externalIPs+: if std.isArray(v=externalIPs) then externalIPs else [externalIPs] } }, + '#withExternalName':: d.fn(help='"externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \\"ExternalName\\"."', args=[d.arg(name='externalName', type=d.T.string)]), + withExternalName(externalName): { spec+: { externalName: externalName } }, + '#withExternalTrafficPolicy':: d.fn(help="\"externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \\\"externally-facing\\\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \\\"Local\\\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \\\"Cluster\\\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \\\"Cluster\\\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.\"", args=[d.arg(name='externalTrafficPolicy', type=d.T.string)]), + withExternalTrafficPolicy(externalTrafficPolicy): { spec+: { externalTrafficPolicy: externalTrafficPolicy } }, + '#withHealthCheckNodePort':: d.fn(help='"healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set."', args=[d.arg(name='healthCheckNodePort', type=d.T.integer)]), + withHealthCheckNodePort(healthCheckNodePort): { spec+: { healthCheckNodePort: healthCheckNodePort } }, + '#withInternalTrafficPolicy':: d.fn(help='"InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \\"Local\\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \\"Cluster\\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features)."', args=[d.arg(name='internalTrafficPolicy', type=d.T.string)]), + withInternalTrafficPolicy(internalTrafficPolicy): { spec+: { internalTrafficPolicy: internalTrafficPolicy } }, + '#withIpFamilies':: d.fn(help='"IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \\"IPv4\\" and \\"IPv6\\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \\"headless\\" services. This field will be wiped when updating a Service to type ExternalName.\\n\\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field."', args=[d.arg(name='ipFamilies', type=d.T.array)]), + withIpFamilies(ipFamilies): { spec+: { ipFamilies: if std.isArray(v=ipFamilies) then ipFamilies else [ipFamilies] } }, + '#withIpFamiliesMixin':: d.fn(help='"IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \\"IPv4\\" and \\"IPv6\\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \\"headless\\" services. This field will be wiped when updating a Service to type ExternalName.\\n\\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ipFamilies', type=d.T.array)]), + withIpFamiliesMixin(ipFamilies): { spec+: { ipFamilies+: if std.isArray(v=ipFamilies) then ipFamilies else [ipFamilies] } }, + '#withIpFamilyPolicy':: d.fn(help='"IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \\"SingleStack\\" (a single IP family), \\"PreferDualStack\\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \\"RequireDualStack\\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName."', args=[d.arg(name='ipFamilyPolicy', type=d.T.string)]), + withIpFamilyPolicy(ipFamilyPolicy): { spec+: { ipFamilyPolicy: ipFamilyPolicy } }, + '#withLoadBalancerClass':: d.fn(help="\"loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \\\"internal-vip\\\" or \\\"example.com/internal-vip\\\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.\"", args=[d.arg(name='loadBalancerClass', type=d.T.string)]), + withLoadBalancerClass(loadBalancerClass): { spec+: { loadBalancerClass: loadBalancerClass } }, + '#withLoadBalancerIP':: d.fn(help='"Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available."', args=[d.arg(name='loadBalancerIP', type=d.T.string)]), + withLoadBalancerIP(loadBalancerIP): { spec+: { loadBalancerIP: loadBalancerIP } }, + '#withLoadBalancerSourceRanges':: d.fn(help='"If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/"', args=[d.arg(name='loadBalancerSourceRanges', type=d.T.array)]), + withLoadBalancerSourceRanges(loadBalancerSourceRanges): { spec+: { loadBalancerSourceRanges: if std.isArray(v=loadBalancerSourceRanges) then loadBalancerSourceRanges else [loadBalancerSourceRanges] } }, + '#withLoadBalancerSourceRangesMixin':: d.fn(help='"If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='loadBalancerSourceRanges', type=d.T.array)]), + withLoadBalancerSourceRangesMixin(loadBalancerSourceRanges): { spec+: { loadBalancerSourceRanges+: if std.isArray(v=loadBalancerSourceRanges) then loadBalancerSourceRanges else [loadBalancerSourceRanges] } }, + '#withPorts':: d.fn(help='"The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { spec+: { ports: if std.isArray(v=ports) then ports else [ports] } }, + '#withPortsMixin':: d.fn(help='"The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { spec+: { ports+: if std.isArray(v=ports) then ports else [ports] } }, + '#withPublishNotReadyAddresses':: d.fn(help="\"publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \\\"ready\\\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.\"", args=[d.arg(name='publishNotReadyAddresses', type=d.T.boolean)]), + withPublishNotReadyAddresses(publishNotReadyAddresses): { spec+: { publishNotReadyAddresses: publishNotReadyAddresses } }, + '#withSelector':: d.fn(help='"Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/"', args=[d.arg(name='selector', type=d.T.object)]), + withSelector(selector): { spec+: { selector: selector } }, + '#withSelectorMixin':: d.fn(help='"Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='selector', type=d.T.object)]), + withSelectorMixin(selector): { spec+: { selector+: selector } }, + '#withSessionAffinity':: d.fn(help='"Supports \\"ClientIP\\" and \\"None\\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"', args=[d.arg(name='sessionAffinity', type=d.T.string)]), + withSessionAffinity(sessionAffinity): { spec+: { sessionAffinity: sessionAffinity } }, + '#withTrafficDistribution':: d.fn(help='"TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \\"PreferClose\\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature."', args=[d.arg(name='trafficDistribution', type=d.T.string)]), + withTrafficDistribution(trafficDistribution): { spec+: { trafficDistribution: trafficDistribution } }, + '#withType':: d.fn(help='"type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \\"ClusterIP\\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \\"None\\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \\"NodePort\\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \\"LoadBalancer\\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \\"ExternalName\\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { type: type } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceAccount.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceAccount.libsonnet new file mode 100644 index 0000000..c8fd262 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceAccount.libsonnet @@ -0,0 +1,64 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceAccount', url='', help='"ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ServiceAccount', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'ServiceAccount', + } + self.metadata.withName(name=name), + '#withAutomountServiceAccountToken':: d.fn(help='"AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level."', args=[d.arg(name='automountServiceAccountToken', type=d.T.boolean)]), + withAutomountServiceAccountToken(automountServiceAccountToken): { automountServiceAccountToken: automountServiceAccountToken }, + '#withImagePullSecrets':: d.fn(help='"ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod"', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecrets(imagePullSecrets): { imagePullSecrets: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] }, + '#withImagePullSecretsMixin':: d.fn(help='"ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='imagePullSecrets', type=d.T.array)]), + withImagePullSecretsMixin(imagePullSecrets): { imagePullSecrets+: if std.isArray(v=imagePullSecrets) then imagePullSecrets else [imagePullSecrets] }, + '#withSecrets':: d.fn(help='"Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \\"kubernetes.io/enforce-mountable-secrets\\" annotation set to \\"true\\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret"', args=[d.arg(name='secrets', type=d.T.array)]), + withSecrets(secrets): { secrets: if std.isArray(v=secrets) then secrets else [secrets] }, + '#withSecretsMixin':: d.fn(help='"Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \\"kubernetes.io/enforce-mountable-secrets\\" annotation set to \\"true\\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='secrets', type=d.T.array)]), + withSecretsMixin(secrets): { secrets+: if std.isArray(v=secrets) then secrets else [secrets] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceAccountTokenProjection.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceAccountTokenProjection.libsonnet new file mode 100644 index 0000000..17e6b90 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceAccountTokenProjection.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceAccountTokenProjection', url='', help='"ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise)."'), + '#withAudience':: d.fn(help='"audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver."', args=[d.arg(name='audience', type=d.T.string)]), + withAudience(audience): { audience: audience }, + '#withExpirationSeconds':: d.fn(help='"expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes."', args=[d.arg(name='expirationSeconds', type=d.T.integer)]), + withExpirationSeconds(expirationSeconds): { expirationSeconds: expirationSeconds }, + '#withPath':: d.fn(help='"path is the path relative to the mount point of the file to project the token into."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/servicePort.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/servicePort.libsonnet new file mode 100644 index 0000000..5a1fa5a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/servicePort.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='servicePort', url='', help="\"ServicePort contains information on service's port.\""), + '#withAppProtocol':: d.fn(help="\"The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\\n\\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\\n\\n* Kubernetes-defined prefixed names:\\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\\n\\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.\"", args=[d.arg(name='appProtocol', type=d.T.string)]), + withAppProtocol(appProtocol): { appProtocol: appProtocol }, + '#withName':: d.fn(help="\"The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.\"", args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNodePort':: d.fn(help='"The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport"', args=[d.arg(name='nodePort', type=d.T.integer)]), + withNodePort(nodePort): { nodePort: nodePort }, + '#withPort':: d.fn(help='"The port that will be exposed by this service."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { port: port }, + '#withProtocol':: d.fn(help='"The IP protocol for this port. Supports \\"TCP\\", \\"UDP\\", and \\"SCTP\\". Default is TCP."', args=[d.arg(name='protocol', type=d.T.string)]), + withProtocol(protocol): { protocol: protocol }, + '#withTargetPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='targetPort', type=d.T.string)]), + withTargetPort(targetPort): { targetPort: targetPort }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceSpec.libsonnet new file mode 100644 index 0000000..ea1debe --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceSpec.libsonnet @@ -0,0 +1,64 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceSpec', url='', help='"ServiceSpec describes the attributes that a user creates on a service."'), + '#sessionAffinityConfig':: d.obj(help='"SessionAffinityConfig represents the configurations of session affinity."'), + sessionAffinityConfig: { + '#clientIP':: d.obj(help='"ClientIPConfig represents the configurations of Client IP based session affinity."'), + clientIP: { + '#withTimeoutSeconds':: d.fn(help='"timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \\"ClientIP\\". Default value is 10800(for 3 hours)."', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { sessionAffinityConfig+: { clientIP+: { timeoutSeconds: timeoutSeconds } } }, + }, + }, + '#withAllocateLoadBalancerNodePorts':: d.fn(help='"allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \\"true\\". It may be set to \\"false\\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type."', args=[d.arg(name='allocateLoadBalancerNodePorts', type=d.T.boolean)]), + withAllocateLoadBalancerNodePorts(allocateLoadBalancerNodePorts): { allocateLoadBalancerNodePorts: allocateLoadBalancerNodePorts }, + '#withClusterIP':: d.fn(help='"clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \\"None\\", empty string (\\"\\"), or a valid IP address. Setting this to \\"None\\" makes a \\"headless service\\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"', args=[d.arg(name='clusterIP', type=d.T.string)]), + withClusterIP(clusterIP): { clusterIP: clusterIP }, + '#withClusterIPs':: d.fn(help='"ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \\"None\\", empty string (\\"\\"), or a valid IP address. Setting this to \\"None\\" makes a \\"headless service\\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\\n\\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"', args=[d.arg(name='clusterIPs', type=d.T.array)]), + withClusterIPs(clusterIPs): { clusterIPs: if std.isArray(v=clusterIPs) then clusterIPs else [clusterIPs] }, + '#withClusterIPsMixin':: d.fn(help='"ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \\"None\\", empty string (\\"\\"), or a valid IP address. Setting this to \\"None\\" makes a \\"headless service\\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\\n\\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='clusterIPs', type=d.T.array)]), + withClusterIPsMixin(clusterIPs): { clusterIPs+: if std.isArray(v=clusterIPs) then clusterIPs else [clusterIPs] }, + '#withExternalIPs':: d.fn(help='"externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system."', args=[d.arg(name='externalIPs', type=d.T.array)]), + withExternalIPs(externalIPs): { externalIPs: if std.isArray(v=externalIPs) then externalIPs else [externalIPs] }, + '#withExternalIPsMixin':: d.fn(help='"externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='externalIPs', type=d.T.array)]), + withExternalIPsMixin(externalIPs): { externalIPs+: if std.isArray(v=externalIPs) then externalIPs else [externalIPs] }, + '#withExternalName':: d.fn(help='"externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \\"ExternalName\\"."', args=[d.arg(name='externalName', type=d.T.string)]), + withExternalName(externalName): { externalName: externalName }, + '#withExternalTrafficPolicy':: d.fn(help="\"externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \\\"externally-facing\\\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \\\"Local\\\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \\\"Cluster\\\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \\\"Cluster\\\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.\"", args=[d.arg(name='externalTrafficPolicy', type=d.T.string)]), + withExternalTrafficPolicy(externalTrafficPolicy): { externalTrafficPolicy: externalTrafficPolicy }, + '#withHealthCheckNodePort':: d.fn(help='"healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set."', args=[d.arg(name='healthCheckNodePort', type=d.T.integer)]), + withHealthCheckNodePort(healthCheckNodePort): { healthCheckNodePort: healthCheckNodePort }, + '#withInternalTrafficPolicy':: d.fn(help='"InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \\"Local\\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \\"Cluster\\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features)."', args=[d.arg(name='internalTrafficPolicy', type=d.T.string)]), + withInternalTrafficPolicy(internalTrafficPolicy): { internalTrafficPolicy: internalTrafficPolicy }, + '#withIpFamilies':: d.fn(help='"IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \\"IPv4\\" and \\"IPv6\\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \\"headless\\" services. This field will be wiped when updating a Service to type ExternalName.\\n\\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field."', args=[d.arg(name='ipFamilies', type=d.T.array)]), + withIpFamilies(ipFamilies): { ipFamilies: if std.isArray(v=ipFamilies) then ipFamilies else [ipFamilies] }, + '#withIpFamiliesMixin':: d.fn(help='"IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \\"IPv4\\" and \\"IPv6\\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \\"headless\\" services. This field will be wiped when updating a Service to type ExternalName.\\n\\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ipFamilies', type=d.T.array)]), + withIpFamiliesMixin(ipFamilies): { ipFamilies+: if std.isArray(v=ipFamilies) then ipFamilies else [ipFamilies] }, + '#withIpFamilyPolicy':: d.fn(help='"IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \\"SingleStack\\" (a single IP family), \\"PreferDualStack\\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \\"RequireDualStack\\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName."', args=[d.arg(name='ipFamilyPolicy', type=d.T.string)]), + withIpFamilyPolicy(ipFamilyPolicy): { ipFamilyPolicy: ipFamilyPolicy }, + '#withLoadBalancerClass':: d.fn(help="\"loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \\\"internal-vip\\\" or \\\"example.com/internal-vip\\\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.\"", args=[d.arg(name='loadBalancerClass', type=d.T.string)]), + withLoadBalancerClass(loadBalancerClass): { loadBalancerClass: loadBalancerClass }, + '#withLoadBalancerIP':: d.fn(help='"Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available."', args=[d.arg(name='loadBalancerIP', type=d.T.string)]), + withLoadBalancerIP(loadBalancerIP): { loadBalancerIP: loadBalancerIP }, + '#withLoadBalancerSourceRanges':: d.fn(help='"If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/"', args=[d.arg(name='loadBalancerSourceRanges', type=d.T.array)]), + withLoadBalancerSourceRanges(loadBalancerSourceRanges): { loadBalancerSourceRanges: if std.isArray(v=loadBalancerSourceRanges) then loadBalancerSourceRanges else [loadBalancerSourceRanges] }, + '#withLoadBalancerSourceRangesMixin':: d.fn(help='"If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='loadBalancerSourceRanges', type=d.T.array)]), + withLoadBalancerSourceRangesMixin(loadBalancerSourceRanges): { loadBalancerSourceRanges+: if std.isArray(v=loadBalancerSourceRanges) then loadBalancerSourceRanges else [loadBalancerSourceRanges] }, + '#withPorts':: d.fn(help='"The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { ports: if std.isArray(v=ports) then ports else [ports] }, + '#withPortsMixin':: d.fn(help='"The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { ports+: if std.isArray(v=ports) then ports else [ports] }, + '#withPublishNotReadyAddresses':: d.fn(help="\"publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \\\"ready\\\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.\"", args=[d.arg(name='publishNotReadyAddresses', type=d.T.boolean)]), + withPublishNotReadyAddresses(publishNotReadyAddresses): { publishNotReadyAddresses: publishNotReadyAddresses }, + '#withSelector':: d.fn(help='"Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/"', args=[d.arg(name='selector', type=d.T.object)]), + withSelector(selector): { selector: selector }, + '#withSelectorMixin':: d.fn(help='"Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='selector', type=d.T.object)]), + withSelectorMixin(selector): { selector+: selector }, + '#withSessionAffinity':: d.fn(help='"Supports \\"ClientIP\\" and \\"None\\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies"', args=[d.arg(name='sessionAffinity', type=d.T.string)]), + withSessionAffinity(sessionAffinity): { sessionAffinity: sessionAffinity }, + '#withTrafficDistribution':: d.fn(help='"TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \\"PreferClose\\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature."', args=[d.arg(name='trafficDistribution', type=d.T.string)]), + withTrafficDistribution(trafficDistribution): { trafficDistribution: trafficDistribution }, + '#withType':: d.fn(help='"type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \\"ClusterIP\\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \\"None\\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \\"NodePort\\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \\"LoadBalancer\\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \\"ExternalName\\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceStatus.libsonnet new file mode 100644 index 0000000..f4b05ea --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/serviceStatus.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceStatus', url='', help='"ServiceStatus represents the current status of a service."'), + '#loadBalancer':: d.obj(help='"LoadBalancerStatus represents the status of a load-balancer."'), + loadBalancer: { + '#withIngress':: d.fn(help='"Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points."', args=[d.arg(name='ingress', type=d.T.array)]), + withIngress(ingress): { loadBalancer+: { ingress: if std.isArray(v=ingress) then ingress else [ingress] } }, + '#withIngressMixin':: d.fn(help='"Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ingress', type=d.T.array)]), + withIngressMixin(ingress): { loadBalancer+: { ingress+: if std.isArray(v=ingress) then ingress else [ingress] } }, + }, + '#withConditions':: d.fn(help='"Current service state"', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"Current service state"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sessionAffinityConfig.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sessionAffinityConfig.libsonnet new file mode 100644 index 0000000..8aa62db --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sessionAffinityConfig.libsonnet @@ -0,0 +1,11 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='sessionAffinityConfig', url='', help='"SessionAffinityConfig represents the configurations of session affinity."'), + '#clientIP':: d.obj(help='"ClientIPConfig represents the configurations of Client IP based session affinity."'), + clientIP: { + '#withTimeoutSeconds':: d.fn(help='"timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \\"ClientIP\\". Default value is 10800(for 3 hours)."', args=[d.arg(name='timeoutSeconds', type=d.T.integer)]), + withTimeoutSeconds(timeoutSeconds): { clientIP+: { timeoutSeconds: timeoutSeconds } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sleepAction.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sleepAction.libsonnet new file mode 100644 index 0000000..e863a06 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sleepAction.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='sleepAction', url='', help='"SleepAction describes a \\"sleep\\" action."'), + '#withSeconds':: d.fn(help='"Seconds is the number of seconds to sleep."', args=[d.arg(name='seconds', type=d.T.integer)]), + withSeconds(seconds): { seconds: seconds }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/storageOSPersistentVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/storageOSPersistentVolumeSource.libsonnet new file mode 100644 index 0000000..f200e9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/storageOSPersistentVolumeSource.libsonnet @@ -0,0 +1,31 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageOSPersistentVolumeSource', url='', help='"Represents a StorageOS persistent volume resource."'), + '#secretRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + secretRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { secretRef+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { secretRef+: { fieldPath: fieldPath } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { secretRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { secretRef+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { secretRef+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { secretRef+: { uid: uid } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withVolumeName':: d.fn(help='"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { volumeName: volumeName }, + '#withVolumeNamespace':: d.fn(help="\"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \\\"default\\\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.\"", args=[d.arg(name='volumeNamespace', type=d.T.string)]), + withVolumeNamespace(volumeNamespace): { volumeNamespace: volumeNamespace }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/storageOSVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/storageOSVolumeSource.libsonnet new file mode 100644 index 0000000..d26f73d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/storageOSVolumeSource.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageOSVolumeSource', url='', help='"Represents a StorageOS persistent volume resource."'), + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secretRef+: { name: name } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withVolumeName':: d.fn(help='"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { volumeName: volumeName }, + '#withVolumeNamespace':: d.fn(help="\"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \\\"default\\\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.\"", args=[d.arg(name='volumeNamespace', type=d.T.string)]), + withVolumeNamespace(volumeNamespace): { volumeNamespace: volumeNamespace }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sysctl.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sysctl.libsonnet new file mode 100644 index 0000000..422b8d0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/sysctl.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='sysctl', url='', help='"Sysctl defines a kernel parameter to be set"'), + '#withName':: d.fn(help='"Name of a property to set"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withValue':: d.fn(help='"Value of a property to set"', args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/taint.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/taint.libsonnet new file mode 100644 index 0000000..f66072d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/taint.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='taint', url='', help='"The node this Taint is attached to has the \\"effect\\" on any pod that does not tolerate the Taint."'), + '#withEffect':: d.fn(help='"Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute."', args=[d.arg(name='effect', type=d.T.string)]), + withEffect(effect): { effect: effect }, + '#withKey':: d.fn(help='"Required. The taint key to be applied to a node."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withTimeAdded':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='timeAdded', type=d.T.string)]), + withTimeAdded(timeAdded): { timeAdded: timeAdded }, + '#withValue':: d.fn(help='"The taint value corresponding to the taint key."', args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/tcpSocketAction.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/tcpSocketAction.libsonnet new file mode 100644 index 0000000..7f3bf0c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/tcpSocketAction.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='tcpSocketAction', url='', help='"TCPSocketAction describes an action based on opening a socket"'), + '#withHost':: d.fn(help='"Optional: Host name to connect to, defaults to the pod IP."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { host: host }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { port: port }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/toleration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/toleration.libsonnet new file mode 100644 index 0000000..28e5d50 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/toleration.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='toleration', url='', help='"The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator ."'), + '#withEffect':: d.fn(help='"Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute."', args=[d.arg(name='effect', type=d.T.string)]), + withEffect(effect): { effect: effect }, + '#withKey':: d.fn(help='"Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withOperator':: d.fn(help="\"Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.\"", args=[d.arg(name='operator', type=d.T.string)]), + withOperator(operator): { operator: operator }, + '#withTolerationSeconds':: d.fn(help='"TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system."', args=[d.arg(name='tolerationSeconds', type=d.T.integer)]), + withTolerationSeconds(tolerationSeconds): { tolerationSeconds: tolerationSeconds }, + '#withValue':: d.fn(help='"Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string."', args=[d.arg(name='value', type=d.T.string)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySelectorLabelRequirement.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySelectorLabelRequirement.libsonnet new file mode 100644 index 0000000..dec635e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySelectorLabelRequirement.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='topologySelectorLabelRequirement', url='', help='"A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future."'), + '#withKey':: d.fn(help='"The label key that the selector applies to."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withValues':: d.fn(help='"An array of string values. One value must match the label to be selected. Each entry in Values is ORed."', args=[d.arg(name='values', type=d.T.array)]), + withValues(values): { values: if std.isArray(v=values) then values else [values] }, + '#withValuesMixin':: d.fn(help='"An array of string values. One value must match the label to be selected. Each entry in Values is ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='values', type=d.T.array)]), + withValuesMixin(values): { values+: if std.isArray(v=values) then values else [values] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySelectorTerm.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySelectorTerm.libsonnet new file mode 100644 index 0000000..e954026 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySelectorTerm.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='topologySelectorTerm', url='', help='"A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future."'), + '#withMatchLabelExpressions':: d.fn(help='"A list of topology selector requirements by labels."', args=[d.arg(name='matchLabelExpressions', type=d.T.array)]), + withMatchLabelExpressions(matchLabelExpressions): { matchLabelExpressions: if std.isArray(v=matchLabelExpressions) then matchLabelExpressions else [matchLabelExpressions] }, + '#withMatchLabelExpressionsMixin':: d.fn(help='"A list of topology selector requirements by labels."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabelExpressions', type=d.T.array)]), + withMatchLabelExpressionsMixin(matchLabelExpressions): { matchLabelExpressions+: if std.isArray(v=matchLabelExpressions) then matchLabelExpressions else [matchLabelExpressions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySpreadConstraint.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySpreadConstraint.libsonnet new file mode 100644 index 0000000..e5e3047 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/topologySpreadConstraint.libsonnet @@ -0,0 +1,33 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='topologySpreadConstraint', url='', help='"TopologySpreadConstraint specifies how to spread matching pods among the given topology."'), + '#labelSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + labelSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { labelSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { labelSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { labelSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { labelSelector+: { matchLabels+: matchLabels } }, + }, + '#withMatchLabelKeys':: d.fn(help="\"MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\\n\\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).\"", args=[d.arg(name='matchLabelKeys', type=d.T.array)]), + withMatchLabelKeys(matchLabelKeys): { matchLabelKeys: if std.isArray(v=matchLabelKeys) then matchLabelKeys else [matchLabelKeys] }, + '#withMatchLabelKeysMixin':: d.fn(help="\"MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\\n\\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='matchLabelKeys', type=d.T.array)]), + withMatchLabelKeysMixin(matchLabelKeys): { matchLabelKeys+: if std.isArray(v=matchLabelKeys) then matchLabelKeys else [matchLabelKeys] }, + '#withMaxSkew':: d.fn(help="\"MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.\"", args=[d.arg(name='maxSkew', type=d.T.integer)]), + withMaxSkew(maxSkew): { maxSkew: maxSkew }, + '#withMinDomains':: d.fn(help="\"MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \\\"global minimum\\\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\\n\\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \\\"global minimum\\\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.\"", args=[d.arg(name='minDomains', type=d.T.integer)]), + withMinDomains(minDomains): { minDomains: minDomains }, + '#withNodeAffinityPolicy':: d.fn(help="\"NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\\n\\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.\"", args=[d.arg(name='nodeAffinityPolicy', type=d.T.string)]), + withNodeAffinityPolicy(nodeAffinityPolicy): { nodeAffinityPolicy: nodeAffinityPolicy }, + '#withNodeTaintsPolicy':: d.fn(help='"NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\\n\\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag."', args=[d.arg(name='nodeTaintsPolicy', type=d.T.string)]), + withNodeTaintsPolicy(nodeTaintsPolicy): { nodeTaintsPolicy: nodeTaintsPolicy }, + '#withTopologyKey':: d.fn(help="\"TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each \u003ckey, value\u003e as a \\\"bucket\\\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \\\"kubernetes.io/hostname\\\", each Node is a domain of that topology. And, if TopologyKey is \\\"topology.kubernetes.io/zone\\\", each zone is a domain of that topology. It's a required field.\"", args=[d.arg(name='topologyKey', type=d.T.string)]), + withTopologyKey(topologyKey): { topologyKey: topologyKey }, + '#withWhenUnsatisfiable':: d.fn(help="\"WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\\n but giving higher precedence to topologies that would help reduce the\\n skew.\\nA constraint is considered \\\"Unsatisfiable\\\" for an incoming pod if and only if every possible node assignment for that pod would violate \\\"MaxSkew\\\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.\"", args=[d.arg(name='whenUnsatisfiable', type=d.T.string)]), + withWhenUnsatisfiable(whenUnsatisfiable): { whenUnsatisfiable: whenUnsatisfiable }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/typedLocalObjectReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/typedLocalObjectReference.libsonnet new file mode 100644 index 0000000..57c91b2 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/typedLocalObjectReference.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='typedLocalObjectReference', url='', help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { apiGroup: apiGroup }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/typedObjectReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/typedObjectReference.libsonnet new file mode 100644 index 0000000..5ab88f4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/typedObjectReference.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='typedObjectReference', url='', help=''), + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { apiGroup: apiGroup }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help="\"Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\"", args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volume.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volume.libsonnet new file mode 100644 index 0000000..03ba9c4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volume.libsonnet @@ -0,0 +1,484 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volume', url='', help='"Volume represents a named volume in a pod that may be accessed by any container in the pod."'), + '#awsElasticBlockStore':: d.obj(help='"Represents a Persistent Disk resource in AWS.\\n\\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling."'), + awsElasticBlockStore: { + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { awsElasticBlockStore+: { fsType: fsType } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty)."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { awsElasticBlockStore+: { partition: partition } }, + '#withReadOnly':: d.fn(help='"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { awsElasticBlockStore+: { readOnly: readOnly } }, + '#withVolumeID':: d.fn(help='"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { awsElasticBlockStore+: { volumeID: volumeID } }, + }, + '#azureDisk':: d.obj(help='"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."'), + azureDisk: { + '#withCachingMode':: d.fn(help='"cachingMode is the Host Caching mode: None, Read Only, Read Write."', args=[d.arg(name='cachingMode', type=d.T.string)]), + withCachingMode(cachingMode): { azureDisk+: { cachingMode: cachingMode } }, + '#withDiskName':: d.fn(help='"diskName is the Name of the data disk in the blob storage"', args=[d.arg(name='diskName', type=d.T.string)]), + withDiskName(diskName): { azureDisk+: { diskName: diskName } }, + '#withDiskURI':: d.fn(help='"diskURI is the URI of data disk in the blob storage"', args=[d.arg(name='diskURI', type=d.T.string)]), + withDiskURI(diskURI): { azureDisk+: { diskURI: diskURI } }, + '#withFsType':: d.fn(help='"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { azureDisk+: { fsType: fsType } }, + '#withKind':: d.fn(help='"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { azureDisk+: { kind: kind } }, + '#withReadOnly':: d.fn(help='"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { azureDisk+: { readOnly: readOnly } }, + }, + '#azureFile':: d.obj(help='"AzureFile represents an Azure File Service mount on the host and bind mount to the pod."'), + azureFile: { + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { azureFile+: { readOnly: readOnly } }, + '#withSecretName':: d.fn(help='"secretName is the name of secret that contains Azure Storage Account Name and Key"', args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { azureFile+: { secretName: secretName } }, + '#withShareName':: d.fn(help='"shareName is the azure share Name"', args=[d.arg(name='shareName', type=d.T.string)]), + withShareName(shareName): { azureFile+: { shareName: shareName } }, + }, + '#cephfs':: d.obj(help='"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."'), + cephfs: { + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { cephfs+: { secretRef+: { name: name } } }, + }, + '#withMonitors':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { cephfs+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } }, + '#withMonitorsMixin':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { cephfs+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } }, + '#withPath':: d.fn(help='"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { cephfs+: { path: path } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { cephfs+: { readOnly: readOnly } }, + '#withSecretFile':: d.fn(help='"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='secretFile', type=d.T.string)]), + withSecretFile(secretFile): { cephfs+: { secretFile: secretFile } }, + '#withUser':: d.fn(help='"user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { cephfs+: { user: user } }, + }, + '#cinder':: d.obj(help='"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."'), + cinder: { + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { cinder+: { secretRef+: { name: name } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { cinder+: { fsType: fsType } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { cinder+: { readOnly: readOnly } }, + '#withVolumeID':: d.fn(help='"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { cinder+: { volumeID: volumeID } }, + }, + '#configMap':: d.obj(help="\"Adapts a ConfigMap into a volume.\\n\\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.\""), + configMap: { + '#withDefaultMode':: d.fn(help='"defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='defaultMode', type=d.T.integer)]), + withDefaultMode(defaultMode): { configMap+: { defaultMode: defaultMode } }, + '#withItems':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"", args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { configMap+: { items: if std.isArray(v=items) then items else [items] } }, + '#withItemsMixin':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { configMap+: { items+: if std.isArray(v=items) then items else [items] } }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { configMap+: { name: name } }, + '#withOptional':: d.fn(help='"optional specify whether the ConfigMap or its keys must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { configMap+: { optional: optional } }, + }, + '#csi':: d.obj(help='"Represents a source location of a volume to mount, managed by an external CSI driver"'), + csi: { + '#nodePublishSecretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + nodePublishSecretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { csi+: { nodePublishSecretRef+: { name: name } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { csi+: { driver: driver } }, + '#withFsType':: d.fn(help='"fsType to mount. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { csi+: { fsType: fsType } }, + '#withReadOnly':: d.fn(help='"readOnly specifies a read-only configuration for the volume. Defaults to false (read/write)."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { csi+: { readOnly: readOnly } }, + '#withVolumeAttributes':: d.fn(help="\"volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.\"", args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributes(volumeAttributes): { csi+: { volumeAttributes: volumeAttributes } }, + '#withVolumeAttributesMixin':: d.fn(help="\"volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributesMixin(volumeAttributes): { csi+: { volumeAttributes+: volumeAttributes } }, + }, + '#downwardAPI':: d.obj(help='"DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling."'), + downwardAPI: { + '#withDefaultMode':: d.fn(help='"Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='defaultMode', type=d.T.integer)]), + withDefaultMode(defaultMode): { downwardAPI+: { defaultMode: defaultMode } }, + '#withItems':: d.fn(help='"Items is a list of downward API volume file"', args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { downwardAPI+: { items: if std.isArray(v=items) then items else [items] } }, + '#withItemsMixin':: d.fn(help='"Items is a list of downward API volume file"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { downwardAPI+: { items+: if std.isArray(v=items) then items else [items] } }, + }, + '#emptyDir':: d.obj(help='"Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling."'), + emptyDir: { + '#withMedium':: d.fn(help="\"medium represents what type of storage medium should back this directory. The default is \\\"\\\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir\"", args=[d.arg(name='medium', type=d.T.string)]), + withMedium(medium): { emptyDir+: { medium: medium } }, + '#withSizeLimit':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='sizeLimit', type=d.T.string)]), + withSizeLimit(sizeLimit): { emptyDir+: { sizeLimit: sizeLimit } }, + }, + '#ephemeral':: d.obj(help='"Represents an ephemeral volume that is handled by a normal storage driver."'), + ephemeral: { + '#volumeClaimTemplate':: d.obj(help='"PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource."'), + volumeClaimTemplate: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { ephemeral+: { volumeClaimTemplate+: { metadata+: { annotations: annotations } } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { ephemeral+: { volumeClaimTemplate+: { metadata+: { annotations+: annotations } } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { ephemeral+: { volumeClaimTemplate+: { metadata+: { creationTimestamp: creationTimestamp } } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { ephemeral+: { volumeClaimTemplate+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { ephemeral+: { volumeClaimTemplate+: { metadata+: { deletionTimestamp: deletionTimestamp } } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { ephemeral+: { volumeClaimTemplate+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { ephemeral+: { volumeClaimTemplate+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { ephemeral+: { volumeClaimTemplate+: { metadata+: { generateName: generateName } } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { ephemeral+: { volumeClaimTemplate+: { metadata+: { generation: generation } } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { ephemeral+: { volumeClaimTemplate+: { metadata+: { labels: labels } } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { ephemeral+: { volumeClaimTemplate+: { metadata+: { labels+: labels } } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { ephemeral+: { volumeClaimTemplate+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { ephemeral+: { volumeClaimTemplate+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { ephemeral+: { volumeClaimTemplate+: { metadata+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { ephemeral+: { volumeClaimTemplate+: { metadata+: { namespace: namespace } } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { ephemeral+: { volumeClaimTemplate+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { ephemeral+: { volumeClaimTemplate+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { ephemeral+: { volumeClaimTemplate+: { metadata+: { resourceVersion: resourceVersion } } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { ephemeral+: { volumeClaimTemplate+: { metadata+: { selfLink: selfLink } } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { ephemeral+: { volumeClaimTemplate+: { metadata+: { uid: uid } } } }, + }, + '#spec':: d.obj(help='"PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes"'), + spec: { + '#dataSource':: d.obj(help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + dataSource: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { ephemeral+: { volumeClaimTemplate+: { spec+: { dataSource+: { apiGroup: apiGroup } } } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { ephemeral+: { volumeClaimTemplate+: { spec+: { dataSource+: { kind: kind } } } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { ephemeral+: { volumeClaimTemplate+: { spec+: { dataSource+: { name: name } } } } }, + }, + '#dataSourceRef':: d.obj(help=''), + dataSourceRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { ephemeral+: { volumeClaimTemplate+: { spec+: { dataSourceRef+: { apiGroup: apiGroup } } } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { ephemeral+: { volumeClaimTemplate+: { spec+: { dataSourceRef+: { kind: kind } } } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { ephemeral+: { volumeClaimTemplate+: { spec+: { dataSourceRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help="\"Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\"", args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { ephemeral+: { volumeClaimTemplate+: { spec+: { dataSourceRef+: { namespace: namespace } } } } }, + }, + '#resources':: d.obj(help='"VolumeResourceRequirements describes the storage resource requirements for a volume."'), + resources: { + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { ephemeral+: { volumeClaimTemplate+: { spec+: { resources+: { limits: limits } } } } }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { ephemeral+: { volumeClaimTemplate+: { spec+: { resources+: { limits+: limits } } } } }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { ephemeral+: { volumeClaimTemplate+: { spec+: { resources+: { requests: requests } } } } }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { ephemeral+: { volumeClaimTemplate+: { spec+: { resources+: { requests+: requests } } } } }, + }, + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { ephemeral+: { volumeClaimTemplate+: { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { ephemeral+: { volumeClaimTemplate+: { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { ephemeral+: { volumeClaimTemplate+: { spec+: { selector+: { matchLabels: matchLabels } } } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { ephemeral+: { volumeClaimTemplate+: { spec+: { selector+: { matchLabels+: matchLabels } } } } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { ephemeral+: { volumeClaimTemplate+: { spec+: { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] } } } }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { ephemeral+: { volumeClaimTemplate+: { spec+: { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] } } } }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1"', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { ephemeral+: { volumeClaimTemplate+: { spec+: { storageClassName: storageClassName } } } }, + '#withVolumeAttributesClassName':: d.fn(help="\"volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.\"", args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { ephemeral+: { volumeClaimTemplate+: { spec+: { volumeAttributesClassName: volumeAttributesClassName } } } }, + '#withVolumeMode':: d.fn(help='"volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { ephemeral+: { volumeClaimTemplate+: { spec+: { volumeMode: volumeMode } } } }, + '#withVolumeName':: d.fn(help='"volumeName is the binding reference to the PersistentVolume backing this claim."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { ephemeral+: { volumeClaimTemplate+: { spec+: { volumeName: volumeName } } } }, + }, + }, + }, + '#fc':: d.obj(help='"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling."'), + fc: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fc+: { fsType: fsType } }, + '#withLun':: d.fn(help='"lun is Optional: FC target lun number"', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { fc+: { lun: lun } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { fc+: { readOnly: readOnly } }, + '#withTargetWWNs':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNs(targetWWNs): { fc+: { targetWWNs: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } }, + '#withTargetWWNsMixin':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNsMixin(targetWWNs): { fc+: { targetWWNs+: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } }, + '#withWwids':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."', args=[d.arg(name='wwids', type=d.T.array)]), + withWwids(wwids): { fc+: { wwids: if std.isArray(v=wwids) then wwids else [wwids] } }, + '#withWwidsMixin':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='wwids', type=d.T.array)]), + withWwidsMixin(wwids): { fc+: { wwids+: if std.isArray(v=wwids) then wwids else [wwids] } }, + }, + '#flexVolume':: d.obj(help='"FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin."'), + flexVolume: { + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { flexVolume+: { secretRef+: { name: name } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { flexVolume+: { driver: driver } }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default filesystem depends on FlexVolume script."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { flexVolume+: { fsType: fsType } }, + '#withOptions':: d.fn(help='"options is Optional: this field holds extra command options if any."', args=[d.arg(name='options', type=d.T.object)]), + withOptions(options): { flexVolume+: { options: options } }, + '#withOptionsMixin':: d.fn(help='"options is Optional: this field holds extra command options if any."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.object)]), + withOptionsMixin(options): { flexVolume+: { options+: options } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { flexVolume+: { readOnly: readOnly } }, + }, + '#flocker':: d.obj(help='"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling."'), + flocker: { + '#withDatasetName':: d.fn(help='"datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"', args=[d.arg(name='datasetName', type=d.T.string)]), + withDatasetName(datasetName): { flocker+: { datasetName: datasetName } }, + '#withDatasetUUID':: d.fn(help='"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset"', args=[d.arg(name='datasetUUID', type=d.T.string)]), + withDatasetUUID(datasetUUID): { flocker+: { datasetUUID: datasetUUID } }, + }, + '#gcePersistentDisk':: d.obj(help='"Represents a Persistent Disk resource in Google Compute Engine.\\n\\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling."'), + gcePersistentDisk: { + '#withFsType':: d.fn(help='"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { gcePersistentDisk+: { fsType: fsType } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { gcePersistentDisk+: { partition: partition } }, + '#withPdName':: d.fn(help='"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='pdName', type=d.T.string)]), + withPdName(pdName): { gcePersistentDisk+: { pdName: pdName } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { gcePersistentDisk+: { readOnly: readOnly } }, + }, + '#gitRepo':: d.obj(help="\"Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\\n\\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.\""), + gitRepo: { + '#withDirectory':: d.fn(help="\"directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.\"", args=[d.arg(name='directory', type=d.T.string)]), + withDirectory(directory): { gitRepo+: { directory: directory } }, + '#withRepository':: d.fn(help='"repository is the URL"', args=[d.arg(name='repository', type=d.T.string)]), + withRepository(repository): { gitRepo+: { repository: repository } }, + '#withRevision':: d.fn(help='"revision is the commit hash for the specified revision."', args=[d.arg(name='revision', type=d.T.string)]), + withRevision(revision): { gitRepo+: { revision: revision } }, + }, + '#glusterfs':: d.obj(help='"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."'), + glusterfs: { + '#withEndpoints':: d.fn(help='"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpoints', type=d.T.string)]), + withEndpoints(endpoints): { glusterfs+: { endpoints: endpoints } }, + '#withPath':: d.fn(help='"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { glusterfs+: { path: path } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { glusterfs+: { readOnly: readOnly } }, + }, + '#hostPath':: d.obj(help='"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling."'), + hostPath: { + '#withPath':: d.fn(help='"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { hostPath+: { path: path } }, + '#withType':: d.fn(help='"type for HostPath Volume Defaults to \\"\\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { hostPath+: { type: type } }, + }, + '#iscsi':: d.obj(help='"Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."'), + iscsi: { + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { iscsi+: { secretRef+: { name: name } } }, + }, + '#withChapAuthDiscovery':: d.fn(help='"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"', args=[d.arg(name='chapAuthDiscovery', type=d.T.boolean)]), + withChapAuthDiscovery(chapAuthDiscovery): { iscsi+: { chapAuthDiscovery: chapAuthDiscovery } }, + '#withChapAuthSession':: d.fn(help='"chapAuthSession defines whether support iSCSI Session CHAP authentication"', args=[d.arg(name='chapAuthSession', type=d.T.boolean)]), + withChapAuthSession(chapAuthSession): { iscsi+: { chapAuthSession: chapAuthSession } }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { iscsi+: { fsType: fsType } }, + '#withInitiatorName':: d.fn(help='"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection."', args=[d.arg(name='initiatorName', type=d.T.string)]), + withInitiatorName(initiatorName): { iscsi+: { initiatorName: initiatorName } }, + '#withIqn':: d.fn(help='"iqn is the target iSCSI Qualified Name."', args=[d.arg(name='iqn', type=d.T.string)]), + withIqn(iqn): { iscsi+: { iqn: iqn } }, + '#withIscsiInterface':: d.fn(help="\"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).\"", args=[d.arg(name='iscsiInterface', type=d.T.string)]), + withIscsiInterface(iscsiInterface): { iscsi+: { iscsiInterface: iscsiInterface } }, + '#withLun':: d.fn(help='"lun represents iSCSI Target Lun number."', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { iscsi+: { lun: lun } }, + '#withPortals':: d.fn(help='"portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='portals', type=d.T.array)]), + withPortals(portals): { iscsi+: { portals: if std.isArray(v=portals) then portals else [portals] } }, + '#withPortalsMixin':: d.fn(help='"portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='portals', type=d.T.array)]), + withPortalsMixin(portals): { iscsi+: { portals+: if std.isArray(v=portals) then portals else [portals] } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { iscsi+: { readOnly: readOnly } }, + '#withTargetPortal':: d.fn(help='"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='targetPortal', type=d.T.string)]), + withTargetPortal(targetPortal): { iscsi+: { targetPortal: targetPortal } }, + }, + '#nfs':: d.obj(help='"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling."'), + nfs: { + '#withPath':: d.fn(help='"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { nfs+: { path: path } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { nfs+: { readOnly: readOnly } }, + '#withServer':: d.fn(help='"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='server', type=d.T.string)]), + withServer(server): { nfs+: { server: server } }, + }, + '#persistentVolumeClaim':: d.obj(help="\"PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).\""), + persistentVolumeClaim: { + '#withClaimName':: d.fn(help='"claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims"', args=[d.arg(name='claimName', type=d.T.string)]), + withClaimName(claimName): { persistentVolumeClaim+: { claimName: claimName } }, + '#withReadOnly':: d.fn(help='"readOnly Will force the ReadOnly setting in VolumeMounts. Default false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { persistentVolumeClaim+: { readOnly: readOnly } }, + }, + '#photonPersistentDisk':: d.obj(help='"Represents a Photon Controller persistent disk resource."'), + photonPersistentDisk: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { photonPersistentDisk+: { fsType: fsType } }, + '#withPdID':: d.fn(help='"pdID is the ID that identifies Photon Controller persistent disk"', args=[d.arg(name='pdID', type=d.T.string)]), + withPdID(pdID): { photonPersistentDisk+: { pdID: pdID } }, + }, + '#portworxVolume':: d.obj(help='"PortworxVolumeSource represents a Portworx volume resource."'), + portworxVolume: { + '#withFsType':: d.fn(help='"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { portworxVolume+: { fsType: fsType } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { portworxVolume+: { readOnly: readOnly } }, + '#withVolumeID':: d.fn(help='"volumeID uniquely identifies a Portworx volume"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { portworxVolume+: { volumeID: volumeID } }, + }, + '#projected':: d.obj(help='"Represents a projected volume source"'), + projected: { + '#withDefaultMode':: d.fn(help='"defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='defaultMode', type=d.T.integer)]), + withDefaultMode(defaultMode): { projected+: { defaultMode: defaultMode } }, + '#withSources':: d.fn(help='"sources is the list of volume projections"', args=[d.arg(name='sources', type=d.T.array)]), + withSources(sources): { projected+: { sources: if std.isArray(v=sources) then sources else [sources] } }, + '#withSourcesMixin':: d.fn(help='"sources is the list of volume projections"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sources', type=d.T.array)]), + withSourcesMixin(sources): { projected+: { sources+: if std.isArray(v=sources) then sources else [sources] } }, + }, + '#quobyte':: d.obj(help='"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling."'), + quobyte: { + '#withGroup':: d.fn(help='"group to map volume access to Default is no group"', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { quobyte+: { group: group } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { quobyte+: { readOnly: readOnly } }, + '#withRegistry':: d.fn(help='"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"', args=[d.arg(name='registry', type=d.T.string)]), + withRegistry(registry): { quobyte+: { registry: registry } }, + '#withTenant':: d.fn(help='"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin"', args=[d.arg(name='tenant', type=d.T.string)]), + withTenant(tenant): { quobyte+: { tenant: tenant } }, + '#withUser':: d.fn(help='"user to map volume access to Defaults to serivceaccount user"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { quobyte+: { user: user } }, + '#withVolume':: d.fn(help='"volume is a string that references an already created Quobyte volume by name."', args=[d.arg(name='volume', type=d.T.string)]), + withVolume(volume): { quobyte+: { volume: volume } }, + }, + '#rbd':: d.obj(help='"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."'), + rbd: { + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { rbd+: { secretRef+: { name: name } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { rbd+: { fsType: fsType } }, + '#withImage':: d.fn(help='"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { rbd+: { image: image } }, + '#withKeyring':: d.fn(help='"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='keyring', type=d.T.string)]), + withKeyring(keyring): { rbd+: { keyring: keyring } }, + '#withMonitors':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { rbd+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } }, + '#withMonitorsMixin':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { rbd+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } }, + '#withPool':: d.fn(help='"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='pool', type=d.T.string)]), + withPool(pool): { rbd+: { pool: pool } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { rbd+: { readOnly: readOnly } }, + '#withUser':: d.fn(help='"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { rbd+: { user: user } }, + }, + '#scaleIO':: d.obj(help='"ScaleIOVolumeSource represents a persistent ScaleIO volume"'), + scaleIO: { + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { scaleIO+: { secretRef+: { name: name } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Default is \\"xfs\\"."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { scaleIO+: { fsType: fsType } }, + '#withGateway':: d.fn(help='"gateway is the host address of the ScaleIO API Gateway."', args=[d.arg(name='gateway', type=d.T.string)]), + withGateway(gateway): { scaleIO+: { gateway: gateway } }, + '#withProtectionDomain':: d.fn(help='"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."', args=[d.arg(name='protectionDomain', type=d.T.string)]), + withProtectionDomain(protectionDomain): { scaleIO+: { protectionDomain: protectionDomain } }, + '#withReadOnly':: d.fn(help='"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { scaleIO+: { readOnly: readOnly } }, + '#withSslEnabled':: d.fn(help='"sslEnabled Flag enable/disable SSL communication with Gateway, default false"', args=[d.arg(name='sslEnabled', type=d.T.boolean)]), + withSslEnabled(sslEnabled): { scaleIO+: { sslEnabled: sslEnabled } }, + '#withStorageMode':: d.fn(help='"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."', args=[d.arg(name='storageMode', type=d.T.string)]), + withStorageMode(storageMode): { scaleIO+: { storageMode: storageMode } }, + '#withStoragePool':: d.fn(help='"storagePool is the ScaleIO Storage Pool associated with the protection domain."', args=[d.arg(name='storagePool', type=d.T.string)]), + withStoragePool(storagePool): { scaleIO+: { storagePool: storagePool } }, + '#withSystem':: d.fn(help='"system is the name of the storage system as configured in ScaleIO."', args=[d.arg(name='system', type=d.T.string)]), + withSystem(system): { scaleIO+: { system: system } }, + '#withVolumeName':: d.fn(help='"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { scaleIO+: { volumeName: volumeName } }, + }, + '#secret':: d.obj(help="\"Adapts a Secret into a volume.\\n\\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.\""), + secret: { + '#withDefaultMode':: d.fn(help='"defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."', args=[d.arg(name='defaultMode', type=d.T.integer)]), + withDefaultMode(defaultMode): { secret+: { defaultMode: defaultMode } }, + '#withItems':: d.fn(help="\"items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"", args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { secret+: { items: if std.isArray(v=items) then items else [items] } }, + '#withItemsMixin':: d.fn(help="\"items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { secret+: { items+: if std.isArray(v=items) then items else [items] } }, + '#withOptional':: d.fn(help='"optional field specify whether the Secret or its keys must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { secret+: { optional: optional } }, + '#withSecretName':: d.fn(help="\"secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret\"", args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { secret+: { secretName: secretName } }, + }, + '#storageos':: d.obj(help='"Represents a StorageOS persistent volume resource."'), + storageos: { + '#secretRef':: d.obj(help='"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."'), + secretRef: { + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { storageos+: { secretRef+: { name: name } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { storageos+: { fsType: fsType } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { storageos+: { readOnly: readOnly } }, + '#withVolumeName':: d.fn(help='"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { storageos+: { volumeName: volumeName } }, + '#withVolumeNamespace':: d.fn(help="\"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \\\"default\\\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.\"", args=[d.arg(name='volumeNamespace', type=d.T.string)]), + withVolumeNamespace(volumeNamespace): { storageos+: { volumeNamespace: volumeNamespace } }, + }, + '#vsphereVolume':: d.obj(help='"Represents a vSphere volume resource."'), + vsphereVolume: { + '#withFsType':: d.fn(help='"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { vsphereVolume+: { fsType: fsType } }, + '#withStoragePolicyID':: d.fn(help='"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."', args=[d.arg(name='storagePolicyID', type=d.T.string)]), + withStoragePolicyID(storagePolicyID): { vsphereVolume+: { storagePolicyID: storagePolicyID } }, + '#withStoragePolicyName':: d.fn(help='"storagePolicyName is the storage Policy Based Management (SPBM) profile name."', args=[d.arg(name='storagePolicyName', type=d.T.string)]), + withStoragePolicyName(storagePolicyName): { vsphereVolume+: { storagePolicyName: storagePolicyName } }, + '#withVolumePath':: d.fn(help='"volumePath is the path that identifies vSphere volume vmdk"', args=[d.arg(name='volumePath', type=d.T.string)]), + withVolumePath(volumePath): { vsphereVolume+: { volumePath: volumePath } }, + }, + '#withName':: d.fn(help='"name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeDevice.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeDevice.libsonnet new file mode 100644 index 0000000..ef8e9e3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeDevice.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeDevice', url='', help='"volumeDevice describes a mapping of a raw block device within a container."'), + '#withDevicePath':: d.fn(help='"devicePath is the path inside of the container that the device will be mapped to."', args=[d.arg(name='devicePath', type=d.T.string)]), + withDevicePath(devicePath): { devicePath: devicePath }, + '#withName':: d.fn(help='"name must match the name of a persistentVolumeClaim in the pod"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeMount.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeMount.libsonnet new file mode 100644 index 0000000..fb99ef4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeMount.libsonnet @@ -0,0 +1,20 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeMount', url='', help='"VolumeMount describes a mounting of a Volume within a container."'), + '#withMountPath':: d.fn(help="\"Path within the container at which the volume should be mounted. Must not contain ':'.\"", args=[d.arg(name='mountPath', type=d.T.string)]), + withMountPath(mountPath): { mountPath: mountPath }, + '#withMountPropagation':: d.fn(help='"mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None)."', args=[d.arg(name='mountPropagation', type=d.T.string)]), + withMountPropagation(mountPropagation): { mountPropagation: mountPropagation }, + '#withName':: d.fn(help='"This must match the Name of a Volume."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withReadOnly':: d.fn(help='"Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withRecursiveReadOnly':: d.fn(help='"RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\\n\\nIf ReadOnly is false, this field has no meaning and must be unspecified.\\n\\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.\\n\\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).\\n\\nIf this field is not specified, it is treated as an equivalent of Disabled."', args=[d.arg(name='recursiveReadOnly', type=d.T.string)]), + withRecursiveReadOnly(recursiveReadOnly): { recursiveReadOnly: recursiveReadOnly }, + '#withSubPath':: d.fn(help="\"Path within the volume from which the container's volume should be mounted. Defaults to \\\"\\\" (volume's root).\"", args=[d.arg(name='subPath', type=d.T.string)]), + withSubPath(subPath): { subPath: subPath }, + '#withSubPathExpr':: d.fn(help="\"Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \\\"\\\" (volume's root). SubPathExpr and SubPath are mutually exclusive.\"", args=[d.arg(name='subPathExpr', type=d.T.string)]), + withSubPathExpr(subPathExpr): { subPathExpr: subPathExpr }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeMountStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeMountStatus.libsonnet new file mode 100644 index 0000000..dd3541c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeMountStatus.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeMountStatus', url='', help='"VolumeMountStatus shows status of volume mounts."'), + '#withMountPath':: d.fn(help='"MountPath corresponds to the original VolumeMount."', args=[d.arg(name='mountPath', type=d.T.string)]), + withMountPath(mountPath): { mountPath: mountPath }, + '#withName':: d.fn(help='"Name corresponds to the name of the original VolumeMount."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withReadOnly':: d.fn(help='"ReadOnly corresponds to the original VolumeMount."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { readOnly: readOnly }, + '#withRecursiveReadOnly':: d.fn(help='"RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result."', args=[d.arg(name='recursiveReadOnly', type=d.T.string)]), + withRecursiveReadOnly(recursiveReadOnly): { recursiveReadOnly: recursiveReadOnly }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeNodeAffinity.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeNodeAffinity.libsonnet new file mode 100644 index 0000000..d99defb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeNodeAffinity.libsonnet @@ -0,0 +1,13 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeNodeAffinity', url='', help='"VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from."'), + '#required':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + required: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { required+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { required+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeProjection.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeProjection.libsonnet new file mode 100644 index 0000000..1961377 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeProjection.libsonnet @@ -0,0 +1,66 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeProjection', url='', help='"Projection that may be projected along with other supported volume types"'), + '#clusterTrustBundle':: d.obj(help='"ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem."'), + clusterTrustBundle: { + '#labelSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + labelSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { clusterTrustBundle+: { labelSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { clusterTrustBundle+: { labelSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { clusterTrustBundle+: { labelSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { clusterTrustBundle+: { labelSelector+: { matchLabels+: matchLabels } } }, + }, + '#withName':: d.fn(help='"Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { clusterTrustBundle+: { name: name } }, + '#withOptional':: d.fn(help="\"If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.\"", args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { clusterTrustBundle+: { optional: optional } }, + '#withPath':: d.fn(help='"Relative path from the volume root to write the bundle."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { clusterTrustBundle+: { path: path } }, + '#withSignerName':: d.fn(help='"Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated."', args=[d.arg(name='signerName', type=d.T.string)]), + withSignerName(signerName): { clusterTrustBundle+: { signerName: signerName } }, + }, + '#configMap':: d.obj(help="\"Adapts a ConfigMap into a projected volume.\\n\\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.\""), + configMap: { + '#withItems':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"", args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { configMap+: { items: if std.isArray(v=items) then items else [items] } }, + '#withItemsMixin':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { configMap+: { items+: if std.isArray(v=items) then items else [items] } }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { configMap+: { name: name } }, + '#withOptional':: d.fn(help='"optional specify whether the ConfigMap or its keys must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { configMap+: { optional: optional } }, + }, + '#downwardAPI':: d.obj(help='"Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode."'), + downwardAPI: { + '#withItems':: d.fn(help='"Items is a list of DownwardAPIVolume file"', args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { downwardAPI+: { items: if std.isArray(v=items) then items else [items] } }, + '#withItemsMixin':: d.fn(help='"Items is a list of DownwardAPIVolume file"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { downwardAPI+: { items+: if std.isArray(v=items) then items else [items] } }, + }, + '#secret':: d.obj(help="\"Adapts a secret into a projected volume.\\n\\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.\""), + secret: { + '#withItems':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"", args=[d.arg(name='items', type=d.T.array)]), + withItems(items): { secret+: { items: if std.isArray(v=items) then items else [items] } }, + '#withItemsMixin':: d.fn(help="\"items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='items', type=d.T.array)]), + withItemsMixin(items): { secret+: { items+: if std.isArray(v=items) then items else [items] } }, + '#withName':: d.fn(help='"Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { secret+: { name: name } }, + '#withOptional':: d.fn(help='"optional field specify whether the Secret or its key must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), + withOptional(optional): { secret+: { optional: optional } }, + }, + '#serviceAccountToken':: d.obj(help='"ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise)."'), + serviceAccountToken: { + '#withAudience':: d.fn(help='"audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver."', args=[d.arg(name='audience', type=d.T.string)]), + withAudience(audience): { serviceAccountToken+: { audience: audience } }, + '#withExpirationSeconds':: d.fn(help='"expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes."', args=[d.arg(name='expirationSeconds', type=d.T.integer)]), + withExpirationSeconds(expirationSeconds): { serviceAccountToken+: { expirationSeconds: expirationSeconds } }, + '#withPath':: d.fn(help='"path is the path relative to the mount point of the file to project the token into."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { serviceAccountToken+: { path: path } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeResourceRequirements.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeResourceRequirements.libsonnet new file mode 100644 index 0000000..63bede9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/volumeResourceRequirements.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeResourceRequirements', url='', help='"VolumeResourceRequirements describes the storage resource requirements for a volume."'), + '#withLimits':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='limits', type=d.T.object)]), + withLimits(limits): { limits: limits }, + '#withLimitsMixin':: d.fn(help='"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='limits', type=d.T.object)]), + withLimitsMixin(limits): { limits+: limits }, + '#withRequests':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"', args=[d.arg(name='requests', type=d.T.object)]), + withRequests(requests): { requests: requests }, + '#withRequestsMixin':: d.fn(help='"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.object)]), + withRequestsMixin(requests): { requests+: requests }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/vsphereVirtualDiskVolumeSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/vsphereVirtualDiskVolumeSource.libsonnet new file mode 100644 index 0000000..61cb5cf --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/vsphereVirtualDiskVolumeSource.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='vsphereVirtualDiskVolumeSource', url='', help='"Represents a vSphere volume resource."'), + '#withFsType':: d.fn(help='"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { fsType: fsType }, + '#withStoragePolicyID':: d.fn(help='"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."', args=[d.arg(name='storagePolicyID', type=d.T.string)]), + withStoragePolicyID(storagePolicyID): { storagePolicyID: storagePolicyID }, + '#withStoragePolicyName':: d.fn(help='"storagePolicyName is the storage Policy Based Management (SPBM) profile name."', args=[d.arg(name='storagePolicyName', type=d.T.string)]), + withStoragePolicyName(storagePolicyName): { storagePolicyName: storagePolicyName }, + '#withVolumePath':: d.fn(help='"volumePath is the path that identifies vSphere volume vmdk"', args=[d.arg(name='volumePath', type=d.T.string)]), + withVolumePath(volumePath): { volumePath: volumePath }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/weightedPodAffinityTerm.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/weightedPodAffinityTerm.libsonnet new file mode 100644 index 0000000..6b8c0ed --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/weightedPodAffinityTerm.libsonnet @@ -0,0 +1,47 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='weightedPodAffinityTerm', url='', help='"The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)"'), + '#podAffinityTerm':: d.obj(help='"Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running"'), + podAffinityTerm: { + '#labelSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + labelSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { podAffinityTerm+: { labelSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { podAffinityTerm+: { labelSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { podAffinityTerm+: { labelSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { podAffinityTerm+: { labelSelector+: { matchLabels+: matchLabels } } }, + }, + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { podAffinityTerm+: { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { podAffinityTerm+: { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { podAffinityTerm+: { namespaceSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { podAffinityTerm+: { namespaceSelector+: { matchLabels+: matchLabels } } }, + }, + '#withMatchLabelKeys':: d.fn(help="\"MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.\"", args=[d.arg(name='matchLabelKeys', type=d.T.array)]), + withMatchLabelKeys(matchLabelKeys): { podAffinityTerm+: { matchLabelKeys: if std.isArray(v=matchLabelKeys) then matchLabelKeys else [matchLabelKeys] } }, + '#withMatchLabelKeysMixin':: d.fn(help="\"MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='matchLabelKeys', type=d.T.array)]), + withMatchLabelKeysMixin(matchLabelKeys): { podAffinityTerm+: { matchLabelKeys+: if std.isArray(v=matchLabelKeys) then matchLabelKeys else [matchLabelKeys] } }, + '#withMismatchLabelKeys':: d.fn(help="\"MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.\"", args=[d.arg(name='mismatchLabelKeys', type=d.T.array)]), + withMismatchLabelKeys(mismatchLabelKeys): { podAffinityTerm+: { mismatchLabelKeys: if std.isArray(v=mismatchLabelKeys) then mismatchLabelKeys else [mismatchLabelKeys] } }, + '#withMismatchLabelKeysMixin':: d.fn(help="\"MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='mismatchLabelKeys', type=d.T.array)]), + withMismatchLabelKeysMixin(mismatchLabelKeys): { podAffinityTerm+: { mismatchLabelKeys+: if std.isArray(v=mismatchLabelKeys) then mismatchLabelKeys else [mismatchLabelKeys] } }, + '#withNamespaces':: d.fn(help="\"namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \\\"this pod's namespace\\\".\"", args=[d.arg(name='namespaces', type=d.T.array)]), + withNamespaces(namespaces): { podAffinityTerm+: { namespaces: if std.isArray(v=namespaces) then namespaces else [namespaces] } }, + '#withNamespacesMixin':: d.fn(help="\"namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \\\"this pod's namespace\\\".\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='namespaces', type=d.T.array)]), + withNamespacesMixin(namespaces): { podAffinityTerm+: { namespaces+: if std.isArray(v=namespaces) then namespaces else [namespaces] } }, + '#withTopologyKey':: d.fn(help='"This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed."', args=[d.arg(name='topologyKey', type=d.T.string)]), + withTopologyKey(topologyKey): { podAffinityTerm+: { topologyKey: topologyKey } }, + }, + '#withWeight':: d.fn(help='"weight associated with matching the corresponding podAffinityTerm, in the range 1-100."', args=[d.arg(name='weight', type=d.T.integer)]), + withWeight(weight): { weight: weight }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/windowsSecurityContextOptions.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/windowsSecurityContextOptions.libsonnet new file mode 100644 index 0000000..431c79a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/core/v1/windowsSecurityContextOptions.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='windowsSecurityContextOptions', url='', help='"WindowsSecurityContextOptions contain Windows-specific options and credentials."'), + '#withGmsaCredentialSpec':: d.fn(help='"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field."', args=[d.arg(name='gmsaCredentialSpec', type=d.T.string)]), + withGmsaCredentialSpec(gmsaCredentialSpec): { gmsaCredentialSpec: gmsaCredentialSpec }, + '#withGmsaCredentialSpecName':: d.fn(help='"GMSACredentialSpecName is the name of the GMSA credential spec to use."', args=[d.arg(name='gmsaCredentialSpecName', type=d.T.string)]), + withGmsaCredentialSpecName(gmsaCredentialSpecName): { gmsaCredentialSpecName: gmsaCredentialSpecName }, + '#withHostProcess':: d.fn(help="\"HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.\"", args=[d.arg(name='hostProcess', type=d.T.boolean)]), + withHostProcess(hostProcess): { hostProcess: hostProcess }, + '#withRunAsUserName':: d.fn(help='"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence."', args=[d.arg(name='runAsUserName', type=d.T.string)]), + withRunAsUserName(runAsUserName): { runAsUserName: runAsUserName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/main.libsonnet new file mode 100644 index 0000000..166970c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='discovery', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpoint.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpoint.libsonnet new file mode 100644 index 0000000..7b97766 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpoint.libsonnet @@ -0,0 +1,53 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='endpoint', url='', help='"Endpoint represents a single logical \\"backend\\" implementing a service."'), + '#conditions':: d.obj(help='"EndpointConditions represents the current condition of an endpoint."'), + conditions: { + '#withReady':: d.fn(help='"ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \\"true\\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag."', args=[d.arg(name='ready', type=d.T.boolean)]), + withReady(ready): { conditions+: { ready: ready } }, + '#withServing':: d.fn(help='"serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition."', args=[d.arg(name='serving', type=d.T.boolean)]), + withServing(serving): { conditions+: { serving: serving } }, + '#withTerminating':: d.fn(help='"terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating."', args=[d.arg(name='terminating', type=d.T.boolean)]), + withTerminating(terminating): { conditions+: { terminating: terminating } }, + }, + '#hints':: d.obj(help='"EndpointHints provides hints describing how an endpoint should be consumed."'), + hints: { + '#withForZones':: d.fn(help='"forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing."', args=[d.arg(name='forZones', type=d.T.array)]), + withForZones(forZones): { hints+: { forZones: if std.isArray(v=forZones) then forZones else [forZones] } }, + '#withForZonesMixin':: d.fn(help='"forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='forZones', type=d.T.array)]), + withForZonesMixin(forZones): { hints+: { forZones+: if std.isArray(v=forZones) then forZones else [forZones] } }, + }, + '#targetRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + targetRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { targetRef+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { targetRef+: { fieldPath: fieldPath } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { targetRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { targetRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { targetRef+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { targetRef+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { targetRef+: { uid: uid } }, + }, + '#withAddresses':: d.fn(help='"addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267"', args=[d.arg(name='addresses', type=d.T.array)]), + withAddresses(addresses): { addresses: if std.isArray(v=addresses) then addresses else [addresses] }, + '#withAddressesMixin':: d.fn(help='"addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='addresses', type=d.T.array)]), + withAddressesMixin(addresses): { addresses+: if std.isArray(v=addresses) then addresses else [addresses] }, + '#withDeprecatedTopology':: d.fn(help='"deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead."', args=[d.arg(name='deprecatedTopology', type=d.T.object)]), + withDeprecatedTopology(deprecatedTopology): { deprecatedTopology: deprecatedTopology }, + '#withDeprecatedTopologyMixin':: d.fn(help='"deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='deprecatedTopology', type=d.T.object)]), + withDeprecatedTopologyMixin(deprecatedTopology): { deprecatedTopology+: deprecatedTopology }, + '#withHostname':: d.fn(help='"hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation."', args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { hostname: hostname }, + '#withNodeName':: d.fn(help='"nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { nodeName: nodeName }, + '#withZone':: d.fn(help='"zone is the name of the Zone this endpoint exists in."', args=[d.arg(name='zone', type=d.T.string)]), + withZone(zone): { zone: zone }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointConditions.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointConditions.libsonnet new file mode 100644 index 0000000..fc7c80f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointConditions.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='endpointConditions', url='', help='"EndpointConditions represents the current condition of an endpoint."'), + '#withReady':: d.fn(help='"ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \\"true\\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag."', args=[d.arg(name='ready', type=d.T.boolean)]), + withReady(ready): { ready: ready }, + '#withServing':: d.fn(help='"serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition."', args=[d.arg(name='serving', type=d.T.boolean)]), + withServing(serving): { serving: serving }, + '#withTerminating':: d.fn(help='"terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating."', args=[d.arg(name='terminating', type=d.T.boolean)]), + withTerminating(terminating): { terminating: terminating }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointHints.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointHints.libsonnet new file mode 100644 index 0000000..76c1184 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointHints.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='endpointHints', url='', help='"EndpointHints provides hints describing how an endpoint should be consumed."'), + '#withForZones':: d.fn(help='"forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing."', args=[d.arg(name='forZones', type=d.T.array)]), + withForZones(forZones): { forZones: if std.isArray(v=forZones) then forZones else [forZones] }, + '#withForZonesMixin':: d.fn(help='"forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='forZones', type=d.T.array)]), + withForZonesMixin(forZones): { forZones+: if std.isArray(v=forZones) then forZones else [forZones] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointPort.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointPort.libsonnet new file mode 100644 index 0000000..a3d80f6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointPort.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='endpointPort', url='', help='"EndpointPort represents a Port used by an EndpointSlice"'), + '#withAppProtocol':: d.fn(help="\"The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\\n\\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\\n\\n* Kubernetes-defined prefixed names:\\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\\n\\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.\"", args=[d.arg(name='appProtocol', type=d.T.string)]), + withAppProtocol(appProtocol): { appProtocol: appProtocol }, + '#withName':: d.fn(help="\"name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.\"", args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withPort':: d.fn(help='"port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { port: port }, + '#withProtocol':: d.fn(help='"protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP."', args=[d.arg(name='protocol', type=d.T.string)]), + withProtocol(protocol): { protocol: protocol }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointSlice.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointSlice.libsonnet new file mode 100644 index 0000000..2b74dbf --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/endpointSlice.libsonnet @@ -0,0 +1,64 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='endpointSlice', url='', help='"EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of EndpointSlice', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'discovery.k8s.io/v1', + kind: 'EndpointSlice', + } + self.metadata.withName(name=name), + '#withAddressType':: d.fn(help='"addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name."', args=[d.arg(name='addressType', type=d.T.string)]), + withAddressType(addressType): { addressType: addressType }, + '#withEndpoints':: d.fn(help='"endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints."', args=[d.arg(name='endpoints', type=d.T.array)]), + withEndpoints(endpoints): { endpoints: if std.isArray(v=endpoints) then endpoints else [endpoints] }, + '#withEndpointsMixin':: d.fn(help='"endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='endpoints', type=d.T.array)]), + withEndpointsMixin(endpoints): { endpoints+: if std.isArray(v=endpoints) then endpoints else [endpoints] }, + '#withPorts':: d.fn(help='"ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \\"all ports\\". Each slice may include a maximum of 100 ports."', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { ports: if std.isArray(v=ports) then ports else [ports] }, + '#withPortsMixin':: d.fn(help='"ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \\"all ports\\". Each slice may include a maximum of 100 ports."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { ports+: if std.isArray(v=ports) then ports else [ports] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/forZone.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/forZone.libsonnet new file mode 100644 index 0000000..dadb81a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/forZone.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='forZone', url='', help='"ForZone provides information about which zones should consume this endpoint."'), + '#withName':: d.fn(help='"name represents the name of the zone."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/main.libsonnet new file mode 100644 index 0000000..4c163e6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/discovery/v1/main.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + endpoint: (import 'endpoint.libsonnet'), + endpointConditions: (import 'endpointConditions.libsonnet'), + endpointHints: (import 'endpointHints.libsonnet'), + endpointPort: (import 'endpointPort.libsonnet'), + endpointSlice: (import 'endpointSlice.libsonnet'), + forZone: (import 'forZone.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/main.libsonnet new file mode 100644 index 0000000..656164c --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='events', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/event.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/event.libsonnet new file mode 100644 index 0000000..44db179 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/event.libsonnet @@ -0,0 +1,122 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='event', url='', help='"Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data."'), + '#deprecatedSource':: d.obj(help='"EventSource contains information for an event."'), + deprecatedSource: { + '#withComponent':: d.fn(help='"Component from which the event is generated."', args=[d.arg(name='component', type=d.T.string)]), + withComponent(component): { deprecatedSource+: { component: component } }, + '#withHost':: d.fn(help='"Node name on which the event is generated."', args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { deprecatedSource+: { host: host } }, + }, + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Event', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'events.k8s.io/v1', + kind: 'Event', + } + self.metadata.withName(name=name), + '#regarding':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + regarding: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { regarding+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { regarding+: { fieldPath: fieldPath } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { regarding+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { regarding+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { regarding+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { regarding+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { regarding+: { uid: uid } }, + }, + '#related':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + related: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { related+: { apiVersion: apiVersion } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { related+: { fieldPath: fieldPath } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { related+: { kind: kind } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { related+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { related+: { namespace: namespace } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { related+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { related+: { uid: uid } }, + }, + '#series':: d.obj(help='"EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \\"k8s.io/client-go/tools/events/event_broadcaster.go\\" shows how this struct is updated on heartbeats and can guide customized reporter implementations."'), + series: { + '#withCount':: d.fn(help='"count is the number of occurrences in this series up to the last heartbeat time."', args=[d.arg(name='count', type=d.T.integer)]), + withCount(count): { series+: { count: count } }, + '#withLastObservedTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='lastObservedTime', type=d.T.string)]), + withLastObservedTime(lastObservedTime): { series+: { lastObservedTime: lastObservedTime } }, + }, + '#withAction':: d.fn(help='"action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters."', args=[d.arg(name='action', type=d.T.string)]), + withAction(action): { action: action }, + '#withDeprecatedCount':: d.fn(help='"deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type."', args=[d.arg(name='deprecatedCount', type=d.T.integer)]), + withDeprecatedCount(deprecatedCount): { deprecatedCount: deprecatedCount }, + '#withDeprecatedFirstTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deprecatedFirstTimestamp', type=d.T.string)]), + withDeprecatedFirstTimestamp(deprecatedFirstTimestamp): { deprecatedFirstTimestamp: deprecatedFirstTimestamp }, + '#withDeprecatedLastTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deprecatedLastTimestamp', type=d.T.string)]), + withDeprecatedLastTimestamp(deprecatedLastTimestamp): { deprecatedLastTimestamp: deprecatedLastTimestamp }, + '#withEventTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='eventTime', type=d.T.string)]), + withEventTime(eventTime): { eventTime: eventTime }, + '#withNote':: d.fn(help='"note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB."', args=[d.arg(name='note', type=d.T.string)]), + withNote(note): { note: note }, + '#withReason':: d.fn(help='"reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withReportingController':: d.fn(help='"reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events."', args=[d.arg(name='reportingController', type=d.T.string)]), + withReportingController(reportingController): { reportingController: reportingController }, + '#withReportingInstance':: d.fn(help='"reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters."', args=[d.arg(name='reportingInstance', type=d.T.string)]), + withReportingInstance(reportingInstance): { reportingInstance: reportingInstance }, + '#withType':: d.fn(help='"type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/eventSeries.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/eventSeries.libsonnet new file mode 100644 index 0000000..6d4e04f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/eventSeries.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='eventSeries', url='', help='"EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \\"k8s.io/client-go/tools/events/event_broadcaster.go\\" shows how this struct is updated on heartbeats and can guide customized reporter implementations."'), + '#withCount':: d.fn(help='"count is the number of occurrences in this series up to the last heartbeat time."', args=[d.arg(name='count', type=d.T.integer)]), + withCount(count): { count: count }, + '#withLastObservedTime':: d.fn(help='"MicroTime is version of Time with microsecond level precision."', args=[d.arg(name='lastObservedTime', type=d.T.string)]), + withLastObservedTime(lastObservedTime): { lastObservedTime: lastObservedTime }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/main.libsonnet new file mode 100644 index 0000000..8e90a2e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/events/v1/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + event: (import 'event.libsonnet'), + eventSeries: (import 'eventSeries.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/main.libsonnet new file mode 100644 index 0000000..c3d969d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowcontrol', url='', help=''), + v1: (import 'v1/main.libsonnet'), + v1beta3: (import 'v1beta3/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/exemptPriorityLevelConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/exemptPriorityLevelConfiguration.libsonnet new file mode 100644 index 0000000..7ee3000 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/exemptPriorityLevelConfiguration.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='exemptPriorityLevelConfiguration', url='', help='"ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`."'), + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { lendablePercent: lendablePercent }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { nominalConcurrencyShares: nominalConcurrencyShares }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowDistinguisherMethod.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowDistinguisherMethod.libsonnet new file mode 100644 index 0000000..e71b128 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowDistinguisherMethod.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowDistinguisherMethod', url='', help='"FlowDistinguisherMethod specifies the method of a flow distinguisher."'), + '#withType':: d.fn(help='"`type` is the type of flow distinguisher method The supported types are \\"ByUser\\" and \\"ByNamespace\\". Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchema.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchema.libsonnet new file mode 100644 index 0000000..d27ead1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchema.libsonnet @@ -0,0 +1,73 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowSchema', url='', help='"FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \\"flow distinguisher\\"."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of FlowSchema', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1', + kind: 'FlowSchema', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help="\"FlowSchemaSpec describes how the FlowSchema's specification looks like.\""), + spec: { + '#distinguisherMethod':: d.obj(help='"FlowDistinguisherMethod specifies the method of a flow distinguisher."'), + distinguisherMethod: { + '#withType':: d.fn(help='"`type` is the type of flow distinguisher method The supported types are \\"ByUser\\" and \\"ByNamespace\\". Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { distinguisherMethod+: { type: type } } }, + }, + '#priorityLevelConfiguration':: d.obj(help='"PriorityLevelConfigurationReference contains information that points to the \\"request-priority\\" being used."'), + priorityLevelConfiguration: { + '#withName':: d.fn(help='"`name` is the name of the priority level configuration being referenced Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { priorityLevelConfiguration+: { name: name } } }, + }, + '#withMatchingPrecedence':: d.fn(help='"`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default."', args=[d.arg(name='matchingPrecedence', type=d.T.integer)]), + withMatchingPrecedence(matchingPrecedence): { spec+: { matchingPrecedence: matchingPrecedence } }, + '#withRules':: d.fn(help='"`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { spec+: { rules: if std.isArray(v=rules) then rules else [rules] } }, + '#withRulesMixin':: d.fn(help='"`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { spec+: { rules+: if std.isArray(v=rules) then rules else [rules] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaCondition.libsonnet new file mode 100644 index 0000000..f0baf7e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowSchemaCondition', url='', help='"FlowSchemaCondition describes conditions for a FlowSchema."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"`message` is a human-readable message indicating details about last transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"`reason` is a unique, one-word, CamelCase reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"`type` is the type of the condition. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaSpec.libsonnet new file mode 100644 index 0000000..df30310 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaSpec.libsonnet @@ -0,0 +1,22 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowSchemaSpec', url='', help="\"FlowSchemaSpec describes how the FlowSchema's specification looks like.\""), + '#distinguisherMethod':: d.obj(help='"FlowDistinguisherMethod specifies the method of a flow distinguisher."'), + distinguisherMethod: { + '#withType':: d.fn(help='"`type` is the type of flow distinguisher method The supported types are \\"ByUser\\" and \\"ByNamespace\\". Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { distinguisherMethod+: { type: type } }, + }, + '#priorityLevelConfiguration':: d.obj(help='"PriorityLevelConfigurationReference contains information that points to the \\"request-priority\\" being used."'), + priorityLevelConfiguration: { + '#withName':: d.fn(help='"`name` is the name of the priority level configuration being referenced Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { priorityLevelConfiguration+: { name: name } }, + }, + '#withMatchingPrecedence':: d.fn(help='"`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default."', args=[d.arg(name='matchingPrecedence', type=d.T.integer)]), + withMatchingPrecedence(matchingPrecedence): { matchingPrecedence: matchingPrecedence }, + '#withRules':: d.fn(help='"`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { rules: if std.isArray(v=rules) then rules else [rules] }, + '#withRulesMixin':: d.fn(help='"`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { rules+: if std.isArray(v=rules) then rules else [rules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaStatus.libsonnet new file mode 100644 index 0000000..3f960b3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/flowSchemaStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowSchemaStatus', url='', help='"FlowSchemaStatus represents the current state of a FlowSchema."'), + '#withConditions':: d.fn(help='"`conditions` is a list of the current states of FlowSchema."', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"`conditions` is a list of the current states of FlowSchema."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/groupSubject.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/groupSubject.libsonnet new file mode 100644 index 0000000..35b4d42 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/groupSubject.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='groupSubject', url='', help='"GroupSubject holds detailed information for group-kind subject."'), + '#withName':: d.fn(help='"name is the user group that matches, or \\"*\\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/limitResponse.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/limitResponse.libsonnet new file mode 100644 index 0000000..b261eef --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/limitResponse.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='limitResponse', url='', help='"LimitResponse defines how to handle requests that can not be executed right now."'), + '#queuing':: d.obj(help='"QueuingConfiguration holds the configuration parameters for queuing"'), + queuing: { + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { queuing+: { handSize: handSize } }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { queuing+: { queueLengthLimit: queueLengthLimit } }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { queuing+: { queues: queues } }, + }, + '#withType':: d.fn(help='"`type` is \\"Queue\\" or \\"Reject\\". \\"Queue\\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \\"Reject\\" means that requests that can not be executed upon arrival are rejected. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/limitedPriorityLevelConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/limitedPriorityLevelConfiguration.libsonnet new file mode 100644 index 0000000..2077609 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/limitedPriorityLevelConfiguration.libsonnet @@ -0,0 +1,26 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='limitedPriorityLevelConfiguration', url='', help='"LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\\n - How are requests for this priority level limited?\\n - What should be done with requests that exceed the limit?"'), + '#limitResponse':: d.obj(help='"LimitResponse defines how to handle requests that can not be executed right now."'), + limitResponse: { + '#queuing':: d.obj(help='"QueuingConfiguration holds the configuration parameters for queuing"'), + queuing: { + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { limitResponse+: { queuing+: { handSize: handSize } } }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { limitResponse+: { queuing+: { queueLengthLimit: queueLengthLimit } } }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { limitResponse+: { queuing+: { queues: queues } } }, + }, + '#withType':: d.fn(help='"`type` is \\"Queue\\" or \\"Reject\\". \\"Queue\\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \\"Reject\\" means that requests that can not be executed upon arrival are rejected. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { limitResponse+: { type: type } }, + }, + '#withBorrowingLimitPercent':: d.fn(help="\"`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\\n\\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\\n\\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.\"", args=[d.arg(name='borrowingLimitPercent', type=d.T.integer)]), + withBorrowingLimitPercent(borrowingLimitPercent): { borrowingLimitPercent: borrowingLimitPercent }, + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { lendablePercent: lendablePercent }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\\n\\nIf not specified, this field defaults to a value of 30.\\n\\nSetting this field to zero supports the construction of a \\\"jail\\\" for this priority level that is used to hold some request(s)\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { nominalConcurrencyShares: nominalConcurrencyShares }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/main.libsonnet new file mode 100644 index 0000000..1a114f0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/main.libsonnet @@ -0,0 +1,25 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + exemptPriorityLevelConfiguration: (import 'exemptPriorityLevelConfiguration.libsonnet'), + flowDistinguisherMethod: (import 'flowDistinguisherMethod.libsonnet'), + flowSchema: (import 'flowSchema.libsonnet'), + flowSchemaCondition: (import 'flowSchemaCondition.libsonnet'), + flowSchemaSpec: (import 'flowSchemaSpec.libsonnet'), + flowSchemaStatus: (import 'flowSchemaStatus.libsonnet'), + groupSubject: (import 'groupSubject.libsonnet'), + limitResponse: (import 'limitResponse.libsonnet'), + limitedPriorityLevelConfiguration: (import 'limitedPriorityLevelConfiguration.libsonnet'), + nonResourcePolicyRule: (import 'nonResourcePolicyRule.libsonnet'), + policyRulesWithSubjects: (import 'policyRulesWithSubjects.libsonnet'), + priorityLevelConfiguration: (import 'priorityLevelConfiguration.libsonnet'), + priorityLevelConfigurationCondition: (import 'priorityLevelConfigurationCondition.libsonnet'), + priorityLevelConfigurationReference: (import 'priorityLevelConfigurationReference.libsonnet'), + priorityLevelConfigurationSpec: (import 'priorityLevelConfigurationSpec.libsonnet'), + priorityLevelConfigurationStatus: (import 'priorityLevelConfigurationStatus.libsonnet'), + queuingConfiguration: (import 'queuingConfiguration.libsonnet'), + resourcePolicyRule: (import 'resourcePolicyRule.libsonnet'), + serviceAccountSubject: (import 'serviceAccountSubject.libsonnet'), + subject: (import 'subject.libsonnet'), + userSubject: (import 'userSubject.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/nonResourcePolicyRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/nonResourcePolicyRule.libsonnet new file mode 100644 index 0000000..6208255 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/nonResourcePolicyRule.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nonResourcePolicyRule', url='', help='"NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request."'), + '#withNonResourceURLs':: d.fn(help='"`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\\n - \\"/healthz\\" is legal\\n - \\"/hea*\\" is illegal\\n - \\"/hea\\" is legal but matches nothing\\n - \\"/hea/*\\" also matches nothing\\n - \\"/healthz/*\\" matches all per-component health checks.\\n\\"*\\" matches all non-resource urls. if it is present, it must be the only entry. Required."', args=[d.arg(name='nonResourceURLs', type=d.T.array)]), + withNonResourceURLs(nonResourceURLs): { nonResourceURLs: if std.isArray(v=nonResourceURLs) then nonResourceURLs else [nonResourceURLs] }, + '#withNonResourceURLsMixin':: d.fn(help='"`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\\n - \\"/healthz\\" is legal\\n - \\"/hea*\\" is illegal\\n - \\"/hea\\" is legal but matches nothing\\n - \\"/hea/*\\" also matches nothing\\n - \\"/healthz/*\\" matches all per-component health checks.\\n\\"*\\" matches all non-resource urls. if it is present, it must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nonResourceURLs', type=d.T.array)]), + withNonResourceURLsMixin(nonResourceURLs): { nonResourceURLs+: if std.isArray(v=nonResourceURLs) then nonResourceURLs else [nonResourceURLs] }, + '#withVerbs':: d.fn(help='"`verbs` is a list of matching verbs and may not be empty. \\"*\\" matches all verbs. If it is present, it must be the only entry. Required."', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbs(verbs): { verbs: if std.isArray(v=verbs) then verbs else [verbs] }, + '#withVerbsMixin':: d.fn(help='"`verbs` is a list of matching verbs and may not be empty. \\"*\\" matches all verbs. If it is present, it must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbsMixin(verbs): { verbs+: if std.isArray(v=verbs) then verbs else [verbs] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/policyRulesWithSubjects.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/policyRulesWithSubjects.libsonnet new file mode 100644 index 0000000..b743ffb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/policyRulesWithSubjects.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='policyRulesWithSubjects', url='', help='"PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request."'), + '#withNonResourceRules':: d.fn(help='"`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL."', args=[d.arg(name='nonResourceRules', type=d.T.array)]), + withNonResourceRules(nonResourceRules): { nonResourceRules: if std.isArray(v=nonResourceRules) then nonResourceRules else [nonResourceRules] }, + '#withNonResourceRulesMixin':: d.fn(help='"`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nonResourceRules', type=d.T.array)]), + withNonResourceRulesMixin(nonResourceRules): { nonResourceRules+: if std.isArray(v=nonResourceRules) then nonResourceRules else [nonResourceRules] }, + '#withResourceRules':: d.fn(help='"`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#withResourceRulesMixin':: d.fn(help='"`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#withSubjects':: d.fn(help='"subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required."', args=[d.arg(name='subjects', type=d.T.array)]), + withSubjects(subjects): { subjects: if std.isArray(v=subjects) then subjects else [subjects] }, + '#withSubjectsMixin':: d.fn(help='"subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='subjects', type=d.T.array)]), + withSubjectsMixin(subjects): { subjects+: if std.isArray(v=subjects) then subjects else [subjects] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfiguration.libsonnet new file mode 100644 index 0000000..5d93abb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfiguration.libsonnet @@ -0,0 +1,89 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfiguration', url='', help='"PriorityLevelConfiguration represents the configuration of a priority level."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of PriorityLevelConfiguration', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1', + kind: 'PriorityLevelConfiguration', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"PriorityLevelConfigurationSpec specifies the configuration of a priority level."'), + spec: { + '#exempt':: d.obj(help='"ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`."'), + exempt: { + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { spec+: { exempt+: { lendablePercent: lendablePercent } } }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { spec+: { exempt+: { nominalConcurrencyShares: nominalConcurrencyShares } } }, + }, + '#limited':: d.obj(help='"LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\\n - How are requests for this priority level limited?\\n - What should be done with requests that exceed the limit?"'), + limited: { + '#limitResponse':: d.obj(help='"LimitResponse defines how to handle requests that can not be executed right now."'), + limitResponse: { + '#queuing':: d.obj(help='"QueuingConfiguration holds the configuration parameters for queuing"'), + queuing: { + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { spec+: { limited+: { limitResponse+: { queuing+: { handSize: handSize } } } } }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { spec+: { limited+: { limitResponse+: { queuing+: { queueLengthLimit: queueLengthLimit } } } } }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { spec+: { limited+: { limitResponse+: { queuing+: { queues: queues } } } } }, + }, + '#withType':: d.fn(help='"`type` is \\"Queue\\" or \\"Reject\\". \\"Queue\\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \\"Reject\\" means that requests that can not be executed upon arrival are rejected. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { limited+: { limitResponse+: { type: type } } } }, + }, + '#withBorrowingLimitPercent':: d.fn(help="\"`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\\n\\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\\n\\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.\"", args=[d.arg(name='borrowingLimitPercent', type=d.T.integer)]), + withBorrowingLimitPercent(borrowingLimitPercent): { spec+: { limited+: { borrowingLimitPercent: borrowingLimitPercent } } }, + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { spec+: { limited+: { lendablePercent: lendablePercent } } }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\\n\\nIf not specified, this field defaults to a value of 30.\\n\\nSetting this field to zero supports the construction of a \\\"jail\\\" for this priority level that is used to hold some request(s)\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { spec+: { limited+: { nominalConcurrencyShares: nominalConcurrencyShares } } }, + }, + '#withType':: d.fn(help="\"`type` indicates whether this priority level is subject to limitation on request execution. A value of `\\\"Exempt\\\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\\\"Limited\\\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { type: type } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationCondition.libsonnet new file mode 100644 index 0000000..e7ff252 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfigurationCondition', url='', help='"PriorityLevelConfigurationCondition defines the condition of priority level."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"`message` is a human-readable message indicating details about last transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"`reason` is a unique, one-word, CamelCase reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"`type` is the type of the condition. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationReference.libsonnet new file mode 100644 index 0000000..8532fa3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationReference.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfigurationReference', url='', help='"PriorityLevelConfigurationReference contains information that points to the \\"request-priority\\" being used."'), + '#withName':: d.fn(help='"`name` is the name of the priority level configuration being referenced Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationSpec.libsonnet new file mode 100644 index 0000000..cab1ca9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationSpec.libsonnet @@ -0,0 +1,38 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfigurationSpec', url='', help='"PriorityLevelConfigurationSpec specifies the configuration of a priority level."'), + '#exempt':: d.obj(help='"ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`."'), + exempt: { + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { exempt+: { lendablePercent: lendablePercent } }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { exempt+: { nominalConcurrencyShares: nominalConcurrencyShares } }, + }, + '#limited':: d.obj(help='"LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\\n - How are requests for this priority level limited?\\n - What should be done with requests that exceed the limit?"'), + limited: { + '#limitResponse':: d.obj(help='"LimitResponse defines how to handle requests that can not be executed right now."'), + limitResponse: { + '#queuing':: d.obj(help='"QueuingConfiguration holds the configuration parameters for queuing"'), + queuing: { + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { limited+: { limitResponse+: { queuing+: { handSize: handSize } } } }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { limited+: { limitResponse+: { queuing+: { queueLengthLimit: queueLengthLimit } } } }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { limited+: { limitResponse+: { queuing+: { queues: queues } } } }, + }, + '#withType':: d.fn(help='"`type` is \\"Queue\\" or \\"Reject\\". \\"Queue\\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \\"Reject\\" means that requests that can not be executed upon arrival are rejected. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { limited+: { limitResponse+: { type: type } } }, + }, + '#withBorrowingLimitPercent':: d.fn(help="\"`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\\n\\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\\n\\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.\"", args=[d.arg(name='borrowingLimitPercent', type=d.T.integer)]), + withBorrowingLimitPercent(borrowingLimitPercent): { limited+: { borrowingLimitPercent: borrowingLimitPercent } }, + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { limited+: { lendablePercent: lendablePercent } }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\\n\\nIf not specified, this field defaults to a value of 30.\\n\\nSetting this field to zero supports the construction of a \\\"jail\\\" for this priority level that is used to hold some request(s)\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { limited+: { nominalConcurrencyShares: nominalConcurrencyShares } }, + }, + '#withType':: d.fn(help="\"`type` indicates whether this priority level is subject to limitation on request execution. A value of `\\\"Exempt\\\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\\\"Limited\\\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationStatus.libsonnet new file mode 100644 index 0000000..9432a99 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/priorityLevelConfigurationStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfigurationStatus', url='', help='"PriorityLevelConfigurationStatus represents the current state of a \\"request-priority\\"."'), + '#withConditions':: d.fn(help='"`conditions` is the current state of \\"request-priority\\"."', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"`conditions` is the current state of \\"request-priority\\"."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/queuingConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/queuingConfiguration.libsonnet new file mode 100644 index 0000000..e74a2f3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/queuingConfiguration.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='queuingConfiguration', url='', help='"QueuingConfiguration holds the configuration parameters for queuing"'), + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { handSize: handSize }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { queueLengthLimit: queueLengthLimit }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { queues: queues }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/resourcePolicyRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/resourcePolicyRule.libsonnet new file mode 100644 index 0000000..4b74e67 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/resourcePolicyRule.libsonnet @@ -0,0 +1,24 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourcePolicyRule', url='', help="\"ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\\\"\\\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.\""), + '#withApiGroups':: d.fn(help='"`apiGroups` is a list of matching API groups and may not be empty. \\"*\\" matches all API groups and, if present, must be the only entry. Required."', args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroups(apiGroups): { apiGroups: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiGroupsMixin':: d.fn(help='"`apiGroups` is a list of matching API groups and may not be empty. \\"*\\" matches all API groups and, if present, must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroupsMixin(apiGroups): { apiGroups+: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withClusterScope':: d.fn(help='"`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list."', args=[d.arg(name='clusterScope', type=d.T.boolean)]), + withClusterScope(clusterScope): { clusterScope: clusterScope }, + '#withNamespaces':: d.fn(help='"`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \\"*\\". Note that \\"*\\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true."', args=[d.arg(name='namespaces', type=d.T.array)]), + withNamespaces(namespaces): { namespaces: if std.isArray(v=namespaces) then namespaces else [namespaces] }, + '#withNamespacesMixin':: d.fn(help='"`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \\"*\\". Note that \\"*\\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='namespaces', type=d.T.array)]), + withNamespacesMixin(namespaces): { namespaces+: if std.isArray(v=namespaces) then namespaces else [namespaces] }, + '#withResources':: d.fn(help='"`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \\"services\\", \\"nodes/status\\" ]. This list may not be empty. \\"*\\" matches all resources and, if present, must be the only entry. Required."', args=[d.arg(name='resources', type=d.T.array)]), + withResources(resources): { resources: if std.isArray(v=resources) then resources else [resources] }, + '#withResourcesMixin':: d.fn(help='"`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \\"services\\", \\"nodes/status\\" ]. This list may not be empty. \\"*\\" matches all resources and, if present, must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resources', type=d.T.array)]), + withResourcesMixin(resources): { resources+: if std.isArray(v=resources) then resources else [resources] }, + '#withVerbs':: d.fn(help='"`verbs` is a list of matching verbs and may not be empty. \\"*\\" matches all verbs and, if present, must be the only entry. Required."', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbs(verbs): { verbs: if std.isArray(v=verbs) then verbs else [verbs] }, + '#withVerbsMixin':: d.fn(help='"`verbs` is a list of matching verbs and may not be empty. \\"*\\" matches all verbs and, if present, must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbsMixin(verbs): { verbs+: if std.isArray(v=verbs) then verbs else [verbs] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/serviceAccountSubject.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/serviceAccountSubject.libsonnet new file mode 100644 index 0000000..1887fc0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/serviceAccountSubject.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceAccountSubject', url='', help='"ServiceAccountSubject holds detailed information for service-account-kind subject."'), + '#withName':: d.fn(help='"`name` is the name of matching ServiceAccount objects, or \\"*\\" to match regardless of name. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"`namespace` is the namespace of matching ServiceAccount objects. Required."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/subject.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/subject.libsonnet new file mode 100644 index 0000000..16f120b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/subject.libsonnet @@ -0,0 +1,25 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='subject', url='', help='"Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account."'), + '#group':: d.obj(help='"GroupSubject holds detailed information for group-kind subject."'), + group: { + '#withName':: d.fn(help='"name is the user group that matches, or \\"*\\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { group+: { name: name } }, + }, + '#serviceAccount':: d.obj(help='"ServiceAccountSubject holds detailed information for service-account-kind subject."'), + serviceAccount: { + '#withName':: d.fn(help='"`name` is the name of matching ServiceAccount objects, or \\"*\\" to match regardless of name. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { serviceAccount+: { name: name } }, + '#withNamespace':: d.fn(help='"`namespace` is the namespace of matching ServiceAccount objects. Required."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { serviceAccount+: { namespace: namespace } }, + }, + '#user':: d.obj(help='"UserSubject holds detailed information for user-kind subject."'), + user: { + '#withName':: d.fn(help='"`name` is the username that matches, or \\"*\\" to match all usernames. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { user+: { name: name } }, + }, + '#withKind':: d.fn(help='"`kind` indicates which one of the other fields is non-empty. Required"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/userSubject.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/userSubject.libsonnet new file mode 100644 index 0000000..00a560d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1/userSubject.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='userSubject', url='', help='"UserSubject holds detailed information for user-kind subject."'), + '#withName':: d.fn(help='"`name` is the username that matches, or \\"*\\" to match all usernames. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/exemptPriorityLevelConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/exemptPriorityLevelConfiguration.libsonnet new file mode 100644 index 0000000..7ee3000 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/exemptPriorityLevelConfiguration.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='exemptPriorityLevelConfiguration', url='', help='"ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`."'), + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { lendablePercent: lendablePercent }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { nominalConcurrencyShares: nominalConcurrencyShares }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowDistinguisherMethod.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowDistinguisherMethod.libsonnet new file mode 100644 index 0000000..e71b128 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowDistinguisherMethod.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowDistinguisherMethod', url='', help='"FlowDistinguisherMethod specifies the method of a flow distinguisher."'), + '#withType':: d.fn(help='"`type` is the type of flow distinguisher method The supported types are \\"ByUser\\" and \\"ByNamespace\\". Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchema.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchema.libsonnet new file mode 100644 index 0000000..70fdc48 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchema.libsonnet @@ -0,0 +1,73 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowSchema', url='', help='"FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \\"flow distinguisher\\"."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of FlowSchema', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta3', + kind: 'FlowSchema', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help="\"FlowSchemaSpec describes how the FlowSchema's specification looks like.\""), + spec: { + '#distinguisherMethod':: d.obj(help='"FlowDistinguisherMethod specifies the method of a flow distinguisher."'), + distinguisherMethod: { + '#withType':: d.fn(help='"`type` is the type of flow distinguisher method The supported types are \\"ByUser\\" and \\"ByNamespace\\". Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { distinguisherMethod+: { type: type } } }, + }, + '#priorityLevelConfiguration':: d.obj(help='"PriorityLevelConfigurationReference contains information that points to the \\"request-priority\\" being used."'), + priorityLevelConfiguration: { + '#withName':: d.fn(help='"`name` is the name of the priority level configuration being referenced Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { priorityLevelConfiguration+: { name: name } } }, + }, + '#withMatchingPrecedence':: d.fn(help='"`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default."', args=[d.arg(name='matchingPrecedence', type=d.T.integer)]), + withMatchingPrecedence(matchingPrecedence): { spec+: { matchingPrecedence: matchingPrecedence } }, + '#withRules':: d.fn(help='"`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { spec+: { rules: if std.isArray(v=rules) then rules else [rules] } }, + '#withRulesMixin':: d.fn(help='"`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { spec+: { rules+: if std.isArray(v=rules) then rules else [rules] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaCondition.libsonnet new file mode 100644 index 0000000..f0baf7e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowSchemaCondition', url='', help='"FlowSchemaCondition describes conditions for a FlowSchema."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"`message` is a human-readable message indicating details about last transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"`reason` is a unique, one-word, CamelCase reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"`type` is the type of the condition. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaSpec.libsonnet new file mode 100644 index 0000000..df30310 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaSpec.libsonnet @@ -0,0 +1,22 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowSchemaSpec', url='', help="\"FlowSchemaSpec describes how the FlowSchema's specification looks like.\""), + '#distinguisherMethod':: d.obj(help='"FlowDistinguisherMethod specifies the method of a flow distinguisher."'), + distinguisherMethod: { + '#withType':: d.fn(help='"`type` is the type of flow distinguisher method The supported types are \\"ByUser\\" and \\"ByNamespace\\". Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { distinguisherMethod+: { type: type } }, + }, + '#priorityLevelConfiguration':: d.obj(help='"PriorityLevelConfigurationReference contains information that points to the \\"request-priority\\" being used."'), + priorityLevelConfiguration: { + '#withName':: d.fn(help='"`name` is the name of the priority level configuration being referenced Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { priorityLevelConfiguration+: { name: name } }, + }, + '#withMatchingPrecedence':: d.fn(help='"`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default."', args=[d.arg(name='matchingPrecedence', type=d.T.integer)]), + withMatchingPrecedence(matchingPrecedence): { matchingPrecedence: matchingPrecedence }, + '#withRules':: d.fn(help='"`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { rules: if std.isArray(v=rules) then rules else [rules] }, + '#withRulesMixin':: d.fn(help='"`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { rules+: if std.isArray(v=rules) then rules else [rules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaStatus.libsonnet new file mode 100644 index 0000000..3f960b3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/flowSchemaStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='flowSchemaStatus', url='', help='"FlowSchemaStatus represents the current state of a FlowSchema."'), + '#withConditions':: d.fn(help='"`conditions` is a list of the current states of FlowSchema."', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"`conditions` is a list of the current states of FlowSchema."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/groupSubject.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/groupSubject.libsonnet new file mode 100644 index 0000000..35b4d42 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/groupSubject.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='groupSubject', url='', help='"GroupSubject holds detailed information for group-kind subject."'), + '#withName':: d.fn(help='"name is the user group that matches, or \\"*\\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/limitResponse.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/limitResponse.libsonnet new file mode 100644 index 0000000..b261eef --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/limitResponse.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='limitResponse', url='', help='"LimitResponse defines how to handle requests that can not be executed right now."'), + '#queuing':: d.obj(help='"QueuingConfiguration holds the configuration parameters for queuing"'), + queuing: { + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { queuing+: { handSize: handSize } }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { queuing+: { queueLengthLimit: queueLengthLimit } }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { queuing+: { queues: queues } }, + }, + '#withType':: d.fn(help='"`type` is \\"Queue\\" or \\"Reject\\". \\"Queue\\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \\"Reject\\" means that requests that can not be executed upon arrival are rejected. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/limitedPriorityLevelConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/limitedPriorityLevelConfiguration.libsonnet new file mode 100644 index 0000000..de52c78 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/limitedPriorityLevelConfiguration.libsonnet @@ -0,0 +1,26 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='limitedPriorityLevelConfiguration', url='', help='"LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\\n - How are requests for this priority level limited?\\n - What should be done with requests that exceed the limit?"'), + '#limitResponse':: d.obj(help='"LimitResponse defines how to handle requests that can not be executed right now."'), + limitResponse: { + '#queuing':: d.obj(help='"QueuingConfiguration holds the configuration parameters for queuing"'), + queuing: { + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { limitResponse+: { queuing+: { handSize: handSize } } }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { limitResponse+: { queuing+: { queueLengthLimit: queueLengthLimit } } }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { limitResponse+: { queuing+: { queues: queues } } }, + }, + '#withType':: d.fn(help='"`type` is \\"Queue\\" or \\"Reject\\". \\"Queue\\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \\"Reject\\" means that requests that can not be executed upon arrival are rejected. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { limitResponse+: { type: type } }, + }, + '#withBorrowingLimitPercent':: d.fn(help="\"`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\\n\\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\\n\\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.\"", args=[d.arg(name='borrowingLimitPercent', type=d.T.integer)]), + withBorrowingLimitPercent(borrowingLimitPercent): { borrowingLimitPercent: borrowingLimitPercent }, + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { lendablePercent: lendablePercent }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { nominalConcurrencyShares: nominalConcurrencyShares }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/main.libsonnet new file mode 100644 index 0000000..7085f0a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/main.libsonnet @@ -0,0 +1,25 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1beta3', url='', help=''), + exemptPriorityLevelConfiguration: (import 'exemptPriorityLevelConfiguration.libsonnet'), + flowDistinguisherMethod: (import 'flowDistinguisherMethod.libsonnet'), + flowSchema: (import 'flowSchema.libsonnet'), + flowSchemaCondition: (import 'flowSchemaCondition.libsonnet'), + flowSchemaSpec: (import 'flowSchemaSpec.libsonnet'), + flowSchemaStatus: (import 'flowSchemaStatus.libsonnet'), + groupSubject: (import 'groupSubject.libsonnet'), + limitResponse: (import 'limitResponse.libsonnet'), + limitedPriorityLevelConfiguration: (import 'limitedPriorityLevelConfiguration.libsonnet'), + nonResourcePolicyRule: (import 'nonResourcePolicyRule.libsonnet'), + policyRulesWithSubjects: (import 'policyRulesWithSubjects.libsonnet'), + priorityLevelConfiguration: (import 'priorityLevelConfiguration.libsonnet'), + priorityLevelConfigurationCondition: (import 'priorityLevelConfigurationCondition.libsonnet'), + priorityLevelConfigurationReference: (import 'priorityLevelConfigurationReference.libsonnet'), + priorityLevelConfigurationSpec: (import 'priorityLevelConfigurationSpec.libsonnet'), + priorityLevelConfigurationStatus: (import 'priorityLevelConfigurationStatus.libsonnet'), + queuingConfiguration: (import 'queuingConfiguration.libsonnet'), + resourcePolicyRule: (import 'resourcePolicyRule.libsonnet'), + serviceAccountSubject: (import 'serviceAccountSubject.libsonnet'), + subject: (import 'subject.libsonnet'), + userSubject: (import 'userSubject.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/nonResourcePolicyRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/nonResourcePolicyRule.libsonnet new file mode 100644 index 0000000..6208255 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/nonResourcePolicyRule.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='nonResourcePolicyRule', url='', help='"NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request."'), + '#withNonResourceURLs':: d.fn(help='"`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\\n - \\"/healthz\\" is legal\\n - \\"/hea*\\" is illegal\\n - \\"/hea\\" is legal but matches nothing\\n - \\"/hea/*\\" also matches nothing\\n - \\"/healthz/*\\" matches all per-component health checks.\\n\\"*\\" matches all non-resource urls. if it is present, it must be the only entry. Required."', args=[d.arg(name='nonResourceURLs', type=d.T.array)]), + withNonResourceURLs(nonResourceURLs): { nonResourceURLs: if std.isArray(v=nonResourceURLs) then nonResourceURLs else [nonResourceURLs] }, + '#withNonResourceURLsMixin':: d.fn(help='"`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\\n - \\"/healthz\\" is legal\\n - \\"/hea*\\" is illegal\\n - \\"/hea\\" is legal but matches nothing\\n - \\"/hea/*\\" also matches nothing\\n - \\"/healthz/*\\" matches all per-component health checks.\\n\\"*\\" matches all non-resource urls. if it is present, it must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nonResourceURLs', type=d.T.array)]), + withNonResourceURLsMixin(nonResourceURLs): { nonResourceURLs+: if std.isArray(v=nonResourceURLs) then nonResourceURLs else [nonResourceURLs] }, + '#withVerbs':: d.fn(help='"`verbs` is a list of matching verbs and may not be empty. \\"*\\" matches all verbs. If it is present, it must be the only entry. Required."', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbs(verbs): { verbs: if std.isArray(v=verbs) then verbs else [verbs] }, + '#withVerbsMixin':: d.fn(help='"`verbs` is a list of matching verbs and may not be empty. \\"*\\" matches all verbs. If it is present, it must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbsMixin(verbs): { verbs+: if std.isArray(v=verbs) then verbs else [verbs] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/policyRulesWithSubjects.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/policyRulesWithSubjects.libsonnet new file mode 100644 index 0000000..b743ffb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/policyRulesWithSubjects.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='policyRulesWithSubjects', url='', help='"PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request."'), + '#withNonResourceRules':: d.fn(help='"`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL."', args=[d.arg(name='nonResourceRules', type=d.T.array)]), + withNonResourceRules(nonResourceRules): { nonResourceRules: if std.isArray(v=nonResourceRules) then nonResourceRules else [nonResourceRules] }, + '#withNonResourceRulesMixin':: d.fn(help='"`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nonResourceRules', type=d.T.array)]), + withNonResourceRulesMixin(nonResourceRules): { nonResourceRules+: if std.isArray(v=nonResourceRules) then nonResourceRules else [nonResourceRules] }, + '#withResourceRules':: d.fn(help='"`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty."', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRules(resourceRules): { resourceRules: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#withResourceRulesMixin':: d.fn(help='"`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceRules', type=d.T.array)]), + withResourceRulesMixin(resourceRules): { resourceRules+: if std.isArray(v=resourceRules) then resourceRules else [resourceRules] }, + '#withSubjects':: d.fn(help='"subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required."', args=[d.arg(name='subjects', type=d.T.array)]), + withSubjects(subjects): { subjects: if std.isArray(v=subjects) then subjects else [subjects] }, + '#withSubjectsMixin':: d.fn(help='"subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='subjects', type=d.T.array)]), + withSubjectsMixin(subjects): { subjects+: if std.isArray(v=subjects) then subjects else [subjects] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfiguration.libsonnet new file mode 100644 index 0000000..b13be03 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfiguration.libsonnet @@ -0,0 +1,89 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfiguration', url='', help='"PriorityLevelConfiguration represents the configuration of a priority level."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of PriorityLevelConfiguration', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'flowcontrol.apiserver.k8s.io/v1beta3', + kind: 'PriorityLevelConfiguration', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"PriorityLevelConfigurationSpec specifies the configuration of a priority level."'), + spec: { + '#exempt':: d.obj(help='"ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`."'), + exempt: { + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { spec+: { exempt+: { lendablePercent: lendablePercent } } }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { spec+: { exempt+: { nominalConcurrencyShares: nominalConcurrencyShares } } }, + }, + '#limited':: d.obj(help='"LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\\n - How are requests for this priority level limited?\\n - What should be done with requests that exceed the limit?"'), + limited: { + '#limitResponse':: d.obj(help='"LimitResponse defines how to handle requests that can not be executed right now."'), + limitResponse: { + '#queuing':: d.obj(help='"QueuingConfiguration holds the configuration parameters for queuing"'), + queuing: { + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { spec+: { limited+: { limitResponse+: { queuing+: { handSize: handSize } } } } }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { spec+: { limited+: { limitResponse+: { queuing+: { queueLengthLimit: queueLengthLimit } } } } }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { spec+: { limited+: { limitResponse+: { queuing+: { queues: queues } } } } }, + }, + '#withType':: d.fn(help='"`type` is \\"Queue\\" or \\"Reject\\". \\"Queue\\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \\"Reject\\" means that requests that can not be executed upon arrival are rejected. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { limited+: { limitResponse+: { type: type } } } }, + }, + '#withBorrowingLimitPercent':: d.fn(help="\"`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\\n\\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\\n\\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.\"", args=[d.arg(name='borrowingLimitPercent', type=d.T.integer)]), + withBorrowingLimitPercent(borrowingLimitPercent): { spec+: { limited+: { borrowingLimitPercent: borrowingLimitPercent } } }, + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { spec+: { limited+: { lendablePercent: lendablePercent } } }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { spec+: { limited+: { nominalConcurrencyShares: nominalConcurrencyShares } } }, + }, + '#withType':: d.fn(help="\"`type` indicates whether this priority level is subject to limitation on request execution. A value of `\\\"Exempt\\\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\\\"Limited\\\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { type: type } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationCondition.libsonnet new file mode 100644 index 0000000..e7ff252 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfigurationCondition', url='', help='"PriorityLevelConfigurationCondition defines the condition of priority level."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"`message` is a human-readable message indicating details about last transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"`reason` is a unique, one-word, CamelCase reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"`type` is the type of the condition. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationReference.libsonnet new file mode 100644 index 0000000..8532fa3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationReference.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfigurationReference', url='', help='"PriorityLevelConfigurationReference contains information that points to the \\"request-priority\\" being used."'), + '#withName':: d.fn(help='"`name` is the name of the priority level configuration being referenced Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationSpec.libsonnet new file mode 100644 index 0000000..e035cdb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationSpec.libsonnet @@ -0,0 +1,38 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfigurationSpec', url='', help='"PriorityLevelConfigurationSpec specifies the configuration of a priority level."'), + '#exempt':: d.obj(help='"ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`."'), + exempt: { + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { exempt+: { lendablePercent: lendablePercent } }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { exempt+: { nominalConcurrencyShares: nominalConcurrencyShares } }, + }, + '#limited':: d.obj(help='"LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\\n - How are requests for this priority level limited?\\n - What should be done with requests that exceed the limit?"'), + limited: { + '#limitResponse':: d.obj(help='"LimitResponse defines how to handle requests that can not be executed right now."'), + limitResponse: { + '#queuing':: d.obj(help='"QueuingConfiguration holds the configuration parameters for queuing"'), + queuing: { + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { limited+: { limitResponse+: { queuing+: { handSize: handSize } } } }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { limited+: { limitResponse+: { queuing+: { queueLengthLimit: queueLengthLimit } } } }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { limited+: { limitResponse+: { queuing+: { queues: queues } } } }, + }, + '#withType':: d.fn(help='"`type` is \\"Queue\\" or \\"Reject\\". \\"Queue\\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \\"Reject\\" means that requests that can not be executed upon arrival are rejected. Required."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { limited+: { limitResponse+: { type: type } } }, + }, + '#withBorrowingLimitPercent':: d.fn(help="\"`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\\n\\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\\n\\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.\"", args=[d.arg(name='borrowingLimitPercent', type=d.T.integer)]), + withBorrowingLimitPercent(borrowingLimitPercent): { limited+: { borrowingLimitPercent: borrowingLimitPercent } }, + '#withLendablePercent':: d.fn(help="\"`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\\n\\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )\"", args=[d.arg(name='lendablePercent', type=d.T.integer)]), + withLendablePercent(lendablePercent): { limited+: { lendablePercent: lendablePercent } }, + '#withNominalConcurrencyShares':: d.fn(help="\"`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\\n\\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\\n\\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.\"", args=[d.arg(name='nominalConcurrencyShares', type=d.T.integer)]), + withNominalConcurrencyShares(nominalConcurrencyShares): { limited+: { nominalConcurrencyShares: nominalConcurrencyShares } }, + }, + '#withType':: d.fn(help="\"`type` indicates whether this priority level is subject to limitation on request execution. A value of `\\\"Exempt\\\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\\\"Limited\\\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.\"", args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationStatus.libsonnet new file mode 100644 index 0000000..9432a99 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/priorityLevelConfigurationStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityLevelConfigurationStatus', url='', help='"PriorityLevelConfigurationStatus represents the current state of a \\"request-priority\\"."'), + '#withConditions':: d.fn(help='"`conditions` is the current state of \\"request-priority\\"."', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"`conditions` is the current state of \\"request-priority\\"."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/queuingConfiguration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/queuingConfiguration.libsonnet new file mode 100644 index 0000000..e74a2f3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/queuingConfiguration.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='queuingConfiguration', url='', help='"QueuingConfiguration holds the configuration parameters for queuing"'), + '#withHandSize':: d.fn(help="\"`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.\"", args=[d.arg(name='handSize', type=d.T.integer)]), + withHandSize(handSize): { handSize: handSize }, + '#withQueueLengthLimit':: d.fn(help='"`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50."', args=[d.arg(name='queueLengthLimit', type=d.T.integer)]), + withQueueLengthLimit(queueLengthLimit): { queueLengthLimit: queueLengthLimit }, + '#withQueues':: d.fn(help='"`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64."', args=[d.arg(name='queues', type=d.T.integer)]), + withQueues(queues): { queues: queues }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/resourcePolicyRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/resourcePolicyRule.libsonnet new file mode 100644 index 0000000..4b74e67 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/resourcePolicyRule.libsonnet @@ -0,0 +1,24 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourcePolicyRule', url='', help="\"ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\\\"\\\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.\""), + '#withApiGroups':: d.fn(help='"`apiGroups` is a list of matching API groups and may not be empty. \\"*\\" matches all API groups and, if present, must be the only entry. Required."', args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroups(apiGroups): { apiGroups: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiGroupsMixin':: d.fn(help='"`apiGroups` is a list of matching API groups and may not be empty. \\"*\\" matches all API groups and, if present, must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroupsMixin(apiGroups): { apiGroups+: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withClusterScope':: d.fn(help='"`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list."', args=[d.arg(name='clusterScope', type=d.T.boolean)]), + withClusterScope(clusterScope): { clusterScope: clusterScope }, + '#withNamespaces':: d.fn(help='"`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \\"*\\". Note that \\"*\\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true."', args=[d.arg(name='namespaces', type=d.T.array)]), + withNamespaces(namespaces): { namespaces: if std.isArray(v=namespaces) then namespaces else [namespaces] }, + '#withNamespacesMixin':: d.fn(help='"`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \\"*\\". Note that \\"*\\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='namespaces', type=d.T.array)]), + withNamespacesMixin(namespaces): { namespaces+: if std.isArray(v=namespaces) then namespaces else [namespaces] }, + '#withResources':: d.fn(help='"`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \\"services\\", \\"nodes/status\\" ]. This list may not be empty. \\"*\\" matches all resources and, if present, must be the only entry. Required."', args=[d.arg(name='resources', type=d.T.array)]), + withResources(resources): { resources: if std.isArray(v=resources) then resources else [resources] }, + '#withResourcesMixin':: d.fn(help='"`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \\"services\\", \\"nodes/status\\" ]. This list may not be empty. \\"*\\" matches all resources and, if present, must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resources', type=d.T.array)]), + withResourcesMixin(resources): { resources+: if std.isArray(v=resources) then resources else [resources] }, + '#withVerbs':: d.fn(help='"`verbs` is a list of matching verbs and may not be empty. \\"*\\" matches all verbs and, if present, must be the only entry. Required."', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbs(verbs): { verbs: if std.isArray(v=verbs) then verbs else [verbs] }, + '#withVerbsMixin':: d.fn(help='"`verbs` is a list of matching verbs and may not be empty. \\"*\\" matches all verbs and, if present, must be the only entry. Required."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbsMixin(verbs): { verbs+: if std.isArray(v=verbs) then verbs else [verbs] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/serviceAccountSubject.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/serviceAccountSubject.libsonnet new file mode 100644 index 0000000..1887fc0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/serviceAccountSubject.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceAccountSubject', url='', help='"ServiceAccountSubject holds detailed information for service-account-kind subject."'), + '#withName':: d.fn(help='"`name` is the name of matching ServiceAccount objects, or \\"*\\" to match regardless of name. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"`namespace` is the namespace of matching ServiceAccount objects. Required."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/subject.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/subject.libsonnet new file mode 100644 index 0000000..16f120b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/subject.libsonnet @@ -0,0 +1,25 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='subject', url='', help='"Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account."'), + '#group':: d.obj(help='"GroupSubject holds detailed information for group-kind subject."'), + group: { + '#withName':: d.fn(help='"name is the user group that matches, or \\"*\\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { group+: { name: name } }, + }, + '#serviceAccount':: d.obj(help='"ServiceAccountSubject holds detailed information for service-account-kind subject."'), + serviceAccount: { + '#withName':: d.fn(help='"`name` is the name of matching ServiceAccount objects, or \\"*\\" to match regardless of name. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { serviceAccount+: { name: name } }, + '#withNamespace':: d.fn(help='"`namespace` is the namespace of matching ServiceAccount objects. Required."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { serviceAccount+: { namespace: namespace } }, + }, + '#user':: d.obj(help='"UserSubject holds detailed information for user-kind subject."'), + user: { + '#withName':: d.fn(help='"`name` is the username that matches, or \\"*\\" to match all usernames. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { user+: { name: name } }, + }, + '#withKind':: d.fn(help='"`kind` indicates which one of the other fields is non-empty. Required"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/userSubject.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/userSubject.libsonnet new file mode 100644 index 0000000..00a560d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/flowcontrol/v1beta3/userSubject.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='userSubject', url='', help='"UserSubject holds detailed information for user-kind subject."'), + '#withName':: d.fn(help='"`name` is the username that matches, or \\"*\\" to match all usernames. Required."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/main.libsonnet new file mode 100644 index 0000000..6b4c5af --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='meta', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiGroup.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiGroup.libsonnet new file mode 100644 index 0000000..75273eb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiGroup.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiGroup', url='', help='"APIGroup contains the name, the supported versions, and the preferred version of a group."'), + '#new':: d.fn(help='new returns an instance of APIGroup', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'APIGroup', + } + self.metadata.withName(name=name), + '#preferredVersion':: d.obj(help='"GroupVersion contains the \\"group/version\\" and \\"version\\" string of a version. It is made a struct to keep extensibility."'), + preferredVersion: { + '#withGroupVersion':: d.fn(help='"groupVersion specifies the API group and version in the form \\"group/version\\', args=[d.arg(name='groupVersion', type=d.T.string)]), + withGroupVersion(groupVersion): { preferredVersion+: { groupVersion: groupVersion } }, + '#withVersion':: d.fn(help='"version specifies the version in the form of \\"version\\". This is to save the clients the trouble of splitting the GroupVersion."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { preferredVersion+: { version: version } }, + }, + '#withName':: d.fn(help='"name is the name of the group."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withServerAddressByClientCIDRs':: d.fn(help='"a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP."', args=[d.arg(name='serverAddressByClientCIDRs', type=d.T.array)]), + withServerAddressByClientCIDRs(serverAddressByClientCIDRs): { serverAddressByClientCIDRs: if std.isArray(v=serverAddressByClientCIDRs) then serverAddressByClientCIDRs else [serverAddressByClientCIDRs] }, + '#withServerAddressByClientCIDRsMixin':: d.fn(help='"a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='serverAddressByClientCIDRs', type=d.T.array)]), + withServerAddressByClientCIDRsMixin(serverAddressByClientCIDRs): { serverAddressByClientCIDRs+: if std.isArray(v=serverAddressByClientCIDRs) then serverAddressByClientCIDRs else [serverAddressByClientCIDRs] }, + '#withVersions':: d.fn(help='"versions are the versions supported in this group."', args=[d.arg(name='versions', type=d.T.array)]), + withVersions(versions): { versions: if std.isArray(v=versions) then versions else [versions] }, + '#withVersionsMixin':: d.fn(help='"versions are the versions supported in this group."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='versions', type=d.T.array)]), + withVersionsMixin(versions): { versions+: if std.isArray(v=versions) then versions else [versions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiGroupList.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiGroupList.libsonnet new file mode 100644 index 0000000..eb97801 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiGroupList.libsonnet @@ -0,0 +1,15 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiGroupList', url='', help='"APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis."'), + '#new':: d.fn(help='new returns an instance of APIGroupList', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'APIGroupList', + } + self.metadata.withName(name=name), + '#withGroups':: d.fn(help='"groups is a list of APIGroup."', args=[d.arg(name='groups', type=d.T.array)]), + withGroups(groups): { groups: if std.isArray(v=groups) then groups else [groups] }, + '#withGroupsMixin':: d.fn(help='"groups is a list of APIGroup."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='groups', type=d.T.array)]), + withGroupsMixin(groups): { groups+: if std.isArray(v=groups) then groups else [groups] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiResource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiResource.libsonnet new file mode 100644 index 0000000..fbb63a6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiResource.libsonnet @@ -0,0 +1,32 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiResource', url='', help='"APIResource specifies the name of a resource and whether it is namespaced."'), + '#withCategories':: d.fn(help="\"categories is a list of the grouped resources this resource belongs to (e.g. 'all')\"", args=[d.arg(name='categories', type=d.T.array)]), + withCategories(categories): { categories: if std.isArray(v=categories) then categories else [categories] }, + '#withCategoriesMixin':: d.fn(help="\"categories is a list of the grouped resources this resource belongs to (e.g. 'all')\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='categories', type=d.T.array)]), + withCategoriesMixin(categories): { categories+: if std.isArray(v=categories) then categories else [categories] }, + '#withGroup':: d.fn(help='"group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\\"."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { group: group }, + '#withKind':: d.fn(help="\"kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"name is the plural name of the resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespaced':: d.fn(help='"namespaced indicates if a resource is namespaced or not."', args=[d.arg(name='namespaced', type=d.T.boolean)]), + withNamespaced(namespaced): { namespaced: namespaced }, + '#withShortNames':: d.fn(help='"shortNames is a list of suggested short names of the resource."', args=[d.arg(name='shortNames', type=d.T.array)]), + withShortNames(shortNames): { shortNames: if std.isArray(v=shortNames) then shortNames else [shortNames] }, + '#withShortNamesMixin':: d.fn(help='"shortNames is a list of suggested short names of the resource."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='shortNames', type=d.T.array)]), + withShortNamesMixin(shortNames): { shortNames+: if std.isArray(v=shortNames) then shortNames else [shortNames] }, + '#withSingularName':: d.fn(help='"singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface."', args=[d.arg(name='singularName', type=d.T.string)]), + withSingularName(singularName): { singularName: singularName }, + '#withStorageVersionHash':: d.fn(help='"The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates."', args=[d.arg(name='storageVersionHash', type=d.T.string)]), + withStorageVersionHash(storageVersionHash): { storageVersionHash: storageVersionHash }, + '#withVerbs':: d.fn(help='"verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)"', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbs(verbs): { verbs: if std.isArray(v=verbs) then verbs else [verbs] }, + '#withVerbsMixin':: d.fn(help='"verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='verbs', type=d.T.array)]), + withVerbsMixin(verbs): { verbs+: if std.isArray(v=verbs) then verbs else [verbs] }, + '#withVersion':: d.fn(help="\"version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\\\".\"", args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { version: version }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiResourceList.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiResourceList.libsonnet new file mode 100644 index 0000000..6f5721b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiResourceList.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiResourceList', url='', help='"APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced."'), + '#new':: d.fn(help='new returns an instance of APIResourceList', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'APIResourceList', + } + self.metadata.withName(name=name), + '#withGroupVersion':: d.fn(help='"groupVersion is the group and version this APIResourceList is for."', args=[d.arg(name='groupVersion', type=d.T.string)]), + withGroupVersion(groupVersion): { groupVersion: groupVersion }, + '#withResources':: d.fn(help='"resources contains the name of the resources and if they are namespaced."', args=[d.arg(name='resources', type=d.T.array)]), + withResources(resources): { resources: if std.isArray(v=resources) then resources else [resources] }, + '#withResourcesMixin':: d.fn(help='"resources contains the name of the resources and if they are namespaced."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resources', type=d.T.array)]), + withResourcesMixin(resources): { resources+: if std.isArray(v=resources) then resources else [resources] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiVersions.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiVersions.libsonnet new file mode 100644 index 0000000..4bbe76e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/apiVersions.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='apiVersions', url='', help='"APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API."'), + '#new':: d.fn(help='new returns an instance of APIVersions', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'v1', + kind: 'APIVersions', + } + self.metadata.withName(name=name), + '#withServerAddressByClientCIDRs':: d.fn(help='"a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP."', args=[d.arg(name='serverAddressByClientCIDRs', type=d.T.array)]), + withServerAddressByClientCIDRs(serverAddressByClientCIDRs): { serverAddressByClientCIDRs: if std.isArray(v=serverAddressByClientCIDRs) then serverAddressByClientCIDRs else [serverAddressByClientCIDRs] }, + '#withServerAddressByClientCIDRsMixin':: d.fn(help='"a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='serverAddressByClientCIDRs', type=d.T.array)]), + withServerAddressByClientCIDRsMixin(serverAddressByClientCIDRs): { serverAddressByClientCIDRs+: if std.isArray(v=serverAddressByClientCIDRs) then serverAddressByClientCIDRs else [serverAddressByClientCIDRs] }, + '#withVersions':: d.fn(help='"versions are the api versions that are available."', args=[d.arg(name='versions', type=d.T.array)]), + withVersions(versions): { versions: if std.isArray(v=versions) then versions else [versions] }, + '#withVersionsMixin':: d.fn(help='"versions are the api versions that are available."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='versions', type=d.T.array)]), + withVersionsMixin(versions): { versions+: if std.isArray(v=versions) then versions else [versions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/condition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/condition.libsonnet new file mode 100644 index 0000000..5790d94 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/condition.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='condition', url='', help='"Condition contains details for one aspect of the current state of this API Resource."'), + '#withLastTransitionTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastTransitionTime', type=d.T.string)]), + withLastTransitionTime(lastTransitionTime): { lastTransitionTime: lastTransitionTime }, + '#withMessage':: d.fn(help='"message is a human readable message indicating details about the transition. This may be an empty string."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withObservedGeneration':: d.fn(help='"observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance."', args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#withReason':: d.fn(help="\"reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"type of condition in CamelCase or in foo.example.com/CamelCase."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/deleteOptions.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/deleteOptions.libsonnet new file mode 100644 index 0000000..90f1bc0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/deleteOptions.libsonnet @@ -0,0 +1,28 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='deleteOptions', url='', help='"DeleteOptions may be provided when deleting an API object."'), + '#new':: d.fn(help='new returns an instance of DeleteOptions', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'storagemigration.k8s.io/v1alpha1', + kind: 'DeleteOptions', + } + self.metadata.withName(name=name), + '#preconditions':: d.obj(help='"Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out."'), + preconditions: { + '#withResourceVersion':: d.fn(help='"Specifies the target ResourceVersion"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { preconditions+: { resourceVersion: resourceVersion } }, + '#withUid':: d.fn(help='"Specifies the target UID."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { preconditions+: { uid: uid } }, + }, + '#withDryRun':: d.fn(help='"When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed"', args=[d.arg(name='dryRun', type=d.T.array)]), + withDryRun(dryRun): { dryRun: if std.isArray(v=dryRun) then dryRun else [dryRun] }, + '#withDryRunMixin':: d.fn(help='"When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='dryRun', type=d.T.array)]), + withDryRunMixin(dryRun): { dryRun+: if std.isArray(v=dryRun) then dryRun else [dryRun] }, + '#withGracePeriodSeconds':: d.fn(help='"The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately."', args=[d.arg(name='gracePeriodSeconds', type=d.T.integer)]), + withGracePeriodSeconds(gracePeriodSeconds): { gracePeriodSeconds: gracePeriodSeconds }, + '#withOrphanDependents':: d.fn(help="\"Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \\\"orphan\\\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.\"", args=[d.arg(name='orphanDependents', type=d.T.boolean)]), + withOrphanDependents(orphanDependents): { orphanDependents: orphanDependents }, + '#withPropagationPolicy':: d.fn(help="\"Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.\"", args=[d.arg(name='propagationPolicy', type=d.T.string)]), + withPropagationPolicy(propagationPolicy): { propagationPolicy: propagationPolicy }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/fieldsV1.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/fieldsV1.libsonnet new file mode 100644 index 0000000..08cb9e7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/fieldsV1.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='fieldsV1', url='', help="\"FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\\n\\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map 'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item 'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list 'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\\n\\nThe exact format is defined in sigs.k8s.io/structured-merge-diff\""), + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/groupVersionForDiscovery.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/groupVersionForDiscovery.libsonnet new file mode 100644 index 0000000..2b6f629 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/groupVersionForDiscovery.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='groupVersionForDiscovery', url='', help='"GroupVersion contains the \\"group/version\\" and \\"version\\" string of a version. It is made a struct to keep extensibility."'), + '#withGroupVersion':: d.fn(help='"groupVersion specifies the API group and version in the form \\"group/version\\', args=[d.arg(name='groupVersion', type=d.T.string)]), + withGroupVersion(groupVersion): { groupVersion: groupVersion }, + '#withVersion':: d.fn(help='"version specifies the version in the form of \\"version\\". This is to save the clients the trouble of splitting the GroupVersion."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { version: version }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/labelSelector.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/labelSelector.libsonnet new file mode 100644 index 0000000..5edc8ea --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/labelSelector.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='labelSelector', url='', help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { matchLabels: matchLabels }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { matchLabels+: matchLabels }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/labelSelectorRequirement.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/labelSelectorRequirement.libsonnet new file mode 100644 index 0000000..4c4fc3a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/labelSelectorRequirement.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='labelSelectorRequirement', url='', help='"A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values."'), + '#withKey':: d.fn(help='"key is the label key that the selector applies to."', args=[d.arg(name='key', type=d.T.string)]), + withKey(key): { key: key }, + '#withOperator':: d.fn(help="\"operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.\"", args=[d.arg(name='operator', type=d.T.string)]), + withOperator(operator): { operator: operator }, + '#withValues':: d.fn(help='"values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."', args=[d.arg(name='values', type=d.T.array)]), + withValues(values): { values: if std.isArray(v=values) then values else [values] }, + '#withValuesMixin':: d.fn(help='"values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='values', type=d.T.array)]), + withValuesMixin(values): { values+: if std.isArray(v=values) then values else [values] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/listMeta.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/listMeta.libsonnet new file mode 100644 index 0000000..b5fba9a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/listMeta.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='listMeta', url='', help='"ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}."'), + '#withContinue':: d.fn(help='"continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message."', args=[d.arg(name='continue', type=d.T.string)]), + withContinue(continue): { continue: continue }, + '#withRemainingItemCount':: d.fn(help='"remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact."', args=[d.arg(name='remainingItemCount', type=d.T.integer)]), + withRemainingItemCount(remainingItemCount): { remainingItemCount: remainingItemCount }, + '#withResourceVersion':: d.fn(help="\"String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\"", args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { resourceVersion: resourceVersion }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { selfLink: selfLink }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/main.libsonnet new file mode 100644 index 0000000..ec3251d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/main.libsonnet @@ -0,0 +1,27 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + apiGroup: (import 'apiGroup.libsonnet'), + apiGroupList: (import 'apiGroupList.libsonnet'), + apiResource: (import 'apiResource.libsonnet'), + apiResourceList: (import 'apiResourceList.libsonnet'), + apiVersions: (import 'apiVersions.libsonnet'), + condition: (import 'condition.libsonnet'), + deleteOptions: (import 'deleteOptions.libsonnet'), + fieldsV1: (import 'fieldsV1.libsonnet'), + groupVersionForDiscovery: (import 'groupVersionForDiscovery.libsonnet'), + labelSelector: (import 'labelSelector.libsonnet'), + labelSelectorRequirement: (import 'labelSelectorRequirement.libsonnet'), + listMeta: (import 'listMeta.libsonnet'), + managedFieldsEntry: (import 'managedFieldsEntry.libsonnet'), + microTime: (import 'microTime.libsonnet'), + objectMeta: (import 'objectMeta.libsonnet'), + ownerReference: (import 'ownerReference.libsonnet'), + patch: (import 'patch.libsonnet'), + preconditions: (import 'preconditions.libsonnet'), + serverAddressByClientCIDR: (import 'serverAddressByClientCIDR.libsonnet'), + statusCause: (import 'statusCause.libsonnet'), + statusDetails: (import 'statusDetails.libsonnet'), + time: (import 'time.libsonnet'), + watchEvent: (import 'watchEvent.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/managedFieldsEntry.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/managedFieldsEntry.libsonnet new file mode 100644 index 0000000..4c8e564 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/managedFieldsEntry.libsonnet @@ -0,0 +1,20 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='managedFieldsEntry', url='', help='"ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to."'), + '#withFieldsType':: d.fn(help='"FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \\"FieldsV1\\', args=[d.arg(name='fieldsType', type=d.T.string)]), + withFieldsType(fieldsType): { fieldsType: fieldsType }, + '#withFieldsV1':: d.fn(help="\"FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\\n\\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map 'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item 'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list 'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\\n\\nThe exact format is defined in sigs.k8s.io/structured-merge-diff\"", args=[d.arg(name='fieldsV1', type=d.T.object)]), + withFieldsV1(fieldsV1): { fieldsV1: fieldsV1 }, + '#withFieldsV1Mixin':: d.fn(help="\"FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\\n\\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map 'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item 'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list 'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\\n\\nThe exact format is defined in sigs.k8s.io/structured-merge-diff\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='fieldsV1', type=d.T.object)]), + withFieldsV1Mixin(fieldsV1): { fieldsV1+: fieldsV1 }, + '#withManager':: d.fn(help='"Manager is an identifier of the workflow managing these fields."', args=[d.arg(name='manager', type=d.T.string)]), + withManager(manager): { manager: manager }, + '#withOperation':: d.fn(help="\"Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.\"", args=[d.arg(name='operation', type=d.T.string)]), + withOperation(operation): { operation: operation }, + '#withSubresource':: d.fn(help='"Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource."', args=[d.arg(name='subresource', type=d.T.string)]), + withSubresource(subresource): { subresource: subresource }, + '#withTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='time', type=d.T.string)]), + withTime(time): { time: time }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/microTime.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/microTime.libsonnet new file mode 100644 index 0000000..97e949a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/microTime.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='microTime', url='', help='"MicroTime is version of Time with microsecond level precision."'), + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/objectMeta.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/objectMeta.libsonnet new file mode 100644 index 0000000..eb0f0ca --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/objectMeta.libsonnet @@ -0,0 +1,46 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='objectMeta', url='', help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { annotations: annotations }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { annotations+: annotations }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { creationTimestamp: creationTimestamp }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { deletionGracePeriodSeconds: deletionGracePeriodSeconds }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { deletionTimestamp: deletionTimestamp }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { generateName: generateName }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { generation: generation }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { labels: labels }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { labels+: labels }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { resourceVersion: resourceVersion }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { selfLink: selfLink }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/ownerReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/ownerReference.libsonnet new file mode 100644 index 0000000..66963fb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/ownerReference.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ownerReference', url='', help='"OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field."'), + '#withBlockOwnerDeletion':: d.fn(help='"If true, AND if the owner has the \\"foregroundDeletion\\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \\"delete\\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned."', args=[d.arg(name='blockOwnerDeletion', type=d.T.boolean)]), + withBlockOwnerDeletion(blockOwnerDeletion): { blockOwnerDeletion: blockOwnerDeletion }, + '#withController':: d.fn(help='"If true, this reference points to the managing controller."', args=[d.arg(name='controller', type=d.T.boolean)]), + withController(controller): { controller: controller }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/patch.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/patch.libsonnet new file mode 100644 index 0000000..4d661fa --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/patch.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='patch', url='', help='"Patch is provided to give a concrete name and type to the Kubernetes PATCH request body."'), + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/preconditions.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/preconditions.libsonnet new file mode 100644 index 0000000..ba4bc5b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/preconditions.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='preconditions', url='', help='"Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out."'), + '#withResourceVersion':: d.fn(help='"Specifies the target ResourceVersion"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { resourceVersion: resourceVersion }, + '#withUid':: d.fn(help='"Specifies the target UID."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/serverAddressByClientCIDR.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/serverAddressByClientCIDR.libsonnet new file mode 100644 index 0000000..726e7cb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/serverAddressByClientCIDR.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serverAddressByClientCIDR', url='', help='"ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match."'), + '#withClientCIDR':: d.fn(help='"The CIDR with which clients can match their IP to figure out the server address that they should use."', args=[d.arg(name='clientCIDR', type=d.T.string)]), + withClientCIDR(clientCIDR): { clientCIDR: clientCIDR }, + '#withServerAddress':: d.fn(help='"Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port."', args=[d.arg(name='serverAddress', type=d.T.string)]), + withServerAddress(serverAddress): { serverAddress: serverAddress }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/statusCause.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/statusCause.libsonnet new file mode 100644 index 0000000..d658673 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/statusCause.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='statusCause', url='', help='"StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered."'), + '#withField':: d.fn(help='"The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\\n\\nExamples:\\n \\"name\\" - the field \\"name\\" on the current resource\\n \\"items[0].name\\" - the field \\"name\\" on the first array entry in \\"items\\', args=[d.arg(name='field', type=d.T.string)]), + withField(field): { field: field }, + '#withMessage':: d.fn(help='"A human-readable description of the cause of the error. This field may be presented as-is to a reader."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help='"A machine-readable description of the cause of the error. If this value is empty there is no information available."', args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/statusDetails.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/statusDetails.libsonnet new file mode 100644 index 0000000..31a77b4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/statusDetails.libsonnet @@ -0,0 +1,20 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='statusDetails', url='', help='"StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined."'), + '#withCauses':: d.fn(help='"The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes."', args=[d.arg(name='causes', type=d.T.array)]), + withCauses(causes): { causes: if std.isArray(v=causes) then causes else [causes] }, + '#withCausesMixin':: d.fn(help='"The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='causes', type=d.T.array)]), + withCausesMixin(causes): { causes+: if std.isArray(v=causes) then causes else [causes] }, + '#withGroup':: d.fn(help='"The group attribute of the resource associated with the status StatusReason."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { group: group }, + '#withKind':: d.fn(help='"The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described)."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withRetryAfterSeconds':: d.fn(help='"If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action."', args=[d.arg(name='retryAfterSeconds', type=d.T.integer)]), + withRetryAfterSeconds(retryAfterSeconds): { retryAfterSeconds: retryAfterSeconds }, + '#withUid':: d.fn(help='"UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/time.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/time.libsonnet new file mode 100644 index 0000000..641b9a4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/time.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='time', url='', help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."'), + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/watchEvent.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/watchEvent.libsonnet new file mode 100644 index 0000000..9c3e1a3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/meta/v1/watchEvent.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='watchEvent', url='', help='"Event represents a single event to a watched resource."'), + '#new':: d.fn(help='new returns an instance of WatchEvent', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'storagemigration.k8s.io/v1alpha1', + kind: 'WatchEvent', + } + self.metadata.withName(name=name), + '#withObject':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='object', type=d.T.object)]), + withObject(object): { object: object }, + '#withObjectMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='object', type=d.T.object)]), + withObjectMixin(object): { object+: object }, + '#withType':: d.fn(help='', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/main.libsonnet new file mode 100644 index 0000000..5eded79 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='networking', url='', help=''), + v1: (import 'v1/main.libsonnet'), + v1alpha1: (import 'v1alpha1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/httpIngressPath.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/httpIngressPath.libsonnet new file mode 100644 index 0000000..47fbe97 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/httpIngressPath.libsonnet @@ -0,0 +1,34 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='httpIngressPath', url='', help='"HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend."'), + '#backend':: d.obj(help='"IngressBackend describes all endpoints for a given service and port."'), + backend: { + '#resource':: d.obj(help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + resource: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { backend+: { resource+: { apiGroup: apiGroup } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { backend+: { resource+: { kind: kind } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { backend+: { resource+: { name: name } } }, + }, + '#service':: d.obj(help='"IngressServiceBackend references a Kubernetes Service as a Backend."'), + service: { + '#port':: d.obj(help='"ServiceBackendPort is the service port being referenced."'), + port: { + '#withName':: d.fn(help='"name is the name of the port on the Service. This is a mutually exclusive setting with \\"Number\\"."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { backend+: { service+: { port+: { name: name } } } }, + '#withNumber':: d.fn(help='"number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \\"Name\\"."', args=[d.arg(name='number', type=d.T.integer)]), + withNumber(number): { backend+: { service+: { port+: { number: number } } } }, + }, + '#withName':: d.fn(help='"name is the referenced service. The service must exist in the same namespace as the Ingress object."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { backend+: { service+: { name: name } } }, + }, + }, + '#withPath':: d.fn(help="\"path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \\\"path\\\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \\\"Exact\\\" or \\\"Prefix\\\".\"", args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { path: path }, + '#withPathType':: d.fn(help="\"pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\\n done on a path element by element basis. A path element refers is the\\n list of labels in the path split by the '/' separator. A request is a\\n match for path p if every p is an element-wise prefix of p of the\\n request path. Note that if the last element of the path is a substring\\n of the last element in request path, it is not a match (e.g. /foo/bar\\n matches /foo/bar/baz, but does not match /foo/barbaz).\\n* ImplementationSpecific: Interpretation of the Path matching is up to\\n the IngressClass. Implementations can treat this as a separate PathType\\n or treat it identically to Prefix or Exact path types.\\nImplementations are required to support all path types.\"", args=[d.arg(name='pathType', type=d.T.string)]), + withPathType(pathType): { pathType: pathType }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/httpIngressRuleValue.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/httpIngressRuleValue.libsonnet new file mode 100644 index 0000000..7d54756 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/httpIngressRuleValue.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='httpIngressRuleValue', url='', help="\"HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://\u003chost\u003e/\u003cpath\u003e?\u003csearchpart\u003e -\u003e backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.\""), + '#withPaths':: d.fn(help='"paths is a collection of paths that map requests to backends."', args=[d.arg(name='paths', type=d.T.array)]), + withPaths(paths): { paths: if std.isArray(v=paths) then paths else [paths] }, + '#withPathsMixin':: d.fn(help='"paths is a collection of paths that map requests to backends."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='paths', type=d.T.array)]), + withPathsMixin(paths): { paths+: if std.isArray(v=paths) then paths else [paths] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingress.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingress.libsonnet new file mode 100644 index 0000000..15464bc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingress.libsonnet @@ -0,0 +1,91 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingress', url='', help='"Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Ingress', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'networking.k8s.io/v1', + kind: 'Ingress', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"IngressSpec describes the Ingress the user wishes to exist."'), + spec: { + '#defaultBackend':: d.obj(help='"IngressBackend describes all endpoints for a given service and port."'), + defaultBackend: { + '#resource':: d.obj(help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + resource: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { spec+: { defaultBackend+: { resource+: { apiGroup: apiGroup } } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { defaultBackend+: { resource+: { kind: kind } } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { defaultBackend+: { resource+: { name: name } } } }, + }, + '#service':: d.obj(help='"IngressServiceBackend references a Kubernetes Service as a Backend."'), + service: { + '#port':: d.obj(help='"ServiceBackendPort is the service port being referenced."'), + port: { + '#withName':: d.fn(help='"name is the name of the port on the Service. This is a mutually exclusive setting with \\"Number\\"."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { defaultBackend+: { service+: { port+: { name: name } } } } }, + '#withNumber':: d.fn(help='"number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \\"Name\\"."', args=[d.arg(name='number', type=d.T.integer)]), + withNumber(number): { spec+: { defaultBackend+: { service+: { port+: { number: number } } } } }, + }, + '#withName':: d.fn(help='"name is the referenced service. The service must exist in the same namespace as the Ingress object."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { defaultBackend+: { service+: { name: name } } } }, + }, + }, + '#withIngressClassName':: d.fn(help='"ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present."', args=[d.arg(name='ingressClassName', type=d.T.string)]), + withIngressClassName(ingressClassName): { spec+: { ingressClassName: ingressClassName } }, + '#withRules':: d.fn(help='"rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { spec+: { rules: if std.isArray(v=rules) then rules else [rules] } }, + '#withRulesMixin':: d.fn(help='"rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { spec+: { rules+: if std.isArray(v=rules) then rules else [rules] } }, + '#withTls':: d.fn(help='"tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI."', args=[d.arg(name='tls', type=d.T.array)]), + withTls(tls): { spec+: { tls: if std.isArray(v=tls) then tls else [tls] } }, + '#withTlsMixin':: d.fn(help='"tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='tls', type=d.T.array)]), + withTlsMixin(tls): { spec+: { tls+: if std.isArray(v=tls) then tls else [tls] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressBackend.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressBackend.libsonnet new file mode 100644 index 0000000..803c12f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressBackend.libsonnet @@ -0,0 +1,27 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressBackend', url='', help='"IngressBackend describes all endpoints for a given service and port."'), + '#resource':: d.obj(help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + resource: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { resource+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { resource+: { kind: kind } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { resource+: { name: name } }, + }, + '#service':: d.obj(help='"IngressServiceBackend references a Kubernetes Service as a Backend."'), + service: { + '#port':: d.obj(help='"ServiceBackendPort is the service port being referenced."'), + port: { + '#withName':: d.fn(help='"name is the name of the port on the Service. This is a mutually exclusive setting with \\"Number\\"."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { service+: { port+: { name: name } } }, + '#withNumber':: d.fn(help='"number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \\"Name\\"."', args=[d.arg(name='number', type=d.T.integer)]), + withNumber(number): { service+: { port+: { number: number } } }, + }, + '#withName':: d.fn(help='"name is the referenced service. The service must exist in the same namespace as the Ingress object."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { service+: { name: name } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClass.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClass.libsonnet new file mode 100644 index 0000000..5e76306 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClass.libsonnet @@ -0,0 +1,72 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressClass', url='', help='"IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of IngressClass', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'networking.k8s.io/v1', + kind: 'IngressClass', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"IngressClassSpec provides information about the class of an Ingress."'), + spec: { + '#parameters':: d.obj(help='"IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource."'), + parameters: { + '#withApiGroup':: d.fn(help='"apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { spec+: { parameters+: { apiGroup: apiGroup } } }, + '#withKind':: d.fn(help='"kind is the type of resource being referenced."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { parameters+: { kind: kind } } }, + '#withName':: d.fn(help='"name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { parameters+: { name: name } } }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the resource being referenced. This field is required when scope is set to \\"Namespace\\" and must be unset when scope is set to \\"Cluster\\"."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { parameters+: { namespace: namespace } } }, + '#withScope':: d.fn(help='"scope represents if this refers to a cluster or namespace scoped resource. This may be set to \\"Cluster\\" (default) or \\"Namespace\\"."', args=[d.arg(name='scope', type=d.T.string)]), + withScope(scope): { spec+: { parameters+: { scope: scope } } }, + }, + '#withController':: d.fn(help='"controller refers to the name of the controller that should handle this class. This allows for different \\"flavors\\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \\"acme.io/ingress-controller\\". This field is immutable."', args=[d.arg(name='controller', type=d.T.string)]), + withController(controller): { spec+: { controller: controller } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClassParametersReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClassParametersReference.libsonnet new file mode 100644 index 0000000..1c17567 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClassParametersReference.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressClassParametersReference', url='', help='"IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource."'), + '#withApiGroup':: d.fn(help='"apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { apiGroup: apiGroup }, + '#withKind':: d.fn(help='"kind is the type of resource being referenced."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the resource being referenced. This field is required when scope is set to \\"Namespace\\" and must be unset when scope is set to \\"Cluster\\"."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withScope':: d.fn(help='"scope represents if this refers to a cluster or namespace scoped resource. This may be set to \\"Cluster\\" (default) or \\"Namespace\\"."', args=[d.arg(name='scope', type=d.T.string)]), + withScope(scope): { scope: scope }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClassSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClassSpec.libsonnet new file mode 100644 index 0000000..16a9f05 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressClassSpec.libsonnet @@ -0,0 +1,21 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressClassSpec', url='', help='"IngressClassSpec provides information about the class of an Ingress."'), + '#parameters':: d.obj(help='"IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource."'), + parameters: { + '#withApiGroup':: d.fn(help='"apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { parameters+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help='"kind is the type of resource being referenced."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { parameters+: { kind: kind } }, + '#withName':: d.fn(help='"name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { parameters+: { name: name } }, + '#withNamespace':: d.fn(help='"namespace is the namespace of the resource being referenced. This field is required when scope is set to \\"Namespace\\" and must be unset when scope is set to \\"Cluster\\"."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { parameters+: { namespace: namespace } }, + '#withScope':: d.fn(help='"scope represents if this refers to a cluster or namespace scoped resource. This may be set to \\"Cluster\\" (default) or \\"Namespace\\"."', args=[d.arg(name='scope', type=d.T.string)]), + withScope(scope): { parameters+: { scope: scope } }, + }, + '#withController':: d.fn(help='"controller refers to the name of the controller that should handle this class. This allows for different \\"flavors\\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \\"acme.io/ingress-controller\\". This field is immutable."', args=[d.arg(name='controller', type=d.T.string)]), + withController(controller): { controller: controller }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressLoadBalancerIngress.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressLoadBalancerIngress.libsonnet new file mode 100644 index 0000000..ee9e9ab --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressLoadBalancerIngress.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressLoadBalancerIngress', url='', help='"IngressLoadBalancerIngress represents the status of a load-balancer ingress point."'), + '#withHostname':: d.fn(help='"hostname is set for load-balancer ingress points that are DNS based."', args=[d.arg(name='hostname', type=d.T.string)]), + withHostname(hostname): { hostname: hostname }, + '#withIp':: d.fn(help='"ip is set for load-balancer ingress points that are IP based."', args=[d.arg(name='ip', type=d.T.string)]), + withIp(ip): { ip: ip }, + '#withPorts':: d.fn(help='"ports provides information about the ports exposed by this LoadBalancer."', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { ports: if std.isArray(v=ports) then ports else [ports] }, + '#withPortsMixin':: d.fn(help='"ports provides information about the ports exposed by this LoadBalancer."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { ports+: if std.isArray(v=ports) then ports else [ports] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressLoadBalancerStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressLoadBalancerStatus.libsonnet new file mode 100644 index 0000000..bf8a32d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressLoadBalancerStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressLoadBalancerStatus', url='', help='"IngressLoadBalancerStatus represents the status of a load-balancer."'), + '#withIngress':: d.fn(help='"ingress is a list containing ingress points for the load-balancer."', args=[d.arg(name='ingress', type=d.T.array)]), + withIngress(ingress): { ingress: if std.isArray(v=ingress) then ingress else [ingress] }, + '#withIngressMixin':: d.fn(help='"ingress is a list containing ingress points for the load-balancer."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ingress', type=d.T.array)]), + withIngressMixin(ingress): { ingress+: if std.isArray(v=ingress) then ingress else [ingress] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressPortStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressPortStatus.libsonnet new file mode 100644 index 0000000..035d1b0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressPortStatus.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressPortStatus', url='', help='"IngressPortStatus represents the error condition of a service port"'), + '#withError':: d.fn(help='"error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\\n CamelCase names\\n- cloud provider specific error values must have names that comply with the\\n format foo.example.com/CamelCase."', args=[d.arg(name='err', type=d.T.string)]), + withError(err): { 'error': err }, + '#withPort':: d.fn(help='"port is the port number of the ingress port."', args=[d.arg(name='port', type=d.T.integer)]), + withPort(port): { port: port }, + '#withProtocol':: d.fn(help='"protocol is the protocol of the ingress port. The supported values are: \\"TCP\\", \\"UDP\\", \\"SCTP\\', args=[d.arg(name='protocol', type=d.T.string)]), + withProtocol(protocol): { protocol: protocol }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressRule.libsonnet new file mode 100644 index 0000000..d58de75 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressRule.libsonnet @@ -0,0 +1,15 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressRule', url='', help='"IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue."'), + '#http':: d.obj(help="\"HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://\u003chost\u003e/\u003cpath\u003e?\u003csearchpart\u003e -\u003e backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.\""), + http: { + '#withPaths':: d.fn(help='"paths is a collection of paths that map requests to backends."', args=[d.arg(name='paths', type=d.T.array)]), + withPaths(paths): { http+: { paths: if std.isArray(v=paths) then paths else [paths] } }, + '#withPathsMixin':: d.fn(help='"paths is a collection of paths that map requests to backends."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='paths', type=d.T.array)]), + withPathsMixin(paths): { http+: { paths+: if std.isArray(v=paths) then paths else [paths] } }, + }, + '#withHost':: d.fn(help="\"host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \\\"host\\\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\\n the IP in the Spec of the parent Ingress.\\n2. The `:` delimiter is not respected because ports are not allowed.\\n\\t Currently the port of an Ingress is implicitly :80 for http and\\n\\t :443 for https.\\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\\n\\nhost can be \\\"precise\\\" which is a domain name without the terminating dot of a network host (e.g. \\\"foo.bar.com\\\") or \\\"wildcard\\\", which is a domain name prefixed with a single wildcard label (e.g. \\\"*.foo.com\\\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \\\"*\\\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.\"", args=[d.arg(name='host', type=d.T.string)]), + withHost(host): { host: host }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressServiceBackend.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressServiceBackend.libsonnet new file mode 100644 index 0000000..7a7c014 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressServiceBackend.libsonnet @@ -0,0 +1,15 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressServiceBackend', url='', help='"IngressServiceBackend references a Kubernetes Service as a Backend."'), + '#port':: d.obj(help='"ServiceBackendPort is the service port being referenced."'), + port: { + '#withName':: d.fn(help='"name is the name of the port on the Service. This is a mutually exclusive setting with \\"Number\\"."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { port+: { name: name } }, + '#withNumber':: d.fn(help='"number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \\"Name\\"."', args=[d.arg(name='number', type=d.T.integer)]), + withNumber(number): { port+: { number: number } }, + }, + '#withName':: d.fn(help='"name is the referenced service. The service must exist in the same namespace as the Ingress object."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressSpec.libsonnet new file mode 100644 index 0000000..c993267 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressSpec.libsonnet @@ -0,0 +1,40 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressSpec', url='', help='"IngressSpec describes the Ingress the user wishes to exist."'), + '#defaultBackend':: d.obj(help='"IngressBackend describes all endpoints for a given service and port."'), + defaultBackend: { + '#resource':: d.obj(help='"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace."'), + resource: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { defaultBackend+: { resource+: { apiGroup: apiGroup } } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { defaultBackend+: { resource+: { kind: kind } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { defaultBackend+: { resource+: { name: name } } }, + }, + '#service':: d.obj(help='"IngressServiceBackend references a Kubernetes Service as a Backend."'), + service: { + '#port':: d.obj(help='"ServiceBackendPort is the service port being referenced."'), + port: { + '#withName':: d.fn(help='"name is the name of the port on the Service. This is a mutually exclusive setting with \\"Number\\"."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { defaultBackend+: { service+: { port+: { name: name } } } }, + '#withNumber':: d.fn(help='"number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \\"Name\\"."', args=[d.arg(name='number', type=d.T.integer)]), + withNumber(number): { defaultBackend+: { service+: { port+: { number: number } } } }, + }, + '#withName':: d.fn(help='"name is the referenced service. The service must exist in the same namespace as the Ingress object."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { defaultBackend+: { service+: { name: name } } }, + }, + }, + '#withIngressClassName':: d.fn(help='"ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present."', args=[d.arg(name='ingressClassName', type=d.T.string)]), + withIngressClassName(ingressClassName): { ingressClassName: ingressClassName }, + '#withRules':: d.fn(help='"rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend."', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { rules: if std.isArray(v=rules) then rules else [rules] }, + '#withRulesMixin':: d.fn(help='"rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { rules+: if std.isArray(v=rules) then rules else [rules] }, + '#withTls':: d.fn(help='"tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI."', args=[d.arg(name='tls', type=d.T.array)]), + withTls(tls): { tls: if std.isArray(v=tls) then tls else [tls] }, + '#withTlsMixin':: d.fn(help='"tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='tls', type=d.T.array)]), + withTlsMixin(tls): { tls+: if std.isArray(v=tls) then tls else [tls] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressStatus.libsonnet new file mode 100644 index 0000000..b2046d7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressStatus.libsonnet @@ -0,0 +1,13 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressStatus', url='', help='"IngressStatus describe the current state of the Ingress."'), + '#loadBalancer':: d.obj(help='"IngressLoadBalancerStatus represents the status of a load-balancer."'), + loadBalancer: { + '#withIngress':: d.fn(help='"ingress is a list containing ingress points for the load-balancer."', args=[d.arg(name='ingress', type=d.T.array)]), + withIngress(ingress): { loadBalancer+: { ingress: if std.isArray(v=ingress) then ingress else [ingress] } }, + '#withIngressMixin':: d.fn(help='"ingress is a list containing ingress points for the load-balancer."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ingress', type=d.T.array)]), + withIngressMixin(ingress): { loadBalancer+: { ingress+: if std.isArray(v=ingress) then ingress else [ingress] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressTLS.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressTLS.libsonnet new file mode 100644 index 0000000..16789ba --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ingressTLS.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ingressTLS', url='', help='"IngressTLS describes the transport layer security associated with an ingress."'), + '#withHosts':: d.fn(help='"hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified."', args=[d.arg(name='hosts', type=d.T.array)]), + withHosts(hosts): { hosts: if std.isArray(v=hosts) then hosts else [hosts] }, + '#withHostsMixin':: d.fn(help='"hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='hosts', type=d.T.array)]), + withHostsMixin(hosts): { hosts+: if std.isArray(v=hosts) then hosts else [hosts] }, + '#withSecretName':: d.fn(help='"secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \\"Host\\" header field used by an IngressRule, the SNI host is used for termination and value of the \\"Host\\" header is used for routing."', args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { secretName: secretName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ipBlock.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ipBlock.libsonnet new file mode 100644 index 0000000..b54b0d6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/ipBlock.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ipBlock', url='', help="\"IPBlock describes a particular CIDR (Ex. \\\"192.168.1.0/24\\\",\\\"2001:db8::/64\\\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.\""), + '#withCidr':: d.fn(help='"cidr is a string representing the IPBlock Valid examples are \\"192.168.1.0/24\\" or \\"2001:db8::/64\\', args=[d.arg(name='cidr', type=d.T.string)]), + withCidr(cidr): { cidr: cidr }, + '#withExcept':: d.fn(help='"except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \\"192.168.1.0/24\\" or \\"2001:db8::/64\\" Except values will be rejected if they are outside the cidr range"', args=[d.arg(name='except', type=d.T.array)]), + withExcept(except): { except: if std.isArray(v=except) then except else [except] }, + '#withExceptMixin':: d.fn(help='"except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \\"192.168.1.0/24\\" or \\"2001:db8::/64\\" Except values will be rejected if they are outside the cidr range"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='except', type=d.T.array)]), + withExceptMixin(except): { except+: if std.isArray(v=except) then except else [except] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/main.libsonnet new file mode 100644 index 0000000..fd4e3e0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/main.libsonnet @@ -0,0 +1,27 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + httpIngressPath: (import 'httpIngressPath.libsonnet'), + httpIngressRuleValue: (import 'httpIngressRuleValue.libsonnet'), + ingress: (import 'ingress.libsonnet'), + ingressBackend: (import 'ingressBackend.libsonnet'), + ingressClass: (import 'ingressClass.libsonnet'), + ingressClassParametersReference: (import 'ingressClassParametersReference.libsonnet'), + ingressClassSpec: (import 'ingressClassSpec.libsonnet'), + ingressLoadBalancerIngress: (import 'ingressLoadBalancerIngress.libsonnet'), + ingressLoadBalancerStatus: (import 'ingressLoadBalancerStatus.libsonnet'), + ingressPortStatus: (import 'ingressPortStatus.libsonnet'), + ingressRule: (import 'ingressRule.libsonnet'), + ingressServiceBackend: (import 'ingressServiceBackend.libsonnet'), + ingressSpec: (import 'ingressSpec.libsonnet'), + ingressStatus: (import 'ingressStatus.libsonnet'), + ingressTLS: (import 'ingressTLS.libsonnet'), + ipBlock: (import 'ipBlock.libsonnet'), + networkPolicy: (import 'networkPolicy.libsonnet'), + networkPolicyEgressRule: (import 'networkPolicyEgressRule.libsonnet'), + networkPolicyIngressRule: (import 'networkPolicyIngressRule.libsonnet'), + networkPolicyPeer: (import 'networkPolicyPeer.libsonnet'), + networkPolicyPort: (import 'networkPolicyPort.libsonnet'), + networkPolicySpec: (import 'networkPolicySpec.libsonnet'), + serviceBackendPort: (import 'serviceBackendPort.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicy.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicy.libsonnet new file mode 100644 index 0000000..49ca87f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicy.libsonnet @@ -0,0 +1,80 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='networkPolicy', url='', help='"NetworkPolicy describes what network traffic is allowed for a set of Pods"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of NetworkPolicy', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'networking.k8s.io/v1', + kind: 'NetworkPolicy', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"NetworkPolicySpec provides the specification of a NetworkPolicy"'), + spec: { + '#podSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + podSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { podSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { podSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { podSelector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { podSelector+: { matchLabels+: matchLabels } } }, + }, + '#withEgress':: d.fn(help='"egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8"', args=[d.arg(name='egress', type=d.T.array)]), + withEgress(egress): { spec+: { egress: if std.isArray(v=egress) then egress else [egress] } }, + '#withEgressMixin':: d.fn(help='"egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='egress', type=d.T.array)]), + withEgressMixin(egress): { spec+: { egress+: if std.isArray(v=egress) then egress else [egress] } }, + '#withIngress':: d.fn(help="\"ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)\"", args=[d.arg(name='ingress', type=d.T.array)]), + withIngress(ingress): { spec+: { ingress: if std.isArray(v=ingress) then ingress else [ingress] } }, + '#withIngressMixin':: d.fn(help="\"ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ingress', type=d.T.array)]), + withIngressMixin(ingress): { spec+: { ingress+: if std.isArray(v=ingress) then ingress else [ingress] } }, + '#withPolicyTypes':: d.fn(help='"policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\\"Ingress\\"], [\\"Egress\\"], or [\\"Ingress\\", \\"Egress\\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \\"Egress\\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \\"Egress\\" (since such a policy would not include an egress section and would otherwise default to just [ \\"Ingress\\" ]). This field is beta-level in 1.8"', args=[d.arg(name='policyTypes', type=d.T.array)]), + withPolicyTypes(policyTypes): { spec+: { policyTypes: if std.isArray(v=policyTypes) then policyTypes else [policyTypes] } }, + '#withPolicyTypesMixin':: d.fn(help='"policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\\"Ingress\\"], [\\"Egress\\"], or [\\"Ingress\\", \\"Egress\\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \\"Egress\\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \\"Egress\\" (since such a policy would not include an egress section and would otherwise default to just [ \\"Ingress\\" ]). This field is beta-level in 1.8"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='policyTypes', type=d.T.array)]), + withPolicyTypesMixin(policyTypes): { spec+: { policyTypes+: if std.isArray(v=policyTypes) then policyTypes else [policyTypes] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyEgressRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyEgressRule.libsonnet new file mode 100644 index 0000000..0ccc9fc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyEgressRule.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='networkPolicyEgressRule', url='', help="\"NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8\""), + '#withPorts':: d.fn(help='"ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list."', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { ports: if std.isArray(v=ports) then ports else [ports] }, + '#withPortsMixin':: d.fn(help='"ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { ports+: if std.isArray(v=ports) then ports else [ports] }, + '#withTo':: d.fn(help='"to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list."', args=[d.arg(name='to', type=d.T.array)]), + withTo(to): { to: if std.isArray(v=to) then to else [to] }, + '#withToMixin':: d.fn(help='"to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='to', type=d.T.array)]), + withToMixin(to): { to+: if std.isArray(v=to) then to else [to] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyIngressRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyIngressRule.libsonnet new file mode 100644 index 0000000..fbe27f9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyIngressRule.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='networkPolicyIngressRule', url='', help="\"NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.\""), + '#withFrom':: d.fn(help='"from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list."', args=[d.arg(name='from', type=d.T.array)]), + withFrom(from): { from: if std.isArray(v=from) then from else [from] }, + '#withFromMixin':: d.fn(help='"from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='from', type=d.T.array)]), + withFromMixin(from): { from+: if std.isArray(v=from) then from else [from] }, + '#withPorts':: d.fn(help='"ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list."', args=[d.arg(name='ports', type=d.T.array)]), + withPorts(ports): { ports: if std.isArray(v=ports) then ports else [ports] }, + '#withPortsMixin':: d.fn(help='"ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ports', type=d.T.array)]), + withPortsMixin(ports): { ports+: if std.isArray(v=ports) then ports else [ports] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyPeer.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyPeer.libsonnet new file mode 100644 index 0000000..beac3d0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyPeer.libsonnet @@ -0,0 +1,37 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='networkPolicyPeer', url='', help='"NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed"'), + '#ipBlock':: d.obj(help="\"IPBlock describes a particular CIDR (Ex. \\\"192.168.1.0/24\\\",\\\"2001:db8::/64\\\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.\""), + ipBlock: { + '#withCidr':: d.fn(help='"cidr is a string representing the IPBlock Valid examples are \\"192.168.1.0/24\\" or \\"2001:db8::/64\\', args=[d.arg(name='cidr', type=d.T.string)]), + withCidr(cidr): { ipBlock+: { cidr: cidr } }, + '#withExcept':: d.fn(help='"except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \\"192.168.1.0/24\\" or \\"2001:db8::/64\\" Except values will be rejected if they are outside the cidr range"', args=[d.arg(name='except', type=d.T.array)]), + withExcept(except): { ipBlock+: { except: if std.isArray(v=except) then except else [except] } }, + '#withExceptMixin':: d.fn(help='"except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \\"192.168.1.0/24\\" or \\"2001:db8::/64\\" Except values will be rejected if they are outside the cidr range"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='except', type=d.T.array)]), + withExceptMixin(except): { ipBlock+: { except+: if std.isArray(v=except) then except else [except] } }, + }, + '#namespaceSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + namespaceSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { namespaceSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { namespaceSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { namespaceSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { namespaceSelector+: { matchLabels+: matchLabels } }, + }, + '#podSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + podSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { podSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { podSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { podSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { podSelector+: { matchLabels+: matchLabels } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyPort.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyPort.libsonnet new file mode 100644 index 0000000..3c98019 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicyPort.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='networkPolicyPort', url='', help='"NetworkPolicyPort describes a port to allow traffic on"'), + '#withEndPort':: d.fn(help='"endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port."', args=[d.arg(name='endPort', type=d.T.integer)]), + withEndPort(endPort): { endPort: endPort }, + '#withPort':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='port', type=d.T.string)]), + withPort(port): { port: port }, + '#withProtocol':: d.fn(help='"protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP."', args=[d.arg(name='protocol', type=d.T.string)]), + withProtocol(protocol): { protocol: protocol }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicySpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicySpec.libsonnet new file mode 100644 index 0000000..d8efd2f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/networkPolicySpec.libsonnet @@ -0,0 +1,29 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='networkPolicySpec', url='', help='"NetworkPolicySpec provides the specification of a NetworkPolicy"'), + '#podSelector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + podSelector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { podSelector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { podSelector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { podSelector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { podSelector+: { matchLabels+: matchLabels } }, + }, + '#withEgress':: d.fn(help='"egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8"', args=[d.arg(name='egress', type=d.T.array)]), + withEgress(egress): { egress: if std.isArray(v=egress) then egress else [egress] }, + '#withEgressMixin':: d.fn(help='"egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='egress', type=d.T.array)]), + withEgressMixin(egress): { egress+: if std.isArray(v=egress) then egress else [egress] }, + '#withIngress':: d.fn(help="\"ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)\"", args=[d.arg(name='ingress', type=d.T.array)]), + withIngress(ingress): { ingress: if std.isArray(v=ingress) then ingress else [ingress] }, + '#withIngressMixin':: d.fn(help="\"ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='ingress', type=d.T.array)]), + withIngressMixin(ingress): { ingress+: if std.isArray(v=ingress) then ingress else [ingress] }, + '#withPolicyTypes':: d.fn(help='"policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\\"Ingress\\"], [\\"Egress\\"], or [\\"Ingress\\", \\"Egress\\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \\"Egress\\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \\"Egress\\" (since such a policy would not include an egress section and would otherwise default to just [ \\"Ingress\\" ]). This field is beta-level in 1.8"', args=[d.arg(name='policyTypes', type=d.T.array)]), + withPolicyTypes(policyTypes): { policyTypes: if std.isArray(v=policyTypes) then policyTypes else [policyTypes] }, + '#withPolicyTypesMixin':: d.fn(help='"policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\\"Ingress\\"], [\\"Egress\\"], or [\\"Ingress\\", \\"Egress\\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \\"Egress\\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \\"Egress\\" (since such a policy would not include an egress section and would otherwise default to just [ \\"Ingress\\" ]). This field is beta-level in 1.8"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='policyTypes', type=d.T.array)]), + withPolicyTypesMixin(policyTypes): { policyTypes+: if std.isArray(v=policyTypes) then policyTypes else [policyTypes] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/serviceBackendPort.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/serviceBackendPort.libsonnet new file mode 100644 index 0000000..b3f4955 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1/serviceBackendPort.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceBackendPort', url='', help='"ServiceBackendPort is the service port being referenced."'), + '#withName':: d.fn(help='"name is the name of the port on the Service. This is a mutually exclusive setting with \\"Number\\"."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNumber':: d.fn(help='"number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \\"Name\\"."', args=[d.arg(name='number', type=d.T.integer)]), + withNumber(number): { number: number }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/ipAddress.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/ipAddress.libsonnet new file mode 100644 index 0000000..0bbfa21 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/ipAddress.libsonnet @@ -0,0 +1,68 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ipAddress', url='', help='"IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of IPAddress', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'networking.k8s.io/v1alpha1', + kind: 'IPAddress', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"IPAddressSpec describe the attributes in an IP Address."'), + spec: { + '#parentRef':: d.obj(help='"ParentReference describes a reference to a parent object."'), + parentRef: { + '#withGroup':: d.fn(help='"Group is the group of the object being referenced."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { spec+: { parentRef+: { group: group } } }, + '#withName':: d.fn(help='"Name is the name of the object being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { parentRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the object being referenced."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { parentRef+: { namespace: namespace } } }, + '#withResource':: d.fn(help='"Resource is the resource of the object being referenced."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { spec+: { parentRef+: { resource: resource } } }, + }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/ipAddressSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/ipAddressSpec.libsonnet new file mode 100644 index 0000000..95a01d1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/ipAddressSpec.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='ipAddressSpec', url='', help='"IPAddressSpec describe the attributes in an IP Address."'), + '#parentRef':: d.obj(help='"ParentReference describes a reference to a parent object."'), + parentRef: { + '#withGroup':: d.fn(help='"Group is the group of the object being referenced."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { parentRef+: { group: group } }, + '#withName':: d.fn(help='"Name is the name of the object being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { parentRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the object being referenced."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { parentRef+: { namespace: namespace } }, + '#withResource':: d.fn(help='"Resource is the resource of the object being referenced."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { parentRef+: { resource: resource } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/main.libsonnet new file mode 100644 index 0000000..094796e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/main.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1alpha1', url='', help=''), + ipAddress: (import 'ipAddress.libsonnet'), + ipAddressSpec: (import 'ipAddressSpec.libsonnet'), + parentReference: (import 'parentReference.libsonnet'), + serviceCIDR: (import 'serviceCIDR.libsonnet'), + serviceCIDRSpec: (import 'serviceCIDRSpec.libsonnet'), + serviceCIDRStatus: (import 'serviceCIDRStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/parentReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/parentReference.libsonnet new file mode 100644 index 0000000..8934617 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/parentReference.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='parentReference', url='', help='"ParentReference describes a reference to a parent object."'), + '#withGroup':: d.fn(help='"Group is the group of the object being referenced."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { group: group }, + '#withName':: d.fn(help='"Name is the name of the object being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"Namespace is the namespace of the object being referenced."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#withResource':: d.fn(help='"Resource is the resource of the object being referenced."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resource: resource }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDR.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDR.libsonnet new file mode 100644 index 0000000..7da564f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDR.libsonnet @@ -0,0 +1,61 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceCIDR', url='', help='"ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ServiceCIDR', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'networking.k8s.io/v1alpha1', + kind: 'ServiceCIDR', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services."'), + spec: { + '#withCidrs':: d.fn(help='"CIDRs defines the IP blocks in CIDR notation (e.g. \\"192.168.0.0/24\\" or \\"2001:db8::/64\\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable."', args=[d.arg(name='cidrs', type=d.T.array)]), + withCidrs(cidrs): { spec+: { cidrs: if std.isArray(v=cidrs) then cidrs else [cidrs] } }, + '#withCidrsMixin':: d.fn(help='"CIDRs defines the IP blocks in CIDR notation (e.g. \\"192.168.0.0/24\\" or \\"2001:db8::/64\\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='cidrs', type=d.T.array)]), + withCidrsMixin(cidrs): { spec+: { cidrs+: if std.isArray(v=cidrs) then cidrs else [cidrs] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDRSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDRSpec.libsonnet new file mode 100644 index 0000000..9b68bc7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDRSpec.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceCIDRSpec', url='', help='"ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services."'), + '#withCidrs':: d.fn(help='"CIDRs defines the IP blocks in CIDR notation (e.g. \\"192.168.0.0/24\\" or \\"2001:db8::/64\\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable."', args=[d.arg(name='cidrs', type=d.T.array)]), + withCidrs(cidrs): { cidrs: if std.isArray(v=cidrs) then cidrs else [cidrs] }, + '#withCidrsMixin':: d.fn(help='"CIDRs defines the IP blocks in CIDR notation (e.g. \\"192.168.0.0/24\\" or \\"2001:db8::/64\\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='cidrs', type=d.T.array)]), + withCidrsMixin(cidrs): { cidrs+: if std.isArray(v=cidrs) then cidrs else [cidrs] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDRStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDRStatus.libsonnet new file mode 100644 index 0000000..bfc5133 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/networking/v1alpha1/serviceCIDRStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='serviceCIDRStatus', url='', help='"ServiceCIDRStatus describes the current state of the ServiceCIDR."'), + '#withConditions':: d.fn(help='"conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state"', args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help='"conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/main.libsonnet new file mode 100644 index 0000000..eec7a2a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='node', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/main.libsonnet new file mode 100644 index 0000000..020318d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/main.libsonnet @@ -0,0 +1,7 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + overhead: (import 'overhead.libsonnet'), + runtimeClass: (import 'runtimeClass.libsonnet'), + scheduling: (import 'scheduling.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/overhead.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/overhead.libsonnet new file mode 100644 index 0000000..9960b6f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/overhead.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='overhead', url='', help='"Overhead structure represents the resource overhead associated with running a pod."'), + '#withPodFixed':: d.fn(help='"podFixed represents the fixed resource overhead associated with running a pod."', args=[d.arg(name='podFixed', type=d.T.object)]), + withPodFixed(podFixed): { podFixed: podFixed }, + '#withPodFixedMixin':: d.fn(help='"podFixed represents the fixed resource overhead associated with running a pod."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='podFixed', type=d.T.object)]), + withPodFixedMixin(podFixed): { podFixed+: podFixed }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/runtimeClass.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/runtimeClass.libsonnet new file mode 100644 index 0000000..40dda33 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/runtimeClass.libsonnet @@ -0,0 +1,74 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='runtimeClass', url='', help='"RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of RuntimeClass', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'node.k8s.io/v1', + kind: 'RuntimeClass', + } + self.metadata.withName(name=name), + '#overhead':: d.obj(help='"Overhead structure represents the resource overhead associated with running a pod."'), + overhead: { + '#withPodFixed':: d.fn(help='"podFixed represents the fixed resource overhead associated with running a pod."', args=[d.arg(name='podFixed', type=d.T.object)]), + withPodFixed(podFixed): { overhead+: { podFixed: podFixed } }, + '#withPodFixedMixin':: d.fn(help='"podFixed represents the fixed resource overhead associated with running a pod."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='podFixed', type=d.T.object)]), + withPodFixedMixin(podFixed): { overhead+: { podFixed+: podFixed } }, + }, + '#scheduling':: d.obj(help='"Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass."'), + scheduling: { + '#withNodeSelector':: d.fn(help="\"nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { scheduling+: { nodeSelector: nodeSelector } }, + '#withNodeSelectorMixin':: d.fn(help="\"nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { scheduling+: { nodeSelector+: nodeSelector } }, + '#withTolerations':: d.fn(help='"tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass."', args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { scheduling+: { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] } }, + '#withTolerationsMixin':: d.fn(help='"tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { scheduling+: { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] } }, + }, + '#withHandler':: d.fn(help='"handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \\"runc\\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable."', args=[d.arg(name='handler', type=d.T.string)]), + withHandler(handler): { handler: handler }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/scheduling.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/scheduling.libsonnet new file mode 100644 index 0000000..066bfbc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/node/v1/scheduling.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='scheduling', url='', help='"Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass."'), + '#withNodeSelector':: d.fn(help="\"nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.\"", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelector(nodeSelector): { nodeSelector: nodeSelector }, + '#withNodeSelectorMixin':: d.fn(help="\"nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='nodeSelector', type=d.T.object)]), + withNodeSelectorMixin(nodeSelector): { nodeSelector+: nodeSelector }, + '#withTolerations':: d.fn(help='"tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass."', args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerations(tolerations): { tolerations: if std.isArray(v=tolerations) then tolerations else [tolerations] }, + '#withTolerationsMixin':: d.fn(help='"tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='tolerations', type=d.T.array)]), + withTolerationsMixin(tolerations): { tolerations+: if std.isArray(v=tolerations) then tolerations else [tolerations] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/main.libsonnet new file mode 100644 index 0000000..534c0f4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='policy', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/eviction.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/eviction.libsonnet new file mode 100644 index 0000000..10a2ba8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/eviction.libsonnet @@ -0,0 +1,78 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='eviction', url='', help='"Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions."'), + '#deleteOptions':: d.obj(help='"DeleteOptions may be provided when deleting an API object."'), + deleteOptions: { + '#preconditions':: d.obj(help='"Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out."'), + preconditions: { + '#withResourceVersion':: d.fn(help='"Specifies the target ResourceVersion"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { deleteOptions+: { preconditions+: { resourceVersion: resourceVersion } } }, + '#withUid':: d.fn(help='"Specifies the target UID."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { deleteOptions+: { preconditions+: { uid: uid } } }, + }, + '#withApiVersion':: d.fn(help='"APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { deleteOptions+: { apiVersion: apiVersion } }, + '#withDryRun':: d.fn(help='"When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed"', args=[d.arg(name='dryRun', type=d.T.array)]), + withDryRun(dryRun): { deleteOptions+: { dryRun: if std.isArray(v=dryRun) then dryRun else [dryRun] } }, + '#withDryRunMixin':: d.fn(help='"When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='dryRun', type=d.T.array)]), + withDryRunMixin(dryRun): { deleteOptions+: { dryRun+: if std.isArray(v=dryRun) then dryRun else [dryRun] } }, + '#withGracePeriodSeconds':: d.fn(help='"The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately."', args=[d.arg(name='gracePeriodSeconds', type=d.T.integer)]), + withGracePeriodSeconds(gracePeriodSeconds): { deleteOptions+: { gracePeriodSeconds: gracePeriodSeconds } }, + '#withKind':: d.fn(help='"Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { deleteOptions+: { kind: kind } }, + '#withOrphanDependents':: d.fn(help="\"Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \\\"orphan\\\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.\"", args=[d.arg(name='orphanDependents', type=d.T.boolean)]), + withOrphanDependents(orphanDependents): { deleteOptions+: { orphanDependents: orphanDependents } }, + '#withPropagationPolicy':: d.fn(help="\"Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.\"", args=[d.arg(name='propagationPolicy', type=d.T.string)]), + withPropagationPolicy(propagationPolicy): { deleteOptions+: { propagationPolicy: propagationPolicy } }, + }, + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Eviction', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'policy/v1', + kind: 'Eviction', + } + self.metadata.withName(name=name), + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/main.libsonnet new file mode 100644 index 0000000..8edfbbf --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/main.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + eviction: (import 'eviction.libsonnet'), + podDisruptionBudget: (import 'podDisruptionBudget.libsonnet'), + podDisruptionBudgetSpec: (import 'podDisruptionBudgetSpec.libsonnet'), + podDisruptionBudgetStatus: (import 'podDisruptionBudgetStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudget.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudget.libsonnet new file mode 100644 index 0000000..4be9c09 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudget.libsonnet @@ -0,0 +1,74 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podDisruptionBudget', url='', help='"PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods"'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of PodDisruptionBudget', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'policy/v1', + kind: 'PodDisruptionBudget', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"PodDisruptionBudgetSpec is a description of a PodDisruptionBudget."'), + spec: { + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { spec+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { spec+: { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { spec+: { selector+: { matchLabels: matchLabels } } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { spec+: { selector+: { matchLabels+: matchLabels } } }, + }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { spec+: { maxUnavailable: maxUnavailable } }, + '#withMinAvailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='minAvailable', type=d.T.string)]), + withMinAvailable(minAvailable): { spec+: { minAvailable: minAvailable } }, + '#withUnhealthyPodEvictionPolicy':: d.fn(help='"UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\\"Ready\\",status=\\"True\\".\\n\\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\\n\\nIfHealthyBudget policy means that running pods (status.phase=\\"Running\\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\\n\\nAlwaysAllow policy means that all running pods (status.phase=\\"Running\\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\\n\\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\\n\\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default)."', args=[d.arg(name='unhealthyPodEvictionPolicy', type=d.T.string)]), + withUnhealthyPodEvictionPolicy(unhealthyPodEvictionPolicy): { spec+: { unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudgetSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudgetSpec.libsonnet new file mode 100644 index 0000000..93cd035 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudgetSpec.libsonnet @@ -0,0 +1,23 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podDisruptionBudgetSpec', url='', help='"PodDisruptionBudgetSpec is a description of a PodDisruptionBudget."'), + '#selector':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + selector: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } }, + }, + '#withMaxUnavailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='maxUnavailable', type=d.T.string)]), + withMaxUnavailable(maxUnavailable): { maxUnavailable: maxUnavailable }, + '#withMinAvailable':: d.fn(help='"IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number."', args=[d.arg(name='minAvailable', type=d.T.string)]), + withMinAvailable(minAvailable): { minAvailable: minAvailable }, + '#withUnhealthyPodEvictionPolicy':: d.fn(help='"UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\\"Ready\\",status=\\"True\\".\\n\\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\\n\\nIfHealthyBudget policy means that running pods (status.phase=\\"Running\\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\\n\\nAlwaysAllow policy means that all running pods (status.phase=\\"Running\\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\\n\\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\\n\\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default)."', args=[d.arg(name='unhealthyPodEvictionPolicy', type=d.T.string)]), + withUnhealthyPodEvictionPolicy(unhealthyPodEvictionPolicy): { unhealthyPodEvictionPolicy: unhealthyPodEvictionPolicy }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudgetStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudgetStatus.libsonnet new file mode 100644 index 0000000..2fa7a69 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/policy/v1/podDisruptionBudgetStatus.libsonnet @@ -0,0 +1,24 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podDisruptionBudgetStatus', url='', help='"PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system."'), + '#withConditions':: d.fn(help="\"Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\\n the number of allowed disruptions. Therefore no disruptions are\\n allowed and the status of the condition will be False.\\n- InsufficientPods: The number of pods are either at or below the number\\n required by the PodDisruptionBudget. No disruptions are\\n allowed and the status of the condition will be False.\\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\\n The condition will be True, and the number of allowed\\n disruptions are provided by the disruptionsAllowed property.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\\n the number of allowed disruptions. Therefore no disruptions are\\n allowed and the status of the condition will be False.\\n- InsufficientPods: The number of pods are either at or below the number\\n required by the PodDisruptionBudget. No disruptions are\\n allowed and the status of the condition will be False.\\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\\n The condition will be True, and the number of allowed\\n disruptions are provided by the disruptionsAllowed property.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withCurrentHealthy':: d.fn(help='"current number of healthy pods"', args=[d.arg(name='currentHealthy', type=d.T.integer)]), + withCurrentHealthy(currentHealthy): { currentHealthy: currentHealthy }, + '#withDesiredHealthy':: d.fn(help='"minimum desired number of healthy pods"', args=[d.arg(name='desiredHealthy', type=d.T.integer)]), + withDesiredHealthy(desiredHealthy): { desiredHealthy: desiredHealthy }, + '#withDisruptedPods':: d.fn(help="\"DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.\"", args=[d.arg(name='disruptedPods', type=d.T.object)]), + withDisruptedPods(disruptedPods): { disruptedPods: disruptedPods }, + '#withDisruptedPodsMixin':: d.fn(help="\"DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='disruptedPods', type=d.T.object)]), + withDisruptedPodsMixin(disruptedPods): { disruptedPods+: disruptedPods }, + '#withDisruptionsAllowed':: d.fn(help='"Number of pod disruptions that are currently allowed."', args=[d.arg(name='disruptionsAllowed', type=d.T.integer)]), + withDisruptionsAllowed(disruptionsAllowed): { disruptionsAllowed: disruptionsAllowed }, + '#withExpectedPods':: d.fn(help='"total number of pods counted by this disruption budget"', args=[d.arg(name='expectedPods', type=d.T.integer)]), + withExpectedPods(expectedPods): { expectedPods: expectedPods }, + '#withObservedGeneration':: d.fn(help="\"Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.\"", args=[d.arg(name='observedGeneration', type=d.T.integer)]), + withObservedGeneration(observedGeneration): { observedGeneration: observedGeneration }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/main.libsonnet new file mode 100644 index 0000000..de8fa2e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='rbac', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/aggregationRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/aggregationRule.libsonnet new file mode 100644 index 0000000..086524f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/aggregationRule.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='aggregationRule', url='', help='"AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole"'), + '#withClusterRoleSelectors':: d.fn(help="\"ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added\"", args=[d.arg(name='clusterRoleSelectors', type=d.T.array)]), + withClusterRoleSelectors(clusterRoleSelectors): { clusterRoleSelectors: if std.isArray(v=clusterRoleSelectors) then clusterRoleSelectors else [clusterRoleSelectors] }, + '#withClusterRoleSelectorsMixin':: d.fn(help="\"ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='clusterRoleSelectors', type=d.T.array)]), + withClusterRoleSelectorsMixin(clusterRoleSelectors): { clusterRoleSelectors+: if std.isArray(v=clusterRoleSelectors) then clusterRoleSelectors else [clusterRoleSelectors] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/clusterRole.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/clusterRole.libsonnet new file mode 100644 index 0000000..2b0192b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/clusterRole.libsonnet @@ -0,0 +1,65 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='clusterRole', url='', help='"ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding."'), + '#aggregationRule':: d.obj(help='"AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole"'), + aggregationRule: { + '#withClusterRoleSelectors':: d.fn(help="\"ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added\"", args=[d.arg(name='clusterRoleSelectors', type=d.T.array)]), + withClusterRoleSelectors(clusterRoleSelectors): { aggregationRule+: { clusterRoleSelectors: if std.isArray(v=clusterRoleSelectors) then clusterRoleSelectors else [clusterRoleSelectors] } }, + '#withClusterRoleSelectorsMixin':: d.fn(help="\"ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='clusterRoleSelectors', type=d.T.array)]), + withClusterRoleSelectorsMixin(clusterRoleSelectors): { aggregationRule+: { clusterRoleSelectors+: if std.isArray(v=clusterRoleSelectors) then clusterRoleSelectors else [clusterRoleSelectors] } }, + }, + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ClusterRole', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRole', + } + self.metadata.withName(name=name), + '#withRules':: d.fn(help='"Rules holds all the PolicyRules for this ClusterRole"', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { rules: if std.isArray(v=rules) then rules else [rules] }, + '#withRulesMixin':: d.fn(help='"Rules holds all the PolicyRules for this ClusterRole"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { rules+: if std.isArray(v=rules) then rules else [rules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/clusterRoleBinding.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/clusterRoleBinding.libsonnet new file mode 100644 index 0000000..4a29e74 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/clusterRoleBinding.libsonnet @@ -0,0 +1,67 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='clusterRoleBinding', url='', help='"ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ClusterRoleBinding', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'ClusterRoleBinding', + } + self.metadata.withName(name=name), + '#roleRef':: d.obj(help='"RoleRef contains information that points to the role being used"'), + roleRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced"', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { roleRef+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { roleRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { roleRef+: { name: name } }, + }, + '#withSubjects':: d.fn(help='"Subjects holds references to the objects the role applies to."', args=[d.arg(name='subjects', type=d.T.array)]), + withSubjects(subjects): { subjects: if std.isArray(v=subjects) then subjects else [subjects] }, + '#withSubjectsMixin':: d.fn(help='"Subjects holds references to the objects the role applies to."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='subjects', type=d.T.array)]), + withSubjectsMixin(subjects): { subjects+: if std.isArray(v=subjects) then subjects else [subjects] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/main.libsonnet new file mode 100644 index 0000000..30ab3dd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/main.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + aggregationRule: (import 'aggregationRule.libsonnet'), + clusterRole: (import 'clusterRole.libsonnet'), + clusterRoleBinding: (import 'clusterRoleBinding.libsonnet'), + policyRule: (import 'policyRule.libsonnet'), + role: (import 'role.libsonnet'), + roleBinding: (import 'roleBinding.libsonnet'), + roleRef: (import 'roleRef.libsonnet'), + subject: (import 'subject.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/policyRule.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/policyRule.libsonnet new file mode 100644 index 0000000..e42ac30 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/policyRule.libsonnet @@ -0,0 +1,26 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='policyRule', url='', help='"PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to."'), + '#withApiGroups':: d.fn(help='"APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \\"\\" represents the core API group and \\"*\\" represents all API groups."', args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroups(apiGroups): { apiGroups: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withApiGroupsMixin':: d.fn(help='"APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \\"\\" represents the core API group and \\"*\\" represents all API groups."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='apiGroups', type=d.T.array)]), + withApiGroupsMixin(apiGroups): { apiGroups+: if std.isArray(v=apiGroups) then apiGroups else [apiGroups] }, + '#withNonResourceURLs':: d.fn(help='"NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \\"pods\\" or \\"secrets\\") or non-resource URL paths (such as \\"/api\\"), but not both."', args=[d.arg(name='nonResourceURLs', type=d.T.array)]), + withNonResourceURLs(nonResourceURLs): { nonResourceURLs: if std.isArray(v=nonResourceURLs) then nonResourceURLs else [nonResourceURLs] }, + '#withNonResourceURLsMixin':: d.fn(help='"NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \\"pods\\" or \\"secrets\\") or non-resource URL paths (such as \\"/api\\"), but not both."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nonResourceURLs', type=d.T.array)]), + withNonResourceURLsMixin(nonResourceURLs): { nonResourceURLs+: if std.isArray(v=nonResourceURLs) then nonResourceURLs else [nonResourceURLs] }, + '#withResourceNames':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed."', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNames(resourceNames): { resourceNames: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResourceNamesMixin':: d.fn(help='"ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceNames', type=d.T.array)]), + withResourceNamesMixin(resourceNames): { resourceNames+: if std.isArray(v=resourceNames) then resourceNames else [resourceNames] }, + '#withResources':: d.fn(help="\"Resources is a list of resources this rule applies to. '*' represents all resources.\"", args=[d.arg(name='resources', type=d.T.array)]), + withResources(resources): { resources: if std.isArray(v=resources) then resources else [resources] }, + '#withResourcesMixin':: d.fn(help="\"Resources is a list of resources this rule applies to. '*' represents all resources.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='resources', type=d.T.array)]), + withResourcesMixin(resources): { resources+: if std.isArray(v=resources) then resources else [resources] }, + '#withVerbs':: d.fn(help="\"Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.\"", args=[d.arg(name='verbs', type=d.T.array)]), + withVerbs(verbs): { verbs: if std.isArray(v=verbs) then verbs else [verbs] }, + '#withVerbsMixin':: d.fn(help="\"Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='verbs', type=d.T.array)]), + withVerbsMixin(verbs): { verbs+: if std.isArray(v=verbs) then verbs else [verbs] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/role.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/role.libsonnet new file mode 100644 index 0000000..295f625 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/role.libsonnet @@ -0,0 +1,58 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='role', url='', help='"Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of Role', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'Role', + } + self.metadata.withName(name=name), + '#withRules':: d.fn(help='"Rules holds all the PolicyRules for this Role"', args=[d.arg(name='rules', type=d.T.array)]), + withRules(rules): { rules: if std.isArray(v=rules) then rules else [rules] }, + '#withRulesMixin':: d.fn(help='"Rules holds all the PolicyRules for this Role"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]), + withRulesMixin(rules): { rules+: if std.isArray(v=rules) then rules else [rules] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/roleBinding.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/roleBinding.libsonnet new file mode 100644 index 0000000..75747fe --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/roleBinding.libsonnet @@ -0,0 +1,67 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='roleBinding', url='', help='"RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of RoleBinding', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'rbac.authorization.k8s.io/v1', + kind: 'RoleBinding', + } + self.metadata.withName(name=name), + '#roleRef':: d.obj(help='"RoleRef contains information that points to the role being used"'), + roleRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced"', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { roleRef+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { roleRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { roleRef+: { name: name } }, + }, + '#withSubjects':: d.fn(help='"Subjects holds references to the objects the role applies to."', args=[d.arg(name='subjects', type=d.T.array)]), + withSubjects(subjects): { subjects: if std.isArray(v=subjects) then subjects else [subjects] }, + '#withSubjectsMixin':: d.fn(help='"Subjects holds references to the objects the role applies to."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='subjects', type=d.T.array)]), + withSubjectsMixin(subjects): { subjects+: if std.isArray(v=subjects) then subjects else [subjects] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/roleRef.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/roleRef.libsonnet new file mode 100644 index 0000000..870b3ac --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/roleRef.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='roleRef', url='', help='"RoleRef contains information that points to the role being used"'), + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced"', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { apiGroup: apiGroup }, + '#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/subject.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/subject.libsonnet new file mode 100644 index 0000000..06c6868 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/rbac/v1/subject.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='subject', url='', help='"Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names."'), + '#withApiGroup':: d.fn(help='"APIGroup holds the API group of the referenced subject. Defaults to \\"\\" for ServiceAccount subjects. Defaults to \\"rbac.authorization.k8s.io\\" for User and Group subjects."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { apiGroup: apiGroup }, + '#withKind':: d.fn(help='"Kind of object being referenced. Values defined by this API group are \\"User\\", \\"Group\\", and \\"ServiceAccount\\". If the Authorizer does not recognized the kind value, the Authorizer should report an error."', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"Name of the object being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"Namespace of the referenced object. If the object kind is non-namespace, such as \\"User\\" or \\"Group\\", and this value is not empty the Authorizer should report an error."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/main.libsonnet new file mode 100644 index 0000000..98b5e9e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resource', url='', help=''), + v1alpha2: (import 'v1alpha2/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/allocationResult.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/allocationResult.libsonnet new file mode 100644 index 0000000..569aad3 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/allocationResult.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='allocationResult', url='', help='"AllocationResult contains attributes of an allocated resource."'), + '#availableOnNodes':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + availableOnNodes: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { availableOnNodes+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { availableOnNodes+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } }, + }, + '#withResourceHandles':: d.fn(help='"ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\\n\\nSetting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in."', args=[d.arg(name='resourceHandles', type=d.T.array)]), + withResourceHandles(resourceHandles): { resourceHandles: if std.isArray(v=resourceHandles) then resourceHandles else [resourceHandles] }, + '#withResourceHandlesMixin':: d.fn(help='"ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\\n\\nSetting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceHandles', type=d.T.array)]), + withResourceHandlesMixin(resourceHandles): { resourceHandles+: if std.isArray(v=resourceHandles) then resourceHandles else [resourceHandles] }, + '#withShareable':: d.fn(help='"Shareable determines whether the resource supports more than one consumer at a time."', args=[d.arg(name='shareable', type=d.T.boolean)]), + withShareable(shareable): { shareable: shareable }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/driverAllocationResult.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/driverAllocationResult.libsonnet new file mode 100644 index 0000000..4dba314 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/driverAllocationResult.libsonnet @@ -0,0 +1,15 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='driverAllocationResult', url='', help='"DriverAllocationResult contains vendor parameters and the allocation result for one request."'), + '#namedResources':: d.obj(help='"NamedResourcesAllocationResult is used in AllocationResultModel."'), + namedResources: { + '#withName':: d.fn(help='"Name is the name of the selected resource instance."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { namedResources+: { name: name } }, + }, + '#withVendorRequestParameters':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='vendorRequestParameters', type=d.T.object)]), + withVendorRequestParameters(vendorRequestParameters): { vendorRequestParameters: vendorRequestParameters }, + '#withVendorRequestParametersMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='vendorRequestParameters', type=d.T.object)]), + withVendorRequestParametersMixin(vendorRequestParameters): { vendorRequestParameters+: vendorRequestParameters }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/driverRequests.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/driverRequests.libsonnet new file mode 100644 index 0000000..6a7a162 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/driverRequests.libsonnet @@ -0,0 +1,16 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='driverRequests', url='', help='"DriverRequests describes all resources that are needed from one particular driver."'), + '#withDriverName':: d.fn(help='"DriverName is the name used by the DRA driver kubelet plugin."', args=[d.arg(name='driverName', type=d.T.string)]), + withDriverName(driverName): { driverName: driverName }, + '#withRequests':: d.fn(help='"Requests describes all resources that are needed from the driver."', args=[d.arg(name='requests', type=d.T.array)]), + withRequests(requests): { requests: if std.isArray(v=requests) then requests else [requests] }, + '#withRequestsMixin':: d.fn(help='"Requests describes all resources that are needed from the driver."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='requests', type=d.T.array)]), + withRequestsMixin(requests): { requests+: if std.isArray(v=requests) then requests else [requests] }, + '#withVendorParameters':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='vendorParameters', type=d.T.object)]), + withVendorParameters(vendorParameters): { vendorParameters: vendorParameters }, + '#withVendorParametersMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='vendorParameters', type=d.T.object)]), + withVendorParametersMixin(vendorParameters): { vendorParameters+: vendorParameters }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/main.libsonnet new file mode 100644 index 0000000..f5d966d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/main.libsonnet @@ -0,0 +1,36 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1alpha2', url='', help=''), + allocationResult: (import 'allocationResult.libsonnet'), + driverAllocationResult: (import 'driverAllocationResult.libsonnet'), + driverRequests: (import 'driverRequests.libsonnet'), + namedResourcesAllocationResult: (import 'namedResourcesAllocationResult.libsonnet'), + namedResourcesAttribute: (import 'namedResourcesAttribute.libsonnet'), + namedResourcesFilter: (import 'namedResourcesFilter.libsonnet'), + namedResourcesInstance: (import 'namedResourcesInstance.libsonnet'), + namedResourcesIntSlice: (import 'namedResourcesIntSlice.libsonnet'), + namedResourcesRequest: (import 'namedResourcesRequest.libsonnet'), + namedResourcesResources: (import 'namedResourcesResources.libsonnet'), + namedResourcesStringSlice: (import 'namedResourcesStringSlice.libsonnet'), + podSchedulingContext: (import 'podSchedulingContext.libsonnet'), + podSchedulingContextSpec: (import 'podSchedulingContextSpec.libsonnet'), + podSchedulingContextStatus: (import 'podSchedulingContextStatus.libsonnet'), + resourceClaim: (import 'resourceClaim.libsonnet'), + resourceClaimConsumerReference: (import 'resourceClaimConsumerReference.libsonnet'), + resourceClaimParameters: (import 'resourceClaimParameters.libsonnet'), + resourceClaimParametersReference: (import 'resourceClaimParametersReference.libsonnet'), + resourceClaimSchedulingStatus: (import 'resourceClaimSchedulingStatus.libsonnet'), + resourceClaimSpec: (import 'resourceClaimSpec.libsonnet'), + resourceClaimStatus: (import 'resourceClaimStatus.libsonnet'), + resourceClaimTemplate: (import 'resourceClaimTemplate.libsonnet'), + resourceClaimTemplateSpec: (import 'resourceClaimTemplateSpec.libsonnet'), + resourceClass: (import 'resourceClass.libsonnet'), + resourceClassParameters: (import 'resourceClassParameters.libsonnet'), + resourceClassParametersReference: (import 'resourceClassParametersReference.libsonnet'), + resourceFilter: (import 'resourceFilter.libsonnet'), + resourceHandle: (import 'resourceHandle.libsonnet'), + resourceRequest: (import 'resourceRequest.libsonnet'), + resourceSlice: (import 'resourceSlice.libsonnet'), + structuredResourceHandle: (import 'structuredResourceHandle.libsonnet'), + vendorParameters: (import 'vendorParameters.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesAllocationResult.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesAllocationResult.libsonnet new file mode 100644 index 0000000..5ff952e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesAllocationResult.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedResourcesAllocationResult', url='', help='"NamedResourcesAllocationResult is used in AllocationResultModel."'), + '#withName':: d.fn(help='"Name is the name of the selected resource instance."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesAttribute.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesAttribute.libsonnet new file mode 100644 index 0000000..d966fba --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesAttribute.libsonnet @@ -0,0 +1,32 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedResourcesAttribute', url='', help='"NamedResourcesAttribute is a combination of an attribute name and its value."'), + '#intSlice':: d.obj(help='"NamedResourcesIntSlice contains a slice of 64-bit integers."'), + intSlice: { + '#withInts':: d.fn(help='"Ints is the slice of 64-bit integers."', args=[d.arg(name='ints', type=d.T.array)]), + withInts(ints): { intSlice+: { ints: if std.isArray(v=ints) then ints else [ints] } }, + '#withIntsMixin':: d.fn(help='"Ints is the slice of 64-bit integers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ints', type=d.T.array)]), + withIntsMixin(ints): { intSlice+: { ints+: if std.isArray(v=ints) then ints else [ints] } }, + }, + '#stringSlice':: d.obj(help='"NamedResourcesStringSlice contains a slice of strings."'), + stringSlice: { + '#withStrings':: d.fn(help='"Strings is the slice of strings."', args=[d.arg(name='strings', type=d.T.array)]), + withStrings(strings): { stringSlice+: { strings: if std.isArray(v=strings) then strings else [strings] } }, + '#withStringsMixin':: d.fn(help='"Strings is the slice of strings."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='strings', type=d.T.array)]), + withStringsMixin(strings): { stringSlice+: { strings+: if std.isArray(v=strings) then strings else [strings] } }, + }, + '#withBool':: d.fn(help='"BoolValue is a true/false value."', args=[d.arg(name='bool', type=d.T.boolean)]), + withBool(bool): { bool: bool }, + '#withInt':: d.fn(help='"IntValue is a 64-bit integer."', args=[d.arg(name='int', type=d.T.integer)]), + withInt(int): { int: int }, + '#withName':: d.fn(help='"Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withQuantity':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='quantity', type=d.T.string)]), + withQuantity(quantity): { quantity: quantity }, + '#withString':: d.fn(help='"StringValue is a string."', args=[d.arg(name='string', type=d.T.string)]), + withString(string): { string: string }, + '#withVersion':: d.fn(help='"VersionValue is a semantic version according to semver.org spec 2.0.0."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { version: version }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesFilter.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesFilter.libsonnet new file mode 100644 index 0000000..8a8b52f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesFilter.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedResourcesFilter', url='', help='"NamedResourcesFilter is used in ResourceFilterModel."'), + '#withSelector':: d.fn(help='"Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\\n\\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\\n\\n attributes.quantity[\\"a\\"].isGreaterThan(quantity(\\"0\\")) &&\\n attributes.stringslice[\\"b\\"].isSorted()"', args=[d.arg(name='selector', type=d.T.string)]), + withSelector(selector): { selector: selector }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesInstance.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesInstance.libsonnet new file mode 100644 index 0000000..c77da58 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesInstance.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedResourcesInstance', url='', help='"NamedResourcesInstance represents one individual hardware instance that can be selected based on its attributes."'), + '#withAttributes':: d.fn(help='"Attributes defines the attributes of this resource instance. The name of each attribute must be unique."', args=[d.arg(name='attributes', type=d.T.array)]), + withAttributes(attributes): { attributes: if std.isArray(v=attributes) then attributes else [attributes] }, + '#withAttributesMixin':: d.fn(help='"Attributes defines the attributes of this resource instance. The name of each attribute must be unique."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='attributes', type=d.T.array)]), + withAttributesMixin(attributes): { attributes+: if std.isArray(v=attributes) then attributes else [attributes] }, + '#withName':: d.fn(help='"Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesIntSlice.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesIntSlice.libsonnet new file mode 100644 index 0000000..01b3617 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesIntSlice.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedResourcesIntSlice', url='', help='"NamedResourcesIntSlice contains a slice of 64-bit integers."'), + '#withInts':: d.fn(help='"Ints is the slice of 64-bit integers."', args=[d.arg(name='ints', type=d.T.array)]), + withInts(ints): { ints: if std.isArray(v=ints) then ints else [ints] }, + '#withIntsMixin':: d.fn(help='"Ints is the slice of 64-bit integers."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ints', type=d.T.array)]), + withIntsMixin(ints): { ints+: if std.isArray(v=ints) then ints else [ints] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesRequest.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesRequest.libsonnet new file mode 100644 index 0000000..d2d15fd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesRequest.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedResourcesRequest', url='', help='"NamedResourcesRequest is used in ResourceRequestModel."'), + '#withSelector':: d.fn(help='"Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\\n\\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\\n\\n attributes.quantity[\\"a\\"].isGreaterThan(quantity(\\"0\\")) &&\\n attributes.stringslice[\\"b\\"].isSorted()"', args=[d.arg(name='selector', type=d.T.string)]), + withSelector(selector): { selector: selector }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesResources.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesResources.libsonnet new file mode 100644 index 0000000..32ecb80 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesResources.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedResourcesResources', url='', help='"NamedResourcesResources is used in ResourceModel."'), + '#withInstances':: d.fn(help='"The list of all individual resources instances currently available."', args=[d.arg(name='instances', type=d.T.array)]), + withInstances(instances): { instances: if std.isArray(v=instances) then instances else [instances] }, + '#withInstancesMixin':: d.fn(help='"The list of all individual resources instances currently available."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='instances', type=d.T.array)]), + withInstancesMixin(instances): { instances+: if std.isArray(v=instances) then instances else [instances] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesStringSlice.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesStringSlice.libsonnet new file mode 100644 index 0000000..32a1e00 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/namedResourcesStringSlice.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='namedResourcesStringSlice', url='', help='"NamedResourcesStringSlice contains a slice of strings."'), + '#withStrings':: d.fn(help='"Strings is the slice of strings."', args=[d.arg(name='strings', type=d.T.array)]), + withStrings(strings): { strings: if std.isArray(v=strings) then strings else [strings] }, + '#withStringsMixin':: d.fn(help='"Strings is the slice of strings."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='strings', type=d.T.array)]), + withStringsMixin(strings): { strings+: if std.isArray(v=strings) then strings else [strings] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContext.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContext.libsonnet new file mode 100644 index 0000000..91ffccd --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContext.libsonnet @@ -0,0 +1,63 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podSchedulingContext', url='', help='"PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \\"WaitForFirstConsumer\\" allocation mode.\\n\\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of PodSchedulingContext', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'resource.k8s.io/v1alpha2', + kind: 'PodSchedulingContext', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"PodSchedulingContextSpec describes where resources for the Pod are needed."'), + spec: { + '#withPotentialNodes':: d.fn(help='"PotentialNodes lists nodes where the Pod might be able to run.\\n\\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced."', args=[d.arg(name='potentialNodes', type=d.T.array)]), + withPotentialNodes(potentialNodes): { spec+: { potentialNodes: if std.isArray(v=potentialNodes) then potentialNodes else [potentialNodes] } }, + '#withPotentialNodesMixin':: d.fn(help='"PotentialNodes lists nodes where the Pod might be able to run.\\n\\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='potentialNodes', type=d.T.array)]), + withPotentialNodesMixin(potentialNodes): { spec+: { potentialNodes+: if std.isArray(v=potentialNodes) then potentialNodes else [potentialNodes] } }, + '#withSelectedNode':: d.fn(help='"SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \\"WaitForFirstConsumer\\" allocation is to be attempted."', args=[d.arg(name='selectedNode', type=d.T.string)]), + withSelectedNode(selectedNode): { spec+: { selectedNode: selectedNode } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContextSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContextSpec.libsonnet new file mode 100644 index 0000000..ec20974 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContextSpec.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podSchedulingContextSpec', url='', help='"PodSchedulingContextSpec describes where resources for the Pod are needed."'), + '#withPotentialNodes':: d.fn(help='"PotentialNodes lists nodes where the Pod might be able to run.\\n\\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced."', args=[d.arg(name='potentialNodes', type=d.T.array)]), + withPotentialNodes(potentialNodes): { potentialNodes: if std.isArray(v=potentialNodes) then potentialNodes else [potentialNodes] }, + '#withPotentialNodesMixin':: d.fn(help='"PotentialNodes lists nodes where the Pod might be able to run.\\n\\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='potentialNodes', type=d.T.array)]), + withPotentialNodesMixin(potentialNodes): { potentialNodes+: if std.isArray(v=potentialNodes) then potentialNodes else [potentialNodes] }, + '#withSelectedNode':: d.fn(help='"SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \\"WaitForFirstConsumer\\" allocation is to be attempted."', args=[d.arg(name='selectedNode', type=d.T.string)]), + withSelectedNode(selectedNode): { selectedNode: selectedNode }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContextStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContextStatus.libsonnet new file mode 100644 index 0000000..c3e78ff --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/podSchedulingContextStatus.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='podSchedulingContextStatus', url='', help='"PodSchedulingContextStatus describes where resources for the Pod can be allocated."'), + '#withResourceClaims':: d.fn(help='"ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \\"WaitForFirstConsumer\\" allocation mode."', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaims(resourceClaims): { resourceClaims: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] }, + '#withResourceClaimsMixin':: d.fn(help='"ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \\"WaitForFirstConsumer\\" allocation mode."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceClaims', type=d.T.array)]), + withResourceClaimsMixin(resourceClaims): { resourceClaims+: if std.isArray(v=resourceClaims) then resourceClaims else [resourceClaims] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaim.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaim.libsonnet new file mode 100644 index 0000000..18f7803 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaim.libsonnet @@ -0,0 +1,70 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaim', url='', help='"ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.\\n\\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ResourceClaim', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'resource.k8s.io/v1alpha2', + kind: 'ResourceClaim', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ResourceClaimSpec defines how a resource is to be allocated."'), + spec: { + '#parametersRef':: d.obj(help='"ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim."'), + parametersRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { spec+: { parametersRef+: { apiGroup: apiGroup } } }, + '#withKind':: d.fn(help="\"Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \\\"ConfigMap\\\".\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { parametersRef+: { kind: kind } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { parametersRef+: { name: name } } }, + }, + '#withAllocationMode':: d.fn(help='"Allocation can start immediately or when a Pod wants to use the resource. \\"WaitForFirstConsumer\\" is the default."', args=[d.arg(name='allocationMode', type=d.T.string)]), + withAllocationMode(allocationMode): { spec+: { allocationMode: allocationMode } }, + '#withResourceClassName':: d.fn(help='"ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment."', args=[d.arg(name='resourceClassName', type=d.T.string)]), + withResourceClassName(resourceClassName): { spec+: { resourceClassName: resourceClassName } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimConsumerReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimConsumerReference.libsonnet new file mode 100644 index 0000000..e04b19d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimConsumerReference.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaimConsumerReference', url='', help='"ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim."'), + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { apiGroup: apiGroup }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withResource':: d.fn(help='"Resource is the type of resource being referenced, for example \\"pods\\"."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resource: resource }, + '#withUid':: d.fn(help='"UID identifies exactly one incarnation of the resource."', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { uid: uid }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimParameters.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimParameters.libsonnet new file mode 100644 index 0000000..4bcc914 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimParameters.libsonnet @@ -0,0 +1,69 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaimParameters', url='', help='"ResourceClaimParameters defines resource requests for a ResourceClaim in an in-tree format understood by Kubernetes."'), + '#generatedFrom':: d.obj(help='"ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim."'), + generatedFrom: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { generatedFrom+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help="\"Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \\\"ConfigMap\\\".\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { generatedFrom+: { kind: kind } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { generatedFrom+: { name: name } }, + }, + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ResourceClaimParameters', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'resource.k8s.io/v1alpha2', + kind: 'ResourceClaimParameters', + } + self.metadata.withName(name=name), + '#withDriverRequests':: d.fn(help='"DriverRequests describes all resources that are needed for the allocated claim. A single claim may use resources coming from different drivers. For each driver, this array has at most one entry which then may have one or more per-driver requests.\\n\\nMay be empty, in which case the claim can always be allocated."', args=[d.arg(name='driverRequests', type=d.T.array)]), + withDriverRequests(driverRequests): { driverRequests: if std.isArray(v=driverRequests) then driverRequests else [driverRequests] }, + '#withDriverRequestsMixin':: d.fn(help='"DriverRequests describes all resources that are needed for the allocated claim. A single claim may use resources coming from different drivers. For each driver, this array has at most one entry which then may have one or more per-driver requests.\\n\\nMay be empty, in which case the claim can always be allocated."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='driverRequests', type=d.T.array)]), + withDriverRequestsMixin(driverRequests): { driverRequests+: if std.isArray(v=driverRequests) then driverRequests else [driverRequests] }, + '#withShareable':: d.fn(help='"Shareable indicates whether the allocated claim is meant to be shareable by multiple consumers at the same time."', args=[d.arg(name='shareable', type=d.T.boolean)]), + withShareable(shareable): { shareable: shareable }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimParametersReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimParametersReference.libsonnet new file mode 100644 index 0000000..f6e426a --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimParametersReference.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaimParametersReference', url='', help='"ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim."'), + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { apiGroup: apiGroup }, + '#withKind':: d.fn(help="\"Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \\\"ConfigMap\\\".\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimSchedulingStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimSchedulingStatus.libsonnet new file mode 100644 index 0000000..5a7a632 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimSchedulingStatus.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaimSchedulingStatus', url='', help='"ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \\"WaitForFirstConsumer\\" allocation mode."'), + '#withName':: d.fn(help='"Name matches the pod.spec.resourceClaims[*].Name field."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withUnsuitableNodes':: d.fn(help='"UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\\n\\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced."', args=[d.arg(name='unsuitableNodes', type=d.T.array)]), + withUnsuitableNodes(unsuitableNodes): { unsuitableNodes: if std.isArray(v=unsuitableNodes) then unsuitableNodes else [unsuitableNodes] }, + '#withUnsuitableNodesMixin':: d.fn(help='"UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\\n\\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='unsuitableNodes', type=d.T.array)]), + withUnsuitableNodesMixin(unsuitableNodes): { unsuitableNodes+: if std.isArray(v=unsuitableNodes) then unsuitableNodes else [unsuitableNodes] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimSpec.libsonnet new file mode 100644 index 0000000..12f08ae --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimSpec.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaimSpec', url='', help='"ResourceClaimSpec defines how a resource is to be allocated."'), + '#parametersRef':: d.obj(help='"ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim."'), + parametersRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { parametersRef+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help="\"Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \\\"ConfigMap\\\".\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { parametersRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { parametersRef+: { name: name } }, + }, + '#withAllocationMode':: d.fn(help='"Allocation can start immediately or when a Pod wants to use the resource. \\"WaitForFirstConsumer\\" is the default."', args=[d.arg(name='allocationMode', type=d.T.string)]), + withAllocationMode(allocationMode): { allocationMode: allocationMode }, + '#withResourceClassName':: d.fn(help='"ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment."', args=[d.arg(name='resourceClassName', type=d.T.string)]), + withResourceClassName(resourceClassName): { resourceClassName: resourceClassName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimStatus.libsonnet new file mode 100644 index 0000000..b036002 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimStatus.libsonnet @@ -0,0 +1,30 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaimStatus', url='', help='"ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are."'), + '#allocation':: d.obj(help='"AllocationResult contains attributes of an allocated resource."'), + allocation: { + '#availableOnNodes':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + availableOnNodes: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { allocation+: { availableOnNodes+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { allocation+: { availableOnNodes+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } }, + }, + '#withResourceHandles':: d.fn(help='"ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\\n\\nSetting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in."', args=[d.arg(name='resourceHandles', type=d.T.array)]), + withResourceHandles(resourceHandles): { allocation+: { resourceHandles: if std.isArray(v=resourceHandles) then resourceHandles else [resourceHandles] } }, + '#withResourceHandlesMixin':: d.fn(help='"ResourceHandles contain the state associated with an allocation that should be maintained throughout the lifetime of a claim. Each ResourceHandle contains data that should be passed to a specific kubelet plugin once it lands on a node. This data is returned by the driver after a successful allocation and is opaque to Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\\n\\nSetting this field is optional. It has a maximum size of 32 entries. If null (or empty), it is assumed this allocation will be processed by a single kubelet plugin with no ResourceHandle data attached. The name of the kubelet plugin invoked will match the DriverName set in the ResourceClaimStatus this AllocationResult is embedded in."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='resourceHandles', type=d.T.array)]), + withResourceHandlesMixin(resourceHandles): { allocation+: { resourceHandles+: if std.isArray(v=resourceHandles) then resourceHandles else [resourceHandles] } }, + '#withShareable':: d.fn(help='"Shareable determines whether the resource supports more than one consumer at a time."', args=[d.arg(name='shareable', type=d.T.boolean)]), + withShareable(shareable): { allocation+: { shareable: shareable } }, + }, + '#withDeallocationRequested':: d.fn(help='"DeallocationRequested indicates that a ResourceClaim is to be deallocated.\\n\\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\\n\\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor."', args=[d.arg(name='deallocationRequested', type=d.T.boolean)]), + withDeallocationRequested(deallocationRequested): { deallocationRequested: deallocationRequested }, + '#withDriverName':: d.fn(help='"DriverName is a copy of the driver name from the ResourceClass at the time when allocation started."', args=[d.arg(name='driverName', type=d.T.string)]), + withDriverName(driverName): { driverName: driverName }, + '#withReservedFor':: d.fn(help='"ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.\\n\\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced."', args=[d.arg(name='reservedFor', type=d.T.array)]), + withReservedFor(reservedFor): { reservedFor: if std.isArray(v=reservedFor) then reservedFor else [reservedFor] }, + '#withReservedForMixin':: d.fn(help='"ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.\\n\\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='reservedFor', type=d.T.array)]), + withReservedForMixin(reservedFor): { reservedFor+: if std.isArray(v=reservedFor) then reservedFor else [reservedFor] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimTemplate.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimTemplate.libsonnet new file mode 100644 index 0000000..54f9b26 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimTemplate.libsonnet @@ -0,0 +1,116 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaimTemplate', url='', help='"ResourceClaimTemplate is used to produce ResourceClaim objects."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ResourceClaimTemplate', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'resource.k8s.io/v1alpha2', + kind: 'ResourceClaimTemplate', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim."'), + spec: { + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { spec+: { metadata+: { annotations: annotations } } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { spec+: { metadata+: { annotations+: annotations } } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { spec+: { metadata+: { creationTimestamp: creationTimestamp } } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { spec+: { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { spec+: { metadata+: { deletionTimestamp: deletionTimestamp } } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { spec+: { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { spec+: { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { spec+: { metadata+: { generateName: generateName } } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { spec+: { metadata+: { generation: generation } } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { spec+: { metadata+: { labels: labels } } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { spec+: { metadata+: { labels+: labels } } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { spec+: { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { spec+: { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { metadata+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { metadata+: { namespace: namespace } } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { spec+: { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { spec+: { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { metadata+: { resourceVersion: resourceVersion } } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { spec+: { metadata+: { selfLink: selfLink } } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { metadata+: { uid: uid } } }, + }, + '#spec':: d.obj(help='"ResourceClaimSpec defines how a resource is to be allocated."'), + spec: { + '#parametersRef':: d.obj(help='"ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim."'), + parametersRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { spec+: { spec+: { parametersRef+: { apiGroup: apiGroup } } } }, + '#withKind':: d.fn(help="\"Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \\\"ConfigMap\\\".\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { spec+: { parametersRef+: { kind: kind } } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { spec+: { parametersRef+: { name: name } } } }, + }, + '#withAllocationMode':: d.fn(help='"Allocation can start immediately or when a Pod wants to use the resource. \\"WaitForFirstConsumer\\" is the default."', args=[d.arg(name='allocationMode', type=d.T.string)]), + withAllocationMode(allocationMode): { spec+: { spec+: { allocationMode: allocationMode } } }, + '#withResourceClassName':: d.fn(help='"ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment."', args=[d.arg(name='resourceClassName', type=d.T.string)]), + withResourceClassName(resourceClassName): { spec+: { spec+: { resourceClassName: resourceClassName } } }, + }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimTemplateSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimTemplateSpec.libsonnet new file mode 100644 index 0000000..69c42e9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClaimTemplateSpec.libsonnet @@ -0,0 +1,65 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClaimTemplateSpec', url='', help='"ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#spec':: d.obj(help='"ResourceClaimSpec defines how a resource is to be allocated."'), + spec: { + '#parametersRef':: d.obj(help='"ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim."'), + parametersRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { spec+: { parametersRef+: { apiGroup: apiGroup } } }, + '#withKind':: d.fn(help="\"Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \\\"ConfigMap\\\".\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { parametersRef+: { kind: kind } } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { parametersRef+: { name: name } } }, + }, + '#withAllocationMode':: d.fn(help='"Allocation can start immediately or when a Pod wants to use the resource. \\"WaitForFirstConsumer\\" is the default."', args=[d.arg(name='allocationMode', type=d.T.string)]), + withAllocationMode(allocationMode): { spec+: { allocationMode: allocationMode } }, + '#withResourceClassName':: d.fn(help='"ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment."', args=[d.arg(name='resourceClassName', type=d.T.string)]), + withResourceClassName(resourceClassName): { spec+: { resourceClassName: resourceClassName } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClass.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClass.libsonnet new file mode 100644 index 0000000..e6edc49 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClass.libsonnet @@ -0,0 +1,76 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClass', url='', help='"ResourceClass is used by administrators to influence how resources are allocated.\\n\\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ResourceClass', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'resource.k8s.io/v1alpha2', + kind: 'ResourceClass', + } + self.metadata.withName(name=name), + '#parametersRef':: d.obj(help='"ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass."'), + parametersRef: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { parametersRef+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help="\"Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { parametersRef+: { kind: kind } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { parametersRef+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { parametersRef+: { namespace: namespace } }, + }, + '#suitableNodes':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + suitableNodes: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { suitableNodes+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { suitableNodes+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } }, + }, + '#withDriverName':: d.fn(help='"DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.\\n\\nResource drivers have a unique name in forward domain order (acme.example.com)."', args=[d.arg(name='driverName', type=d.T.string)]), + withDriverName(driverName): { driverName: driverName }, + '#withStructuredParameters':: d.fn(help='"If and only if allocation of claims using this class is handled via structured parameters, then StructuredParameters must be set to true."', args=[d.arg(name='structuredParameters', type=d.T.boolean)]), + withStructuredParameters(structuredParameters): { structuredParameters: structuredParameters }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClassParameters.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClassParameters.libsonnet new file mode 100644 index 0000000..f8fd85b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClassParameters.libsonnet @@ -0,0 +1,73 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClassParameters', url='', help='"ResourceClassParameters defines resource requests for a ResourceClass in an in-tree format understood by Kubernetes."'), + '#generatedFrom':: d.obj(help='"ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass."'), + generatedFrom: { + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { generatedFrom+: { apiGroup: apiGroup } }, + '#withKind':: d.fn(help="\"Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { generatedFrom+: { kind: kind } }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { generatedFrom+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { generatedFrom+: { namespace: namespace } }, + }, + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of ResourceClassParameters', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'resource.k8s.io/v1alpha2', + kind: 'ResourceClassParameters', + } + self.metadata.withName(name=name), + '#withFilters':: d.fn(help='"Filters describes additional contraints that must be met when using the class."', args=[d.arg(name='filters', type=d.T.array)]), + withFilters(filters): { filters: if std.isArray(v=filters) then filters else [filters] }, + '#withFiltersMixin':: d.fn(help='"Filters describes additional contraints that must be met when using the class."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='filters', type=d.T.array)]), + withFiltersMixin(filters): { filters+: if std.isArray(v=filters) then filters else [filters] }, + '#withVendorParameters':: d.fn(help='"VendorParameters are arbitrary setup parameters for all claims using this class. They are ignored while allocating the claim. There must not be more than one entry per driver."', args=[d.arg(name='vendorParameters', type=d.T.array)]), + withVendorParameters(vendorParameters): { vendorParameters: if std.isArray(v=vendorParameters) then vendorParameters else [vendorParameters] }, + '#withVendorParametersMixin':: d.fn(help='"VendorParameters are arbitrary setup parameters for all claims using this class. They are ignored while allocating the claim. There must not be more than one entry per driver."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='vendorParameters', type=d.T.array)]), + withVendorParametersMixin(vendorParameters): { vendorParameters+: if std.isArray(v=vendorParameters) then vendorParameters else [vendorParameters] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClassParametersReference.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClassParametersReference.libsonnet new file mode 100644 index 0000000..68ea937 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceClassParametersReference.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceClassParametersReference', url='', help='"ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass."'), + '#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources."', args=[d.arg(name='apiGroup', type=d.T.string)]), + withApiGroup(apiGroup): { apiGroup: apiGroup }, + '#withKind':: d.fn(help="\"Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.\"", args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { kind: kind }, + '#withName':: d.fn(help='"Name is the name of resource being referenced."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNamespace':: d.fn(help='"Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { namespace: namespace }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceFilter.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceFilter.libsonnet new file mode 100644 index 0000000..e2221c0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceFilter.libsonnet @@ -0,0 +1,13 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceFilter', url='', help='"ResourceFilter is a filter for resources from one particular driver."'), + '#namedResources':: d.obj(help='"NamedResourcesFilter is used in ResourceFilterModel."'), + namedResources: { + '#withSelector':: d.fn(help='"Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\\n\\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\\n\\n attributes.quantity[\\"a\\"].isGreaterThan(quantity(\\"0\\")) &&\\n attributes.stringslice[\\"b\\"].isSorted()"', args=[d.arg(name='selector', type=d.T.string)]), + withSelector(selector): { namedResources+: { selector: selector } }, + }, + '#withDriverName':: d.fn(help='"DriverName is the name used by the DRA driver kubelet plugin."', args=[d.arg(name='driverName', type=d.T.string)]), + withDriverName(driverName): { driverName: driverName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceHandle.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceHandle.libsonnet new file mode 100644 index 0000000..70f1bb7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceHandle.libsonnet @@ -0,0 +1,27 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceHandle', url='', help='"ResourceHandle holds opaque resource data for processing by a specific kubelet plugin."'), + '#structuredData':: d.obj(help='"StructuredResourceHandle is the in-tree representation of the allocation result."'), + structuredData: { + '#withNodeName':: d.fn(help='"NodeName is the name of the node providing the necessary resources if the resources are local to a node."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { structuredData+: { nodeName: nodeName } }, + '#withResults':: d.fn(help='"Results lists all allocated driver resources."', args=[d.arg(name='results', type=d.T.array)]), + withResults(results): { structuredData+: { results: if std.isArray(v=results) then results else [results] } }, + '#withResultsMixin':: d.fn(help='"Results lists all allocated driver resources."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='results', type=d.T.array)]), + withResultsMixin(results): { structuredData+: { results+: if std.isArray(v=results) then results else [results] } }, + '#withVendorClaimParameters':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='vendorClaimParameters', type=d.T.object)]), + withVendorClaimParameters(vendorClaimParameters): { structuredData+: { vendorClaimParameters: vendorClaimParameters } }, + '#withVendorClaimParametersMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='vendorClaimParameters', type=d.T.object)]), + withVendorClaimParametersMixin(vendorClaimParameters): { structuredData+: { vendorClaimParameters+: vendorClaimParameters } }, + '#withVendorClassParameters':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='vendorClassParameters', type=d.T.object)]), + withVendorClassParameters(vendorClassParameters): { structuredData+: { vendorClassParameters: vendorClassParameters } }, + '#withVendorClassParametersMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='vendorClassParameters', type=d.T.object)]), + withVendorClassParametersMixin(vendorClassParameters): { structuredData+: { vendorClassParameters+: vendorClassParameters } }, + }, + '#withData':: d.fn(help='"Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.\\n\\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced."', args=[d.arg(name='data', type=d.T.string)]), + withData(data): { data: data }, + '#withDriverName':: d.fn(help="\"DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.\"", args=[d.arg(name='driverName', type=d.T.string)]), + withDriverName(driverName): { driverName: driverName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceRequest.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceRequest.libsonnet new file mode 100644 index 0000000..dde7573 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceRequest.libsonnet @@ -0,0 +1,15 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceRequest', url='', help='"ResourceRequest is a request for resources from one particular driver."'), + '#namedResources':: d.obj(help='"NamedResourcesRequest is used in ResourceRequestModel."'), + namedResources: { + '#withSelector':: d.fn(help='"Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/\\n\\nIn addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:\\n\\n attributes.quantity[\\"a\\"].isGreaterThan(quantity(\\"0\\")) &&\\n attributes.stringslice[\\"b\\"].isSorted()"', args=[d.arg(name='selector', type=d.T.string)]), + withSelector(selector): { namedResources+: { selector: selector } }, + }, + '#withVendorParameters':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='vendorParameters', type=d.T.object)]), + withVendorParameters(vendorParameters): { vendorParameters: vendorParameters }, + '#withVendorParametersMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='vendorParameters', type=d.T.object)]), + withVendorParametersMixin(vendorParameters): { vendorParameters+: vendorParameters }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceSlice.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceSlice.libsonnet new file mode 100644 index 0000000..2caff14 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/resourceSlice.libsonnet @@ -0,0 +1,65 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='resourceSlice', url='', help='"ResourceSlice provides information about available resources on individual nodes."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#namedResources':: d.obj(help='"NamedResourcesResources is used in ResourceModel."'), + namedResources: { + '#withInstances':: d.fn(help='"The list of all individual resources instances currently available."', args=[d.arg(name='instances', type=d.T.array)]), + withInstances(instances): { namedResources+: { instances: if std.isArray(v=instances) then instances else [instances] } }, + '#withInstancesMixin':: d.fn(help='"The list of all individual resources instances currently available."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='instances', type=d.T.array)]), + withInstancesMixin(instances): { namedResources+: { instances+: if std.isArray(v=instances) then instances else [instances] } }, + }, + '#new':: d.fn(help='new returns an instance of ResourceSlice', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'resource.k8s.io/v1alpha2', + kind: 'ResourceSlice', + } + self.metadata.withName(name=name), + '#withDriverName':: d.fn(help='"DriverName identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name."', args=[d.arg(name='driverName', type=d.T.string)]), + withDriverName(driverName): { driverName: driverName }, + '#withNodeName':: d.fn(help='"NodeName identifies the node which provides the resources if they are local to a node.\\n\\nA field selector can be used to list only ResourceSlice objects with a certain node name."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { nodeName: nodeName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/structuredResourceHandle.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/structuredResourceHandle.libsonnet new file mode 100644 index 0000000..516f88f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/structuredResourceHandle.libsonnet @@ -0,0 +1,20 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='structuredResourceHandle', url='', help='"StructuredResourceHandle is the in-tree representation of the allocation result."'), + '#withNodeName':: d.fn(help='"NodeName is the name of the node providing the necessary resources if the resources are local to a node."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { nodeName: nodeName }, + '#withResults':: d.fn(help='"Results lists all allocated driver resources."', args=[d.arg(name='results', type=d.T.array)]), + withResults(results): { results: if std.isArray(v=results) then results else [results] }, + '#withResultsMixin':: d.fn(help='"Results lists all allocated driver resources."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='results', type=d.T.array)]), + withResultsMixin(results): { results+: if std.isArray(v=results) then results else [results] }, + '#withVendorClaimParameters':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='vendorClaimParameters', type=d.T.object)]), + withVendorClaimParameters(vendorClaimParameters): { vendorClaimParameters: vendorClaimParameters }, + '#withVendorClaimParametersMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='vendorClaimParameters', type=d.T.object)]), + withVendorClaimParametersMixin(vendorClaimParameters): { vendorClaimParameters+: vendorClaimParameters }, + '#withVendorClassParameters':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='vendorClassParameters', type=d.T.object)]), + withVendorClassParameters(vendorClassParameters): { vendorClassParameters: vendorClassParameters }, + '#withVendorClassParametersMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='vendorClassParameters', type=d.T.object)]), + withVendorClassParametersMixin(vendorClassParameters): { vendorClassParameters+: vendorClassParameters }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/vendorParameters.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/vendorParameters.libsonnet new file mode 100644 index 0000000..9ec4887 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/resource/v1alpha2/vendorParameters.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='vendorParameters', url='', help='"VendorParameters are opaque parameters for one particular driver."'), + '#withDriverName':: d.fn(help='"DriverName is the name used by the DRA driver kubelet plugin."', args=[d.arg(name='driverName', type=d.T.string)]), + withDriverName(driverName): { driverName: driverName }, + '#withParameters':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"", args=[d.arg(name='parameters', type=d.T.object)]), + withParameters(parameters): { parameters: parameters }, + '#withParametersMixin':: d.fn(help="\"RawExtension is used to hold extensions in external versions.\\n\\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\\n\\n// Internal package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// External package:\\n\\n\\ttype MyAPIObject struct {\\n\\t\\truntime.TypeMeta `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype PluginA struct {\\n\\t\\tAOption string `json:\\\"aOption\\\"`\\n\\t}\\n\\n// On the wire, the JSON will look something like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\":\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='parameters', type=d.T.object)]), + withParametersMixin(parameters): { parameters+: parameters }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/main.libsonnet new file mode 100644 index 0000000..5029dd9 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='scheduling', url='', help=''), + v1: (import 'v1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/v1/main.libsonnet new file mode 100644 index 0000000..76a7ed5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/v1/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + priorityClass: (import 'priorityClass.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/v1/priorityClass.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/v1/priorityClass.libsonnet new file mode 100644 index 0000000..f0da21f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/scheduling/v1/priorityClass.libsonnet @@ -0,0 +1,62 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='priorityClass', url='', help='"PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of PriorityClass', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'scheduling.k8s.io/v1', + kind: 'PriorityClass', + } + self.metadata.withName(name=name), + '#withDescription':: d.fn(help='"description is an arbitrary string that usually provides guidelines on when this priority class should be used."', args=[d.arg(name='description', type=d.T.string)]), + withDescription(description): { description: description }, + '#withGlobalDefault':: d.fn(help='"globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority."', args=[d.arg(name='globalDefault', type=d.T.boolean)]), + withGlobalDefault(globalDefault): { globalDefault: globalDefault }, + '#withPreemptionPolicy':: d.fn(help='"preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset."', args=[d.arg(name='preemptionPolicy', type=d.T.string)]), + withPreemptionPolicy(preemptionPolicy): { preemptionPolicy: preemptionPolicy }, + '#withValue':: d.fn(help='"value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec."', args=[d.arg(name='value', type=d.T.integer)]), + withValue(value): { value: value }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/main.libsonnet new file mode 100644 index 0000000..b8129d8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/main.libsonnet @@ -0,0 +1,6 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storage', url='', help=''), + v1: (import 'v1/main.libsonnet'), + v1alpha1: (import 'v1alpha1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiDriver.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiDriver.libsonnet new file mode 100644 index 0000000..8aeddad --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiDriver.libsonnet @@ -0,0 +1,77 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='csiDriver', url='', help='"CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of CSIDriver', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIDriver', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"CSIDriverSpec is the specification of a CSIDriver."'), + spec: { + '#withAttachRequired':: d.fn(help='"attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\\n\\nThis field is immutable."', args=[d.arg(name='attachRequired', type=d.T.boolean)]), + withAttachRequired(attachRequired): { spec+: { attachRequired: attachRequired } }, + '#withFsGroupPolicy':: d.fn(help="\"fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\\n\\nThis field was immutable in Kubernetes \u003c 1.29 and now is mutable.\\n\\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.\"", args=[d.arg(name='fsGroupPolicy', type=d.T.string)]), + withFsGroupPolicy(fsGroupPolicy): { spec+: { fsGroupPolicy: fsGroupPolicy } }, + '#withPodInfoOnMount':: d.fn(help="\"podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\\n\\nThe CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.\\n\\nThe following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \\\"csi.storage.k8s.io/pod.name\\\": pod.Name \\\"csi.storage.k8s.io/pod.namespace\\\": pod.Namespace \\\"csi.storage.k8s.io/pod.uid\\\": string(pod.UID) \\\"csi.storage.k8s.io/ephemeral\\\": \\\"true\\\" if the volume is an ephemeral inline volume\\n defined by a CSIVolumeSource, otherwise \\\"false\\\"\\n\\n\\\"csi.storage.k8s.io/ephemeral\\\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \\\"Persistent\\\" and \\\"Ephemeral\\\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\\n\\nThis field was immutable in Kubernetes \u003c 1.29 and now is mutable.\"", args=[d.arg(name='podInfoOnMount', type=d.T.boolean)]), + withPodInfoOnMount(podInfoOnMount): { spec+: { podInfoOnMount: podInfoOnMount } }, + '#withRequiresRepublish':: d.fn(help='"requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\\n\\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container."', args=[d.arg(name='requiresRepublish', type=d.T.boolean)]), + withRequiresRepublish(requiresRepublish): { spec+: { requiresRepublish: requiresRepublish } }, + '#withSeLinuxMount':: d.fn(help="\"seLinuxMount specifies if the CSI driver supports \\\"-o context\\\" mount option.\\n\\nWhen \\\"true\\\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \\\"-o context=xyz\\\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\\n\\nWhen \\\"false\\\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\\n\\nDefault is \\\"false\\\".\"", args=[d.arg(name='seLinuxMount', type=d.T.boolean)]), + withSeLinuxMount(seLinuxMount): { spec+: { seLinuxMount: seLinuxMount } }, + '#withStorageCapacity':: d.fn(help='"storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\\n\\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\\n\\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\\n\\nThis field was immutable in Kubernetes <= 1.22 and now is mutable."', args=[d.arg(name='storageCapacity', type=d.T.boolean)]), + withStorageCapacity(storageCapacity): { spec+: { storageCapacity: storageCapacity } }, + '#withTokenRequests':: d.fn(help="\"tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \\\"csi.storage.k8s.io/serviceAccount.tokens\\\": {\\n \\\"\u003caudience\u003e\\\": {\\n \\\"token\\\": \u003ctoken\u003e,\\n \\\"expirationTimestamp\\\": \u003cexpiration timestamp in RFC3339\u003e,\\n },\\n ...\\n}\\n\\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.\"", args=[d.arg(name='tokenRequests', type=d.T.array)]), + withTokenRequests(tokenRequests): { spec+: { tokenRequests: if std.isArray(v=tokenRequests) then tokenRequests else [tokenRequests] } }, + '#withTokenRequestsMixin':: d.fn(help="\"tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \\\"csi.storage.k8s.io/serviceAccount.tokens\\\": {\\n \\\"\u003caudience\u003e\\\": {\\n \\\"token\\\": \u003ctoken\u003e,\\n \\\"expirationTimestamp\\\": \u003cexpiration timestamp in RFC3339\u003e,\\n },\\n ...\\n}\\n\\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tokenRequests', type=d.T.array)]), + withTokenRequestsMixin(tokenRequests): { spec+: { tokenRequests+: if std.isArray(v=tokenRequests) then tokenRequests else [tokenRequests] } }, + '#withVolumeLifecycleModes':: d.fn(help='"volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \\"Persistent\\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\\n\\nThe other mode is \\"Ephemeral\\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\\n\\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\\n\\nThis field is beta. This field is immutable."', args=[d.arg(name='volumeLifecycleModes', type=d.T.array)]), + withVolumeLifecycleModes(volumeLifecycleModes): { spec+: { volumeLifecycleModes: if std.isArray(v=volumeLifecycleModes) then volumeLifecycleModes else [volumeLifecycleModes] } }, + '#withVolumeLifecycleModesMixin':: d.fn(help='"volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \\"Persistent\\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\\n\\nThe other mode is \\"Ephemeral\\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\\n\\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\\n\\nThis field is beta. This field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeLifecycleModes', type=d.T.array)]), + withVolumeLifecycleModesMixin(volumeLifecycleModes): { spec+: { volumeLifecycleModes+: if std.isArray(v=volumeLifecycleModes) then volumeLifecycleModes else [volumeLifecycleModes] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiDriverSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiDriverSpec.libsonnet new file mode 100644 index 0000000..f88bd83 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiDriverSpec.libsonnet @@ -0,0 +1,26 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='csiDriverSpec', url='', help='"CSIDriverSpec is the specification of a CSIDriver."'), + '#withAttachRequired':: d.fn(help='"attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\\n\\nThis field is immutable."', args=[d.arg(name='attachRequired', type=d.T.boolean)]), + withAttachRequired(attachRequired): { attachRequired: attachRequired }, + '#withFsGroupPolicy':: d.fn(help="\"fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\\n\\nThis field was immutable in Kubernetes \u003c 1.29 and now is mutable.\\n\\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.\"", args=[d.arg(name='fsGroupPolicy', type=d.T.string)]), + withFsGroupPolicy(fsGroupPolicy): { fsGroupPolicy: fsGroupPolicy }, + '#withPodInfoOnMount':: d.fn(help="\"podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\\n\\nThe CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.\\n\\nThe following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \\\"csi.storage.k8s.io/pod.name\\\": pod.Name \\\"csi.storage.k8s.io/pod.namespace\\\": pod.Namespace \\\"csi.storage.k8s.io/pod.uid\\\": string(pod.UID) \\\"csi.storage.k8s.io/ephemeral\\\": \\\"true\\\" if the volume is an ephemeral inline volume\\n defined by a CSIVolumeSource, otherwise \\\"false\\\"\\n\\n\\\"csi.storage.k8s.io/ephemeral\\\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \\\"Persistent\\\" and \\\"Ephemeral\\\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\\n\\nThis field was immutable in Kubernetes \u003c 1.29 and now is mutable.\"", args=[d.arg(name='podInfoOnMount', type=d.T.boolean)]), + withPodInfoOnMount(podInfoOnMount): { podInfoOnMount: podInfoOnMount }, + '#withRequiresRepublish':: d.fn(help='"requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\\n\\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container."', args=[d.arg(name='requiresRepublish', type=d.T.boolean)]), + withRequiresRepublish(requiresRepublish): { requiresRepublish: requiresRepublish }, + '#withSeLinuxMount':: d.fn(help="\"seLinuxMount specifies if the CSI driver supports \\\"-o context\\\" mount option.\\n\\nWhen \\\"true\\\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \\\"-o context=xyz\\\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\\n\\nWhen \\\"false\\\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\\n\\nDefault is \\\"false\\\".\"", args=[d.arg(name='seLinuxMount', type=d.T.boolean)]), + withSeLinuxMount(seLinuxMount): { seLinuxMount: seLinuxMount }, + '#withStorageCapacity':: d.fn(help='"storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\\n\\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\\n\\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\\n\\nThis field was immutable in Kubernetes <= 1.22 and now is mutable."', args=[d.arg(name='storageCapacity', type=d.T.boolean)]), + withStorageCapacity(storageCapacity): { storageCapacity: storageCapacity }, + '#withTokenRequests':: d.fn(help="\"tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \\\"csi.storage.k8s.io/serviceAccount.tokens\\\": {\\n \\\"\u003caudience\u003e\\\": {\\n \\\"token\\\": \u003ctoken\u003e,\\n \\\"expirationTimestamp\\\": \u003cexpiration timestamp in RFC3339\u003e,\\n },\\n ...\\n}\\n\\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.\"", args=[d.arg(name='tokenRequests', type=d.T.array)]), + withTokenRequests(tokenRequests): { tokenRequests: if std.isArray(v=tokenRequests) then tokenRequests else [tokenRequests] }, + '#withTokenRequestsMixin':: d.fn(help="\"tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \\\"csi.storage.k8s.io/serviceAccount.tokens\\\": {\\n \\\"\u003caudience\u003e\\\": {\\n \\\"token\\\": \u003ctoken\u003e,\\n \\\"expirationTimestamp\\\": \u003cexpiration timestamp in RFC3339\u003e,\\n },\\n ...\\n}\\n\\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='tokenRequests', type=d.T.array)]), + withTokenRequestsMixin(tokenRequests): { tokenRequests+: if std.isArray(v=tokenRequests) then tokenRequests else [tokenRequests] }, + '#withVolumeLifecycleModes':: d.fn(help='"volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \\"Persistent\\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\\n\\nThe other mode is \\"Ephemeral\\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\\n\\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\\n\\nThis field is beta. This field is immutable."', args=[d.arg(name='volumeLifecycleModes', type=d.T.array)]), + withVolumeLifecycleModes(volumeLifecycleModes): { volumeLifecycleModes: if std.isArray(v=volumeLifecycleModes) then volumeLifecycleModes else [volumeLifecycleModes] }, + '#withVolumeLifecycleModesMixin':: d.fn(help='"volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \\"Persistent\\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\\n\\nThe other mode is \\"Ephemeral\\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\\n\\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\\n\\nThis field is beta. This field is immutable."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeLifecycleModes', type=d.T.array)]), + withVolumeLifecycleModesMixin(volumeLifecycleModes): { volumeLifecycleModes+: if std.isArray(v=volumeLifecycleModes) then volumeLifecycleModes else [volumeLifecycleModes] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNode.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNode.libsonnet new file mode 100644 index 0000000..b052ab0 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNode.libsonnet @@ -0,0 +1,61 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='csiNode', url='', help="\"CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.\""), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of CSINode', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSINode', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"CSINodeSpec holds information about the specification of all CSI drivers installed on a node"'), + spec: { + '#withDrivers':: d.fn(help='"drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty."', args=[d.arg(name='drivers', type=d.T.array)]), + withDrivers(drivers): { spec+: { drivers: if std.isArray(v=drivers) then drivers else [drivers] } }, + '#withDriversMixin':: d.fn(help='"drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='drivers', type=d.T.array)]), + withDriversMixin(drivers): { spec+: { drivers+: if std.isArray(v=drivers) then drivers else [drivers] } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNodeDriver.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNodeDriver.libsonnet new file mode 100644 index 0000000..b92b8dc --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNodeDriver.libsonnet @@ -0,0 +1,19 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='csiNodeDriver', url='', help='"CSINodeDriver holds information about the specification of one CSI driver installed on a node"'), + '#allocatable':: d.obj(help='"VolumeNodeResources is a set of resource limits for scheduling of volumes."'), + allocatable: { + '#withCount':: d.fn(help='"count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded."', args=[d.arg(name='count', type=d.T.integer)]), + withCount(count): { allocatable+: { count: count } }, + }, + '#withName':: d.fn(help='"name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { name: name }, + '#withNodeID':: d.fn(help='"nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \\"node1\\", but the storage system may refer to the same node as \\"nodeA\\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \\"nodeA\\" instead of \\"node1\\". This field is required."', args=[d.arg(name='nodeID', type=d.T.string)]), + withNodeID(nodeID): { nodeID: nodeID }, + '#withTopologyKeys':: d.fn(help='"topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \\"company.com/zone\\", \\"company.com/region\\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology."', args=[d.arg(name='topologyKeys', type=d.T.array)]), + withTopologyKeys(topologyKeys): { topologyKeys: if std.isArray(v=topologyKeys) then topologyKeys else [topologyKeys] }, + '#withTopologyKeysMixin':: d.fn(help='"topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \\"company.com/zone\\", \\"company.com/region\\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='topologyKeys', type=d.T.array)]), + withTopologyKeysMixin(topologyKeys): { topologyKeys+: if std.isArray(v=topologyKeys) then topologyKeys else [topologyKeys] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNodeSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNodeSpec.libsonnet new file mode 100644 index 0000000..a0a47b4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiNodeSpec.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='csiNodeSpec', url='', help='"CSINodeSpec holds information about the specification of all CSI drivers installed on a node"'), + '#withDrivers':: d.fn(help='"drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty."', args=[d.arg(name='drivers', type=d.T.array)]), + withDrivers(drivers): { drivers: if std.isArray(v=drivers) then drivers else [drivers] }, + '#withDriversMixin':: d.fn(help='"drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='drivers', type=d.T.array)]), + withDriversMixin(drivers): { drivers+: if std.isArray(v=drivers) then drivers else [drivers] }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiStorageCapacity.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiStorageCapacity.libsonnet new file mode 100644 index 0000000..c1e1484 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/csiStorageCapacity.libsonnet @@ -0,0 +1,71 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='csiStorageCapacity', url='', help='"CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\\n\\nFor example this can express things like: - StorageClass \\"standard\\" has \\"1234 GiB\\" available in \\"topology.kubernetes.io/zone=us-east1\\" - StorageClass \\"localssd\\" has \\"10 GiB\\" available in \\"kubernetes.io/hostname=knode-abc123\\"\\n\\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\\n\\nThe producer of these objects can decide which approach is more suitable.\\n\\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of CSIStorageCapacity', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'storage.k8s.io/v1', + kind: 'CSIStorageCapacity', + } + self.metadata.withName(name=name), + '#nodeTopology':: d.obj(help='"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects."'), + nodeTopology: { + '#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressions(matchExpressions): { nodeTopology+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]), + withMatchExpressionsMixin(matchExpressions): { nodeTopology+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } }, + '#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabels(matchLabels): { nodeTopology+: { matchLabels: matchLabels } }, + '#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \\"key\\", the operator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]), + withMatchLabelsMixin(matchLabels): { nodeTopology+: { matchLabels+: matchLabels } }, + }, + '#withCapacity':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='capacity', type=d.T.string)]), + withCapacity(capacity): { capacity: capacity }, + '#withMaximumVolumeSize':: d.fn(help="\"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\\n\\nThe serialization format is:\\n\\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\\n\\n\\t(Note that \u003csuffix\u003e may be empty, from the \\\"\\\" case in \u003cdecimalSI\u003e.)\\n\\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \\\"+\\\" | \\\"-\\\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\u003cdecimalSI\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\u003cdecimalExponent\u003e ::= \\\"e\\\" \u003csignedNumber\u003e | \\\"E\\\" \u003csignedNumber\u003e ```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\\n\\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n- 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.\"", args=[d.arg(name='maximumVolumeSize', type=d.T.string)]), + withMaximumVolumeSize(maximumVolumeSize): { maximumVolumeSize: maximumVolumeSize }, + '#withStorageClassName':: d.fn(help='"storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable."', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { storageClassName: storageClassName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/main.libsonnet new file mode 100644 index 0000000..10082c4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/main.libsonnet @@ -0,0 +1,18 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1', url='', help=''), + csiDriver: (import 'csiDriver.libsonnet'), + csiDriverSpec: (import 'csiDriverSpec.libsonnet'), + csiNode: (import 'csiNode.libsonnet'), + csiNodeDriver: (import 'csiNodeDriver.libsonnet'), + csiNodeSpec: (import 'csiNodeSpec.libsonnet'), + csiStorageCapacity: (import 'csiStorageCapacity.libsonnet'), + storageClass: (import 'storageClass.libsonnet'), + tokenRequest: (import 'tokenRequest.libsonnet'), + volumeAttachment: (import 'volumeAttachment.libsonnet'), + volumeAttachmentSource: (import 'volumeAttachmentSource.libsonnet'), + volumeAttachmentSpec: (import 'volumeAttachmentSpec.libsonnet'), + volumeAttachmentStatus: (import 'volumeAttachmentStatus.libsonnet'), + volumeError: (import 'volumeError.libsonnet'), + volumeNodeResources: (import 'volumeNodeResources.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/storageClass.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/storageClass.libsonnet new file mode 100644 index 0000000..15004ad --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/storageClass.libsonnet @@ -0,0 +1,74 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageClass', url='', help='"StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\\n\\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of StorageClass', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'storage.k8s.io/v1', + kind: 'StorageClass', + } + self.metadata.withName(name=name), + '#withAllowVolumeExpansion':: d.fn(help='"allowVolumeExpansion shows whether the storage class allow volume expand."', args=[d.arg(name='allowVolumeExpansion', type=d.T.boolean)]), + withAllowVolumeExpansion(allowVolumeExpansion): { allowVolumeExpansion: allowVolumeExpansion }, + '#withAllowedTopologies':: d.fn(help='"allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature."', args=[d.arg(name='allowedTopologies', type=d.T.array)]), + withAllowedTopologies(allowedTopologies): { allowedTopologies: if std.isArray(v=allowedTopologies) then allowedTopologies else [allowedTopologies] }, + '#withAllowedTopologiesMixin':: d.fn(help='"allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='allowedTopologies', type=d.T.array)]), + withAllowedTopologiesMixin(allowedTopologies): { allowedTopologies+: if std.isArray(v=allowedTopologies) then allowedTopologies else [allowedTopologies] }, + '#withMountOptions':: d.fn(help='"mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount of the PVs will simply fail if one is invalid."', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptions(mountOptions): { mountOptions: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] }, + '#withMountOptionsMixin':: d.fn(help='"mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount of the PVs will simply fail if one is invalid."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptionsMixin(mountOptions): { mountOptions+: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] }, + '#withParameters':: d.fn(help='"parameters holds the parameters for the provisioner that should create volumes of this storage class."', args=[d.arg(name='parameters', type=d.T.object)]), + withParameters(parameters): { parameters: parameters }, + '#withParametersMixin':: d.fn(help='"parameters holds the parameters for the provisioner that should create volumes of this storage class."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='parameters', type=d.T.object)]), + withParametersMixin(parameters): { parameters+: parameters }, + '#withProvisioner':: d.fn(help='"provisioner indicates the type of the provisioner."', args=[d.arg(name='provisioner', type=d.T.string)]), + withProvisioner(provisioner): { provisioner: provisioner }, + '#withReclaimPolicy':: d.fn(help='"reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete."', args=[d.arg(name='reclaimPolicy', type=d.T.string)]), + withReclaimPolicy(reclaimPolicy): { reclaimPolicy: reclaimPolicy }, + '#withVolumeBindingMode':: d.fn(help='"volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature."', args=[d.arg(name='volumeBindingMode', type=d.T.string)]), + withVolumeBindingMode(volumeBindingMode): { volumeBindingMode: volumeBindingMode }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/tokenRequest.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/tokenRequest.libsonnet new file mode 100644 index 0000000..d7a5578 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/tokenRequest.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='tokenRequest', url='', help='"TokenRequest contains parameters of a service account token."'), + '#withAudience':: d.fn(help='"audience is the intended audience of the token in \\"TokenRequestSpec\\". It will default to the audiences of kube apiserver."', args=[d.arg(name='audience', type=d.T.string)]), + withAudience(audience): { audience: audience }, + '#withExpirationSeconds':: d.fn(help='"expirationSeconds is the duration of validity of the token in \\"TokenRequestSpec\\". It has the same default value of \\"ExpirationSeconds\\" in \\"TokenRequestSpec\\"."', args=[d.arg(name='expirationSeconds', type=d.T.integer)]), + withExpirationSeconds(expirationSeconds): { expirationSeconds: expirationSeconds }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachment.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachment.libsonnet new file mode 100644 index 0000000..20b46a5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachment.libsonnet @@ -0,0 +1,486 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeAttachment', url='', help='"VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\\n\\nVolumeAttachment objects are non-namespaced."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of VolumeAttachment', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'storage.k8s.io/v1', + kind: 'VolumeAttachment', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"VolumeAttachmentSpec is the specification of a VolumeAttachment request."'), + spec: { + '#source':: d.obj(help='"VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set."'), + source: { + '#inlineVolumeSpec':: d.obj(help='"PersistentVolumeSpec is the specification of a persistent volume."'), + inlineVolumeSpec: { + '#awsElasticBlockStore':: d.obj(help='"Represents a Persistent Disk resource in AWS.\\n\\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling."'), + awsElasticBlockStore: { + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { awsElasticBlockStore+: { fsType: fsType } } } } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty)."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { spec+: { source+: { inlineVolumeSpec+: { awsElasticBlockStore+: { partition: partition } } } } }, + '#withReadOnly':: d.fn(help='"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { awsElasticBlockStore+: { readOnly: readOnly } } } } }, + '#withVolumeID':: d.fn(help='"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { spec+: { source+: { inlineVolumeSpec+: { awsElasticBlockStore+: { volumeID: volumeID } } } } }, + }, + '#azureDisk':: d.obj(help='"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."'), + azureDisk: { + '#withCachingMode':: d.fn(help='"cachingMode is the Host Caching mode: None, Read Only, Read Write."', args=[d.arg(name='cachingMode', type=d.T.string)]), + withCachingMode(cachingMode): { spec+: { source+: { inlineVolumeSpec+: { azureDisk+: { cachingMode: cachingMode } } } } }, + '#withDiskName':: d.fn(help='"diskName is the Name of the data disk in the blob storage"', args=[d.arg(name='diskName', type=d.T.string)]), + withDiskName(diskName): { spec+: { source+: { inlineVolumeSpec+: { azureDisk+: { diskName: diskName } } } } }, + '#withDiskURI':: d.fn(help='"diskURI is the URI of data disk in the blob storage"', args=[d.arg(name='diskURI', type=d.T.string)]), + withDiskURI(diskURI): { spec+: { source+: { inlineVolumeSpec+: { azureDisk+: { diskURI: diskURI } } } } }, + '#withFsType':: d.fn(help='"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { azureDisk+: { fsType: fsType } } } } }, + '#withKind':: d.fn(help='"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { source+: { inlineVolumeSpec+: { azureDisk+: { kind: kind } } } } }, + '#withReadOnly':: d.fn(help='"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { azureDisk+: { readOnly: readOnly } } } } }, + }, + '#azureFile':: d.obj(help='"AzureFile represents an Azure File Service mount on the host and bind mount to the pod."'), + azureFile: { + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { azureFile+: { readOnly: readOnly } } } } }, + '#withSecretName':: d.fn(help='"secretName is the name of secret that contains Azure Storage Account Name and Key"', args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { spec+: { source+: { inlineVolumeSpec+: { azureFile+: { secretName: secretName } } } } }, + '#withSecretNamespace':: d.fn(help='"secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod"', args=[d.arg(name='secretNamespace', type=d.T.string)]), + withSecretNamespace(secretNamespace): { spec+: { source+: { inlineVolumeSpec+: { azureFile+: { secretNamespace: secretNamespace } } } } }, + '#withShareName':: d.fn(help='"shareName is the azure Share Name"', args=[d.arg(name='shareName', type=d.T.string)]), + withShareName(shareName): { spec+: { source+: { inlineVolumeSpec+: { azureFile+: { shareName: shareName } } } } }, + }, + '#cephfs':: d.obj(help='"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."'), + cephfs: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { cephfs+: { secretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { cephfs+: { secretRef+: { namespace: namespace } } } } } }, + }, + '#withMonitors':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { spec+: { source+: { inlineVolumeSpec+: { cephfs+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } } } } }, + '#withMonitorsMixin':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { spec+: { source+: { inlineVolumeSpec+: { cephfs+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } } } } }, + '#withPath':: d.fn(help='"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { source+: { inlineVolumeSpec+: { cephfs+: { path: path } } } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { cephfs+: { readOnly: readOnly } } } } }, + '#withSecretFile':: d.fn(help='"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='secretFile', type=d.T.string)]), + withSecretFile(secretFile): { spec+: { source+: { inlineVolumeSpec+: { cephfs+: { secretFile: secretFile } } } } }, + '#withUser':: d.fn(help='"user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { source+: { inlineVolumeSpec+: { cephfs+: { user: user } } } } }, + }, + '#cinder':: d.obj(help='"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."'), + cinder: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { cinder+: { secretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { cinder+: { secretRef+: { namespace: namespace } } } } } }, + }, + '#withFsType':: d.fn(help='"fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { cinder+: { fsType: fsType } } } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { cinder+: { readOnly: readOnly } } } } }, + '#withVolumeID':: d.fn(help='"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { spec+: { source+: { inlineVolumeSpec+: { cinder+: { volumeID: volumeID } } } } }, + }, + '#claimRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + claimRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { source+: { inlineVolumeSpec+: { claimRef+: { apiVersion: apiVersion } } } } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { spec+: { source+: { inlineVolumeSpec+: { claimRef+: { fieldPath: fieldPath } } } } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { source+: { inlineVolumeSpec+: { claimRef+: { kind: kind } } } } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { claimRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { claimRef+: { namespace: namespace } } } } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { source+: { inlineVolumeSpec+: { claimRef+: { resourceVersion: resourceVersion } } } } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { source+: { inlineVolumeSpec+: { claimRef+: { uid: uid } } } } }, + }, + '#csi':: d.obj(help='"Represents storage that is managed by an external CSI volume driver (Beta feature)"'), + csi: { + '#controllerExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { csi+: { controllerExpandSecretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { csi+: { controllerExpandSecretRef+: { namespace: namespace } } } } } }, + }, + '#controllerPublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerPublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { csi+: { controllerPublishSecretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { csi+: { controllerPublishSecretRef+: { namespace: namespace } } } } } }, + }, + '#nodeExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { csi+: { nodeExpandSecretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { csi+: { nodeExpandSecretRef+: { namespace: namespace } } } } } }, + }, + '#nodePublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodePublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { csi+: { nodePublishSecretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { csi+: { nodePublishSecretRef+: { namespace: namespace } } } } } }, + }, + '#nodeStageSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeStageSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { csi+: { nodeStageSecretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { csi+: { nodeStageSecretRef+: { namespace: namespace } } } } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume. Required."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { spec+: { source+: { inlineVolumeSpec+: { csi+: { driver: driver } } } } }, + '#withFsType':: d.fn(help='"fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\"."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { csi+: { fsType: fsType } } } } }, + '#withReadOnly':: d.fn(help='"readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write)."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { csi+: { readOnly: readOnly } } } } }, + '#withVolumeAttributes':: d.fn(help='"volumeAttributes of the volume to publish."', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributes(volumeAttributes): { spec+: { source+: { inlineVolumeSpec+: { csi+: { volumeAttributes: volumeAttributes } } } } }, + '#withVolumeAttributesMixin':: d.fn(help='"volumeAttributes of the volume to publish."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributesMixin(volumeAttributes): { spec+: { source+: { inlineVolumeSpec+: { csi+: { volumeAttributes+: volumeAttributes } } } } }, + '#withVolumeHandle':: d.fn(help='"volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required."', args=[d.arg(name='volumeHandle', type=d.T.string)]), + withVolumeHandle(volumeHandle): { spec+: { source+: { inlineVolumeSpec+: { csi+: { volumeHandle: volumeHandle } } } } }, + }, + '#fc':: d.obj(help='"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling."'), + fc: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { fc+: { fsType: fsType } } } } }, + '#withLun':: d.fn(help='"lun is Optional: FC target lun number"', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { spec+: { source+: { inlineVolumeSpec+: { fc+: { lun: lun } } } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { fc+: { readOnly: readOnly } } } } }, + '#withTargetWWNs':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNs(targetWWNs): { spec+: { source+: { inlineVolumeSpec+: { fc+: { targetWWNs: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } } } } }, + '#withTargetWWNsMixin':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNsMixin(targetWWNs): { spec+: { source+: { inlineVolumeSpec+: { fc+: { targetWWNs+: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } } } } }, + '#withWwids':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."', args=[d.arg(name='wwids', type=d.T.array)]), + withWwids(wwids): { spec+: { source+: { inlineVolumeSpec+: { fc+: { wwids: if std.isArray(v=wwids) then wwids else [wwids] } } } } }, + '#withWwidsMixin':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='wwids', type=d.T.array)]), + withWwidsMixin(wwids): { spec+: { source+: { inlineVolumeSpec+: { fc+: { wwids+: if std.isArray(v=wwids) then wwids else [wwids] } } } } }, + }, + '#flexVolume':: d.obj(help='"FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin."'), + flexVolume: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { flexVolume+: { secretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { flexVolume+: { secretRef+: { namespace: namespace } } } } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { spec+: { source+: { inlineVolumeSpec+: { flexVolume+: { driver: driver } } } } }, + '#withFsType':: d.fn(help='"fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default filesystem depends on FlexVolume script."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { flexVolume+: { fsType: fsType } } } } }, + '#withOptions':: d.fn(help='"options is Optional: this field holds extra command options if any."', args=[d.arg(name='options', type=d.T.object)]), + withOptions(options): { spec+: { source+: { inlineVolumeSpec+: { flexVolume+: { options: options } } } } }, + '#withOptionsMixin':: d.fn(help='"options is Optional: this field holds extra command options if any."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.object)]), + withOptionsMixin(options): { spec+: { source+: { inlineVolumeSpec+: { flexVolume+: { options+: options } } } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { flexVolume+: { readOnly: readOnly } } } } }, + }, + '#flocker':: d.obj(help='"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling."'), + flocker: { + '#withDatasetName':: d.fn(help='"datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"', args=[d.arg(name='datasetName', type=d.T.string)]), + withDatasetName(datasetName): { spec+: { source+: { inlineVolumeSpec+: { flocker+: { datasetName: datasetName } } } } }, + '#withDatasetUUID':: d.fn(help='"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset"', args=[d.arg(name='datasetUUID', type=d.T.string)]), + withDatasetUUID(datasetUUID): { spec+: { source+: { inlineVolumeSpec+: { flocker+: { datasetUUID: datasetUUID } } } } }, + }, + '#gcePersistentDisk':: d.obj(help='"Represents a Persistent Disk resource in Google Compute Engine.\\n\\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling."'), + gcePersistentDisk: { + '#withFsType':: d.fn(help='"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { gcePersistentDisk+: { fsType: fsType } } } } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { spec+: { source+: { inlineVolumeSpec+: { gcePersistentDisk+: { partition: partition } } } } }, + '#withPdName':: d.fn(help='"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='pdName', type=d.T.string)]), + withPdName(pdName): { spec+: { source+: { inlineVolumeSpec+: { gcePersistentDisk+: { pdName: pdName } } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { gcePersistentDisk+: { readOnly: readOnly } } } } }, + }, + '#glusterfs':: d.obj(help='"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."'), + glusterfs: { + '#withEndpoints':: d.fn(help='"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpoints', type=d.T.string)]), + withEndpoints(endpoints): { spec+: { source+: { inlineVolumeSpec+: { glusterfs+: { endpoints: endpoints } } } } }, + '#withEndpointsNamespace':: d.fn(help='"endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpointsNamespace', type=d.T.string)]), + withEndpointsNamespace(endpointsNamespace): { spec+: { source+: { inlineVolumeSpec+: { glusterfs+: { endpointsNamespace: endpointsNamespace } } } } }, + '#withPath':: d.fn(help='"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { source+: { inlineVolumeSpec+: { glusterfs+: { path: path } } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { glusterfs+: { readOnly: readOnly } } } } }, + }, + '#hostPath':: d.obj(help='"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling."'), + hostPath: { + '#withPath':: d.fn(help='"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { source+: { inlineVolumeSpec+: { hostPath+: { path: path } } } } }, + '#withType':: d.fn(help='"type for HostPath Volume Defaults to \\"\\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { spec+: { source+: { inlineVolumeSpec+: { hostPath+: { type: type } } } } }, + }, + '#iscsi':: d.obj(help='"ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."'), + iscsi: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { secretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { secretRef+: { namespace: namespace } } } } } }, + }, + '#withChapAuthDiscovery':: d.fn(help='"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"', args=[d.arg(name='chapAuthDiscovery', type=d.T.boolean)]), + withChapAuthDiscovery(chapAuthDiscovery): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { chapAuthDiscovery: chapAuthDiscovery } } } } }, + '#withChapAuthSession':: d.fn(help='"chapAuthSession defines whether support iSCSI Session CHAP authentication"', args=[d.arg(name='chapAuthSession', type=d.T.boolean)]), + withChapAuthSession(chapAuthSession): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { chapAuthSession: chapAuthSession } } } } }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { fsType: fsType } } } } }, + '#withInitiatorName':: d.fn(help='"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection."', args=[d.arg(name='initiatorName', type=d.T.string)]), + withInitiatorName(initiatorName): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { initiatorName: initiatorName } } } } }, + '#withIqn':: d.fn(help='"iqn is Target iSCSI Qualified Name."', args=[d.arg(name='iqn', type=d.T.string)]), + withIqn(iqn): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { iqn: iqn } } } } }, + '#withIscsiInterface':: d.fn(help="\"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).\"", args=[d.arg(name='iscsiInterface', type=d.T.string)]), + withIscsiInterface(iscsiInterface): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { iscsiInterface: iscsiInterface } } } } }, + '#withLun':: d.fn(help='"lun is iSCSI Target Lun number."', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { lun: lun } } } } }, + '#withPortals':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='portals', type=d.T.array)]), + withPortals(portals): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { portals: if std.isArray(v=portals) then portals else [portals] } } } } }, + '#withPortalsMixin':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='portals', type=d.T.array)]), + withPortalsMixin(portals): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { portals+: if std.isArray(v=portals) then portals else [portals] } } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { readOnly: readOnly } } } } }, + '#withTargetPortal':: d.fn(help='"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='targetPortal', type=d.T.string)]), + withTargetPortal(targetPortal): { spec+: { source+: { inlineVolumeSpec+: { iscsi+: { targetPortal: targetPortal } } } } }, + }, + '#local':: d.obj(help='"Local represents directly-attached storage with node affinity (Beta feature)"'), + 'local': { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default value is to auto-select a filesystem if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { 'local'+: { fsType: fsType } } } } }, + '#withPath':: d.fn(help='"path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...)."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { source+: { inlineVolumeSpec+: { 'local'+: { path: path } } } } }, + }, + '#nfs':: d.obj(help='"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling."'), + nfs: { + '#withPath':: d.fn(help='"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { spec+: { source+: { inlineVolumeSpec+: { nfs+: { path: path } } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { nfs+: { readOnly: readOnly } } } } }, + '#withServer':: d.fn(help='"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='server', type=d.T.string)]), + withServer(server): { spec+: { source+: { inlineVolumeSpec+: { nfs+: { server: server } } } } }, + }, + '#nodeAffinity':: d.obj(help='"VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from."'), + nodeAffinity: { + '#required':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + required: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { spec+: { source+: { inlineVolumeSpec+: { nodeAffinity+: { required+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { spec+: { source+: { inlineVolumeSpec+: { nodeAffinity+: { required+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } } }, + }, + }, + '#photonPersistentDisk':: d.obj(help='"Represents a Photon Controller persistent disk resource."'), + photonPersistentDisk: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { photonPersistentDisk+: { fsType: fsType } } } } }, + '#withPdID':: d.fn(help='"pdID is the ID that identifies Photon Controller persistent disk"', args=[d.arg(name='pdID', type=d.T.string)]), + withPdID(pdID): { spec+: { source+: { inlineVolumeSpec+: { photonPersistentDisk+: { pdID: pdID } } } } }, + }, + '#portworxVolume':: d.obj(help='"PortworxVolumeSource represents a Portworx volume resource."'), + portworxVolume: { + '#withFsType':: d.fn(help='"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { portworxVolume+: { fsType: fsType } } } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { portworxVolume+: { readOnly: readOnly } } } } }, + '#withVolumeID':: d.fn(help='"volumeID uniquely identifies a Portworx volume"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { spec+: { source+: { inlineVolumeSpec+: { portworxVolume+: { volumeID: volumeID } } } } }, + }, + '#quobyte':: d.obj(help='"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling."'), + quobyte: { + '#withGroup':: d.fn(help='"group to map volume access to Default is no group"', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { spec+: { source+: { inlineVolumeSpec+: { quobyte+: { group: group } } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { quobyte+: { readOnly: readOnly } } } } }, + '#withRegistry':: d.fn(help='"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"', args=[d.arg(name='registry', type=d.T.string)]), + withRegistry(registry): { spec+: { source+: { inlineVolumeSpec+: { quobyte+: { registry: registry } } } } }, + '#withTenant':: d.fn(help='"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin"', args=[d.arg(name='tenant', type=d.T.string)]), + withTenant(tenant): { spec+: { source+: { inlineVolumeSpec+: { quobyte+: { tenant: tenant } } } } }, + '#withUser':: d.fn(help='"user to map volume access to Defaults to serivceaccount user"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { source+: { inlineVolumeSpec+: { quobyte+: { user: user } } } } }, + '#withVolume':: d.fn(help='"volume is a string that references an already created Quobyte volume by name."', args=[d.arg(name='volume', type=d.T.string)]), + withVolume(volume): { spec+: { source+: { inlineVolumeSpec+: { quobyte+: { volume: volume } } } } }, + }, + '#rbd':: d.obj(help='"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."'), + rbd: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { secretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { secretRef+: { namespace: namespace } } } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { fsType: fsType } } } } }, + '#withImage':: d.fn(help='"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { image: image } } } } }, + '#withKeyring':: d.fn(help='"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='keyring', type=d.T.string)]), + withKeyring(keyring): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { keyring: keyring } } } } }, + '#withMonitors':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } } } } }, + '#withMonitorsMixin':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } } } } }, + '#withPool':: d.fn(help='"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='pool', type=d.T.string)]), + withPool(pool): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { pool: pool } } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { readOnly: readOnly } } } } }, + '#withUser':: d.fn(help='"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { spec+: { source+: { inlineVolumeSpec+: { rbd+: { user: user } } } } }, + }, + '#scaleIO':: d.obj(help='"ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume"'), + scaleIO: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { secretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { secretRef+: { namespace: namespace } } } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Default is \\"xfs\\', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { fsType: fsType } } } } }, + '#withGateway':: d.fn(help='"gateway is the host address of the ScaleIO API Gateway."', args=[d.arg(name='gateway', type=d.T.string)]), + withGateway(gateway): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { gateway: gateway } } } } }, + '#withProtectionDomain':: d.fn(help='"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."', args=[d.arg(name='protectionDomain', type=d.T.string)]), + withProtectionDomain(protectionDomain): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { protectionDomain: protectionDomain } } } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { readOnly: readOnly } } } } }, + '#withSslEnabled':: d.fn(help='"sslEnabled is the flag to enable/disable SSL communication with Gateway, default false"', args=[d.arg(name='sslEnabled', type=d.T.boolean)]), + withSslEnabled(sslEnabled): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { sslEnabled: sslEnabled } } } } }, + '#withStorageMode':: d.fn(help='"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."', args=[d.arg(name='storageMode', type=d.T.string)]), + withStorageMode(storageMode): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { storageMode: storageMode } } } } }, + '#withStoragePool':: d.fn(help='"storagePool is the ScaleIO Storage Pool associated with the protection domain."', args=[d.arg(name='storagePool', type=d.T.string)]), + withStoragePool(storagePool): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { storagePool: storagePool } } } } }, + '#withSystem':: d.fn(help='"system is the name of the storage system as configured in ScaleIO."', args=[d.arg(name='system', type=d.T.string)]), + withSystem(system): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { system: system } } } } }, + '#withVolumeName':: d.fn(help='"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { spec+: { source+: { inlineVolumeSpec+: { scaleIO+: { volumeName: volumeName } } } } }, + }, + '#storageos':: d.obj(help='"Represents a StorageOS persistent volume resource."'), + storageos: { + '#secretRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + secretRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { apiVersion: apiVersion } } } } } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { fieldPath: fieldPath } } } } } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { kind: kind } } } } } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { name: name } } } } } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { namespace: namespace } } } } } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { resourceVersion: resourceVersion } } } } } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { uid: uid } } } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { fsType: fsType } } } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { readOnly: readOnly } } } } }, + '#withVolumeName':: d.fn(help='"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { volumeName: volumeName } } } } }, + '#withVolumeNamespace':: d.fn(help="\"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \\\"default\\\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.\"", args=[d.arg(name='volumeNamespace', type=d.T.string)]), + withVolumeNamespace(volumeNamespace): { spec+: { source+: { inlineVolumeSpec+: { storageos+: { volumeNamespace: volumeNamespace } } } } }, + }, + '#vsphereVolume':: d.obj(help='"Represents a vSphere volume resource."'), + vsphereVolume: { + '#withFsType':: d.fn(help='"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { spec+: { source+: { inlineVolumeSpec+: { vsphereVolume+: { fsType: fsType } } } } }, + '#withStoragePolicyID':: d.fn(help='"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."', args=[d.arg(name='storagePolicyID', type=d.T.string)]), + withStoragePolicyID(storagePolicyID): { spec+: { source+: { inlineVolumeSpec+: { vsphereVolume+: { storagePolicyID: storagePolicyID } } } } }, + '#withStoragePolicyName':: d.fn(help='"storagePolicyName is the storage Policy Based Management (SPBM) profile name."', args=[d.arg(name='storagePolicyName', type=d.T.string)]), + withStoragePolicyName(storagePolicyName): { spec+: { source+: { inlineVolumeSpec+: { vsphereVolume+: { storagePolicyName: storagePolicyName } } } } }, + '#withVolumePath':: d.fn(help='"volumePath is the path that identifies vSphere volume vmdk"', args=[d.arg(name='volumePath', type=d.T.string)]), + withVolumePath(volumePath): { spec+: { source+: { inlineVolumeSpec+: { vsphereVolume+: { volumePath: volumePath } } } } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { spec+: { source+: { inlineVolumeSpec+: { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] } } } }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { spec+: { source+: { inlineVolumeSpec+: { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] } } } }, + '#withCapacity':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacity(capacity): { spec+: { source+: { inlineVolumeSpec+: { capacity: capacity } } } }, + '#withCapacityMixin':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacityMixin(capacity): { spec+: { source+: { inlineVolumeSpec+: { capacity+: capacity } } } }, + '#withMountOptions':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptions(mountOptions): { spec+: { source+: { inlineVolumeSpec+: { mountOptions: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] } } } }, + '#withMountOptionsMixin':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptionsMixin(mountOptions): { spec+: { source+: { inlineVolumeSpec+: { mountOptions+: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] } } } }, + '#withPersistentVolumeReclaimPolicy':: d.fn(help='"persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming"', args=[d.arg(name='persistentVolumeReclaimPolicy', type=d.T.string)]), + withPersistentVolumeReclaimPolicy(persistentVolumeReclaimPolicy): { spec+: { source+: { inlineVolumeSpec+: { persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy } } } }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass."', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { spec+: { source+: { inlineVolumeSpec+: { storageClassName: storageClassName } } } }, + '#withVolumeAttributesClassName':: d.fn(help='"Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature."', args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { spec+: { source+: { inlineVolumeSpec+: { volumeAttributesClassName: volumeAttributesClassName } } } }, + '#withVolumeMode':: d.fn(help='"volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { spec+: { source+: { inlineVolumeSpec+: { volumeMode: volumeMode } } } }, + }, + '#withPersistentVolumeName':: d.fn(help='"persistentVolumeName represents the name of the persistent volume to attach."', args=[d.arg(name='persistentVolumeName', type=d.T.string)]), + withPersistentVolumeName(persistentVolumeName): { spec+: { source+: { persistentVolumeName: persistentVolumeName } } }, + }, + '#withAttacher':: d.fn(help='"attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName()."', args=[d.arg(name='attacher', type=d.T.string)]), + withAttacher(attacher): { spec+: { attacher: attacher } }, + '#withNodeName':: d.fn(help='"nodeName represents the node that the volume should be attached to."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { spec+: { nodeName: nodeName } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentSource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentSource.libsonnet new file mode 100644 index 0000000..6c46e4d --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentSource.libsonnet @@ -0,0 +1,428 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeAttachmentSource', url='', help='"VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set."'), + '#inlineVolumeSpec':: d.obj(help='"PersistentVolumeSpec is the specification of a persistent volume."'), + inlineVolumeSpec: { + '#awsElasticBlockStore':: d.obj(help='"Represents a Persistent Disk resource in AWS.\\n\\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling."'), + awsElasticBlockStore: { + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { awsElasticBlockStore+: { fsType: fsType } } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty)."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { inlineVolumeSpec+: { awsElasticBlockStore+: { partition: partition } } }, + '#withReadOnly':: d.fn(help='"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { awsElasticBlockStore+: { readOnly: readOnly } } }, + '#withVolumeID':: d.fn(help='"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { inlineVolumeSpec+: { awsElasticBlockStore+: { volumeID: volumeID } } }, + }, + '#azureDisk':: d.obj(help='"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."'), + azureDisk: { + '#withCachingMode':: d.fn(help='"cachingMode is the Host Caching mode: None, Read Only, Read Write."', args=[d.arg(name='cachingMode', type=d.T.string)]), + withCachingMode(cachingMode): { inlineVolumeSpec+: { azureDisk+: { cachingMode: cachingMode } } }, + '#withDiskName':: d.fn(help='"diskName is the Name of the data disk in the blob storage"', args=[d.arg(name='diskName', type=d.T.string)]), + withDiskName(diskName): { inlineVolumeSpec+: { azureDisk+: { diskName: diskName } } }, + '#withDiskURI':: d.fn(help='"diskURI is the URI of data disk in the blob storage"', args=[d.arg(name='diskURI', type=d.T.string)]), + withDiskURI(diskURI): { inlineVolumeSpec+: { azureDisk+: { diskURI: diskURI } } }, + '#withFsType':: d.fn(help='"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { azureDisk+: { fsType: fsType } } }, + '#withKind':: d.fn(help='"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { inlineVolumeSpec+: { azureDisk+: { kind: kind } } }, + '#withReadOnly':: d.fn(help='"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { azureDisk+: { readOnly: readOnly } } }, + }, + '#azureFile':: d.obj(help='"AzureFile represents an Azure File Service mount on the host and bind mount to the pod."'), + azureFile: { + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { azureFile+: { readOnly: readOnly } } }, + '#withSecretName':: d.fn(help='"secretName is the name of secret that contains Azure Storage Account Name and Key"', args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { inlineVolumeSpec+: { azureFile+: { secretName: secretName } } }, + '#withSecretNamespace':: d.fn(help='"secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod"', args=[d.arg(name='secretNamespace', type=d.T.string)]), + withSecretNamespace(secretNamespace): { inlineVolumeSpec+: { azureFile+: { secretNamespace: secretNamespace } } }, + '#withShareName':: d.fn(help='"shareName is the azure Share Name"', args=[d.arg(name='shareName', type=d.T.string)]), + withShareName(shareName): { inlineVolumeSpec+: { azureFile+: { shareName: shareName } } }, + }, + '#cephfs':: d.obj(help='"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."'), + cephfs: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { cephfs+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { cephfs+: { secretRef+: { namespace: namespace } } } }, + }, + '#withMonitors':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { inlineVolumeSpec+: { cephfs+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } } }, + '#withMonitorsMixin':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { inlineVolumeSpec+: { cephfs+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } } }, + '#withPath':: d.fn(help='"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { inlineVolumeSpec+: { cephfs+: { path: path } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { cephfs+: { readOnly: readOnly } } }, + '#withSecretFile':: d.fn(help='"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='secretFile', type=d.T.string)]), + withSecretFile(secretFile): { inlineVolumeSpec+: { cephfs+: { secretFile: secretFile } } }, + '#withUser':: d.fn(help='"user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { inlineVolumeSpec+: { cephfs+: { user: user } } }, + }, + '#cinder':: d.obj(help='"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."'), + cinder: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { cinder+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { cinder+: { secretRef+: { namespace: namespace } } } }, + }, + '#withFsType':: d.fn(help='"fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { cinder+: { fsType: fsType } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { cinder+: { readOnly: readOnly } } }, + '#withVolumeID':: d.fn(help='"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { inlineVolumeSpec+: { cinder+: { volumeID: volumeID } } }, + }, + '#claimRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + claimRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { inlineVolumeSpec+: { claimRef+: { apiVersion: apiVersion } } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { inlineVolumeSpec+: { claimRef+: { fieldPath: fieldPath } } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { inlineVolumeSpec+: { claimRef+: { kind: kind } } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { claimRef+: { name: name } } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { claimRef+: { namespace: namespace } } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { inlineVolumeSpec+: { claimRef+: { resourceVersion: resourceVersion } } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { inlineVolumeSpec+: { claimRef+: { uid: uid } } }, + }, + '#csi':: d.obj(help='"Represents storage that is managed by an external CSI volume driver (Beta feature)"'), + csi: { + '#controllerExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { csi+: { controllerExpandSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { csi+: { controllerExpandSecretRef+: { namespace: namespace } } } }, + }, + '#controllerPublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerPublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { csi+: { controllerPublishSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { csi+: { controllerPublishSecretRef+: { namespace: namespace } } } }, + }, + '#nodeExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { csi+: { nodeExpandSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { csi+: { nodeExpandSecretRef+: { namespace: namespace } } } }, + }, + '#nodePublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodePublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { csi+: { nodePublishSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { csi+: { nodePublishSecretRef+: { namespace: namespace } } } }, + }, + '#nodeStageSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeStageSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { csi+: { nodeStageSecretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { csi+: { nodeStageSecretRef+: { namespace: namespace } } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume. Required."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { inlineVolumeSpec+: { csi+: { driver: driver } } }, + '#withFsType':: d.fn(help='"fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\"."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { csi+: { fsType: fsType } } }, + '#withReadOnly':: d.fn(help='"readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write)."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { csi+: { readOnly: readOnly } } }, + '#withVolumeAttributes':: d.fn(help='"volumeAttributes of the volume to publish."', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributes(volumeAttributes): { inlineVolumeSpec+: { csi+: { volumeAttributes: volumeAttributes } } }, + '#withVolumeAttributesMixin':: d.fn(help='"volumeAttributes of the volume to publish."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributesMixin(volumeAttributes): { inlineVolumeSpec+: { csi+: { volumeAttributes+: volumeAttributes } } }, + '#withVolumeHandle':: d.fn(help='"volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required."', args=[d.arg(name='volumeHandle', type=d.T.string)]), + withVolumeHandle(volumeHandle): { inlineVolumeSpec+: { csi+: { volumeHandle: volumeHandle } } }, + }, + '#fc':: d.obj(help='"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling."'), + fc: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { fc+: { fsType: fsType } } }, + '#withLun':: d.fn(help='"lun is Optional: FC target lun number"', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { inlineVolumeSpec+: { fc+: { lun: lun } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { fc+: { readOnly: readOnly } } }, + '#withTargetWWNs':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNs(targetWWNs): { inlineVolumeSpec+: { fc+: { targetWWNs: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } } }, + '#withTargetWWNsMixin':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNsMixin(targetWWNs): { inlineVolumeSpec+: { fc+: { targetWWNs+: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } } }, + '#withWwids':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."', args=[d.arg(name='wwids', type=d.T.array)]), + withWwids(wwids): { inlineVolumeSpec+: { fc+: { wwids: if std.isArray(v=wwids) then wwids else [wwids] } } }, + '#withWwidsMixin':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='wwids', type=d.T.array)]), + withWwidsMixin(wwids): { inlineVolumeSpec+: { fc+: { wwids+: if std.isArray(v=wwids) then wwids else [wwids] } } }, + }, + '#flexVolume':: d.obj(help='"FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin."'), + flexVolume: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { flexVolume+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { flexVolume+: { secretRef+: { namespace: namespace } } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { inlineVolumeSpec+: { flexVolume+: { driver: driver } } }, + '#withFsType':: d.fn(help='"fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default filesystem depends on FlexVolume script."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { flexVolume+: { fsType: fsType } } }, + '#withOptions':: d.fn(help='"options is Optional: this field holds extra command options if any."', args=[d.arg(name='options', type=d.T.object)]), + withOptions(options): { inlineVolumeSpec+: { flexVolume+: { options: options } } }, + '#withOptionsMixin':: d.fn(help='"options is Optional: this field holds extra command options if any."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.object)]), + withOptionsMixin(options): { inlineVolumeSpec+: { flexVolume+: { options+: options } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { flexVolume+: { readOnly: readOnly } } }, + }, + '#flocker':: d.obj(help='"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling."'), + flocker: { + '#withDatasetName':: d.fn(help='"datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"', args=[d.arg(name='datasetName', type=d.T.string)]), + withDatasetName(datasetName): { inlineVolumeSpec+: { flocker+: { datasetName: datasetName } } }, + '#withDatasetUUID':: d.fn(help='"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset"', args=[d.arg(name='datasetUUID', type=d.T.string)]), + withDatasetUUID(datasetUUID): { inlineVolumeSpec+: { flocker+: { datasetUUID: datasetUUID } } }, + }, + '#gcePersistentDisk':: d.obj(help='"Represents a Persistent Disk resource in Google Compute Engine.\\n\\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling."'), + gcePersistentDisk: { + '#withFsType':: d.fn(help='"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { gcePersistentDisk+: { fsType: fsType } } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { inlineVolumeSpec+: { gcePersistentDisk+: { partition: partition } } }, + '#withPdName':: d.fn(help='"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='pdName', type=d.T.string)]), + withPdName(pdName): { inlineVolumeSpec+: { gcePersistentDisk+: { pdName: pdName } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { gcePersistentDisk+: { readOnly: readOnly } } }, + }, + '#glusterfs':: d.obj(help='"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."'), + glusterfs: { + '#withEndpoints':: d.fn(help='"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpoints', type=d.T.string)]), + withEndpoints(endpoints): { inlineVolumeSpec+: { glusterfs+: { endpoints: endpoints } } }, + '#withEndpointsNamespace':: d.fn(help='"endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpointsNamespace', type=d.T.string)]), + withEndpointsNamespace(endpointsNamespace): { inlineVolumeSpec+: { glusterfs+: { endpointsNamespace: endpointsNamespace } } }, + '#withPath':: d.fn(help='"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { inlineVolumeSpec+: { glusterfs+: { path: path } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { glusterfs+: { readOnly: readOnly } } }, + }, + '#hostPath':: d.obj(help='"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling."'), + hostPath: { + '#withPath':: d.fn(help='"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { inlineVolumeSpec+: { hostPath+: { path: path } } }, + '#withType':: d.fn(help='"type for HostPath Volume Defaults to \\"\\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { inlineVolumeSpec+: { hostPath+: { type: type } } }, + }, + '#iscsi':: d.obj(help='"ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."'), + iscsi: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { iscsi+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { iscsi+: { secretRef+: { namespace: namespace } } } }, + }, + '#withChapAuthDiscovery':: d.fn(help='"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"', args=[d.arg(name='chapAuthDiscovery', type=d.T.boolean)]), + withChapAuthDiscovery(chapAuthDiscovery): { inlineVolumeSpec+: { iscsi+: { chapAuthDiscovery: chapAuthDiscovery } } }, + '#withChapAuthSession':: d.fn(help='"chapAuthSession defines whether support iSCSI Session CHAP authentication"', args=[d.arg(name='chapAuthSession', type=d.T.boolean)]), + withChapAuthSession(chapAuthSession): { inlineVolumeSpec+: { iscsi+: { chapAuthSession: chapAuthSession } } }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { iscsi+: { fsType: fsType } } }, + '#withInitiatorName':: d.fn(help='"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection."', args=[d.arg(name='initiatorName', type=d.T.string)]), + withInitiatorName(initiatorName): { inlineVolumeSpec+: { iscsi+: { initiatorName: initiatorName } } }, + '#withIqn':: d.fn(help='"iqn is Target iSCSI Qualified Name."', args=[d.arg(name='iqn', type=d.T.string)]), + withIqn(iqn): { inlineVolumeSpec+: { iscsi+: { iqn: iqn } } }, + '#withIscsiInterface':: d.fn(help="\"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).\"", args=[d.arg(name='iscsiInterface', type=d.T.string)]), + withIscsiInterface(iscsiInterface): { inlineVolumeSpec+: { iscsi+: { iscsiInterface: iscsiInterface } } }, + '#withLun':: d.fn(help='"lun is iSCSI Target Lun number."', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { inlineVolumeSpec+: { iscsi+: { lun: lun } } }, + '#withPortals':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='portals', type=d.T.array)]), + withPortals(portals): { inlineVolumeSpec+: { iscsi+: { portals: if std.isArray(v=portals) then portals else [portals] } } }, + '#withPortalsMixin':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='portals', type=d.T.array)]), + withPortalsMixin(portals): { inlineVolumeSpec+: { iscsi+: { portals+: if std.isArray(v=portals) then portals else [portals] } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { iscsi+: { readOnly: readOnly } } }, + '#withTargetPortal':: d.fn(help='"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='targetPortal', type=d.T.string)]), + withTargetPortal(targetPortal): { inlineVolumeSpec+: { iscsi+: { targetPortal: targetPortal } } }, + }, + '#local':: d.obj(help='"Local represents directly-attached storage with node affinity (Beta feature)"'), + 'local': { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default value is to auto-select a filesystem if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { 'local'+: { fsType: fsType } } }, + '#withPath':: d.fn(help='"path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...)."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { inlineVolumeSpec+: { 'local'+: { path: path } } }, + }, + '#nfs':: d.obj(help='"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling."'), + nfs: { + '#withPath':: d.fn(help='"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { inlineVolumeSpec+: { nfs+: { path: path } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { nfs+: { readOnly: readOnly } } }, + '#withServer':: d.fn(help='"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='server', type=d.T.string)]), + withServer(server): { inlineVolumeSpec+: { nfs+: { server: server } } }, + }, + '#nodeAffinity':: d.obj(help='"VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from."'), + nodeAffinity: { + '#required':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + required: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { inlineVolumeSpec+: { nodeAffinity+: { required+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { inlineVolumeSpec+: { nodeAffinity+: { required+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } }, + }, + }, + '#photonPersistentDisk':: d.obj(help='"Represents a Photon Controller persistent disk resource."'), + photonPersistentDisk: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { photonPersistentDisk+: { fsType: fsType } } }, + '#withPdID':: d.fn(help='"pdID is the ID that identifies Photon Controller persistent disk"', args=[d.arg(name='pdID', type=d.T.string)]), + withPdID(pdID): { inlineVolumeSpec+: { photonPersistentDisk+: { pdID: pdID } } }, + }, + '#portworxVolume':: d.obj(help='"PortworxVolumeSource represents a Portworx volume resource."'), + portworxVolume: { + '#withFsType':: d.fn(help='"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { portworxVolume+: { fsType: fsType } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { portworxVolume+: { readOnly: readOnly } } }, + '#withVolumeID':: d.fn(help='"volumeID uniquely identifies a Portworx volume"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { inlineVolumeSpec+: { portworxVolume+: { volumeID: volumeID } } }, + }, + '#quobyte':: d.obj(help='"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling."'), + quobyte: { + '#withGroup':: d.fn(help='"group to map volume access to Default is no group"', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { inlineVolumeSpec+: { quobyte+: { group: group } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { quobyte+: { readOnly: readOnly } } }, + '#withRegistry':: d.fn(help='"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"', args=[d.arg(name='registry', type=d.T.string)]), + withRegistry(registry): { inlineVolumeSpec+: { quobyte+: { registry: registry } } }, + '#withTenant':: d.fn(help='"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin"', args=[d.arg(name='tenant', type=d.T.string)]), + withTenant(tenant): { inlineVolumeSpec+: { quobyte+: { tenant: tenant } } }, + '#withUser':: d.fn(help='"user to map volume access to Defaults to serivceaccount user"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { inlineVolumeSpec+: { quobyte+: { user: user } } }, + '#withVolume':: d.fn(help='"volume is a string that references an already created Quobyte volume by name."', args=[d.arg(name='volume', type=d.T.string)]), + withVolume(volume): { inlineVolumeSpec+: { quobyte+: { volume: volume } } }, + }, + '#rbd':: d.obj(help='"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."'), + rbd: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { rbd+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { rbd+: { secretRef+: { namespace: namespace } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { rbd+: { fsType: fsType } } }, + '#withImage':: d.fn(help='"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { inlineVolumeSpec+: { rbd+: { image: image } } }, + '#withKeyring':: d.fn(help='"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='keyring', type=d.T.string)]), + withKeyring(keyring): { inlineVolumeSpec+: { rbd+: { keyring: keyring } } }, + '#withMonitors':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { inlineVolumeSpec+: { rbd+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } } }, + '#withMonitorsMixin':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { inlineVolumeSpec+: { rbd+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } } }, + '#withPool':: d.fn(help='"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='pool', type=d.T.string)]), + withPool(pool): { inlineVolumeSpec+: { rbd+: { pool: pool } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { rbd+: { readOnly: readOnly } } }, + '#withUser':: d.fn(help='"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { inlineVolumeSpec+: { rbd+: { user: user } } }, + }, + '#scaleIO':: d.obj(help='"ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume"'), + scaleIO: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { scaleIO+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { scaleIO+: { secretRef+: { namespace: namespace } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Default is \\"xfs\\', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { scaleIO+: { fsType: fsType } } }, + '#withGateway':: d.fn(help='"gateway is the host address of the ScaleIO API Gateway."', args=[d.arg(name='gateway', type=d.T.string)]), + withGateway(gateway): { inlineVolumeSpec+: { scaleIO+: { gateway: gateway } } }, + '#withProtectionDomain':: d.fn(help='"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."', args=[d.arg(name='protectionDomain', type=d.T.string)]), + withProtectionDomain(protectionDomain): { inlineVolumeSpec+: { scaleIO+: { protectionDomain: protectionDomain } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { scaleIO+: { readOnly: readOnly } } }, + '#withSslEnabled':: d.fn(help='"sslEnabled is the flag to enable/disable SSL communication with Gateway, default false"', args=[d.arg(name='sslEnabled', type=d.T.boolean)]), + withSslEnabled(sslEnabled): { inlineVolumeSpec+: { scaleIO+: { sslEnabled: sslEnabled } } }, + '#withStorageMode':: d.fn(help='"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."', args=[d.arg(name='storageMode', type=d.T.string)]), + withStorageMode(storageMode): { inlineVolumeSpec+: { scaleIO+: { storageMode: storageMode } } }, + '#withStoragePool':: d.fn(help='"storagePool is the ScaleIO Storage Pool associated with the protection domain."', args=[d.arg(name='storagePool', type=d.T.string)]), + withStoragePool(storagePool): { inlineVolumeSpec+: { scaleIO+: { storagePool: storagePool } } }, + '#withSystem':: d.fn(help='"system is the name of the storage system as configured in ScaleIO."', args=[d.arg(name='system', type=d.T.string)]), + withSystem(system): { inlineVolumeSpec+: { scaleIO+: { system: system } } }, + '#withVolumeName':: d.fn(help='"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { inlineVolumeSpec+: { scaleIO+: { volumeName: volumeName } } }, + }, + '#storageos':: d.obj(help='"Represents a StorageOS persistent volume resource."'), + storageos: { + '#secretRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + secretRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { inlineVolumeSpec+: { storageos+: { secretRef+: { apiVersion: apiVersion } } } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { inlineVolumeSpec+: { storageos+: { secretRef+: { fieldPath: fieldPath } } } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { inlineVolumeSpec+: { storageos+: { secretRef+: { kind: kind } } } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { inlineVolumeSpec+: { storageos+: { secretRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { inlineVolumeSpec+: { storageos+: { secretRef+: { namespace: namespace } } } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { inlineVolumeSpec+: { storageos+: { secretRef+: { resourceVersion: resourceVersion } } } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { inlineVolumeSpec+: { storageos+: { secretRef+: { uid: uid } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { storageos+: { fsType: fsType } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { inlineVolumeSpec+: { storageos+: { readOnly: readOnly } } }, + '#withVolumeName':: d.fn(help='"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { inlineVolumeSpec+: { storageos+: { volumeName: volumeName } } }, + '#withVolumeNamespace':: d.fn(help="\"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \\\"default\\\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.\"", args=[d.arg(name='volumeNamespace', type=d.T.string)]), + withVolumeNamespace(volumeNamespace): { inlineVolumeSpec+: { storageos+: { volumeNamespace: volumeNamespace } } }, + }, + '#vsphereVolume':: d.obj(help='"Represents a vSphere volume resource."'), + vsphereVolume: { + '#withFsType':: d.fn(help='"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { inlineVolumeSpec+: { vsphereVolume+: { fsType: fsType } } }, + '#withStoragePolicyID':: d.fn(help='"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."', args=[d.arg(name='storagePolicyID', type=d.T.string)]), + withStoragePolicyID(storagePolicyID): { inlineVolumeSpec+: { vsphereVolume+: { storagePolicyID: storagePolicyID } } }, + '#withStoragePolicyName':: d.fn(help='"storagePolicyName is the storage Policy Based Management (SPBM) profile name."', args=[d.arg(name='storagePolicyName', type=d.T.string)]), + withStoragePolicyName(storagePolicyName): { inlineVolumeSpec+: { vsphereVolume+: { storagePolicyName: storagePolicyName } } }, + '#withVolumePath':: d.fn(help='"volumePath is the path that identifies vSphere volume vmdk"', args=[d.arg(name='volumePath', type=d.T.string)]), + withVolumePath(volumePath): { inlineVolumeSpec+: { vsphereVolume+: { volumePath: volumePath } } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { inlineVolumeSpec+: { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] } }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { inlineVolumeSpec+: { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] } }, + '#withCapacity':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacity(capacity): { inlineVolumeSpec+: { capacity: capacity } }, + '#withCapacityMixin':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacityMixin(capacity): { inlineVolumeSpec+: { capacity+: capacity } }, + '#withMountOptions':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptions(mountOptions): { inlineVolumeSpec+: { mountOptions: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] } }, + '#withMountOptionsMixin':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptionsMixin(mountOptions): { inlineVolumeSpec+: { mountOptions+: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] } }, + '#withPersistentVolumeReclaimPolicy':: d.fn(help='"persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming"', args=[d.arg(name='persistentVolumeReclaimPolicy', type=d.T.string)]), + withPersistentVolumeReclaimPolicy(persistentVolumeReclaimPolicy): { inlineVolumeSpec+: { persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy } }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass."', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { inlineVolumeSpec+: { storageClassName: storageClassName } }, + '#withVolumeAttributesClassName':: d.fn(help='"Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature."', args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { inlineVolumeSpec+: { volumeAttributesClassName: volumeAttributesClassName } }, + '#withVolumeMode':: d.fn(help='"volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { inlineVolumeSpec+: { volumeMode: volumeMode } }, + }, + '#withPersistentVolumeName':: d.fn(help='"persistentVolumeName represents the name of the persistent volume to attach."', args=[d.arg(name='persistentVolumeName', type=d.T.string)]), + withPersistentVolumeName(persistentVolumeName): { persistentVolumeName: persistentVolumeName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentSpec.libsonnet new file mode 100644 index 0000000..7baf41f --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentSpec.libsonnet @@ -0,0 +1,435 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeAttachmentSpec', url='', help='"VolumeAttachmentSpec is the specification of a VolumeAttachment request."'), + '#source':: d.obj(help='"VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set."'), + source: { + '#inlineVolumeSpec':: d.obj(help='"PersistentVolumeSpec is the specification of a persistent volume."'), + inlineVolumeSpec: { + '#awsElasticBlockStore':: d.obj(help='"Represents a Persistent Disk resource in AWS.\\n\\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling."'), + awsElasticBlockStore: { + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { awsElasticBlockStore+: { fsType: fsType } } } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty)."', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { source+: { inlineVolumeSpec+: { awsElasticBlockStore+: { partition: partition } } } }, + '#withReadOnly':: d.fn(help='"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { awsElasticBlockStore+: { readOnly: readOnly } } } }, + '#withVolumeID':: d.fn(help='"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { source+: { inlineVolumeSpec+: { awsElasticBlockStore+: { volumeID: volumeID } } } }, + }, + '#azureDisk':: d.obj(help='"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod."'), + azureDisk: { + '#withCachingMode':: d.fn(help='"cachingMode is the Host Caching mode: None, Read Only, Read Write."', args=[d.arg(name='cachingMode', type=d.T.string)]), + withCachingMode(cachingMode): { source+: { inlineVolumeSpec+: { azureDisk+: { cachingMode: cachingMode } } } }, + '#withDiskName':: d.fn(help='"diskName is the Name of the data disk in the blob storage"', args=[d.arg(name='diskName', type=d.T.string)]), + withDiskName(diskName): { source+: { inlineVolumeSpec+: { azureDisk+: { diskName: diskName } } } }, + '#withDiskURI':: d.fn(help='"diskURI is the URI of data disk in the blob storage"', args=[d.arg(name='diskURI', type=d.T.string)]), + withDiskURI(diskURI): { source+: { inlineVolumeSpec+: { azureDisk+: { diskURI: diskURI } } } }, + '#withFsType':: d.fn(help='"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { azureDisk+: { fsType: fsType } } } }, + '#withKind':: d.fn(help='"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { source+: { inlineVolumeSpec+: { azureDisk+: { kind: kind } } } }, + '#withReadOnly':: d.fn(help='"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { azureDisk+: { readOnly: readOnly } } } }, + }, + '#azureFile':: d.obj(help='"AzureFile represents an Azure File Service mount on the host and bind mount to the pod."'), + azureFile: { + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { azureFile+: { readOnly: readOnly } } } }, + '#withSecretName':: d.fn(help='"secretName is the name of secret that contains Azure Storage Account Name and Key"', args=[d.arg(name='secretName', type=d.T.string)]), + withSecretName(secretName): { source+: { inlineVolumeSpec+: { azureFile+: { secretName: secretName } } } }, + '#withSecretNamespace':: d.fn(help='"secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod"', args=[d.arg(name='secretNamespace', type=d.T.string)]), + withSecretNamespace(secretNamespace): { source+: { inlineVolumeSpec+: { azureFile+: { secretNamespace: secretNamespace } } } }, + '#withShareName':: d.fn(help='"shareName is the azure Share Name"', args=[d.arg(name='shareName', type=d.T.string)]), + withShareName(shareName): { source+: { inlineVolumeSpec+: { azureFile+: { shareName: shareName } } } }, + }, + '#cephfs':: d.obj(help='"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling."'), + cephfs: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { cephfs+: { secretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { cephfs+: { secretRef+: { namespace: namespace } } } } }, + }, + '#withMonitors':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { source+: { inlineVolumeSpec+: { cephfs+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } } } }, + '#withMonitorsMixin':: d.fn(help='"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { source+: { inlineVolumeSpec+: { cephfs+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } } } }, + '#withPath':: d.fn(help='"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { source+: { inlineVolumeSpec+: { cephfs+: { path: path } } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { cephfs+: { readOnly: readOnly } } } }, + '#withSecretFile':: d.fn(help='"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='secretFile', type=d.T.string)]), + withSecretFile(secretFile): { source+: { inlineVolumeSpec+: { cephfs+: { secretFile: secretFile } } } }, + '#withUser':: d.fn(help='"user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { source+: { inlineVolumeSpec+: { cephfs+: { user: user } } } }, + }, + '#cinder':: d.obj(help='"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling."'), + cinder: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { cinder+: { secretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { cinder+: { secretRef+: { namespace: namespace } } } } }, + }, + '#withFsType':: d.fn(help='"fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { cinder+: { fsType: fsType } } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { cinder+: { readOnly: readOnly } } } }, + '#withVolumeID':: d.fn(help='"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { source+: { inlineVolumeSpec+: { cinder+: { volumeID: volumeID } } } }, + }, + '#claimRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + claimRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { source+: { inlineVolumeSpec+: { claimRef+: { apiVersion: apiVersion } } } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { source+: { inlineVolumeSpec+: { claimRef+: { fieldPath: fieldPath } } } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { source+: { inlineVolumeSpec+: { claimRef+: { kind: kind } } } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { claimRef+: { name: name } } } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { claimRef+: { namespace: namespace } } } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { source+: { inlineVolumeSpec+: { claimRef+: { resourceVersion: resourceVersion } } } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { source+: { inlineVolumeSpec+: { claimRef+: { uid: uid } } } }, + }, + '#csi':: d.obj(help='"Represents storage that is managed by an external CSI volume driver (Beta feature)"'), + csi: { + '#controllerExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { csi+: { controllerExpandSecretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { csi+: { controllerExpandSecretRef+: { namespace: namespace } } } } }, + }, + '#controllerPublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + controllerPublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { csi+: { controllerPublishSecretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { csi+: { controllerPublishSecretRef+: { namespace: namespace } } } } }, + }, + '#nodeExpandSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeExpandSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { csi+: { nodeExpandSecretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { csi+: { nodeExpandSecretRef+: { namespace: namespace } } } } }, + }, + '#nodePublishSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodePublishSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { csi+: { nodePublishSecretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { csi+: { nodePublishSecretRef+: { namespace: namespace } } } } }, + }, + '#nodeStageSecretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + nodeStageSecretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { csi+: { nodeStageSecretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { csi+: { nodeStageSecretRef+: { namespace: namespace } } } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume. Required."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { source+: { inlineVolumeSpec+: { csi+: { driver: driver } } } }, + '#withFsType':: d.fn(help='"fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\"."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { csi+: { fsType: fsType } } } }, + '#withReadOnly':: d.fn(help='"readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write)."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { csi+: { readOnly: readOnly } } } }, + '#withVolumeAttributes':: d.fn(help='"volumeAttributes of the volume to publish."', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributes(volumeAttributes): { source+: { inlineVolumeSpec+: { csi+: { volumeAttributes: volumeAttributes } } } }, + '#withVolumeAttributesMixin':: d.fn(help='"volumeAttributes of the volume to publish."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='volumeAttributes', type=d.T.object)]), + withVolumeAttributesMixin(volumeAttributes): { source+: { inlineVolumeSpec+: { csi+: { volumeAttributes+: volumeAttributes } } } }, + '#withVolumeHandle':: d.fn(help='"volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required."', args=[d.arg(name='volumeHandle', type=d.T.string)]), + withVolumeHandle(volumeHandle): { source+: { inlineVolumeSpec+: { csi+: { volumeHandle: volumeHandle } } } }, + }, + '#fc':: d.obj(help='"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling."'), + fc: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { fc+: { fsType: fsType } } } }, + '#withLun':: d.fn(help='"lun is Optional: FC target lun number"', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { source+: { inlineVolumeSpec+: { fc+: { lun: lun } } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { fc+: { readOnly: readOnly } } } }, + '#withTargetWWNs':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNs(targetWWNs): { source+: { inlineVolumeSpec+: { fc+: { targetWWNs: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } } } }, + '#withTargetWWNsMixin':: d.fn(help='"targetWWNs is Optional: FC target worldwide names (WWNs)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='targetWWNs', type=d.T.array)]), + withTargetWWNsMixin(targetWWNs): { source+: { inlineVolumeSpec+: { fc+: { targetWWNs+: if std.isArray(v=targetWWNs) then targetWWNs else [targetWWNs] } } } }, + '#withWwids':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."', args=[d.arg(name='wwids', type=d.T.array)]), + withWwids(wwids): { source+: { inlineVolumeSpec+: { fc+: { wwids: if std.isArray(v=wwids) then wwids else [wwids] } } } }, + '#withWwidsMixin':: d.fn(help='"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='wwids', type=d.T.array)]), + withWwidsMixin(wwids): { source+: { inlineVolumeSpec+: { fc+: { wwids+: if std.isArray(v=wwids) then wwids else [wwids] } } } }, + }, + '#flexVolume':: d.obj(help='"FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin."'), + flexVolume: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { flexVolume+: { secretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { flexVolume+: { secretRef+: { namespace: namespace } } } } }, + }, + '#withDriver':: d.fn(help='"driver is the name of the driver to use for this volume."', args=[d.arg(name='driver', type=d.T.string)]), + withDriver(driver): { source+: { inlineVolumeSpec+: { flexVolume+: { driver: driver } } } }, + '#withFsType':: d.fn(help='"fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default filesystem depends on FlexVolume script."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { flexVolume+: { fsType: fsType } } } }, + '#withOptions':: d.fn(help='"options is Optional: this field holds extra command options if any."', args=[d.arg(name='options', type=d.T.object)]), + withOptions(options): { source+: { inlineVolumeSpec+: { flexVolume+: { options: options } } } }, + '#withOptionsMixin':: d.fn(help='"options is Optional: this field holds extra command options if any."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='options', type=d.T.object)]), + withOptionsMixin(options): { source+: { inlineVolumeSpec+: { flexVolume+: { options+: options } } } }, + '#withReadOnly':: d.fn(help='"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { flexVolume+: { readOnly: readOnly } } } }, + }, + '#flocker':: d.obj(help='"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling."'), + flocker: { + '#withDatasetName':: d.fn(help='"datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated"', args=[d.arg(name='datasetName', type=d.T.string)]), + withDatasetName(datasetName): { source+: { inlineVolumeSpec+: { flocker+: { datasetName: datasetName } } } }, + '#withDatasetUUID':: d.fn(help='"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset"', args=[d.arg(name='datasetUUID', type=d.T.string)]), + withDatasetUUID(datasetUUID): { source+: { inlineVolumeSpec+: { flocker+: { datasetUUID: datasetUUID } } } }, + }, + '#gcePersistentDisk':: d.obj(help='"Represents a Persistent Disk resource in Google Compute Engine.\\n\\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling."'), + gcePersistentDisk: { + '#withFsType':: d.fn(help='"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { gcePersistentDisk+: { fsType: fsType } } } }, + '#withPartition':: d.fn(help='"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \\"1\\". Similarly, the volume partition for /dev/sda is \\"0\\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='partition', type=d.T.integer)]), + withPartition(partition): { source+: { inlineVolumeSpec+: { gcePersistentDisk+: { partition: partition } } } }, + '#withPdName':: d.fn(help='"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='pdName', type=d.T.string)]), + withPdName(pdName): { source+: { inlineVolumeSpec+: { gcePersistentDisk+: { pdName: pdName } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { gcePersistentDisk+: { readOnly: readOnly } } } }, + }, + '#glusterfs':: d.obj(help='"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling."'), + glusterfs: { + '#withEndpoints':: d.fn(help='"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpoints', type=d.T.string)]), + withEndpoints(endpoints): { source+: { inlineVolumeSpec+: { glusterfs+: { endpoints: endpoints } } } }, + '#withEndpointsNamespace':: d.fn(help='"endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='endpointsNamespace', type=d.T.string)]), + withEndpointsNamespace(endpointsNamespace): { source+: { inlineVolumeSpec+: { glusterfs+: { endpointsNamespace: endpointsNamespace } } } }, + '#withPath':: d.fn(help='"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { source+: { inlineVolumeSpec+: { glusterfs+: { path: path } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { glusterfs+: { readOnly: readOnly } } } }, + }, + '#hostPath':: d.obj(help='"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling."'), + hostPath: { + '#withPath':: d.fn(help='"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { source+: { inlineVolumeSpec+: { hostPath+: { path: path } } } }, + '#withType':: d.fn(help='"type for HostPath Volume Defaults to \\"\\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath"', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { source+: { inlineVolumeSpec+: { hostPath+: { type: type } } } }, + }, + '#iscsi':: d.obj(help='"ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling."'), + iscsi: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { iscsi+: { secretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { iscsi+: { secretRef+: { namespace: namespace } } } } }, + }, + '#withChapAuthDiscovery':: d.fn(help='"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication"', args=[d.arg(name='chapAuthDiscovery', type=d.T.boolean)]), + withChapAuthDiscovery(chapAuthDiscovery): { source+: { inlineVolumeSpec+: { iscsi+: { chapAuthDiscovery: chapAuthDiscovery } } } }, + '#withChapAuthSession':: d.fn(help='"chapAuthSession defines whether support iSCSI Session CHAP authentication"', args=[d.arg(name='chapAuthSession', type=d.T.boolean)]), + withChapAuthSession(chapAuthSession): { source+: { inlineVolumeSpec+: { iscsi+: { chapAuthSession: chapAuthSession } } } }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { iscsi+: { fsType: fsType } } } }, + '#withInitiatorName':: d.fn(help='"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection."', args=[d.arg(name='initiatorName', type=d.T.string)]), + withInitiatorName(initiatorName): { source+: { inlineVolumeSpec+: { iscsi+: { initiatorName: initiatorName } } } }, + '#withIqn':: d.fn(help='"iqn is Target iSCSI Qualified Name."', args=[d.arg(name='iqn', type=d.T.string)]), + withIqn(iqn): { source+: { inlineVolumeSpec+: { iscsi+: { iqn: iqn } } } }, + '#withIscsiInterface':: d.fn(help="\"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).\"", args=[d.arg(name='iscsiInterface', type=d.T.string)]), + withIscsiInterface(iscsiInterface): { source+: { inlineVolumeSpec+: { iscsi+: { iscsiInterface: iscsiInterface } } } }, + '#withLun':: d.fn(help='"lun is iSCSI Target Lun number."', args=[d.arg(name='lun', type=d.T.integer)]), + withLun(lun): { source+: { inlineVolumeSpec+: { iscsi+: { lun: lun } } } }, + '#withPortals':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='portals', type=d.T.array)]), + withPortals(portals): { source+: { inlineVolumeSpec+: { iscsi+: { portals: if std.isArray(v=portals) then portals else [portals] } } } }, + '#withPortalsMixin':: d.fn(help='"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='portals', type=d.T.array)]), + withPortalsMixin(portals): { source+: { inlineVolumeSpec+: { iscsi+: { portals+: if std.isArray(v=portals) then portals else [portals] } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { iscsi+: { readOnly: readOnly } } } }, + '#withTargetPortal':: d.fn(help='"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260)."', args=[d.arg(name='targetPortal', type=d.T.string)]), + withTargetPortal(targetPortal): { source+: { inlineVolumeSpec+: { iscsi+: { targetPortal: targetPortal } } } }, + }, + '#local':: d.obj(help='"Local represents directly-attached storage with node affinity (Beta feature)"'), + 'local': { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". The default value is to auto-select a filesystem if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { 'local'+: { fsType: fsType } } } }, + '#withPath':: d.fn(help='"path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...)."', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { source+: { inlineVolumeSpec+: { 'local'+: { path: path } } } }, + }, + '#nfs':: d.obj(help='"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling."'), + nfs: { + '#withPath':: d.fn(help='"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='path', type=d.T.string)]), + withPath(path): { source+: { inlineVolumeSpec+: { nfs+: { path: path } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { nfs+: { readOnly: readOnly } } } }, + '#withServer':: d.fn(help='"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs"', args=[d.arg(name='server', type=d.T.string)]), + withServer(server): { source+: { inlineVolumeSpec+: { nfs+: { server: server } } } }, + }, + '#nodeAffinity':: d.obj(help='"VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from."'), + nodeAffinity: { + '#required':: d.obj(help='"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms."'), + required: { + '#withNodeSelectorTerms':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTerms(nodeSelectorTerms): { source+: { inlineVolumeSpec+: { nodeAffinity+: { required+: { nodeSelectorTerms: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } }, + '#withNodeSelectorTermsMixin':: d.fn(help='"Required. A list of node selector terms. The terms are ORed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='nodeSelectorTerms', type=d.T.array)]), + withNodeSelectorTermsMixin(nodeSelectorTerms): { source+: { inlineVolumeSpec+: { nodeAffinity+: { required+: { nodeSelectorTerms+: if std.isArray(v=nodeSelectorTerms) then nodeSelectorTerms else [nodeSelectorTerms] } } } } }, + }, + }, + '#photonPersistentDisk':: d.obj(help='"Represents a Photon Controller persistent disk resource."'), + photonPersistentDisk: { + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { photonPersistentDisk+: { fsType: fsType } } } }, + '#withPdID':: d.fn(help='"pdID is the ID that identifies Photon Controller persistent disk"', args=[d.arg(name='pdID', type=d.T.string)]), + withPdID(pdID): { source+: { inlineVolumeSpec+: { photonPersistentDisk+: { pdID: pdID } } } }, + }, + '#portworxVolume':: d.obj(help='"PortworxVolumeSource represents a Portworx volume resource."'), + portworxVolume: { + '#withFsType':: d.fn(help='"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { portworxVolume+: { fsType: fsType } } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { portworxVolume+: { readOnly: readOnly } } } }, + '#withVolumeID':: d.fn(help='"volumeID uniquely identifies a Portworx volume"', args=[d.arg(name='volumeID', type=d.T.string)]), + withVolumeID(volumeID): { source+: { inlineVolumeSpec+: { portworxVolume+: { volumeID: volumeID } } } }, + }, + '#quobyte':: d.obj(help='"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling."'), + quobyte: { + '#withGroup':: d.fn(help='"group to map volume access to Default is no group"', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { source+: { inlineVolumeSpec+: { quobyte+: { group: group } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { quobyte+: { readOnly: readOnly } } } }, + '#withRegistry':: d.fn(help='"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes"', args=[d.arg(name='registry', type=d.T.string)]), + withRegistry(registry): { source+: { inlineVolumeSpec+: { quobyte+: { registry: registry } } } }, + '#withTenant':: d.fn(help='"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin"', args=[d.arg(name='tenant', type=d.T.string)]), + withTenant(tenant): { source+: { inlineVolumeSpec+: { quobyte+: { tenant: tenant } } } }, + '#withUser':: d.fn(help='"user to map volume access to Defaults to serivceaccount user"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { source+: { inlineVolumeSpec+: { quobyte+: { user: user } } } }, + '#withVolume':: d.fn(help='"volume is a string that references an already created Quobyte volume by name."', args=[d.arg(name='volume', type=d.T.string)]), + withVolume(volume): { source+: { inlineVolumeSpec+: { quobyte+: { volume: volume } } } }, + }, + '#rbd':: d.obj(help='"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling."'), + rbd: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { rbd+: { secretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { rbd+: { secretRef+: { namespace: namespace } } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd"', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { rbd+: { fsType: fsType } } } }, + '#withImage':: d.fn(help='"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='image', type=d.T.string)]), + withImage(image): { source+: { inlineVolumeSpec+: { rbd+: { image: image } } } }, + '#withKeyring':: d.fn(help='"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='keyring', type=d.T.string)]), + withKeyring(keyring): { source+: { inlineVolumeSpec+: { rbd+: { keyring: keyring } } } }, + '#withMonitors':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitors(monitors): { source+: { inlineVolumeSpec+: { rbd+: { monitors: if std.isArray(v=monitors) then monitors else [monitors] } } } }, + '#withMonitorsMixin':: d.fn(help='"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='monitors', type=d.T.array)]), + withMonitorsMixin(monitors): { source+: { inlineVolumeSpec+: { rbd+: { monitors+: if std.isArray(v=monitors) then monitors else [monitors] } } } }, + '#withPool':: d.fn(help='"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='pool', type=d.T.string)]), + withPool(pool): { source+: { inlineVolumeSpec+: { rbd+: { pool: pool } } } }, + '#withReadOnly':: d.fn(help='"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { rbd+: { readOnly: readOnly } } } }, + '#withUser':: d.fn(help='"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"', args=[d.arg(name='user', type=d.T.string)]), + withUser(user): { source+: { inlineVolumeSpec+: { rbd+: { user: user } } } }, + }, + '#scaleIO':: d.obj(help='"ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume"'), + scaleIO: { + '#secretRef':: d.obj(help='"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace"'), + secretRef: { + '#withName':: d.fn(help='"name is unique within a namespace to reference a secret resource."', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { scaleIO+: { secretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"namespace defines the space within which the secret name must be unique."', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { scaleIO+: { secretRef+: { namespace: namespace } } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Default is \\"xfs\\', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { scaleIO+: { fsType: fsType } } } }, + '#withGateway':: d.fn(help='"gateway is the host address of the ScaleIO API Gateway."', args=[d.arg(name='gateway', type=d.T.string)]), + withGateway(gateway): { source+: { inlineVolumeSpec+: { scaleIO+: { gateway: gateway } } } }, + '#withProtectionDomain':: d.fn(help='"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage."', args=[d.arg(name='protectionDomain', type=d.T.string)]), + withProtectionDomain(protectionDomain): { source+: { inlineVolumeSpec+: { scaleIO+: { protectionDomain: protectionDomain } } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { scaleIO+: { readOnly: readOnly } } } }, + '#withSslEnabled':: d.fn(help='"sslEnabled is the flag to enable/disable SSL communication with Gateway, default false"', args=[d.arg(name='sslEnabled', type=d.T.boolean)]), + withSslEnabled(sslEnabled): { source+: { inlineVolumeSpec+: { scaleIO+: { sslEnabled: sslEnabled } } } }, + '#withStorageMode':: d.fn(help='"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned."', args=[d.arg(name='storageMode', type=d.T.string)]), + withStorageMode(storageMode): { source+: { inlineVolumeSpec+: { scaleIO+: { storageMode: storageMode } } } }, + '#withStoragePool':: d.fn(help='"storagePool is the ScaleIO Storage Pool associated with the protection domain."', args=[d.arg(name='storagePool', type=d.T.string)]), + withStoragePool(storagePool): { source+: { inlineVolumeSpec+: { scaleIO+: { storagePool: storagePool } } } }, + '#withSystem':: d.fn(help='"system is the name of the storage system as configured in ScaleIO."', args=[d.arg(name='system', type=d.T.string)]), + withSystem(system): { source+: { inlineVolumeSpec+: { scaleIO+: { system: system } } } }, + '#withVolumeName':: d.fn(help='"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { source+: { inlineVolumeSpec+: { scaleIO+: { volumeName: volumeName } } } }, + }, + '#storageos':: d.obj(help='"Represents a StorageOS persistent volume resource."'), + storageos: { + '#secretRef':: d.obj(help='"ObjectReference contains enough information to let you inspect or modify the referred object."'), + secretRef: { + '#withApiVersion':: d.fn(help='"API version of the referent."', args=[d.arg(name='apiVersion', type=d.T.string)]), + withApiVersion(apiVersion): { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { apiVersion: apiVersion } } } } }, + '#withFieldPath':: d.fn(help='"If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \\"spec.containers{name}\\" (where \\"name\\" refers to the name of the container that triggered the event) or if no container name is specified \\"spec.containers[2]\\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object."', args=[d.arg(name='fieldPath', type=d.T.string)]), + withFieldPath(fieldPath): { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { fieldPath: fieldPath } } } } }, + '#withKind':: d.fn(help='"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"', args=[d.arg(name='kind', type=d.T.string)]), + withKind(kind): { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { kind: kind } } } } }, + '#withName':: d.fn(help='"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { name: name } } } } }, + '#withNamespace':: d.fn(help='"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { namespace: namespace } } } } }, + '#withResourceVersion':: d.fn(help='"Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { resourceVersion: resourceVersion } } } } }, + '#withUid':: d.fn(help='"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { source+: { inlineVolumeSpec+: { storageos+: { secretRef+: { uid: uid } } } } }, + }, + '#withFsType':: d.fn(help='"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { storageos+: { fsType: fsType } } } }, + '#withReadOnly':: d.fn(help='"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts."', args=[d.arg(name='readOnly', type=d.T.boolean)]), + withReadOnly(readOnly): { source+: { inlineVolumeSpec+: { storageos+: { readOnly: readOnly } } } }, + '#withVolumeName':: d.fn(help='"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace."', args=[d.arg(name='volumeName', type=d.T.string)]), + withVolumeName(volumeName): { source+: { inlineVolumeSpec+: { storageos+: { volumeName: volumeName } } } }, + '#withVolumeNamespace':: d.fn(help="\"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \\\"default\\\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.\"", args=[d.arg(name='volumeNamespace', type=d.T.string)]), + withVolumeNamespace(volumeNamespace): { source+: { inlineVolumeSpec+: { storageos+: { volumeNamespace: volumeNamespace } } } }, + }, + '#vsphereVolume':: d.obj(help='"Represents a vSphere volume resource."'), + vsphereVolume: { + '#withFsType':: d.fn(help='"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \\"ext4\\", \\"xfs\\", \\"ntfs\\". Implicitly inferred to be \\"ext4\\" if unspecified."', args=[d.arg(name='fsType', type=d.T.string)]), + withFsType(fsType): { source+: { inlineVolumeSpec+: { vsphereVolume+: { fsType: fsType } } } }, + '#withStoragePolicyID':: d.fn(help='"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName."', args=[d.arg(name='storagePolicyID', type=d.T.string)]), + withStoragePolicyID(storagePolicyID): { source+: { inlineVolumeSpec+: { vsphereVolume+: { storagePolicyID: storagePolicyID } } } }, + '#withStoragePolicyName':: d.fn(help='"storagePolicyName is the storage Policy Based Management (SPBM) profile name."', args=[d.arg(name='storagePolicyName', type=d.T.string)]), + withStoragePolicyName(storagePolicyName): { source+: { inlineVolumeSpec+: { vsphereVolume+: { storagePolicyName: storagePolicyName } } } }, + '#withVolumePath':: d.fn(help='"volumePath is the path that identifies vSphere volume vmdk"', args=[d.arg(name='volumePath', type=d.T.string)]), + withVolumePath(volumePath): { source+: { inlineVolumeSpec+: { vsphereVolume+: { volumePath: volumePath } } } }, + }, + '#withAccessModes':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModes(accessModes): { source+: { inlineVolumeSpec+: { accessModes: if std.isArray(v=accessModes) then accessModes else [accessModes] } } }, + '#withAccessModesMixin':: d.fn(help='"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='accessModes', type=d.T.array)]), + withAccessModesMixin(accessModes): { source+: { inlineVolumeSpec+: { accessModes+: if std.isArray(v=accessModes) then accessModes else [accessModes] } } }, + '#withCapacity':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacity(capacity): { source+: { inlineVolumeSpec+: { capacity: capacity } } }, + '#withCapacityMixin':: d.fn(help="\"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='capacity', type=d.T.object)]), + withCapacityMixin(capacity): { source+: { inlineVolumeSpec+: { capacity+: capacity } } }, + '#withMountOptions':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptions(mountOptions): { source+: { inlineVolumeSpec+: { mountOptions: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] } } }, + '#withMountOptionsMixin':: d.fn(help='"mountOptions is the list of mount options, e.g. [\\"ro\\", \\"soft\\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='mountOptions', type=d.T.array)]), + withMountOptionsMixin(mountOptions): { source+: { inlineVolumeSpec+: { mountOptions+: if std.isArray(v=mountOptions) then mountOptions else [mountOptions] } } }, + '#withPersistentVolumeReclaimPolicy':: d.fn(help='"persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming"', args=[d.arg(name='persistentVolumeReclaimPolicy', type=d.T.string)]), + withPersistentVolumeReclaimPolicy(persistentVolumeReclaimPolicy): { source+: { inlineVolumeSpec+: { persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy } } }, + '#withStorageClassName':: d.fn(help='"storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass."', args=[d.arg(name='storageClassName', type=d.T.string)]), + withStorageClassName(storageClassName): { source+: { inlineVolumeSpec+: { storageClassName: storageClassName } } }, + '#withVolumeAttributesClassName':: d.fn(help='"Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is an alpha field and requires enabling VolumeAttributesClass feature."', args=[d.arg(name='volumeAttributesClassName', type=d.T.string)]), + withVolumeAttributesClassName(volumeAttributesClassName): { source+: { inlineVolumeSpec+: { volumeAttributesClassName: volumeAttributesClassName } } }, + '#withVolumeMode':: d.fn(help='"volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec."', args=[d.arg(name='volumeMode', type=d.T.string)]), + withVolumeMode(volumeMode): { source+: { inlineVolumeSpec+: { volumeMode: volumeMode } } }, + }, + '#withPersistentVolumeName':: d.fn(help='"persistentVolumeName represents the name of the persistent volume to attach."', args=[d.arg(name='persistentVolumeName', type=d.T.string)]), + withPersistentVolumeName(persistentVolumeName): { source+: { persistentVolumeName: persistentVolumeName } }, + }, + '#withAttacher':: d.fn(help='"attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName()."', args=[d.arg(name='attacher', type=d.T.string)]), + withAttacher(attacher): { attacher: attacher }, + '#withNodeName':: d.fn(help='"nodeName represents the node that the volume should be attached to."', args=[d.arg(name='nodeName', type=d.T.string)]), + withNodeName(nodeName): { nodeName: nodeName }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentStatus.libsonnet new file mode 100644 index 0000000..758a440 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeAttachmentStatus.libsonnet @@ -0,0 +1,26 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeAttachmentStatus', url='', help='"VolumeAttachmentStatus is the status of a VolumeAttachment request."'), + '#attachError':: d.obj(help='"VolumeError captures an error encountered during a volume operation."'), + attachError: { + '#withMessage':: d.fn(help='"message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { attachError+: { message: message } }, + '#withTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='time', type=d.T.string)]), + withTime(time): { attachError+: { time: time } }, + }, + '#detachError':: d.obj(help='"VolumeError captures an error encountered during a volume operation."'), + detachError: { + '#withMessage':: d.fn(help='"message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { detachError+: { message: message } }, + '#withTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='time', type=d.T.string)]), + withTime(time): { detachError+: { time: time } }, + }, + '#withAttached':: d.fn(help='"attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher."', args=[d.arg(name='attached', type=d.T.boolean)]), + withAttached(attached): { attached: attached }, + '#withAttachmentMetadata':: d.fn(help='"attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher."', args=[d.arg(name='attachmentMetadata', type=d.T.object)]), + withAttachmentMetadata(attachmentMetadata): { attachmentMetadata: attachmentMetadata }, + '#withAttachmentMetadataMixin':: d.fn(help='"attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='attachmentMetadata', type=d.T.object)]), + withAttachmentMetadataMixin(attachmentMetadata): { attachmentMetadata+: attachmentMetadata }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeError.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeError.libsonnet new file mode 100644 index 0000000..dab32f4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeError.libsonnet @@ -0,0 +1,10 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeError', url='', help='"VolumeError captures an error encountered during a volume operation."'), + '#withMessage':: d.fn(help='"message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='time', type=d.T.string)]), + withTime(time): { time: time }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeNodeResources.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeNodeResources.libsonnet new file mode 100644 index 0000000..223de65 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1/volumeNodeResources.libsonnet @@ -0,0 +1,8 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeNodeResources', url='', help='"VolumeNodeResources is a set of resource limits for scheduling of volumes."'), + '#withCount':: d.fn(help='"count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded."', args=[d.arg(name='count', type=d.T.integer)]), + withCount(count): { count: count }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1alpha1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1alpha1/main.libsonnet new file mode 100644 index 0000000..b477f33 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1alpha1/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1alpha1', url='', help=''), + volumeAttributesClass: (import 'volumeAttributesClass.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1alpha1/volumeAttributesClass.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1alpha1/volumeAttributesClass.libsonnet new file mode 100644 index 0000000..62cc081 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storage/v1alpha1/volumeAttributesClass.libsonnet @@ -0,0 +1,60 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='volumeAttributesClass', url='', help='"VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of VolumeAttributesClass', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'storage.k8s.io/v1alpha1', + kind: 'VolumeAttributesClass', + } + self.metadata.withName(name=name), + '#withDriverName':: d.fn(help='"Name of the CSI driver This field is immutable."', args=[d.arg(name='driverName', type=d.T.string)]), + withDriverName(driverName): { driverName: driverName }, + '#withParameters':: d.fn(help='"parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\\n\\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \\"Infeasible\\" state in the modifyVolumeStatus field."', args=[d.arg(name='parameters', type=d.T.object)]), + withParameters(parameters): { parameters: parameters }, + '#withParametersMixin':: d.fn(help='"parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\\n\\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \\"Infeasible\\" state in the modifyVolumeStatus field."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='parameters', type=d.T.object)]), + withParametersMixin(parameters): { parameters+: parameters }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/main.libsonnet new file mode 100644 index 0000000..2e0e01b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/main.libsonnet @@ -0,0 +1,5 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storagemigration', url='', help=''), + v1alpha1: (import 'v1alpha1/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/groupVersionResource.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/groupVersionResource.libsonnet new file mode 100644 index 0000000..d8add42 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/groupVersionResource.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='groupVersionResource', url='', help='"The names of the group, the version, and the resource."'), + '#withGroup':: d.fn(help='"The name of the group."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { group: group }, + '#withResource':: d.fn(help='"The name of the resource."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resource: resource }, + '#withVersion':: d.fn(help='"The name of the version."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { version: version }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/main.libsonnet new file mode 100644 index 0000000..d71c0c6 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/main.libsonnet @@ -0,0 +1,9 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='v1alpha1', url='', help=''), + groupVersionResource: (import 'groupVersionResource.libsonnet'), + migrationCondition: (import 'migrationCondition.libsonnet'), + storageVersionMigration: (import 'storageVersionMigration.libsonnet'), + storageVersionMigrationSpec: (import 'storageVersionMigrationSpec.libsonnet'), + storageVersionMigrationStatus: (import 'storageVersionMigrationStatus.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/migrationCondition.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/migrationCondition.libsonnet new file mode 100644 index 0000000..55befbe --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/migrationCondition.libsonnet @@ -0,0 +1,14 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='migrationCondition', url='', help='"Describes the state of a migration at a certain point."'), + '#withLastUpdateTime':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='lastUpdateTime', type=d.T.string)]), + withLastUpdateTime(lastUpdateTime): { lastUpdateTime: lastUpdateTime }, + '#withMessage':: d.fn(help='"A human readable message indicating details about the transition."', args=[d.arg(name='message', type=d.T.string)]), + withMessage(message): { message: message }, + '#withReason':: d.fn(help="\"The reason for the condition's last transition.\"", args=[d.arg(name='reason', type=d.T.string)]), + withReason(reason): { reason: reason }, + '#withType':: d.fn(help='"Type of the condition."', args=[d.arg(name='type', type=d.T.string)]), + withType(type): { type: type }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigration.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigration.libsonnet new file mode 100644 index 0000000..f8d97b4 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigration.libsonnet @@ -0,0 +1,68 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageVersionMigration', url='', help='"StorageVersionMigration represents a migration of stored data to the latest storage version."'), + '#metadata':: d.obj(help='"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."'), + metadata: { + '#withAnnotations':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotations(annotations): { metadata+: { annotations: annotations } }, + '#withAnnotationsMixin':: d.fn(help='"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='annotations', type=d.T.object)]), + withAnnotationsMixin(annotations): { metadata+: { annotations+: annotations } }, + '#withCreationTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='creationTimestamp', type=d.T.string)]), + withCreationTimestamp(creationTimestamp): { metadata+: { creationTimestamp: creationTimestamp } }, + '#withDeletionGracePeriodSeconds':: d.fn(help='"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."', args=[d.arg(name='deletionGracePeriodSeconds', type=d.T.integer)]), + withDeletionGracePeriodSeconds(deletionGracePeriodSeconds): { metadata+: { deletionGracePeriodSeconds: deletionGracePeriodSeconds } }, + '#withDeletionTimestamp':: d.fn(help='"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."', args=[d.arg(name='deletionTimestamp', type=d.T.string)]), + withDeletionTimestamp(deletionTimestamp): { metadata+: { deletionTimestamp: deletionTimestamp } }, + '#withFinalizers':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizers(finalizers): { metadata+: { finalizers: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withFinalizersMixin':: d.fn(help='"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='finalizers', type=d.T.array)]), + withFinalizersMixin(finalizers): { metadata+: { finalizers+: if std.isArray(v=finalizers) then finalizers else [finalizers] } }, + '#withGenerateName':: d.fn(help='"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"', args=[d.arg(name='generateName', type=d.T.string)]), + withGenerateName(generateName): { metadata+: { generateName: generateName } }, + '#withGeneration':: d.fn(help='"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."', args=[d.arg(name='generation', type=d.T.integer)]), + withGeneration(generation): { metadata+: { generation: generation } }, + '#withLabels':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"', args=[d.arg(name='labels', type=d.T.object)]), + withLabels(labels): { metadata+: { labels: labels } }, + '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), + withLabelsMixin(labels): { metadata+: { labels+: labels } }, + '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), + withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, + '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names"', args=[d.arg(name='name', type=d.T.string)]), + withName(name): { metadata+: { name: name } }, + '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), + withNamespace(namespace): { metadata+: { namespace: namespace } }, + '#withOwnerReferences':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferences(ownerReferences): { metadata+: { ownerReferences: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withOwnerReferencesMixin':: d.fn(help='"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ownerReferences', type=d.T.array)]), + withOwnerReferencesMixin(ownerReferences): { metadata+: { ownerReferences+: if std.isArray(v=ownerReferences) then ownerReferences else [ownerReferences] } }, + '#withResourceVersion':: d.fn(help='"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { metadata+: { resourceVersion: resourceVersion } }, + '#withSelfLink':: d.fn(help='"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system."', args=[d.arg(name='selfLink', type=d.T.string)]), + withSelfLink(selfLink): { metadata+: { selfLink: selfLink } }, + '#withUid':: d.fn(help='"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\\n\\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids"', args=[d.arg(name='uid', type=d.T.string)]), + withUid(uid): { metadata+: { uid: uid } }, + }, + '#new':: d.fn(help='new returns an instance of StorageVersionMigration', args=[d.arg(name='name', type=d.T.string)]), + new(name): { + apiVersion: 'storagemigration.k8s.io/v1alpha1', + kind: 'StorageVersionMigration', + } + self.metadata.withName(name=name), + '#spec':: d.obj(help='"Spec of the storage version migration."'), + spec: { + '#resource':: d.obj(help='"The names of the group, the version, and the resource."'), + resource: { + '#withGroup':: d.fn(help='"The name of the group."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { spec+: { resource+: { group: group } } }, + '#withResource':: d.fn(help='"The name of the resource."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { spec+: { resource+: { resource: resource } } }, + '#withVersion':: d.fn(help='"The name of the version."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { spec+: { resource+: { version: version } } }, + }, + '#withContinueToken':: d.fn(help='"The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \\"Running\\", users can use this token to check the progress of the migration."', args=[d.arg(name='continueToken', type=d.T.string)]), + withContinueToken(continueToken): { spec+: { continueToken: continueToken } }, + }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigrationSpec.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigrationSpec.libsonnet new file mode 100644 index 0000000..fb1b4f8 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigrationSpec.libsonnet @@ -0,0 +1,17 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageVersionMigrationSpec', url='', help='"Spec of the storage version migration."'), + '#resource':: d.obj(help='"The names of the group, the version, and the resource."'), + resource: { + '#withGroup':: d.fn(help='"The name of the group."', args=[d.arg(name='group', type=d.T.string)]), + withGroup(group): { resource+: { group: group } }, + '#withResource':: d.fn(help='"The name of the resource."', args=[d.arg(name='resource', type=d.T.string)]), + withResource(resource): { resource+: { resource: resource } }, + '#withVersion':: d.fn(help='"The name of the version."', args=[d.arg(name='version', type=d.T.string)]), + withVersion(version): { resource+: { version: version } }, + }, + '#withContinueToken':: d.fn(help='"The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \\"Running\\", users can use this token to check the progress of the migration."', args=[d.arg(name='continueToken', type=d.T.string)]), + withContinueToken(continueToken): { continueToken: continueToken }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigrationStatus.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigrationStatus.libsonnet new file mode 100644 index 0000000..1948b03 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/_gen/storagemigration/v1alpha1/storageVersionMigrationStatus.libsonnet @@ -0,0 +1,12 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='storageVersionMigrationStatus', url='', help='"Status of the storage version migration."'), + '#withConditions':: d.fn(help="\"The latest available observations of the migration's current state.\"", args=[d.arg(name='conditions', type=d.T.array)]), + withConditions(conditions): { conditions: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withConditionsMixin':: d.fn(help="\"The latest available observations of the migration's current state.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='conditions', type=d.T.array)]), + withConditionsMixin(conditions): { conditions+: if std.isArray(v=conditions) then conditions else [conditions] }, + '#withResourceVersion':: d.fn(help='"ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource."', args=[d.arg(name='resourceVersion', type=d.T.string)]), + withResourceVersion(resourceVersion): { resourceVersion: resourceVersion }, + '#mixin': 'ignore', + mixin: self, +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/gen.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/gen.libsonnet new file mode 100644 index 0000000..a56928e --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/gen.libsonnet @@ -0,0 +1,27 @@ +{ + local d = (import 'doc-util/main.libsonnet'), + '#':: d.pkg(name='k', url='github.com/jsonnet-libs/k8s-libsonnet/1.30/main.libsonnet', help='Generated Jsonnet library for Kubernetes v1.30'), + admissionregistration:: (import '_gen/admissionregistration/main.libsonnet'), + apiregistration:: (import '_gen/apiregistration/main.libsonnet'), + apiserverinternal:: (import '_gen/apiserverinternal/main.libsonnet'), + apps:: (import '_gen/apps/main.libsonnet'), + authentication:: (import '_gen/authentication/main.libsonnet'), + authorization:: (import '_gen/authorization/main.libsonnet'), + autoscaling:: (import '_gen/autoscaling/main.libsonnet'), + batch:: (import '_gen/batch/main.libsonnet'), + certificates:: (import '_gen/certificates/main.libsonnet'), + coordination:: (import '_gen/coordination/main.libsonnet'), + core:: (import '_gen/core/main.libsonnet'), + discovery:: (import '_gen/discovery/main.libsonnet'), + events:: (import '_gen/events/main.libsonnet'), + flowcontrol:: (import '_gen/flowcontrol/main.libsonnet'), + meta:: (import '_gen/meta/main.libsonnet'), + networking:: (import '_gen/networking/main.libsonnet'), + node:: (import '_gen/node/main.libsonnet'), + policy:: (import '_gen/policy/main.libsonnet'), + rbac:: (import '_gen/rbac/main.libsonnet'), + resource:: (import '_gen/resource/main.libsonnet'), + scheduling:: (import '_gen/scheduling/main.libsonnet'), + storage:: (import '_gen/storage/main.libsonnet'), + storagemigration:: (import '_gen/storagemigration/main.libsonnet'), +} diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/main.libsonnet new file mode 100644 index 0000000..3b018c1 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/k8s-libsonnet/1.30/main.libsonnet @@ -0,0 +1 @@ +(import 'gen.libsonnet') + (import '_custom/apps.libsonnet') + (import '_custom/autoscaling.libsonnet') + (import '_custom/batch.libsonnet') + (import '_custom/core.libsonnet') + (import '_custom/list.libsonnet') + (import '_custom/mapContainers.libsonnet') + (import '_custom/rbac.libsonnet') + (import '_custom/volumeMounts.libsonnet') diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/.github/workflows/tests.yml b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/.github/workflows/tests.yml new file mode 100644 index 0000000..bfe3f82 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/.github/workflows/tests.yml @@ -0,0 +1,32 @@ +name: tests +on: + pull_request: {} + push: + branches: + - main + - master + +jobs: + test: + name: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + - name: make test + run: | + go install github.com/google/go-jsonnet/cmd/jsonnet@latest + go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest + make test + docs: + name: docs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + - name: make docs + run: | + go install github.com/jsonnet-libs/docsonnet@master + make docs + git diff --exit-code + \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/.gitignore b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/.gitignore similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/.gitignore rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/.gitignore diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/LICENSE b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/LICENSE similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/LICENSE rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/LICENSE diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/Makefile b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/Makefile similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/Makefile rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/Makefile diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/README.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/README.md similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/README.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/README.md diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet similarity index 96% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet index 78d3c1c..d32ddb3 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet @@ -1,4 +1,4 @@ -local d = import 'doc-util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; { local this = self, diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/array.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/array.libsonnet similarity index 59% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/array.libsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/array.libsonnet index f000c87..b43c0f0 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/array.libsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/array.libsonnet @@ -1,4 +1,4 @@ -local d = import 'doc-util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; { '#': d.pkg( @@ -34,4 +34,22 @@ local d = import 'doc-util/main.libsonnet'; else std.length(indexable), }; indexable[invar.index:invar.end:step], + + '#filterMapWithIndex':: d.fn( + ||| + `filterMapWithIndex` works the same as `std.filterMap` with the addition that the index is passed to the functions. + + `filter_func` and `map_func` function signature: `function(index, array_item)` + |||, + [ + d.arg('filter_func', d.T.func), + d.arg('map_func', d.T.func), + d.arg('arr', d.T.array), + ], + ), + filterMapWithIndex(filter_func, map_func, arr): [ + map_func(i, arr[i]) + for i in std.range(0, std.length(arr) - 1) + if filter_func(i, arr[i]) + ], } diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet new file mode 100644 index 0000000..05c2f38 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet @@ -0,0 +1,132 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='ascii', + url='github.com/jsonnet-libs/xtd/ascii.libsonnet', + help='`ascii` implements helper functions for ascii characters', + ), + + local cp(c) = std.codepoint(c), + + '#isLower':: d.fn( + '`isLower` reports whether ASCII character `c` is a lower case letter', + [d.arg('c', d.T.string)] + ), + isLower(c): cp(c) >= 97 && cp(c) < 123, + + '#isUpper':: d.fn( + '`isUpper` reports whether ASCII character `c` is a upper case letter', + [d.arg('c', d.T.string)] + ), + isUpper(c): cp(c) >= 65 && cp(c) < 91, + + '#isNumber':: d.fn( + '`isNumber` reports whether character `c` is a number.', + [d.arg('c', d.T.string)] + ), + isNumber(c): std.isNumber(c) || (cp(c) >= 48 && cp(c) < 58), + + '#isStringNumeric':: d.fn( + '`isStringNumeric` reports whether string `s` consists only of numeric characters.', + [d.arg('str', d.T.string)] + ), + isStringNumeric(str): std.all(std.map(self.isNumber, std.stringChars(str))), + + '#isStringJSONNumeric':: d.fn( + '`isStringJSONNumeric` reports whether string `s` is a number as defined by [JSON](https://www.json.org/json-en.html).', + [d.arg('str', d.T.string)] + ), + isStringJSONNumeric(str): + // "1" "9" + local onenine(c) = (cp(c) >= 49 && cp(c) <= 57); + + // "0" + local digit(c) = (cp(c) == 48 || onenine(c)); + + local digits(str) = + std.length(str) > 0 + && std.all( + std.foldl( + function(acc, c) + acc + [digit(c)], + std.stringChars(str), + [], + ) + ); + + local fraction(str) = str == '' || (str[0] == '.' && digits(str[1:])); + + local sign(c) = (c == '-' || c == '+'); + + local exponent(str) = + str == '' + || (str[0] == 'E' && digits(str[1:])) + || (str[0] == 'e' && digits(str[1:])) + || (std.length(str) > 1 && str[0] == 'E' && sign(str[1]) && digits(str[2:])) + || (std.length(str) > 1 && str[0] == 'e' && sign(str[1]) && digits(str[2:])); + + + local integer(str) = + (std.length(str) == 1 && digit(str[0])) + || (std.length(str) > 0 && onenine(str[0]) && digits(str[1:])) + || (std.length(str) > 1 && str[0] == '-' && digit(str[1])) + || (std.length(str) > 1 && str[0] == '-' && onenine(str[1]) && digits(str[2:])); + + local expectInteger = + if std.member(str, '.') + then std.split(str, '.')[0] + else if std.member(str, 'e') + then std.split(str, 'e')[0] + else if std.member(str, 'E') + then std.split(str, 'E')[0] + else str; + + local expectFraction = + if std.member(str, 'e') + then std.split(str[std.length(expectInteger):], 'e')[0] + else if std.member(str, 'E') + then std.split(str[std.length(expectInteger):], 'E')[0] + else str[std.length(expectInteger):]; + + local expectExponent = str[std.length(expectInteger) + std.length(expectFraction):]; + + std.all([ + integer(expectInteger), + fraction(expectFraction), + exponent(expectExponent), + ]), + + '#stringToRFC1123': d.fn( + ||| + `stringToRFC113` converts a strings to match RFC1123, replacing non-alphanumeric characters with dashes. It'll throw an assertion if the string is too long. + + * RFC 1123. This means the string must: + * - contain at most 63 characters + * - contain only lowercase alphanumeric characters or '-' + * - start with an alphanumeric character + * - end with an alphanumeric character + |||, + [d.arg('str', d.T.string)] + ), + stringToRFC1123(str): + // lowercase alphabetic characters + local lowercase = std.asciiLower(str); + // replace non-alphanumeric characters with dashes + local alphanumeric = + std.join( + '', + std.map( + function(c) + if self.isLower(c) + || self.isNumber(c) + then c + else '-', + std.stringChars(lowercase) + ) + ); + // remove leading/trailing dashes + local return = std.stripChars(alphanumeric, '-'); + assert std.length(return) <= 63 : 'String too long'; + return, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet similarity index 73% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet index 06b519b..ee42c66 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet @@ -1,5 +1,5 @@ local xtd = import './main.libsonnet'; -local d = import 'doc-util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; { '#': d.pkg( @@ -77,4 +77,24 @@ local d = import 'doc-util/main.libsonnet'; if r != '' ], + '#toCamelCase':: d.fn( + ||| + `toCamelCase` transforms a string to camelCase format, splitting words by the `-`, `_` or spaces. + For example: `hello_world` becomes `helloWorld`. + For more info please check: http://en.wikipedia.org/wiki/CamelCase + |||, + [d.arg('str', d.T.string)] + ), + toCamelCase(str):: + local separators = std.set(std.findSubstr('_', str) + std.findSubstr('-', str) + std.findSubstr(' ', str)); + local n = std.join('', [ + if std.setMember(i - 1, separators) + then std.asciiUpper(str[i]) + else str[i] + for i in std.range(0, std.length(str) - 1) + if !std.setMember(i, separators) + ]); + if std.length(n) == 0 + then n + else std.asciiLower(n[0]) + n[1:], } diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/date.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/date.libsonnet new file mode 100644 index 0000000..a8243e7 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/date.libsonnet @@ -0,0 +1,185 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='date', + url='github.com/jsonnet-libs/xtd/date.libsonnet', + help='`time` provides various date related functions.', + ), + + // Lookup tables for calendar calculations + local commonYearMonthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], + local commonYearMonthOffset = [0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5], + local leapYearMonthOffset = [0, 3, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6], + + // monthOffset looks up the offset to apply in day of week calculations based on the year and month + local monthOffset(year, month) = + if self.isLeapYear(year) + then leapYearMonthOffset[month - 1] + else commonYearMonthOffset[month - 1], + + '#isLeapYear': d.fn( + '`isLeapYear` returns true if the given year is a leap year.', + [d.arg('year', d.T.number)], + ), + isLeapYear(year):: year % 4 == 0 && (year % 100 != 0 || year % 400 == 0), + + '#dayOfWeek': d.fn( + '`dayOfWeek` returns the day of the week for the given date. 0=Sunday, 1=Monday, etc.', + [ + d.arg('year', d.T.number), + d.arg('month', d.T.number), + d.arg('day', d.T.number), + ], + ), + dayOfWeek(year, month, day):: + (day + monthOffset(year, month) + 5 * ((year - 1) % 4) + 4 * ((year - 1) % 100) + 6 * ((year - 1) % 400)) % 7, + + '#dayOfYear': d.fn( + ||| + `dayOfYear` calculates the ordinal day of the year based on the given date. The range of outputs is 1-365 + for common years, and 1-366 for leap years. + |||, + [ + d.arg('year', d.T.number), + d.arg('month', d.T.number), + d.arg('day', d.T.number), + ], + ), + dayOfYear(year, month, day):: + std.foldl( + function(a, b) a + b, + std.slice(commonYearMonthLength, 0, month - 1, 1), + 0 + ) + day + + if month > 2 && self.isLeapYear(year) + then 1 + else 0, + + // yearSeconds returns the number of seconds in the given year. + local yearSeconds(year) = ( + if $.isLeapYear(year) + then 366 * 24 * 3600 + else 365 * 24 * 3600 + ), + + // monthSeconds returns the number of seconds in the given month of a given year. + local monthSeconds(year, month) = ( + commonYearMonthLength[month - 1] * 24 * 3600 + + if month == 2 && $.isLeapYear(year) then 86400 else 0 + ), + + // sumYearsSeconds returns the number of seconds in all years since 1970 up to year-1. + local sumYearsSeconds(year) = std.foldl( + function(acc, y) acc + yearSeconds(y), + std.range(1970, year - 1), + 0, + ), + + // sumMonthsSeconds returns the number of seconds in all months up to month-1 of the given year. + local sumMonthsSeconds(year, month) = std.foldl( + function(acc, m) acc + monthSeconds(year, m), + std.range(1, month - 1), + 0, + ), + + // sumDaysSeconds returns the number of seconds in all days up to day-1. + local sumDaysSeconds(day) = (day - 1) * 24 * 3600, + + '#toUnixTimestamp': d.fn( + ||| + `toUnixTimestamp` calculates the unix timestamp of a given date. + |||, + [ + d.arg('year', d.T.number), + d.arg('month', d.T.number), + d.arg('day', d.T.number), + d.arg('hour', d.T.number), + d.arg('minute', d.T.number), + d.arg('second', d.T.number), + ], + ), + toUnixTimestamp(year, month, day, hour, minute, second):: + sumYearsSeconds(year) + sumMonthsSeconds(year, month) + sumDaysSeconds(day) + hour * 3600 + minute * 60 + second, + + // isNumeric checks that the input is a non-empty string containing only digit characters. + local isNumeric(input) = + assert std.type(input) == 'string' : 'isNumeric() only operates on string inputs, got %s' % std.type(input); + std.foldl( + function(acc, char) acc && std.codepoint('0') <= std.codepoint(char) && std.codepoint(char) <= std.codepoint('9'), + std.stringChars(input), + std.length(input) > 0, + ), + + // parseSeparatedNumbers parses input which has part `names` separated by `sep`. + // Returns an object which has one field for each name in `names` with its integer value. + local parseSeparatedNumbers(input, sep, names) = ( + assert std.type(input) == 'string' : 'parseSeparatedNumbers() only operates on string inputs, got %s' % std.type(input); + assert std.type(sep) == 'string' : 'parseSeparatedNumbers() only operates on string separators, got %s' % std.type(sep); + assert std.type(names) == 'array' : 'parseSeparatedNumbers() only operates on arrays of names, got input %s' % std.type(names); + + local parts = std.split(input, sep); + assert std.length(parts) == std.length(names) : 'expected %(expected)d parts separated by %(sep)s in %(format)s formatted input "%(input)s", but got %(got)d' % { + expected: std.length(names), + sep: sep, + format: std.join(sep, names), + input: input, + got: std.length(parts), + }; + + { + [names[i]]: + // Fail with meaningful message if not numeric, otherwise it will be a hell to debug. + assert isNumeric(parts[i]) : '%(name)%s part "%(part)s" of %(format)s of input "%(input)s" is not numeric' % { + name: names[i], + part: parts[i], + format: std.join(sep, names), + input: input, + }; + std.parseInt(parts[i]) + for i in std.range(0, std.length(parts) - 1) + } + ), + + // stringContains is a helper function to check whether a string contains a given substring. + local stringContains(haystack, needle) = std.length(std.findSubstr(needle, haystack)) > 0, + + '#parseRFC3339': d.fn( + ||| + `parseRFC3339` parses an RFC3339-formatted date & time string (like `2020-01-02T03:04:05Z`) into an object containing the 'year', 'month', 'day', 'hour', 'minute' and 'second fields. + This is a limited implementation that does not support timezones (so it requires an UTC input ending in 'Z' or 'z') nor sub-second precision. + The returned object has a `toUnixTimestamp()` method that can be used to obtain the unix timestamp of the parsed date. + |||, + [ + d.arg('input', d.T.string), + ], + ), + parseRFC3339(input):: + // Basic input type check. + assert std.type(input) == 'string' : 'parseRFC3339() only operates on string inputs, got %s' % std.type(input); + + // Sub-second precision isn't implemented yet, warn the user about that instead of returning wrong results. + assert !stringContains(input, '.') : 'the provided RFC3339 input "%s" has a dot, most likely representing a sub-second precision, but this function does not support that' % input; + + // We don't support timezones, so string should end with 'Z' or 'z'. + assert std.endsWith(input, 'Z') || std.endsWith(input, 'z') : 'the provided RFC3339 "%s" should end with "Z" or "z". This implementation does not currently support timezones' % input; + + // RFC3339 can separate date and time using 'T', 't' or ' '. + // Find out which one it is and use it. + local sep = + if stringContains(input, 'T') then 'T' + else if stringContains(input, 't') then 't' + else if stringContains(input, ' ') then ' ' + else error 'the provided RFC3339 input "%s" should contain either a "T", or a "t" or space " " as a separator for date and time parts' % input; + + // Split date and time using the selected separator. + // Remove the last character as we know it's 'Z' or 'z' and it's not useful to us. + local datetime = std.split(std.substr(input, 0, std.length(input) - 1), sep); + assert std.length(datetime) == 2 : 'the provided RFC3339 timestamp "%(input)s" does not have date and time parts separated by the character "%(sep)s"' % { input: input, sep: sep }; + + local date = parseSeparatedNumbers(datetime[0], '-', ['year', 'month', 'day']); + local time = parseSeparatedNumbers(datetime[1], ':', ['hour', 'minute', 'second']); + date + time + { + toUnixTimestamp():: $.toUnixTimestamp(self.year, self.month, self.day, self.hour, self.minute, self.second), + }, +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/README.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/README.md similarity index 94% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/README.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/README.md index 0fbf376..61d9c39 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/README.md +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/README.md @@ -2,7 +2,7 @@ permalink: / --- -# package xtd +# xtd ```jsonnet local xtd = import "github.com/jsonnet-libs/xtd/main.libsonnet" @@ -14,8 +14,6 @@ This package serves as a test field for functions intended to be contributed to in the future, but also provides a place for less general, yet useful utilities. -## Subpackages - * [aggregate](aggregate.md) * [array](array.md) * [ascii](ascii.md) @@ -23,5 +21,6 @@ in the future, but also provides a place for less general, yet useful utilities. * [date](date.md) * [inspect](inspect.md) * [jsonpath](jsonpath.md) +* [number](number.md) * [string](string.md) * [url](url.md) \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md similarity index 98% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md index aba530d..a877ddf 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md @@ -2,7 +2,7 @@ permalink: /aggregate/ --- -# package aggregate +# aggregate ```jsonnet local aggregate = import "github.com/jsonnet-libs/xtd/aggregate.libsonnet" diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/array.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/array.md similarity index 52% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/array.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/array.md index 1d9e4a8..cc538d8 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/array.md +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/array.md @@ -2,7 +2,7 @@ permalink: /array/ --- -# package array +# array ```jsonnet local array = import "github.com/jsonnet-libs/xtd/array.libsonnet" @@ -12,10 +12,22 @@ local array = import "github.com/jsonnet-libs/xtd/array.libsonnet" ## Index +* [`fn filterMapWithIndex(filter_func, map_func, arr)`](#fn-filtermapwithindex) * [`fn slice(indexable, index, end='null', step=1)`](#fn-slice) ## Fields +### fn filterMapWithIndex + +```ts +filterMapWithIndex(filter_func, map_func, arr) +``` + +`filterMapWithIndex` works the same as `std.filterMap` with the addition that the index is passed to the functions. + +`filter_func` and `map_func` function signature: `function(index, array_item)` + + ### fn slice ```ts diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md new file mode 100644 index 0000000..95382d5 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md @@ -0,0 +1,76 @@ +--- +permalink: /ascii/ +--- + +# ascii + +```jsonnet +local ascii = import "github.com/jsonnet-libs/xtd/ascii.libsonnet" +``` + +`ascii` implements helper functions for ascii characters + +## Index + +* [`fn isLower(c)`](#fn-islower) +* [`fn isNumber(c)`](#fn-isnumber) +* [`fn isStringJSONNumeric(str)`](#fn-isstringjsonnumeric) +* [`fn isStringNumeric(str)`](#fn-isstringnumeric) +* [`fn isUpper(c)`](#fn-isupper) +* [`fn stringToRFC1123(str)`](#fn-stringtorfc1123) + +## Fields + +### fn isLower + +```ts +isLower(c) +``` + +`isLower` reports whether ASCII character `c` is a lower case letter + +### fn isNumber + +```ts +isNumber(c) +``` + +`isNumber` reports whether character `c` is a number. + +### fn isStringJSONNumeric + +```ts +isStringJSONNumeric(str) +``` + +`isStringJSONNumeric` reports whether string `s` is a number as defined by [JSON](https://www.json.org/json-en.html). + +### fn isStringNumeric + +```ts +isStringNumeric(str) +``` + +`isStringNumeric` reports whether string `s` consists only of numeric characters. + +### fn isUpper + +```ts +isUpper(c) +``` + +`isUpper` reports whether ASCII character `c` is a upper case letter + +### fn stringToRFC1123 + +```ts +stringToRFC1123(str) +``` + +`stringToRFC113` converts a strings to match RFC1123, replacing non-alphanumeric characters with dashes. It'll throw an assertion if the string is too long. + +* RFC 1123. This means the string must: +* - contain at most 63 characters +* - contain only lowercase alphanumeric characters or '-' +* - start with an alphanumeric character +* - end with an alphanumeric character diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md similarity index 64% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md index 0634fa9..6c52147 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md @@ -2,7 +2,7 @@ permalink: /camelcase/ --- -# package camelcase +# camelcase ```jsonnet local camelcase = import "github.com/jsonnet-libs/xtd/camelcase.libsonnet" @@ -13,6 +13,7 @@ local camelcase = import "github.com/jsonnet-libs/xtd/camelcase.libsonnet" ## Index * [`fn split(src)`](#fn-split) +* [`fn toCamelCase(str)`](#fn-tocamelcase) ## Fields @@ -27,3 +28,14 @@ digits. Both lower camel case and upper camel case are supported. It only suppor ASCII characters. For more info please check: http://en.wikipedia.org/wiki/CamelCase Based on https://github.com/fatih/camelcase/ + + +### fn toCamelCase + +```ts +toCamelCase(str) +``` + +`toCamelCase` transforms a string to camelCase format, splitting words by the `-`, `_` or spaces. +For example: `hello_world` becomes `helloWorld`. +For more info please check: http://en.wikipedia.org/wiki/CamelCase diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/date.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/date.md new file mode 100644 index 0000000..1fcb9eb --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/date.md @@ -0,0 +1,66 @@ +--- +permalink: /date/ +--- + +# date + +```jsonnet +local date = import "github.com/jsonnet-libs/xtd/date.libsonnet" +``` + +`time` provides various date related functions. + +## Index + +* [`fn dayOfWeek(year, month, day)`](#fn-dayofweek) +* [`fn dayOfYear(year, month, day)`](#fn-dayofyear) +* [`fn isLeapYear(year)`](#fn-isleapyear) +* [`fn parseRFC3339(input)`](#fn-parserfc3339) +* [`fn toUnixTimestamp(year, month, day, hour, minute, second)`](#fn-tounixtimestamp) + +## Fields + +### fn dayOfWeek + +```ts +dayOfWeek(year, month, day) +``` + +`dayOfWeek` returns the day of the week for the given date. 0=Sunday, 1=Monday, etc. + +### fn dayOfYear + +```ts +dayOfYear(year, month, day) +``` + +`dayOfYear` calculates the ordinal day of the year based on the given date. The range of outputs is 1-365 +for common years, and 1-366 for leap years. + + +### fn isLeapYear + +```ts +isLeapYear(year) +``` + +`isLeapYear` returns true if the given year is a leap year. + +### fn parseRFC3339 + +```ts +parseRFC3339(input) +``` + +`parseRFC3339` parses an RFC3339-formatted date & time string (like `2020-01-02T03:04:05Z`) into an object containing the 'year', 'month', 'day', 'hour', 'minute' and 'second fields. +This is a limited implementation that does not support timezones (so it requires an UTC input ending in 'Z' or 'z') nor sub-second precision. +The returned object has a `toUnixTimestamp()` method that can be used to obtain the unix timestamp of the parsed date. + + +### fn toUnixTimestamp + +```ts +toUnixTimestamp(year, month, day, hour, minute, second) +``` + +`toUnixTimestamp` calculates the unix timestamp of a given date. diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md similarity index 90% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md index 726d330..da6ef61 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md @@ -2,7 +2,7 @@ permalink: /inspect/ --- -# package inspect +# inspect ```jsonnet local inspect = import "github.com/jsonnet-libs/xtd/inspect.libsonnet" @@ -12,6 +12,7 @@ local inspect = import "github.com/jsonnet-libs/xtd/inspect.libsonnet" ## Index +* [`fn deepMap(func, x)`](#fn-deepmap) * [`fn diff(input1, input2)`](#fn-diff) * [`fn filterKubernetesObjects(object, kind='')`](#fn-filterkubernetesobjects) * [`fn filterObjects(filter_func, x)`](#fn-filterobjects) @@ -19,6 +20,15 @@ local inspect = import "github.com/jsonnet-libs/xtd/inspect.libsonnet" ## Fields +### fn deepMap + +```ts +deepMap(func, x) +``` + +`deepMap` traverses the whole tree of `x` and applies `func(item)` indiscriminately. + + ### fn diff ```ts diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md similarity index 98% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md index 8b0e30d..94a4a4b 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md @@ -2,7 +2,7 @@ permalink: /jsonpath/ --- -# package jsonpath +# jsonpath ```jsonnet local jsonpath = import "github.com/jsonnet-libs/xtd/jsonpath.libsonnet" diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/number.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/number.md new file mode 100644 index 0000000..aa30879 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/number.md @@ -0,0 +1,43 @@ +--- +permalink: /number/ +--- + +# number + +```jsonnet +local number = import "github.com/jsonnet-libs/xtd/number.libsonnet" +``` + +`number` implements helper functions for processing number. + +## Index + +* [`fn inRange(v, from, to)`](#fn-inrange) +* [`fn maxInArray(arr, default=0)`](#fn-maxinarray) +* [`fn minInArray(arr, default=0)`](#fn-mininarray) + +## Fields + +### fn inRange + +```ts +inRange(v, from, to) +``` + +`inRange` returns true if `v` is in the given from/to range.` + +### fn maxInArray + +```ts +maxInArray(arr, default=0) +``` + +`maxInArray` finds the biggest number in an array + +### fn minInArray + +```ts +minInArray(arr, default=0) +``` + +`minInArray` finds the smallest number in an array \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/string.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/string.md similarity index 96% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/string.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/string.md index 17b75b5..62873e5 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/string.md +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/string.md @@ -2,7 +2,7 @@ permalink: /string/ --- -# package string +# string ```jsonnet local string = import "github.com/jsonnet-libs/xtd/string.libsonnet" diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/url.md b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/url.md similarity index 98% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/url.md rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/url.md index 728957d..db898bc 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/docs/url.md +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/docs/url.md @@ -2,7 +2,7 @@ permalink: /url/ --- -# package url +# url ```jsonnet local url = import "github.com/jsonnet-libs/xtd/url.libsonnet" diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet similarity index 88% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet index 2ee7159..47abcd9 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet @@ -1,4 +1,4 @@ -local d = import 'doc-util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; { local this = self, @@ -158,11 +158,11 @@ local d = import 'doc-util/main.libsonnet'; if std.isObject(x) then if filter_func(x) - then x + then [x] else std.foldl( function(acc, o) - acc + self.filterObjects(x[o], filter_func), + acc + self.filterObjects(filter_func, x[o]), std.objectFields(x), [] ) @@ -171,7 +171,7 @@ local d = import 'doc-util/main.libsonnet'; std.flattenArrays( std.map( function(obj) - self.filterObjects(obj, filter_func), + self.filterObjects(filter_func, obj), x ) ) @@ -206,4 +206,22 @@ local d = import 'doc-util/main.libsonnet'; function(o) o.kind == kind, objects ), + + '#deepMap':: d.fn( + ||| + `deepMap` traverses the whole tree of `x` and applies `func(item)` indiscriminately. + |||, + args=[ + d.arg('func', d.T.func), + d.arg('x', d.T.any), + ] + ), + deepMap(func, x): + func( + if std.isObject(x) + then std.mapWithKey(function(_, y) self.deepMap(func, y), x) + else if std.isArray(x) + then std.map(function(y) self.deepMap(func, y), x) + else x + ), } diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet similarity index 97% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet index 7722d64..49f15bc 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet @@ -1,5 +1,5 @@ local xtd = import './main.libsonnet'; -local d = import 'doc-util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; { '#': d.pkg( diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/main.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/main.libsonnet similarity index 86% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/main.libsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/main.libsonnet index 59c4034..5bda297 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/main.libsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/main.libsonnet @@ -1,4 +1,4 @@ -local d = import 'doc-util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; { '#': d.pkg( @@ -19,6 +19,7 @@ local d = import 'doc-util/main.libsonnet'; date: (import './date.libsonnet'), inspect: (import './inspect.libsonnet'), jsonpath: (import './jsonpath.libsonnet'), + number: (import './number.libsonnet'), string: (import './string.libsonnet'), url: (import './url.libsonnet'), } diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/number.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/number.libsonnet new file mode 100644 index 0000000..6ebdece --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/number.libsonnet @@ -0,0 +1,48 @@ +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; + +{ + '#': d.pkg( + name='number', + url='github.com/jsonnet-libs/xtd/number.libsonnet', + help='`number` implements helper functions for processing number.', + ), + + '#inRange':: d.fn( + '`inRange` returns true if `v` is in the given from/to range.`', + [ + d.arg('v', d.T.number), + d.arg('from', d.T.number), + d.arg('to', d.T.number), + ] + ), + inRange(v, from, to): + v > from && v <= to, + + '#maxInArray':: d.fn( + '`maxInArray` finds the biggest number in an array', + [ + d.arg('arr', d.T.array), + d.arg('default', d.T.number, default=0), + ] + ), + maxInArray(arr, default=0): + std.foldl( + std.max, + std.set(arr), + default, + ), + + '#minInArray':: d.fn( + '`minInArray` finds the smallest number in an array', + [ + d.arg('arr', d.T.array), + d.arg('default', d.T.number, default=0), + ] + ), + minInArray(arr, default=0): + std.foldl( + std.min, + std.set(arr), + default, + ), +} diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/string.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/string.libsonnet similarity index 92% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/string.libsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/string.libsonnet index 5514cde..6655981 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/string.libsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/string.libsonnet @@ -1,4 +1,4 @@ -local d = import 'doc-util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; { '#': d.pkg( diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/ascii_test.jsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/ascii_test.jsonnet new file mode 100644 index 0000000..f8b3f6b --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/ascii_test.jsonnet @@ -0,0 +1,92 @@ +local ascii = import '../ascii.libsonnet'; +local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; + +test.new(std.thisFile) + ++ test.case.new( + name='all numeric', + test=test.expect.eq( + actual=ascii.isStringNumeric('123'), + expected=true, + ) +) + ++ test.case.new( + name='only beginning numeric', + test=test.expect.eq( + actual=ascii.isStringNumeric('123abc'), + expected=false, + ) +) + ++ test.case.new( + name='only end numeric', + test=test.expect.eq( + actual=ascii.isStringNumeric('abc123'), + expected=false, + ) +) + ++ test.case.new( + name='none numeric', + test=test.expect.eq( + actual=ascii.isStringNumeric('abc'), + expected=false, + ) +) + ++ test.case.new( + name='empty', + test=test.expect.eq( + actual=ascii.isStringNumeric(''), + expected=true, + ) +) + ++ std.foldl( + function(acc, str) + acc + + test.case.new( + name='valid: ' + str, + test=test.expect.eq( + actual=ascii.isStringJSONNumeric(str), + expected=true, + ) + ), + [ + '15', + '1.5', + '-1.5', + '1e5', + '1E5', + '1.5e5', + '1.5E5', + '1.5e-5', + '1.5E+5', + ], + {}, +) ++ std.foldl( + function(acc, str) + acc + + test.case.new( + name='invalid: ' + str, + test=test.expect.eq( + actual=ascii.isStringJSONNumeric(str), + expected=false, + ) + ), + [ + '15e', + '1.', + '+', + '+1E5', + '.5', + 'E5', + 'e5', + '15e5garbage', + '1garbag5e5garbage', + 'garbage15e5garbage', + ], + {}, +) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet similarity index 61% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet index b171c64..2dcadc0 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet @@ -4,117 +4,173 @@ local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; test.new(std.thisFile) + test.case.new( - name='nostring', + name='split: nostring', test=test.expect.eq( actual=xtd.camelcase.split(''), expected=[''], ) ) + test.case.new( - name='lowercase', + name='split: lowercase', test=test.expect.eq( actual=xtd.camelcase.split('lowercase'), expected=['lowercase'], ) ) + test.case.new( - name='Class', + name='split: Class', test=test.expect.eq( actual=xtd.camelcase.split('Class'), expected=['Class'], ) ) + test.case.new( - name='MyClass', + name='split: MyClass', test=test.expect.eq( actual=xtd.camelcase.split('MyClass'), expected=['My', 'Class'], ) ) + test.case.new( - name='MyC', + name='split: MyC', test=test.expect.eq( actual=xtd.camelcase.split('MyC'), expected=['My', 'C'], ) ) + test.case.new( - name='HTML', + name='split: HTML', test=test.expect.eq( actual=xtd.camelcase.split('HTML'), expected=['HTML'], ) ) + test.case.new( - name='PDFLoader', + name='split: PDFLoader', test=test.expect.eq( actual=xtd.camelcase.split('PDFLoader'), expected=['PDF', 'Loader'], ) ) + test.case.new( - name='AString', + name='split: AString', test=test.expect.eq( actual=xtd.camelcase.split('AString'), expected=['A', 'String'], ) ) + test.case.new( - name='SimpleXMLParser', + name='split: SimpleXMLParser', test=test.expect.eq( actual=xtd.camelcase.split('SimpleXMLParser'), expected=['Simple', 'XML', 'Parser'], ) ) + test.case.new( - name='vimRPCPlugin', + name='split: vimRPCPlugin', test=test.expect.eq( actual=xtd.camelcase.split('vimRPCPlugin'), expected=['vim', 'RPC', 'Plugin'], ) ) + test.case.new( - name='GL11Version', + name='split: GL11Version', test=test.expect.eq( actual=xtd.camelcase.split('GL11Version'), expected=['GL', '11', 'Version'], ) ) + test.case.new( - name='99Bottles', + name='split: 99Bottles', test=test.expect.eq( actual=xtd.camelcase.split('99Bottles'), expected=['99', 'Bottles'], ) ) + test.case.new( - name='May5', + name='split: May5', test=test.expect.eq( actual=xtd.camelcase.split('May5'), expected=['May', '5'], ) ) + test.case.new( - name='BFG9000', + name='split: BFG9000', test=test.expect.eq( actual=xtd.camelcase.split('BFG9000'), expected=['BFG', '9000'], ) ) + test.case.new( - name='Two spaces', + name='split: Two spaces', test=test.expect.eq( actual=xtd.camelcase.split('Two spaces'), expected=['Two', ' ', 'spaces'], ) ) + test.case.new( - name='Multiple Random spaces', + name='split: Multiple Random spaces', test=test.expect.eq( actual=xtd.camelcase.split('Multiple Random spaces'), expected=['Multiple', ' ', 'Random', ' ', 'spaces'], ) ) ++ test.case.new( + name='toCamelCase: empty string', + test=test.expect.eq( + actual=xtd.camelcase.toCamelCase(''), + expected='', + ) +) ++ test.case.new( + name='toCamelCase: lowercase', + test=test.expect.eq( + actual=xtd.camelcase.toCamelCase('lowercase'), + expected='lowercase', + ) +) ++ test.case.new( + name='toCamelCase: underscores', + test=test.expect.eq( + actual=xtd.camelcase.toCamelCase('lower_case'), + expected='lowerCase', + ) +) ++ test.case.new( + name='toCamelCase: dashes', + test=test.expect.eq( + actual=xtd.camelcase.toCamelCase('lower-case'), + expected='lowerCase', + ) +) ++ test.case.new( + name='toCamelCase: spaces', + test=test.expect.eq( + actual=xtd.camelcase.toCamelCase('lower case'), + expected='lowerCase', + ) +) ++ test.case.new( + name='toCamelCase: mixed', + test=test.expect.eq( + actual=xtd.camelcase.toCamelCase('lower_case-mixed'), + expected='lowerCaseMixed', + ) +) ++ test.case.new( + name='toCamelCase: multiple spaces', + test=test.expect.eq( + actual=xtd.camelcase.toCamelCase('lower case'), + expected='lowerCase', + ) +) ++ test.case.new( + name='toCamelCase: PascalCase', + test=test.expect.eq( + actual=xtd.camelcase.toCamelCase('PascalCase'), + expected='pascalCase', + ) +) // TODO: find or create is(Upper|Lower) for non-ascii characters // Something like this for Jsonnet: diff --git a/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet new file mode 100644 index 0000000..9746428 --- /dev/null +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet @@ -0,0 +1,219 @@ +local xtd = import '../main.libsonnet'; +local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; + +test.new(std.thisFile) + ++ test.case.new( + name='Leap Year commonYear', + test=test.expect.eq( + actual=xtd.date.isLeapYear(1995), + expected=false, + ) +) + ++ test.case.new( + name='Leap Year fourYearCycle', + test=test.expect.eq( + actual=xtd.date.isLeapYear(1996), + expected=true, + ) +) + ++ test.case.new( + name='Leap Year fourHundredYearCycle', + test=test.expect.eq( + actual=xtd.date.isLeapYear(2000), + expected=true, + ) +) + ++ test.case.new( + name='Leap Year hundredYearCycle', + test=test.expect.eq( + actual=xtd.date.isLeapYear(2100), + expected=false, + ) +) + ++ test.case.new( + name='Day Of Week leapYearStart', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2000, 1, 1), + expected=6, + ) +) + ++ test.case.new( + name='Day Of Week leapYearEnd', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2000, 12, 31), + expected=0, + ) +) + ++ test.case.new( + name='Day Of Week commonYearStart', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(1995, 1, 1), + expected=0, + ) +) + ++ test.case.new( + name='Day Of Week commonYearEnd', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2003, 12, 31), + expected=3, + ) +) + ++ test.case.new( + name='Day Of Week leapYearMid', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2024, 7, 19), + expected=5, + ) +) + ++ test.case.new( + name='Day Of Week commonYearMid', + test=test.expect.eq( + actual=xtd.date.dayOfWeek(2023, 6, 15), + expected=4, + ) +) ++ test.case.new( + name='Day Of Year leapYearStart', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2000, 1, 1), + expected=1, + ) +) + ++ test.case.new( + name='Day Of Year leapYearEnd', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2000, 12, 31), + expected=366, + ) +) + ++ test.case.new( + name='Day Of Year commonYearStart', + test=test.expect.eq( + actual=xtd.date.dayOfYear(1995, 1, 1), + expected=1, + ) +) + ++ test.case.new( + name='Day Of Year commonYearEnd', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2003, 12, 31), + expected=365, + ) +) + ++ test.case.new( + name='Day Of Year leapYearMid', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2024, 7, 19), + expected=201, + ) +) + ++ test.case.new( + name='Day Of Year commonYearMid', + test=test.expect.eq( + actual=xtd.date.dayOfYear(2023, 6, 15), + expected=166, + ) +) + ++ test.case.new( + name='toUnixTimestamp of 1970-01-01 00:00:00 (zero)', + test=test.expect.eq( + actual=xtd.date.toUnixTimestamp(1970, 1, 1, 0, 0, 0), + expected=0, + ), +) + ++ test.case.new( + name='toUnixTimestamp of 1970-01-02 00:00:00 (one day)', + test=test.expect.eq( + actual=xtd.date.toUnixTimestamp(1970, 1, 2, 0, 0, 0), + expected=86400, + ), +) + ++ test.case.new( + name='toUnixTimestamp of 1971-01-01 00:00:00 (one year)', + test=test.expect.eq( + actual=xtd.date.toUnixTimestamp(1971, 1, 1, 0, 0, 0), + expected=365 * 24 * 3600, + ), +) + ++ test.case.new( + name='toUnixTimestamp of 1972-03-01 00:00:00 (month of leap year)', + test=test.expect.eq( + actual=xtd.date.toUnixTimestamp(1972, 3, 1, 0, 0, 0), + expected=2 * 365 * 24 * 3600 + 31 * 24 * 3600 + 29 * 24 * 3600, + ), +) + ++ test.case.new( + name='toUnixTimestamp of 1974-01-01 00:00:00 (incl leap year)', + test=test.expect.eq( + actual=xtd.date.toUnixTimestamp(1974, 1, 1, 0, 0, 0), + expected=(4 * 365 + 1) * 24 * 3600, + ), +) + ++ test.case.new( + name='toUnixTimestamp of 2020-01-02 03:04:05 (full date)', + test=test.expect.eq( + actual=xtd.date.toUnixTimestamp(2020, 1, 2, 3, 4, 5), + expected=1577934245, + ), +) + ++ test.case.new( + name='parseRFC3339 of 1970-01-01T00:00:00Z (standard unix zero)', + test=test.expect.eq( + actual=xtd.date.parseRFC3339('1970-01-01T00:00:00Z'), + expected={ year: 1970, month: 1, day: 1, hour: 0, minute: 0, second: 0 }, + ), +) + ++ test.case.new( + name='parseRFC3339 of 2020-01-02T03:04:05Z (non-zero date)', + test=test.expect.eq( + actual=xtd.date.parseRFC3339('2020-01-02T03:04:05Z'), + expected={ year: 2020, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, + ), +) + ++ test.case.new( + name='parseRFC3339 of 2020-01-02 03:04:05Z (space separator)', + test=test.expect.eq( + actual=xtd.date.parseRFC3339('2020-01-02 03:04:05Z'), + expected={ year: 2020, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, + ), +) + ++ test.case.new( + name='parseRFC3339 of 2020-01-02t03:04:05Z (lowercase t separator and lowercase z)', + test=test.expect.eq( + actual=xtd.date.parseRFC3339('2020-01-02t03:04:05z'), + expected={ year: 2020, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, + ), +) + ++ test.case.new( + name='parseRFC3339(..).toUnixTimestamp()', + test=test.expect.eq( + actual=xtd.date.parseRFC3339('2020-01-02T03:04:05Z').toUnixTimestamp(), + expected=1577934245, + ), +) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet similarity index 79% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet index 54510ea..b2c0d15 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet @@ -150,3 +150,42 @@ test.new(std.thisFile) ) ) ) ++ ( + local originalObj = { + key1: { + key1a: 'replace me', + key1b: [ + { key1bNested: 'replace me' }, + ], + }, + key2: [ + { key2a: 'replace me' }, + ], + }; + + test.case.new( + name='deepmap', + test= + test.expect.eq( + actual=xtd.inspect.deepMap( + function(item) + if std.isString(item) + && item == 'replace me' + then 'REPLACED' + else item, + originalObj, + ), + expected={ + key1: { + key1a: 'REPLACED', + key1b: [ + { key1bNested: 'REPLACED' }, + ], + }, + key2: [ + { key2a: 'REPLACED' }, + ], + } + ) + ) +) diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet diff --git a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/url.libsonnet b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/url.libsonnet similarity index 98% rename from pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/url.libsonnet rename to pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/url.libsonnet index 32d1a30..1509c0f 100644 --- a/pkg/server/testdata/grafonnet/vendor/github.com/jsonnet-libs/xtd/url.libsonnet +++ b/pkg/server/testdata/vendor/github.com/jsonnet-libs/xtd/url.libsonnet @@ -1,4 +1,4 @@ -local d = import 'doc-util/main.libsonnet'; +local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; { '#': d.pkg( diff --git a/pkg/server/testdata/vendor/grafonnet-latest b/pkg/server/testdata/vendor/grafonnet-latest new file mode 120000 index 0000000..803696f --- /dev/null +++ b/pkg/server/testdata/vendor/grafonnet-latest @@ -0,0 +1 @@ +github.com/grafana/grafonnet/gen/grafonnet-latest \ No newline at end of file diff --git a/pkg/server/testdata/vendor/grafonnet-v11.4.0 b/pkg/server/testdata/vendor/grafonnet-v11.4.0 new file mode 120000 index 0000000..1d81721 --- /dev/null +++ b/pkg/server/testdata/vendor/grafonnet-v11.4.0 @@ -0,0 +1 @@ +github.com/grafana/grafonnet/gen/grafonnet-v11.4.0 \ No newline at end of file diff --git a/pkg/server/testdata/vendor/k8s-libsonnet b/pkg/server/testdata/vendor/k8s-libsonnet new file mode 120000 index 0000000..e5b9b31 --- /dev/null +++ b/pkg/server/testdata/vendor/k8s-libsonnet @@ -0,0 +1 @@ +github.com/jsonnet-libs/k8s-libsonnet/1.30 \ No newline at end of file diff --git a/pkg/server/testdata/vendor/ksonnet-util b/pkg/server/testdata/vendor/ksonnet-util new file mode 120000 index 0000000..39633cc --- /dev/null +++ b/pkg/server/testdata/vendor/ksonnet-util @@ -0,0 +1 @@ +github.com/grafana/jsonnet-libs/ksonnet-util \ No newline at end of file diff --git a/pkg/server/testdata/grafonnet/vendor/xtd b/pkg/server/testdata/vendor/xtd similarity index 100% rename from pkg/server/testdata/grafonnet/vendor/xtd rename to pkg/server/testdata/vendor/xtd diff --git a/scripts/jsonnetfmt.sh b/scripts/jsonnetfmt.sh index df10ae5..f0f30ae 100755 --- a/scripts/jsonnetfmt.sh +++ b/scripts/jsonnetfmt.sh @@ -3,10 +3,11 @@ set -euxo pipefail # Format all jsonnet files in the repo, with exceptions. +# Ignore vendor/ dir exceptions=("./pkg/server/testdata/hover-error.jsonnet") -for f in $(find . -name '*.jsonnet' -print -o -name '*.libsonnet' -print); do +for f in $(find . -name '*.jsonnet' -print -o -name '*.libsonnet' -not -path "*/vendor/*" -print); do if [[ " ${exceptions[@]} " =~ " ${f} " ]]; then continue fi From 8ba4d4564085bf2af393a18d4eab9238da21060c Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 27 May 2025 19:38:57 -0400 Subject: [PATCH 120/124] feat: Find Usages/References (#204) * feat: Find Usages/References Uses Tanka to find the importers (`tk tool importers`), then runs through those files to find usages * lint * Update Tanka --- go.mod | 13 +-- go.sum | 16 ++-- pkg/ast/processing/find_field.go | 114 +++++++++++++++++++++++ pkg/server/references.go | 101 ++++++++++++++++++++ pkg/server/references_test.go | 154 +++++++++++++++++++++++++++++++ pkg/server/server.go | 1 + pkg/server/unused.go | 4 - 7 files changed, 385 insertions(+), 18 deletions(-) create mode 100644 pkg/server/references.go create mode 100644 pkg/server/references_test.go diff --git a/go.mod b/go.mod index 122b712..4cfabc4 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,13 @@ module github.com/grafana/jsonnet-language-server -go 1.23.0 +go 1.24.0 -toolchain go1.23.2 +toolchain go1.24.2 require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 - github.com/google/go-jsonnet v0.20.0 - github.com/grafana/tanka v0.32.0 + github.com/google/go-jsonnet v0.21.0 + github.com/grafana/tanka v0.32.1-0.20250521123240-fa219d35d24f github.com/hexops/gotextdiff v1.0.3 github.com/jdbaldry/go-language-server-protocol v0.0.0-20211013214444-3022da0884b2 github.com/mitchellh/mapstructure v1.5.0 @@ -24,6 +24,7 @@ require ( github.com/andybalholm/cascadia v1.3.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/fatih/color v1.18.0 // indirect + github.com/gobwas/glob v0.2.3 // indirect github.com/google/uuid v1.6.0 // indirect github.com/huandu/xstrings v1.5.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect @@ -36,9 +37,9 @@ require ( github.com/shopspring/decimal v1.4.0 // indirect github.com/spf13/cast v1.7.0 // indirect github.com/stretchr/objx v0.5.2 // indirect - golang.org/x/crypto v0.35.0 // indirect + golang.org/x/crypto v0.36.0 // indirect golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.32.0 // indirect + golang.org/x/sys v0.33.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index d590f57..16e8bb1 100644 --- a/go.sum +++ b/go.sum @@ -27,12 +27,12 @@ github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5x github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= -github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= +github.com/google/go-jsonnet v0.21.0 h1:43Bk3K4zMRP/aAZm9Po2uSEjY6ALCkYUVIcz9HLGMvA= +github.com/google/go-jsonnet v0.21.0/go.mod h1:tCGAu8cpUpEZcdGMmdOu37nh8bGgqubhI5v2iSk3KJQ= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grafana/tanka v0.32.0 h1:F+xSc0ipvdeiyf2Fpl9dxcC3wpjVCMEgoc+RoyeGpNw= -github.com/grafana/tanka v0.32.0/go.mod h1:djmXTGczYi6wMKyVpyR7nRBvNBbHtkkq7Q/40yNy12Q= +github.com/grafana/tanka v0.32.1-0.20250521123240-fa219d35d24f h1:gP0r33Vy4+UwxSisoUvCT8H2QClu96X7SMakqG9iE6Q= +github.com/grafana/tanka v0.32.1-0.20250521123240-fa219d35d24f/go.mod h1:NbGUZbqhwXwxpDUhsY7sfTrtPCZwcWhst8Wluk4LVIA= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= @@ -96,8 +96,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= -golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs= -golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ= +golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= +golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -128,8 +128,8 @@ golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= -golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= +golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= diff --git a/pkg/ast/processing/find_field.go b/pkg/ast/processing/find_field.go index 1de18f7..a7e6688 100644 --- a/pkg/ast/processing/find_field.go +++ b/pkg/ast/processing/find_field.go @@ -311,3 +311,117 @@ func (p *Processor) findSelfObject(self *ast.Self) *ast.DesugaredObject { } return nil } + +// findUsagesVisitor creates a visitor function that finds all usages of a given symbol +func (p *Processor) findUsagesVisitor(symbolID ast.Identifier, symbol string, ranges *[]ObjectRange) func(node ast.Node) { + return func(node ast.Node) { + switch node := node.(type) { + case *ast.Var: + // For variables, check if the ID matches + if node.Id == symbolID { + *ranges = append(*ranges, ObjectRange{ + Filename: node.LocRange.FileName, + SelectionRange: node.LocRange, + FullRange: node.LocRange, + }) + } + case *ast.Index: + // For field access, check if the index matches + if litStr, ok := node.Index.(*ast.LiteralString); ok { + if litStr.Value == symbol { + *ranges = append(*ranges, ObjectRange{ + Filename: node.LocRange.FileName, + SelectionRange: node.LocRange, + FullRange: node.LocRange, + }) + } + } + case *ast.Apply: + if litStr, ok := node.Target.(*ast.LiteralString); ok { + if litStr.Value == symbol { + *ranges = append(*ranges, ObjectRange{ + Filename: node.LocRange.FileName, + SelectionRange: node.LocRange, + FullRange: node.LocRange, + }) + } + } + } + + // Visit all children + switch node := node.(type) { + case *ast.Apply: + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Target) + for _, arg := range node.Arguments.Positional { + p.findUsagesVisitor(symbolID, symbol, ranges)(arg.Expr) + } + for _, arg := range node.Arguments.Named { + p.findUsagesVisitor(symbolID, symbol, ranges)(arg.Arg) + } + case *ast.Array: + for _, element := range node.Elements { + p.findUsagesVisitor(symbolID, symbol, ranges)(element.Expr) + } + case *ast.Binary: + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Left) + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Right) + case *ast.Conditional: + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Cond) + p.findUsagesVisitor(symbolID, symbol, ranges)(node.BranchTrue) + p.findUsagesVisitor(symbolID, symbol, ranges)(node.BranchFalse) + case *ast.DesugaredObject: + for _, field := range node.Fields { + p.findUsagesVisitor(symbolID, symbol, ranges)(field.Name) + p.findUsagesVisitor(symbolID, symbol, ranges)(field.Body) + } + case *ast.Error: + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Expr) + case *ast.Function: + for _, param := range node.Parameters { + if param.DefaultArg != nil { + p.findUsagesVisitor(symbolID, symbol, ranges)(param.DefaultArg) + } + } + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Body) + case *ast.Index: + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Target) + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Index) + case *ast.Local: + for _, bind := range node.Binds { + p.findUsagesVisitor(symbolID, symbol, ranges)(bind.Body) + } + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Body) + case *ast.Object: + for _, field := range node.Fields { + p.findUsagesVisitor(symbolID, symbol, ranges)(field.Expr1) + p.findUsagesVisitor(symbolID, symbol, ranges)(field.Expr2) + } + case *ast.SuperIndex: + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Index) + case *ast.Unary: + p.findUsagesVisitor(symbolID, symbol, ranges)(node.Expr) + default: + // No children to visit + } + } +} + +// FindUsages finds all usages of a symbol in the given files +func (p *Processor) FindUsages(files []string, symbol string) ([]ObjectRange, error) { + var ranges []ObjectRange + symbolID := ast.Identifier(symbol) + + // Create a visitor to find all usages + visitor := p.findUsagesVisitor(symbolID, symbol, &ranges) + + // Process each file + for _, file := range files { + rootNode, _, err := p.vm.ImportAST("", file) + if err != nil { + return nil, fmt.Errorf("failed to import AST for file %s: %w", file, err) + } + visitor(rootNode) + } + + return ranges, nil +} diff --git a/pkg/server/references.go b/pkg/server/references.go new file mode 100644 index 0000000..cadd6c7 --- /dev/null +++ b/pkg/server/references.go @@ -0,0 +1,101 @@ +package server + +import ( + "context" + "path/filepath" + + "github.com/google/go-jsonnet/ast" + "github.com/grafana/jsonnet-language-server/pkg/ast/processing" + "github.com/grafana/jsonnet-language-server/pkg/cache" + position "github.com/grafana/jsonnet-language-server/pkg/position_conversion" + "github.com/grafana/jsonnet-language-server/pkg/utils" + "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" + log "github.com/sirupsen/logrus" + + tankaJsonnet "github.com/grafana/tanka/pkg/jsonnet" + "github.com/grafana/tanka/pkg/jsonnet/jpath" +) + +// findSymbolAndFiles finds the symbol identifier and possible files where it might be used +// based on the AST node at the given position. +func (s *Server) findSymbolAndFiles(doc *cache.Document, params *protocol.ReferenceParams) (string, []string, error) { + searchStack, _ := processing.FindNodeByPosition(doc.AST, position.ProtocolToAST(params.Position)) + + // Only match locals and obj fields, as we're trying to find usages of these + possibleFiles := []string{} + idOfSymbol := "" + for !searchStack.IsEmpty() { + deepestNode := searchStack.Pop() + switch deepestNode := deepestNode.(type) { + case *ast.Local: + idOfSymbol = string(deepestNode.Binds[0].Variable) + possibleFiles = []string{doc.Item.URI.SpanURI().Filename()} // Local variables are always used in the current file + case *ast.DesugaredObject: + // Find the field on the position + for _, field := range deepestNode.Fields { + if position.RangeASTToProtocol(field.LocRange).Start.Line == params.Position.Line { + fieldName, ok := field.Name.(*ast.LiteralString) + if !ok { + return "", nil, utils.LogErrorf("References: field name is not a string") + } + idOfSymbol = fieldName.Value + root, err := jpath.FindRoot(doc.Item.URI.SpanURI().Filename()) + if err != nil { + log.Errorf("References: Error resolving Tanka root, using current directory: %v", err) + root = filepath.Dir(doc.Item.URI.SpanURI().Filename()) + } + possibleFiles, err = tankaJsonnet.FindTransitiveImportersForFile(root, []string{doc.Item.URI.SpanURI().Filename()}) + if err != nil { + log.Errorf("References: Error finding transitive importers. Using current file only: %v", err) + possibleFiles = []string{doc.Item.URI.SpanURI().Filename()} + } + break + } + } + } + if idOfSymbol != "" { + break + } + } + return idOfSymbol, possibleFiles, nil +} + +func (s *Server) References(_ context.Context, params *protocol.ReferenceParams) ([]protocol.Location, error) { + doc, err := s.cache.Get(params.TextDocument.URI) + if err != nil { + return nil, utils.LogErrorf("References: %s: %w", errorRetrievingDocument, err) + } + + // Only find references if the line we're trying to find references for hasn't changed since last successful AST parse + if doc.AST == nil { + return nil, utils.LogErrorf("References: document was never successfully parsed, can't find references") + } + if doc.LinesChangedSinceAST[int(params.Position.Line)] { + return nil, utils.LogErrorf("References: document line %d was changed since last successful parse, can't find references", params.Position.Line) + } + + vm := s.getVM(doc.Item.URI.SpanURI().Filename()) + processor := processing.NewProcessor(s.cache, vm) + + idOfSymbol, possibleFiles, err := s.findSymbolAndFiles(doc, params) + if err != nil { + return nil, err + } + + // Find all usages of the symbol + objectRanges, err := processor.FindUsages(possibleFiles, idOfSymbol) + if err != nil { + return nil, err + } + + // Convert ObjectRanges to protocol.Locations + var locations []protocol.Location + for _, r := range objectRanges { + locations = append(locations, protocol.Location{ + URI: protocol.URIFromPath(r.Filename), + Range: position.RangeASTToProtocol(r.SelectionRange), + }) + } + + return locations, nil +} diff --git a/pkg/server/references_test.go b/pkg/server/references_test.go new file mode 100644 index 0000000..959e4dd --- /dev/null +++ b/pkg/server/references_test.go @@ -0,0 +1,154 @@ +package server + +import ( + "context" + "path/filepath" + "testing" + + "github.com/jdbaldry/go-language-server-protocol/lsp/protocol" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +type referenceResult struct { + // Defaults to filename + targetFilename string + targetRange protocol.Range +} + +type referenceTestCase struct { + name string + filename string + position protocol.Position + + results []referenceResult +} + +var referenceTestCases = []referenceTestCase{ + { + name: "local var", + filename: "testdata/test_goto_definition.jsonnet", + position: protocol.Position{Line: 0, Character: 9}, + results: []referenceResult{ + { + targetRange: protocol.Range{ + Start: protocol.Position{Line: 4, Character: 5}, + End: protocol.Position{Line: 4, Character: 10}, + }, + }, + { + targetRange: protocol.Range{ + Start: protocol.Position{Line: 5, Character: 15}, + End: protocol.Position{Line: 5, Character: 20}, + }, + }, + { + targetRange: protocol.Range{ + Start: protocol.Position{Line: 7, Character: 12}, + End: protocol.Position{Line: 7, Character: 17}, + }, + }, + }, + }, + { + name: "local function", + filename: "testdata/test_goto_definition.jsonnet", + position: protocol.Position{Line: 1, Character: 9}, + results: []referenceResult{ + { + targetRange: protocol.Range{ + Start: protocol.Position{Line: 7, Character: 5}, + End: protocol.Position{Line: 7, Character: 11}, + }, + }, + }, + }, + { + name: "function field", + filename: "testdata/test_basic_lib.libsonnet", + position: protocol.Position{Line: 1, Character: 5}, + results: []referenceResult{ + { + targetRange: protocol.Range{ + Start: protocol.Position{Line: 4, Character: 11}, + End: protocol.Position{Line: 4, Character: 21}, + }, + }, + }, + }, + { + name: "dollar field", + filename: "testdata/dollar-simple.jsonnet", + position: protocol.Position{Line: 1, Character: 8}, + results: []referenceResult{ + { + targetRange: protocol.Range{ + Start: protocol.Position{Line: 3, Character: 8}, + End: protocol.Position{Line: 3, Character: 26}, + }, + targetFilename: "testdata/dollar-no-follow.jsonnet", + }, + { + targetRange: protocol.Range{ + Start: protocol.Position{Line: 7, Character: 10}, + End: protocol.Position{Line: 7, Character: 21}, + }, + }, + { + targetRange: protocol.Range{ + Start: protocol.Position{Line: 8, Character: 14}, + End: protocol.Position{Line: 8, Character: 25}, + }, + }, + }, + }, + { + name: "imported through locals", + filename: "testdata/local-at-root.jsonnet", + position: protocol.Position{Line: 8, Character: 11}, + results: []referenceResult{ + { + targetRange: protocol.Range{ + Start: protocol.Position{Line: 2, Character: 0}, + End: protocol.Position{Line: 2, Character: 12}, + }, + targetFilename: "testdata/local-at-root-4.jsonnet", + }, + }, + }, +} + +func TestReferences(t *testing.T) { + for _, tc := range referenceTestCases { + t.Run(tc.name, func(t *testing.T) { + params := &protocol.ReferenceParams{ + TextDocumentPositionParams: protocol.TextDocumentPositionParams{ + TextDocument: protocol.TextDocumentIdentifier{ + URI: protocol.URIFromPath(tc.filename), + }, + Position: tc.position, + }, + } + + server := NewServer("any", "test version", nil, Configuration{ + JPaths: []string{"testdata", filepath.Join(filepath.Dir(tc.filename), "vendor")}, + }) + serverOpenTestFile(t, server, tc.filename) + response, err := server.References(context.Background(), params) + require.NoError(t, err) + + var expected []protocol.Location + for _, r := range tc.results { + if r.targetFilename == "" { + r.targetFilename = tc.filename + } + expected = append(expected, protocol.Location{ + URI: protocol.URIFromPath(r.targetFilename), + Range: r.targetRange, + }) + } + + assert.Equal(t, expected, response) + }) + } +} diff --git a/pkg/server/server.go b/pkg/server/server.go index 9e6b2e6..3898c5b 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -148,6 +148,7 @@ func (s *Server) Initialize(_ context.Context, _ *protocol.ParamInitialize) (*pr IncludeText: false, }, }, + ReferencesProvider: true, }, ServerInfo: struct { Name string `json:"name"` diff --git a/pkg/server/unused.go b/pkg/server/unused.go index 78cce7c..1633a98 100644 --- a/pkg/server/unused.go +++ b/pkg/server/unused.go @@ -104,10 +104,6 @@ func (s *Server) RangeFormatting(context.Context, *protocol.DocumentRangeFormatt return nil, notImplemented("RangeFormatting") } -func (s *Server) References(context.Context, *protocol.ReferenceParams) ([]protocol.Location, error) { - return nil, notImplemented("References") -} - func (s *Server) Rename(context.Context, *protocol.RenameParams) (*protocol.WorkspaceEdit, error) { return nil, notImplemented("Rename") } From a8383fa637758ef0213dc48c85c1a373337a199c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 19:41:28 -0400 Subject: [PATCH 121/124] Bump actions/setup-go from 5.4.0 to 5.5.0 (#201) Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.4.0 to 5.5.0. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/0aaccfd150d50ccaeb58ebd88d36e91967a5f35b...d35c59abb061a4a6fb18e82ac0862c26744d6ab5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: 5.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/jsonnetfmt.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jsonnetfmt.yml b/.github/workflows/jsonnetfmt.yml index 971f005..3a5a433 100644 --- a/.github/workflows/jsonnetfmt.yml +++ b/.github/workflows/jsonnetfmt.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 + - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 with: go-version-file: go.mod - name: Format diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1480fcd..25cac48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 + - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 with: go-version-file: go.mod cache: false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fa12d90..2582a37 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 + - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 with: go-version-file: go.mod - run: go test ./... -bench=. -benchmem From 147ddac2321a70608b0afc578ea371f0fd6e1671 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 19:41:41 -0400 Subject: [PATCH 122/124] Bump golangci/golangci-lint-action from 7.0.0 to 8.0.0 (#200) Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 7.0.0 to 8.0.0. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/1481404843c368bc19ca9406f87d6e0fc97bdcfd...4afd733a84b1f43292c63897423277bb7f4313a9) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-version: 8.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index a156538..120dddc 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -15,6 +15,6 @@ jobs: with: persist-credentials: false - name: golangci-lint - uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0 + uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 with: version: latest From f0fec5aebf6125d1f0a626ff3eb278f81b25eb37 Mon Sep 17 00:00:00 2001 From: Julien Duchesne Date: Tue, 27 May 2025 19:43:31 -0400 Subject: [PATCH 123/124] Pull new stdlib docs (#206) --- pkg/stdlib/stdlib-content.jsonnet | 145 +++++++++++++++++++++--------- 1 file changed, 104 insertions(+), 41 deletions(-) diff --git a/pkg/stdlib/stdlib-content.jsonnet b/pkg/stdlib/stdlib-content.jsonnet index c36e1c5..2d310b7 100644 --- a/pkg/stdlib/stdlib-content.jsonnet +++ b/pkg/stdlib/stdlib-content.jsonnet @@ -1,5 +1,14 @@ local html = import 'html.libsonnet'; +local exampleDocMultiline(mid, ex) = + html.spaceless([ + html.p({}, 'Example:'), + html.pre({}, ex.input), + html.p({}, mid), + html.pre({}, ex.output), + ]) +; + { intro: html.paragraphs([ ||| @@ -98,6 +107,8 @@ local html = import 'html.libsonnet';
    std.pow(x, n)
    std.exp(x)
    std.log(x)
+
    std.log2(x)
+
    std.log10(x)
    std.exponent(x)
    std.mantissa(x)
    std.floor(x)
@@ -109,12 +120,19 @@ local html = import 'html.libsonnet';
    std.asin(x)
    std.acos(x)
    std.atan(x)
+
    std.atan2(y, x)
+
    std.deg2rad(x)
+
    std.rad2deg(x)
+
    std.hypot(a, b)
    std.round(x)
    std.isEven(x)
    std.isOdd(x)
    std.isInteger(x)
    std.isDecimal(x)
+

+ The constant std.pi is also available. +

The function std.mod(a, b) is what the % operator is desugared to. It performs modulo arithmetic if the left hand side is a number, or if the left hand side is a string, @@ -199,11 +217,18 @@ local html = import 'html.libsonnet'; name: 'substr', params: ['str', 'from', 'len'], availableSince: '0.10.0', - description: ||| - Returns a string that is the part of s that starts at offset from - and is len codepoints long. If the string s is shorter than - from+len, the suffix starting at position from will be returned. - |||, + description: html.paragraphs([ + ||| + Returns a string that is the part of str that starts at offset from + and is len codepoints long. If the string str is shorter than + from+len, the suffix starting at position from will be returned. + |||, + ||| + The slice operator (e.g., str[from:to]) can also be used on strings, as an + alternative to this function. However, note that the slice operator takes a start and an + end index, but std.substr takes a start index and a length. + |||, + ]), }, { name: 'findSubstr', @@ -382,7 +407,7 @@ local html = import 'html.libsonnet'; { name: 'trim', params: ['str'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: ||| Returns a copy of string after eliminating leading and trailing whitespaces. |||, @@ -390,7 +415,7 @@ local html = import 'html.libsonnet'; { name: 'equalsIgnoreCase', params: ['str1', 'str2'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: ||| Returns true if the the given str1 is equal to str2 by doing case insensitive comparison, false otherwise. |||, @@ -763,7 +788,7 @@ local html = import 'html.libsonnet'; |||), ], examples: [ - { + exampleDocMultiline('Yields a string containing this JSON:', { input: ||| std.manifestJsonEx( { @@ -787,8 +812,8 @@ local html = import 'html.libsonnet'; y: { a: 1, b: 2, c: [1, 2] }, }, ' ' ), - }, - { + }), + exampleDocMultiline('Yields a string containing this JSON:', { input: ||| std.manifestJsonEx( { @@ -803,7 +828,7 @@ local html = import 'html.libsonnet'; y: { a: 1, b: [1, 2] }, }, '', ' ', ' : ' ), - }, + }), ], }, { @@ -815,7 +840,7 @@ local html = import 'html.libsonnet'; it calls std.manifestJsonEx with a 4-space indent: |||, examples: [ - { + exampleDocMultiline('Yields a string containing this JSON:', { input: ||| std.manifestJson( { @@ -839,7 +864,7 @@ local html = import 'html.libsonnet'; y: { a: 1, b: 2, c: [1, 2] }, } ), - }, + }), ], }, { @@ -851,7 +876,7 @@ local html = import 'html.libsonnet'; it calls std.manifestJsonEx: |||, examples: [ - { + exampleDocMultiline('Yields a string containing this JSON:', { input: ||| std.manifestJsonMinified( { @@ -875,7 +900,7 @@ local html = import 'html.libsonnet'; y: { a: 1, b: 2, c: [1, 2] }, } ), - }, + }), ], }, { @@ -1046,7 +1071,7 @@ local html = import 'html.libsonnet'; one or more whitespaces that are used for indentation: |||, examples: [ - { + exampleDocMultiline('Yields a string containing this TOML file:', { input: ||| std.manifestTomlEx({ key1: "value", @@ -1085,7 +1110,7 @@ local html = import 'html.libsonnet'; ], }, ' ') ), - }, + }), ], }, ], @@ -1209,21 +1234,31 @@ local html = import 'html.libsonnet'; name: 'foldl', params: ['func', 'arr', 'init'], availableSince: '0.10.0', - description: ||| - Classic foldl function. Calls the function on the result of the previous function call and - each array element, or init in the case of the initial element. Traverses the - array from left to right. - |||, + description: html.paragraphs([ + ||| + Classic foldl function. Calls the function for each array element, passing the result from + the previous call (or init for the first call), and the array element. Traverses + the array from left to right. + |||, + ||| + For example: foldl(f, [1,2,3], 0) is equivalent to f(f(f(0, 1), 2), 3). + |||, + ]), }, { name: 'foldr', params: ['func', 'arr', 'init'], availableSince: '0.10.0', - description: ||| - Classic foldr function. Calls the function on the result of the previous function call and - each array element, or init in the case of the initial element. Traverses the - array from right to left. - |||, + description: html.paragraphs([ + ||| + Classic foldr function. Calls the function for each array element, passing the array element + and the result from the previous call (or init for the first call). Traverses + the array from right to left. + |||, + ||| + For example: foldr(f, [1,2,3], 0) is equivalent to f(1, f(2, f(3, 0))). + |||, + ]), }, { name: 'range', @@ -1303,6 +1338,26 @@ local html = import 'html.libsonnet'; }, ], }, + { + name: 'deepJoin', + params: ['arr'], + availableSince: '0.10.0', + description: ||| + Concatenate an array containing strings and arrays to form a single string. If arr is + a string, it is returned unchanged. If it is an array, it is flattened and the string elements are + concatenated together with no separator. + |||, + examples: [ + { + input: 'std.deepJoin(["one ", ["two ", "three ", ["four "], []], "five ", ["six"]])', + output: std.deepJoin(['one ', ['two ', 'three ', ['four '], []], 'five ', ['six']]), + }, + { + input: 'std.deepJoin("hello")', + output: std.deepJoin('hello'), + }, + ], + }, { name: 'lines', params: ['arr'], @@ -1329,7 +1384,7 @@ local html = import 'html.libsonnet'; { name: 'flattenDeepArray', params: ['value'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: ||| Concatenate an array containing values and arrays into a single flattened array. |||, @@ -1415,27 +1470,35 @@ local html = import 'html.libsonnet'; { name: 'minArray', params: ['arr', 'keyF', 'onEmpty'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: html.paragraphs([ ||| - Return the min of all element in arr. + Return the minimum of all elements in arr. If keyF is provided, it is called on each element + of the array and should return a comparator value, and in this case minArray will return an element + with the minimum comparator value. If onEmpty is provided, and arr is empty, then + minArray will return the provided onEmpty value. If onEmpty is not provided, + then an empty arr will raise an error. |||, ]), }, { name: 'maxArray', params: ['arr', 'keyF', 'onEmpty'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: html.paragraphs([ ||| - Return the max of all element in arr. + Return the maximum of all elements in arr. If keyF is provided, it is called on each element + of the array and should return a comparator value, and in this case maxArray will return an element + with the maximum comparator value. If onEmpty is provided, and arr is empty, then + maxArray will return the provided onEmpty value. If onEmpty is not provided, + then an empty arr will raise an error. |||, ]), }, { name: 'contains', params: ['arr', 'elem'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: html.paragraphs([ ||| Return true if given elem is present in arr, false otherwise. @@ -1455,7 +1518,7 @@ local html = import 'html.libsonnet'; { name: 'remove', params: ['arr', 'elem'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: html.paragraphs([ ||| Remove first occurrence of elem from arr. @@ -1465,7 +1528,7 @@ local html = import 'html.libsonnet'; { name: 'removeAt', params: ['arr', 'idx'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: html.paragraphs([ ||| Remove element at idx index from arr. @@ -1593,7 +1656,7 @@ local html = import 'html.libsonnet'; params: ['o'], availableSince: '0.20.0', description: ||| - Returns an array of objects from the given object, each object having two fields: + Returns an array of objects from the given object, each object having two fields: key (string) and value (object). Does not include hidden fields. |||, }, @@ -1632,7 +1695,7 @@ local html = import 'html.libsonnet'; { name: 'objectRemoveKey', params: ['obj', 'key'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: ||| Returns a new object after removing the given key from object. |||, @@ -1699,7 +1762,7 @@ local html = import 'html.libsonnet'; { name: 'sha1', params: ['s'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: [ html.p({}, ||| Encodes the given value into an SHA1 string. @@ -1712,7 +1775,7 @@ local html = import 'html.libsonnet'; { name: 'sha256', params: ['s'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: [ html.p({}, ||| Encodes the given value into an SHA256 string. @@ -1725,7 +1788,7 @@ local html = import 'html.libsonnet'; { name: 'sha512', params: ['s'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: [ html.p({}, ||| Encodes the given value into an SHA512 string. @@ -1738,7 +1801,7 @@ local html = import 'html.libsonnet'; { name: 'sha3', params: ['s'], - availableSince: 'upcoming', + availableSince: '0.21.0', description: [ html.p({}, ||| Encodes the given value into an SHA3 string. From 546040b5f00a0cc09888aaa08257d7d3c496d7b3 Mon Sep 17 00:00:00 2001 From: Ariel Richtman <10679234+arichtman@users.noreply.github.com> Date: Fri, 30 May 2025 23:49:44 +1000 Subject: [PATCH 124/124] Add example config for Helix editor (#187) --- editor/helix/languages.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 editor/helix/languages.toml diff --git a/editor/helix/languages.toml b/editor/helix/languages.toml new file mode 100644 index 0000000..d0221a7 --- /dev/null +++ b/editor/helix/languages.toml @@ -0,0 +1,2 @@ +[language-server.jsonnet-language-server] +args = ["--tanka"] \ No newline at end of file